From 25d8c616b8bb79c93dbe41062d03e8c7579765d6 Mon Sep 17 00:00:00 2001 From: kareemshibli <63514061+kareemshibli@users.noreply.github.com> Date: Mon, 24 Oct 2022 12:28:13 +0300 Subject: [PATCH 01/14] adp cli first release --- .github/CODEOWNERS | 2 +- src/adp/HISTORY.rst | 8 + src/adp/README.md | 5 + src/adp/azext_adp/__init__.py | 42 ++ src/adp/azext_adp/_help.py | 11 + src/adp/azext_adp/_params.py | 13 + src/adp/azext_adp/aaz/__init__.py | 6 + src/adp/azext_adp/aaz/latest/__init__.py | 6 + .../azext_adp/aaz/latest/adp/__cmd_group.py | 23 + src/adp/azext_adp/aaz/latest/adp/__init__.py | 12 + .../latest/adp/_check_name_availability.py | 170 ++++++ .../aaz/latest/adp/account/__cmd_group.py | 23 + .../aaz/latest/adp/account/__init__.py | 17 + .../aaz/latest/adp/account/_create.py | 265 +++++++++ .../aaz/latest/adp/account/_delete.py | 150 +++++ .../azext_adp/aaz/latest/adp/account/_list.py | 369 ++++++++++++ .../azext_adp/aaz/latest/adp/account/_show.py | 210 +++++++ .../aaz/latest/adp/account/_update.py | 396 ++++++++++++ .../azext_adp/aaz/latest/adp/account/_wait.py | 209 +++++++ .../adp/account/data_pool/__cmd_group.py | 23 + .../latest/adp/account/data_pool/__init__.py | 17 + .../latest/adp/account/data_pool/_create.py | 396 ++++++++++++ .../latest/adp/account/data_pool/_delete.py | 164 +++++ .../aaz/latest/adp/account/data_pool/_list.py | 271 +++++++++ .../aaz/latest/adp/account/data_pool/_show.py | 262 ++++++++ .../latest/adp/account/data_pool/_update.py | 535 +++++++++++++++++ .../aaz/latest/adp/account/data_pool/_wait.py | 261 ++++++++ .../aaz/latest/adp/workspace/__cmd_group.py | 23 + .../aaz/latest/adp/workspace/__init__.py | 17 + .../aaz/latest/adp/workspace/_create.py | 494 +++++++++++++++ .../aaz/latest/adp/workspace/_delete.py | 150 +++++ .../aaz/latest/adp/workspace/_list.py | 563 ++++++++++++++++++ .../aaz/latest/adp/workspace/_show.py | 313 ++++++++++ .../aaz/latest/adp/workspace/_update.py | 536 +++++++++++++++++ .../aaz/latest/adp/workspace/_wait.py | 312 ++++++++++ src/adp/azext_adp/azext_metadata.json | 4 + src/adp/azext_adp/commands.py | 15 + src/adp/azext_adp/custom.py | 14 + src/adp/azext_adp/tests/__init__.py | 6 + src/adp/azext_adp/tests/latest/__init__.py | 6 + src/adp/azext_adp/tests/latest/test_adp.py | 13 + src/adp/setup.cfg | 1 + src/adp/setup.py | 49 ++ 43 files changed, 6381 insertions(+), 1 deletion(-) create mode 100644 src/adp/HISTORY.rst create mode 100644 src/adp/README.md create mode 100644 src/adp/azext_adp/__init__.py create mode 100644 src/adp/azext_adp/_help.py create mode 100644 src/adp/azext_adp/_params.py create mode 100644 src/adp/azext_adp/aaz/__init__.py create mode 100644 src/adp/azext_adp/aaz/latest/__init__.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/__cmd_group.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/__init__.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/_check_name_availability.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/__cmd_group.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/__init__.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/_create.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/_delete.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/_list.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/_show.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/_update.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/_wait.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/data_pool/__cmd_group.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/data_pool/__init__.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/data_pool/_create.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/data_pool/_delete.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/data_pool/_list.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/data_pool/_show.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/data_pool/_update.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/account/data_pool/_wait.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/workspace/__cmd_group.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/workspace/__init__.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/workspace/_create.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/workspace/_delete.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/workspace/_list.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/workspace/_show.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/workspace/_update.py create mode 100644 src/adp/azext_adp/aaz/latest/adp/workspace/_wait.py create mode 100644 src/adp/azext_adp/azext_metadata.json create mode 100644 src/adp/azext_adp/commands.py create mode 100644 src/adp/azext_adp/custom.py create mode 100644 src/adp/azext_adp/tests/__init__.py create mode 100644 src/adp/azext_adp/tests/latest/__init__.py create mode 100644 src/adp/azext_adp/tests/latest/test_adp.py create mode 100644 src/adp/setup.cfg create mode 100644 src/adp/setup.py diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 48b243a321f..9690a0b087e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -246,4 +246,4 @@ /src/fleet/ @pdaru -/src/traffic-collector/ @rmodh @japani @kukulkarni1 \ No newline at end of file +/src/traffic-collector/ @rmodh @japani @kukulkarni1/src/azext_adp-dev/ @kareemshibli diff --git a/src/adp/HISTORY.rst b/src/adp/HISTORY.rst new file mode 100644 index 00000000000..8c34bccfff8 --- /dev/null +++ b/src/adp/HISTORY.rst @@ -0,0 +1,8 @@ +.. :changelog: + +Release History +=============== + +0.1.0 +++++++ +* Initial release. \ No newline at end of file diff --git a/src/adp/README.md b/src/adp/README.md new file mode 100644 index 00000000000..acaef79b02e --- /dev/null +++ b/src/adp/README.md @@ -0,0 +1,5 @@ +# Azure CLI Adp Extension # +This is an extension to Azure CLI to manage Adp resources. + +## How to use ## +Please add commands usage here. \ No newline at end of file diff --git a/src/adp/azext_adp/__init__.py b/src/adp/azext_adp/__init__.py new file mode 100644 index 00000000000..2aaeddbe9f3 --- /dev/null +++ b/src/adp/azext_adp/__init__.py @@ -0,0 +1,42 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +from azure.cli.core import AzCommandsLoader +from azext_adp._help import helps # pylint: disable=unused-import + + +class AdpCommandsLoader(AzCommandsLoader): + + def __init__(self, cli_ctx=None): + from azure.cli.core.commands import CliCommandType + custom_command_type = CliCommandType( + operations_tmpl='azext_adp.custom#{}') + super().__init__(cli_ctx=cli_ctx, + custom_command_type=custom_command_type) + + def load_command_table(self, args): + from azext_adp.commands import load_command_table + from azure.cli.core.aaz import load_aaz_command_table + try: + from . import aaz + except ImportError: + aaz = None + if aaz: + load_aaz_command_table( + loader=self, + aaz_pkg_name=aaz.__name__, + args=args + ) + load_command_table(self, args) + return self.command_table + + def load_arguments(self, command): + from azext_adp._params import load_arguments + load_arguments(self, command) + + +COMMAND_LOADER_CLS = AdpCommandsLoader diff --git a/src/adp/azext_adp/_help.py b/src/adp/azext_adp/_help.py new file mode 100644 index 00000000000..126d5d00714 --- /dev/null +++ b/src/adp/azext_adp/_help.py @@ -0,0 +1,11 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: disable=line-too-long +# pylint: disable=too-many-lines + +from knack.help_files import helps # pylint: disable=unused-import diff --git a/src/adp/azext_adp/_params.py b/src/adp/azext_adp/_params.py new file mode 100644 index 00000000000..cfcec717c9c --- /dev/null +++ b/src/adp/azext_adp/_params.py @@ -0,0 +1,13 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: disable=too-many-lines +# pylint: disable=too-many-statements + + +def load_arguments(self, _): # pylint: disable=unused-argument + pass diff --git a/src/adp/azext_adp/aaz/__init__.py b/src/adp/azext_adp/aaz/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/adp/azext_adp/aaz/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- diff --git a/src/adp/azext_adp/aaz/latest/__init__.py b/src/adp/azext_adp/aaz/latest/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- diff --git a/src/adp/azext_adp/aaz/latest/adp/__cmd_group.py b/src/adp/azext_adp/aaz/latest/adp/__cmd_group.py new file mode 100644 index 00000000000..a32db3d24fd --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "adp", +) +class __CMDGroup(AAZCommandGroup): + """adp + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/adp/azext_adp/aaz/latest/adp/__init__.py b/src/adp/azext_adp/aaz/latest/adp/__init__.py new file mode 100644 index 00000000000..be757259c47 --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/__init__.py @@ -0,0 +1,12 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._check_name_availability import * diff --git a/src/adp/azext_adp/aaz/latest/adp/_check_name_availability.py b/src/adp/azext_adp/aaz/latest/adp/_check_name_availability.py new file mode 100644 index 00000000000..fe15a6768a2 --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/_check_name_availability.py @@ -0,0 +1,170 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp check-name-availability", +) +class CheckNameAvailability(AAZCommand): + """Checks the resource name is available. + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.autonomousdevelopmentplatform/checknameavailability", "2022-09-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + # define Arg Group "Parameters" + + _args_schema = cls._args_schema + _args_schema.name = AAZStrArg( + options=["--name"], + arg_group="Parameters", + help="The name to be checked.", + required=True, + ) + _args_schema.type = AAZStrArg( + options=["--type"], + arg_group="Parameters", + help="The resource type to be checked.", + required=True, + enum={"Microsoft.AutonomousDevelopmentPlatform/accounts": "Microsoft.AutonomousDevelopmentPlatform/accounts", "Microsoft.AutonomousDevelopmentPlatform/workspaces": "Microsoft.AutonomousDevelopmentPlatform/workspaces"}, + ) + return cls._args_schema + + def _execute_operations(self): + self.CheckNameAvailabilityPost(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class CheckNameAvailabilityPost(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.AutonomousDevelopmentPlatform/checkNameAvailability", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.message = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name_available = AAZBoolType( + serialized_name="nameAvailable", + flags={"read_only": True}, + ) + _schema_on_200.reason = AAZStrType( + flags={"read_only": True}, + ) + + return cls._schema_on_200 + + +__all__ = ["CheckNameAvailability"] diff --git a/src/adp/azext_adp/aaz/latest/adp/account/__cmd_group.py b/src/adp/azext_adp/aaz/latest/adp/account/__cmd_group.py new file mode 100644 index 00000000000..b67c19c9578 --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "adp account", +) +class __CMDGroup(AAZCommandGroup): + """manage account + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/adp/azext_adp/aaz/latest/adp/account/__init__.py b/src/adp/azext_adp/aaz/latest/adp/account/__init__.py new file mode 100644 index 00000000000..db73033039b --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/__init__.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._show import * +from ._update import * +from ._wait import * diff --git a/src/adp/azext_adp/aaz/latest/adp/account/_create.py b/src/adp/azext_adp/aaz/latest/adp/account/_create.py new file mode 100644 index 00000000000..79ed32a3838 --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/_create.py @@ -0,0 +1,265 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp account create", +) +class Create(AAZCommand): + """Create an ADP account + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/accounts/{}", "2022-09-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.account_name = AAZStrArg( + options=["-n", "--name", "--account-name"], + help="The name of the ADP account", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Parameters" + + _args_schema = cls._args_schema + _args_schema.location = AAZResourceLocationArg( + arg_group="Parameters", + help="The geo-location where the resource lives", + fmt=AAZResourceLocationArgFormat( + resource_group_arg="resource_group", + ), + ) + _args_schema.tags = AAZDictArg( + options=["--tags"], + arg_group="Parameters", + help="Resource tags.", + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg() + return cls._args_schema + + def _execute_operations(self): + yield self.AccountsCreateOrUpdate(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class AccountsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "accountName", self.ctx.args.account_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"client_flatten": True}} + ) + _builder.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("tags", AAZDictType, ".tags") + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200_201.tags = AAZDictType() + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200_201.tags + tags.Element = AAZStrType() + + return cls._schema_on_200_201 + + +__all__ = ["Create"] diff --git a/src/adp/azext_adp/aaz/latest/adp/account/_delete.py b/src/adp/azext_adp/aaz/latest/adp/account/_delete.py new file mode 100644 index 00000000000..caa6803e788 --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/_delete.py @@ -0,0 +1,150 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp account delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete an ADP account + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/accounts/{}", "2022-09-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, None) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.account_name = AAZStrArg( + options=["-n", "--name", "--account-name"], + help="The name of the ADP account", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + yield self.AccountsDelete(ctx=self.ctx)() + + class AccountsDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [204]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_204, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "accountName", self.ctx.args.account_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +__all__ = ["Delete"] diff --git a/src/adp/azext_adp/aaz/latest/adp/account/_list.py b/src/adp/azext_adp/aaz/latest/adp/account/_list.py new file mode 100644 index 00000000000..bec3ba7aaff --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/_list.py @@ -0,0 +1,369 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp account list", +) +class List(AAZCommand): + """List all ADP accounts available under the subscription + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.autonomousdevelopmentplatform/accounts", "2022-09-01-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/accounts", "2022-09-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.resource_group = AAZResourceGroupNameArg() + return cls._args_schema + + def _execute_operations(self): + condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) + condition_1 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True + if condition_0: + self.AccountsListByResourceGroup(ctx=self.ctx)() + if condition_1: + self.AccountsList(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class AccountsListByResourceGroup(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType( + flags={"read_only": True}, + ) + + value = cls._schema_on_200.value + value.Element = AAZObjectType( + flags={"read_only": True}, + ) + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.location = AAZStrType( + flags={"required": True, "read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True, "read_only": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.tags = AAZDictType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType( + flags={"read_only": True}, + ) + + return cls._schema_on_200 + + class AccountsList(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType( + flags={"read_only": True}, + ) + + value = cls._schema_on_200.value + value.Element = AAZObjectType( + flags={"read_only": True}, + ) + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.location = AAZStrType( + flags={"required": True, "read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True, "read_only": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.tags = AAZDictType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType( + flags={"read_only": True}, + ) + + return cls._schema_on_200 + + +__all__ = ["List"] diff --git a/src/adp/azext_adp/aaz/latest/adp/account/_show.py b/src/adp/azext_adp/aaz/latest/adp/account/_show.py new file mode 100644 index 00000000000..371bc7d8dd0 --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/_show.py @@ -0,0 +1,210 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp account show", +) +class Show(AAZCommand): + """Get the properties of an ADP account + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/accounts/{}", "2022-09-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.account_name = AAZStrArg( + options=["-n", "--name", "--account-name"], + help="The name of the ADP account", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.AccountsGet(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class AccountsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "accountName", self.ctx.args.account_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["Show"] diff --git a/src/adp/azext_adp/aaz/latest/adp/account/_update.py b/src/adp/azext_adp/aaz/latest/adp/account/_update.py new file mode 100644 index 00000000000..af910351dbc --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/_update.py @@ -0,0 +1,396 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp account update", +) +class Update(AAZCommand): + """Update an ADP account + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/accounts/{}", "2022-09-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.account_name = AAZStrArg( + options=["-n", "--name", "--account-name"], + help="The name of the ADP account", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Parameters" + + _args_schema = cls._args_schema + _args_schema.tags = AAZDictArg( + options=["--tags"], + arg_group="Parameters", + help="Resource tags.", + nullable=True, + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg( + nullable=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.AccountsGet(ctx=self.ctx)() + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + yield self.AccountsCreateOrUpdate(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class AccountsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "accountName", self.ctx.args.account_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _build_schema_account_read(cls._schema_on_200) + + return cls._schema_on_200 + + class AccountsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "accountName", self.ctx.args.account_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _build_schema_account_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("tags", AAZDictType, ".tags") + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +_schema_account_read = None + + +def _build_schema_account_read(_schema): + global _schema_account_read + if _schema_account_read is not None: + _schema.id = _schema_account_read.id + _schema.location = _schema_account_read.location + _schema.name = _schema_account_read.name + _schema.properties = _schema_account_read.properties + _schema.system_data = _schema_account_read.system_data + _schema.tags = _schema_account_read.tags + _schema.type = _schema_account_read.type + return + + _schema_account_read = AAZObjectType() + + account_read = _schema_account_read + account_read.id = AAZStrType( + flags={"read_only": True}, + ) + account_read.location = AAZStrType( + flags={"required": True}, + ) + account_read.name = AAZStrType( + flags={"read_only": True}, + ) + account_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + account_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + account_read.tags = AAZDictType() + account_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_account_read.properties + properties.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + system_data = _schema_account_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = _schema_account_read.tags + tags.Element = AAZStrType() + + _schema.id = _schema_account_read.id + _schema.location = _schema_account_read.location + _schema.name = _schema_account_read.name + _schema.properties = _schema_account_read.properties + _schema.system_data = _schema_account_read.system_data + _schema.tags = _schema_account_read.tags + _schema.type = _schema_account_read.type + + +__all__ = ["Update"] diff --git a/src/adp/azext_adp/aaz/latest/adp/account/_wait.py b/src/adp/azext_adp/aaz/latest/adp/account/_wait.py new file mode 100644 index 00000000000..5aaac54ad6e --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/_wait.py @@ -0,0 +1,209 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp account wait", +) +class Wait(AAZWaitCommand): + """Place the CLI in a waiting state until a condition is met. + """ + + _aaz_info = { + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/accounts/{}", "2022-09-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.account_name = AAZStrArg( + options=["-n", "--name", "--account-name"], + help="The name of the ADP account", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.AccountsGet(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False) + return result + + class AccountsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "accountName", self.ctx.args.account_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["Wait"] diff --git a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/__cmd_group.py b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/__cmd_group.py new file mode 100644 index 00000000000..2a01e0d4455 --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "adp account data-pool", +) +class __CMDGroup(AAZCommandGroup): + """manage data-pool + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/__init__.py b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/__init__.py new file mode 100644 index 00000000000..db73033039b --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/__init__.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._show import * +from ._update import * +from ._wait import * diff --git a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_create.py b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_create.py new file mode 100644 index 00000000000..3473343c78a --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_create.py @@ -0,0 +1,396 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp account data-pool create", +) +class Create(AAZCommand): + """Create a Data Pool + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/accounts/{}/datapools/{}", "2022-09-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.account_name = AAZStrArg( + options=["--account-name"], + help="The name of the ADP account", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.data_pool_name = AAZStrArg( + options=["-n", "--name", "--data-pool-name"], + help="The name of the Data Pool", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.locations = AAZListArg( + options=["--locations"], + arg_group="Properties", + help="Gets or sets the collection of locations where Data Pool resources should be created", + ) + _args_schema.tags = AAZDictArg( + options=["--tags"], + arg_group="Properties", + help="Resource tags", + ) + + locations = cls._args_schema.locations + locations.Element = AAZObjectArg() + + _element = cls._args_schema.locations.Element + _element.encryption = AAZObjectArg( + options=["encryption"], + help="Encryption properties of a Data Pool location", + ) + _element.name = AAZStrArg( + options=["name"], + help="The location name", + required=True, + ) + _element.storage_account_count = AAZIntArg( + options=["storage-account-count"], + help="The amount of storage accounts provisioned per Data Pool. Default: 5", + fmt=AAZIntArgFormat( + minimum=1, + ), + ) + _element.storage_sku = AAZObjectArg( + options=["storage-sku"], + help="The Storage SKU. Default: Standard_ZRS.", + nullable=True, + ) + + encryption = cls._args_schema.locations.Element.encryption + encryption.key_name = AAZStrArg( + options=["key-name"], + help="The name of Key Vault key", + required=True, + ) + encryption.key_vault_uri = AAZStrArg( + options=["key-vault-uri"], + help="The URI of a soft delete-enabled Key Vault that is in the same location as the Data Pool location", + required=True, + ) + encryption.key_version = AAZStrArg( + options=["key-version"], + help="The version of Key Vault key", + ) + encryption.user_assigned_identity = AAZStrArg( + options=["user-assigned-identity"], + help="The resource ID of a user-assigned Managed Identity used to access the encryption key in the Key Vault. Requires access to the key operations get, wrap, unwrap, and recover", + required=True, + ) + + storage_sku = cls._args_schema.locations.Element.storage_sku + storage_sku.name = AAZStrArg( + options=["name"], + help="The SKU name.", + required=True, + enum={"Premium_LRS": "Premium_LRS", "Premium_ZRS": "Premium_ZRS", "Standard_GRS": "Standard_GRS", "Standard_GZRS": "Standard_GZRS", "Standard_LRS": "Standard_LRS", "Standard_RAGRS": "Standard_RAGRS", "Standard_RAGZRS": "Standard_RAGZRS", "Standard_ZRS": "Standard_ZRS"}, + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg() + return cls._args_schema + + def _execute_operations(self): + yield self.DataPoolsCreateOrUpdate(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class DataPoolsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}/dataPools/{dataPoolName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "accountName", self.ctx.args.account_name, + required=True, + ), + **self.serialize_url_param( + "dataPoolName", self.ctx.args.data_pool_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"client_flatten": True}} + ) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("locations", AAZListType, ".locations", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("tags", AAZDictType, ".tags") + + locations = _builder.get(".properties.locations") + if locations is not None: + locations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.locations[]") + if _elements is not None: + _elements.set_prop("encryption", AAZObjectType, ".encryption") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("storageAccountCount", AAZIntType, ".storage_account_count") + _elements.set_prop("storageSku", AAZObjectType, ".storage_sku", typ_kwargs={"nullable": True}) + + encryption = _builder.get(".properties.locations[].encryption") + if encryption is not None: + encryption.set_prop("keyName", AAZStrType, ".key_name", typ_kwargs={"flags": {"required": True}}) + encryption.set_prop("keyVaultUri", AAZStrType, ".key_vault_uri", typ_kwargs={"flags": {"required": True}}) + encryption.set_prop("keyVersion", AAZStrType, ".key_version") + encryption.set_prop("userAssignedIdentity", AAZStrType, ".user_assigned_identity", typ_kwargs={"flags": {"required": True}}) + + storage_sku = _builder.get(".properties.locations[].storageSku") + if storage_sku is not None: + storage_sku.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + + tags = _builder.get(".properties.tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.data_pool_id = AAZStrType( + serialized_name="dataPoolId", + flags={"read_only": True}, + ) + properties.locations = AAZListType( + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.tags = AAZDictType() + + locations = cls._schema_on_200_201.properties.locations + locations.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.locations.Element + _element.encryption = AAZObjectType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.storage_account_count = AAZIntType( + serialized_name="storageAccountCount", + ) + _element.storage_sku = AAZObjectType( + serialized_name="storageSku", + nullable=True, + ) + + encryption = cls._schema_on_200_201.properties.locations.Element.encryption + encryption.key_name = AAZStrType( + serialized_name="keyName", + flags={"required": True}, + ) + encryption.key_vault_uri = AAZStrType( + serialized_name="keyVaultUri", + flags={"required": True}, + ) + encryption.key_version = AAZStrType( + serialized_name="keyVersion", + ) + encryption.user_assigned_identity = AAZStrType( + serialized_name="userAssignedIdentity", + flags={"required": True}, + ) + + storage_sku = cls._schema_on_200_201.properties.locations.Element.storage_sku + storage_sku.name = AAZStrType( + flags={"required": True}, + ) + + tags = cls._schema_on_200_201.properties.tags + tags.Element = AAZStrType() + + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + return cls._schema_on_200_201 + + +__all__ = ["Create"] diff --git a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_delete.py b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_delete.py new file mode 100644 index 00000000000..c1cfa03cd48 --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_delete.py @@ -0,0 +1,164 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp account data-pool delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a Data Pool + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/accounts/{}/datapools/{}", "2022-09-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, None) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.account_name = AAZStrArg( + options=["--account-name"], + help="The name of the ADP account", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.data_pool_name = AAZStrArg( + options=["-n", "--name", "--data-pool-name"], + help="The name of the Data Pool", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + yield self.DataPoolsDelete(ctx=self.ctx)() + + class DataPoolsDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [204]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_204, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}/dataPools/{dataPoolName}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "accountName", self.ctx.args.account_name, + required=True, + ), + **self.serialize_url_param( + "dataPoolName", self.ctx.args.data_pool_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +__all__ = ["Delete"] diff --git a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_list.py b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_list.py new file mode 100644 index 00000000000..8ea58dd1f0c --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_list.py @@ -0,0 +1,271 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp account data-pool list", +) +class List(AAZCommand): + """List the data pools under the ADP account + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/accounts/{}/datapools", "2022-09-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.account_name = AAZStrArg( + options=["--account-name"], + help="The name of the ADP account", + required=True, + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.DataPoolsList(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class DataPoolsList(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}/dataPools", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "accountName", self.ctx.args.account_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType( + flags={"read_only": True}, + ) + + value = cls._schema_on_200.value + value.Element = AAZObjectType( + flags={"read_only": True}, + ) + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True, "read_only": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.data_pool_id = AAZStrType( + serialized_name="dataPoolId", + flags={"read_only": True}, + ) + properties.locations = AAZListType( + flags={"required": True, "read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.tags = AAZDictType( + flags={"read_only": True}, + ) + + locations = cls._schema_on_200.value.Element.properties.locations + locations.Element = AAZObjectType( + flags={"read_only": True}, + ) + + _element = cls._schema_on_200.value.Element.properties.locations.Element + _element.encryption = AAZObjectType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"required": True, "read_only": True}, + ) + _element.storage_account_count = AAZIntType( + serialized_name="storageAccountCount", + flags={"read_only": True}, + ) + _element.storage_sku = AAZObjectType( + serialized_name="storageSku", + nullable=True, + flags={"read_only": True}, + ) + + encryption = cls._schema_on_200.value.Element.properties.locations.Element.encryption + encryption.key_name = AAZStrType( + serialized_name="keyName", + flags={"required": True, "read_only": True}, + ) + encryption.key_vault_uri = AAZStrType( + serialized_name="keyVaultUri", + flags={"required": True, "read_only": True}, + ) + encryption.key_version = AAZStrType( + serialized_name="keyVersion", + flags={"read_only": True}, + ) + encryption.user_assigned_identity = AAZStrType( + serialized_name="userAssignedIdentity", + flags={"required": True, "read_only": True}, + ) + + storage_sku = cls._schema_on_200.value.Element.properties.locations.Element.storage_sku + storage_sku.name = AAZStrType( + flags={"required": True, "read_only": True}, + ) + + tags = cls._schema_on_200.value.Element.properties.tags + tags.Element = AAZStrType( + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + return cls._schema_on_200 + + +__all__ = ["List"] diff --git a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_show.py b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_show.py new file mode 100644 index 00000000000..4da91364bb4 --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_show.py @@ -0,0 +1,262 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp account data-pool show", +) +class Show(AAZCommand): + """Get the properties of a Data Pool + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/accounts/{}/datapools/{}", "2022-09-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.account_name = AAZStrArg( + options=["--account-name"], + help="The name of the ADP account", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.data_pool_name = AAZStrArg( + options=["-n", "--name", "--data-pool-name"], + help="The name of the Data Pool", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.DataPoolsGet(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class DataPoolsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}/dataPools/{dataPoolName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "accountName", self.ctx.args.account_name, + required=True, + ), + **self.serialize_url_param( + "dataPoolName", self.ctx.args.data_pool_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.data_pool_id = AAZStrType( + serialized_name="dataPoolId", + flags={"read_only": True}, + ) + properties.locations = AAZListType( + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.tags = AAZDictType() + + locations = cls._schema_on_200.properties.locations + locations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.locations.Element + _element.encryption = AAZObjectType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.storage_account_count = AAZIntType( + serialized_name="storageAccountCount", + ) + _element.storage_sku = AAZObjectType( + serialized_name="storageSku", + nullable=True, + ) + + encryption = cls._schema_on_200.properties.locations.Element.encryption + encryption.key_name = AAZStrType( + serialized_name="keyName", + flags={"required": True}, + ) + encryption.key_vault_uri = AAZStrType( + serialized_name="keyVaultUri", + flags={"required": True}, + ) + encryption.key_version = AAZStrType( + serialized_name="keyVersion", + ) + encryption.user_assigned_identity = AAZStrType( + serialized_name="userAssignedIdentity", + flags={"required": True}, + ) + + storage_sku = cls._schema_on_200.properties.locations.Element.storage_sku + storage_sku.name = AAZStrType( + flags={"required": True}, + ) + + tags = cls._schema_on_200.properties.tags + tags.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + return cls._schema_on_200 + + +__all__ = ["Show"] diff --git a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_update.py b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_update.py new file mode 100644 index 00000000000..6208c782cd6 --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_update.py @@ -0,0 +1,535 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp account data-pool update", +) +class Update(AAZCommand): + """Update a Data Pool + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/accounts/{}/datapools/{}", "2022-09-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.account_name = AAZStrArg( + options=["--account-name"], + help="The name of the ADP account", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.data_pool_name = AAZStrArg( + options=["-n", "--name", "--data-pool-name"], + help="The name of the Data Pool", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.locations = AAZListArg( + options=["--locations"], + arg_group="Properties", + help="Gets or sets the collection of locations where Data Pool resources should be created", + ) + _args_schema.tags = AAZDictArg( + options=["--tags"], + arg_group="Properties", + help="Resource tags", + nullable=True, + ) + + locations = cls._args_schema.locations + locations.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.locations.Element + _element.encryption = AAZObjectArg( + options=["encryption"], + help="Encryption properties of a Data Pool location", + nullable=True, + ) + _element.name = AAZStrArg( + options=["name"], + help="The location name", + ) + _element.storage_account_count = AAZIntArg( + options=["storage-account-count"], + help="The amount of storage accounts provisioned per Data Pool. Default: 5", + nullable=True, + fmt=AAZIntArgFormat( + minimum=1, + ), + ) + _element.storage_sku = AAZObjectArg( + options=["storage-sku"], + help="The Storage SKU. Default: Standard_ZRS.", + nullable=True, + ) + + encryption = cls._args_schema.locations.Element.encryption + encryption.key_name = AAZStrArg( + options=["key-name"], + help="The name of Key Vault key", + ) + encryption.key_vault_uri = AAZStrArg( + options=["key-vault-uri"], + help="The URI of a soft delete-enabled Key Vault that is in the same location as the Data Pool location", + ) + encryption.key_version = AAZStrArg( + options=["key-version"], + help="The version of Key Vault key", + nullable=True, + ) + encryption.user_assigned_identity = AAZStrArg( + options=["user-assigned-identity"], + help="The resource ID of a user-assigned Managed Identity used to access the encryption key in the Key Vault. Requires access to the key operations get, wrap, unwrap, and recover", + ) + + storage_sku = cls._args_schema.locations.Element.storage_sku + storage_sku.name = AAZStrArg( + options=["name"], + help="The SKU name.", + enum={"Premium_LRS": "Premium_LRS", "Premium_ZRS": "Premium_ZRS", "Standard_GRS": "Standard_GRS", "Standard_GZRS": "Standard_GZRS", "Standard_LRS": "Standard_LRS", "Standard_RAGRS": "Standard_RAGRS", "Standard_RAGZRS": "Standard_RAGZRS", "Standard_ZRS": "Standard_ZRS"}, + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg( + nullable=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.DataPoolsGet(ctx=self.ctx)() + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + yield self.DataPoolsCreateOrUpdate(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class DataPoolsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}/dataPools/{dataPoolName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "accountName", self.ctx.args.account_name, + required=True, + ), + **self.serialize_url_param( + "dataPoolName", self.ctx.args.data_pool_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _build_schema_data_pool_read(cls._schema_on_200) + + return cls._schema_on_200 + + class DataPoolsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}/dataPools/{dataPoolName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "accountName", self.ctx.args.account_name, + required=True, + ), + **self.serialize_url_param( + "dataPoolName", self.ctx.args.data_pool_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _build_schema_data_pool_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("locations", AAZListType, ".locations", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("tags", AAZDictType, ".tags") + + locations = _builder.get(".properties.locations") + if locations is not None: + locations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.locations[]") + if _elements is not None: + _elements.set_prop("encryption", AAZObjectType, ".encryption") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("storageAccountCount", AAZIntType, ".storage_account_count") + _elements.set_prop("storageSku", AAZObjectType, ".storage_sku", typ_kwargs={"nullable": True}) + + encryption = _builder.get(".properties.locations[].encryption") + if encryption is not None: + encryption.set_prop("keyName", AAZStrType, ".key_name", typ_kwargs={"flags": {"required": True}}) + encryption.set_prop("keyVaultUri", AAZStrType, ".key_vault_uri", typ_kwargs={"flags": {"required": True}}) + encryption.set_prop("keyVersion", AAZStrType, ".key_version") + encryption.set_prop("userAssignedIdentity", AAZStrType, ".user_assigned_identity", typ_kwargs={"flags": {"required": True}}) + + storage_sku = _builder.get(".properties.locations[].storageSku") + if storage_sku is not None: + storage_sku.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + + tags = _builder.get(".properties.tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +_schema_data_pool_read = None + + +def _build_schema_data_pool_read(_schema): + global _schema_data_pool_read + if _schema_data_pool_read is not None: + _schema.id = _schema_data_pool_read.id + _schema.name = _schema_data_pool_read.name + _schema.properties = _schema_data_pool_read.properties + _schema.system_data = _schema_data_pool_read.system_data + _schema.type = _schema_data_pool_read.type + return + + _schema_data_pool_read = AAZObjectType() + + data_pool_read = _schema_data_pool_read + data_pool_read.id = AAZStrType( + flags={"read_only": True}, + ) + data_pool_read.name = AAZStrType( + flags={"read_only": True}, + ) + data_pool_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + data_pool_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + data_pool_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_data_pool_read.properties + properties.data_pool_id = AAZStrType( + serialized_name="dataPoolId", + flags={"read_only": True}, + ) + properties.locations = AAZListType( + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.tags = AAZDictType() + + locations = _schema_data_pool_read.properties.locations + locations.Element = AAZObjectType() + + _element = _schema_data_pool_read.properties.locations.Element + _element.encryption = AAZObjectType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.storage_account_count = AAZIntType( + serialized_name="storageAccountCount", + ) + _element.storage_sku = AAZObjectType( + serialized_name="storageSku", + nullable=True, + ) + + encryption = _schema_data_pool_read.properties.locations.Element.encryption + encryption.key_name = AAZStrType( + serialized_name="keyName", + flags={"required": True}, + ) + encryption.key_vault_uri = AAZStrType( + serialized_name="keyVaultUri", + flags={"required": True}, + ) + encryption.key_version = AAZStrType( + serialized_name="keyVersion", + ) + encryption.user_assigned_identity = AAZStrType( + serialized_name="userAssignedIdentity", + flags={"required": True}, + ) + + storage_sku = _schema_data_pool_read.properties.locations.Element.storage_sku + storage_sku.name = AAZStrType( + flags={"required": True}, + ) + + tags = _schema_data_pool_read.properties.tags + tags.Element = AAZStrType() + + system_data = _schema_data_pool_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + _schema.id = _schema_data_pool_read.id + _schema.name = _schema_data_pool_read.name + _schema.properties = _schema_data_pool_read.properties + _schema.system_data = _schema_data_pool_read.system_data + _schema.type = _schema_data_pool_read.type + + +__all__ = ["Update"] diff --git a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_wait.py b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_wait.py new file mode 100644 index 00000000000..100306837d5 --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_wait.py @@ -0,0 +1,261 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp account data-pool wait", +) +class Wait(AAZWaitCommand): + """Place the CLI in a waiting state until a condition is met. + """ + + _aaz_info = { + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/accounts/{}/datapools/{}", "2022-09-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.account_name = AAZStrArg( + options=["--account-name"], + help="The name of the ADP account", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.data_pool_name = AAZStrArg( + options=["-n", "--name", "--data-pool-name"], + help="The name of the Data Pool", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + max_length=50, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.DataPoolsGet(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False) + return result + + class DataPoolsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}/dataPools/{dataPoolName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "accountName", self.ctx.args.account_name, + required=True, + ), + **self.serialize_url_param( + "dataPoolName", self.ctx.args.data_pool_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.data_pool_id = AAZStrType( + serialized_name="dataPoolId", + flags={"read_only": True}, + ) + properties.locations = AAZListType( + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.tags = AAZDictType() + + locations = cls._schema_on_200.properties.locations + locations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.locations.Element + _element.encryption = AAZObjectType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.storage_account_count = AAZIntType( + serialized_name="storageAccountCount", + ) + _element.storage_sku = AAZObjectType( + serialized_name="storageSku", + nullable=True, + ) + + encryption = cls._schema_on_200.properties.locations.Element.encryption + encryption.key_name = AAZStrType( + serialized_name="keyName", + flags={"required": True}, + ) + encryption.key_vault_uri = AAZStrType( + serialized_name="keyVaultUri", + flags={"required": True}, + ) + encryption.key_version = AAZStrType( + serialized_name="keyVersion", + ) + encryption.user_assigned_identity = AAZStrType( + serialized_name="userAssignedIdentity", + flags={"required": True}, + ) + + storage_sku = cls._schema_on_200.properties.locations.Element.storage_sku + storage_sku.name = AAZStrType( + flags={"required": True}, + ) + + tags = cls._schema_on_200.properties.tags + tags.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + return cls._schema_on_200 + + +__all__ = ["Wait"] diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/__cmd_group.py b/src/adp/azext_adp/aaz/latest/adp/workspace/__cmd_group.py new file mode 100644 index 00000000000..ffad8768d96 --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "adp workspace", +) +class __CMDGroup(AAZCommandGroup): + """manage workspace + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/__init__.py b/src/adp/azext_adp/aaz/latest/adp/workspace/__init__.py new file mode 100644 index 00000000000..db73033039b --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/__init__.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._show import * +from ._update import * +from ._wait import * diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py new file mode 100644 index 00000000000..c1a0c9d544f --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py @@ -0,0 +1,494 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp workspace create", +) +class Create(AAZCommand): + """Create a Workspace + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/workspaces/{}", "2022-09-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.workspace_name = AAZStrArg( + options=["-n", "--name", "--workspace-name"], + help="Workspace Name", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-z0-9][-a-z0-9]{0,45}$", + max_length=46, + ), + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.auto_generated_domain_name_label_scope = AAZStrArg( + options=["--auto-generated-domain-name-label-scope"], + arg_group="Properties", + help="The scope for the FQDN label generation. If not provided, defaults to TenantReuse.", + enum={"NoReuse": "NoReuse", "ResourceGroupReuse": "ResourceGroupReuse", "SubscriptionReuse": "SubscriptionReuse", "TenantReuse": "TenantReuse"}, + ) + _args_schema.data_location = AAZStrArg( + options=["--data-location"], + arg_group="Properties", + help="The Workspace's data location. If not provided, defaults to the resource's location.", + ) + _args_schema.encryption = AAZObjectArg( + options=["--encryption"], + arg_group="Properties", + help="The encryption configuration.", + ) + _args_schema.source_resource_id = AAZStrArg( + options=["--source-resource-id"], + arg_group="Properties", + help="The ARM Id of the source resource that originated the data for this Workspace", + ) + _args_schema.storage_account_count = AAZIntArg( + options=["--storage-account-count"], + arg_group="Properties", + help="The amount of storage accounts provisioned per Workspace. If not provided, defaults to 5.", + fmt=AAZIntArgFormat( + minimum=1, + ), + ) + _args_schema.storage_sku = AAZObjectArg( + options=["--storage-sku"], + arg_group="Properties", + help="The Storage SKU. If not provided, defaults to Standard_ZRS.", + ) + + encryption = cls._args_schema.encryption + encryption.user_assigned_identity_resource_id = AAZStrArg( + options=["user-assigned-identity-resource-id"], + help="User assigned identity to use for accessing key encryption key Url. Example: /subscriptions//resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId.", + ) + encryption.key_encryption_key_url = AAZStrArg( + options=["key-encryption-key-url"], + help="The key encryption key Url, versioned or not. Example: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.", + ) + + storage_sku = cls._args_schema.storage_sku + storage_sku.name = AAZStrArg( + options=["name"], + help="The SKU name.", + required=True, + enum={"Premium_LRS": "Premium_LRS", "Premium_ZRS": "Premium_ZRS", "Standard_GRS": "Standard_GRS", "Standard_GZRS": "Standard_GZRS", "Standard_LRS": "Standard_LRS", "Standard_RAGRS": "Standard_RAGRS", "Standard_RAGZRS": "Standard_RAGZRS", "Standard_ZRS": "Standard_ZRS"}, + ) + + # define Arg Group "Resource" + + _args_schema = cls._args_schema + _args_schema.identity = AAZObjectArg( + options=["--identity"], + arg_group="Resource", + help="The managed service identities assigned to this resource.", + ) + _args_schema.location = AAZResourceLocationArg( + arg_group="Resource", + help="The geo-location where the resource lives", + required=True, + fmt=AAZResourceLocationArgFormat( + resource_group_arg="resource_group", + ), + ) + _args_schema.tags = AAZDictArg( + options=["--tags"], + arg_group="Resource", + help="Resource tags.", + ) + + identity = cls._args_schema.identity + identity.identity = AAZObjectArg( + options=["identity"], + help="The managed service identities assigned to this resource.", + ) + + identity = cls._args_schema.identity.identity + identity.type = AAZStrArg( + options=["type"], + help="The type of managed identity assigned to this resource.", + required=True, + enum={"None": "None", "SystemAssigned": "SystemAssigned", "SystemAssigned, UserAssigned": "SystemAssigned, UserAssigned", "UserAssigned": "UserAssigned"}, + ) + identity.user_assigned_identities = AAZDictArg( + options=["user-assigned-identities"], + help="The identities assigned to this resource by the user.", + ) + + user_assigned_identities = cls._args_schema.identity.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectArg( + blank={}, + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg() + return cls._args_schema + + def _execute_operations(self): + yield self.WorkspacesCreateOrUpdate(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class WorkspacesCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/{workspaceName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + **self.serialize_url_param( + "workspaceName", self.ctx.args.workspace_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("identity", AAZObjectType, ".identity") + _builder.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + _builder.set_prop("tags", AAZDictType, ".tags") + + identity = _builder.get(".identity") + if identity is not None: + identity.set_prop("identity", AAZObjectType, ".identity") + + identity = _builder.get(".identity.identity") + if identity is not None: + identity.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + identity.set_prop("userAssignedIdentities", AAZDictType, ".user_assigned_identities") + + user_assigned_identities = _builder.get(".identity.identity.userAssignedIdentities") + if user_assigned_identities is not None: + user_assigned_identities.set_elements(AAZObjectType, ".") + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("autoGeneratedDomainNameLabelScope", AAZStrType, ".auto_generated_domain_name_label_scope") + properties.set_prop("dataLocation", AAZStrType, ".data_location") + properties.set_prop("encryption", AAZObjectType, ".encryption") + properties.set_prop("sourceResourceId", AAZStrType, ".source_resource_id") + properties.set_prop("storageAccountCount", AAZIntType, ".storage_account_count") + properties.set_prop("storageSku", AAZObjectType, ".storage_sku") + + encryption = _builder.get(".properties.encryption") + if encryption is not None: + encryption.set_prop("customerManagedKeyEncryption", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + + customer_managed_key_encryption = _builder.get(".properties.encryption.customerManagedKeyEncryption") + if customer_managed_key_encryption is not None: + customer_managed_key_encryption.set_prop("keyEncryptionKeyIdentity", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) + customer_managed_key_encryption.set_prop("keyEncryptionKeyUrl", AAZStrType, ".key_encryption_key_url", typ_kwargs={"flags": {"required": True}}) + + key_encryption_key_identity = _builder.get(".properties.encryption.customerManagedKeyEncryption.keyEncryptionKeyIdentity") + if key_encryption_key_identity is not None: + key_encryption_key_identity.set_prop("userAssignedIdentityResourceId", AAZStrType, ".user_assigned_identity_resource_id", typ_kwargs={"flags": {"required": True}}) + + storage_sku = _builder.get(".properties.storageSku") + if storage_sku is not None: + storage_sku.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.identity = AAZObjectType() + _schema_on_200_201.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200_201.tags = AAZDictType() + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200_201.identity + identity.identity = AAZObjectType() + + identity = cls._schema_on_200_201.identity.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType( + flags={"required": True}, + ) + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200_201.identity.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200_201.identity.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.auto_generated_domain_name_label_scope = AAZStrType( + serialized_name="autoGeneratedDomainNameLabelScope", + ) + properties.data_catalog = AAZObjectType( + serialized_name="dataCatalog", + ) + properties.data_location = AAZStrType( + serialized_name="dataLocation", + ) + properties.encryption = AAZObjectType() + properties.endpoint = AAZStrType( + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.source_resource_id = AAZStrType( + serialized_name="sourceResourceId", + ) + properties.storage_account_count = AAZIntType( + serialized_name="storageAccountCount", + ) + properties.storage_sku = AAZObjectType( + serialized_name="storageSku", + ) + + data_catalog = cls._schema_on_200_201.properties.data_catalog + data_catalog.data_explorer = AAZObjectType( + serialized_name="dataExplorer", + ) + data_catalog.external_workspace_ids = AAZListType( + serialized_name="externalWorkspaceIds", + ) + data_catalog.state = AAZStrType( + flags={"required": True}, + ) + + data_explorer = cls._schema_on_200_201.properties.data_catalog.data_explorer + data_explorer.azure_sku = AAZObjectType( + serialized_name="azureSku", + flags={"required": True, "client_flatten": True}, + ) + + azure_sku = cls._schema_on_200_201.properties.data_catalog.data_explorer.azure_sku + azure_sku.capacity = AAZIntType() + azure_sku.name = AAZStrType() + azure_sku.tier = AAZStrType() + + external_workspace_ids = cls._schema_on_200_201.properties.data_catalog.external_workspace_ids + external_workspace_ids.Element = AAZStrType() + + encryption = cls._schema_on_200_201.properties.encryption + encryption.customer_managed_key_encryption = AAZObjectType( + serialized_name="customerManagedKeyEncryption", + flags={"client_flatten": True}, + ) + + customer_managed_key_encryption = cls._schema_on_200_201.properties.encryption.customer_managed_key_encryption + customer_managed_key_encryption.key_encryption_key_identity = AAZObjectType( + serialized_name="keyEncryptionKeyIdentity", + flags={"required": True, "client_flatten": True}, + ) + customer_managed_key_encryption.key_encryption_key_url = AAZStrType( + serialized_name="keyEncryptionKeyUrl", + flags={"required": True}, + ) + + key_encryption_key_identity = cls._schema_on_200_201.properties.encryption.customer_managed_key_encryption.key_encryption_key_identity + key_encryption_key_identity.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + flags={"required": True}, + ) + + storage_sku = cls._schema_on_200_201.properties.storage_sku + storage_sku.name = AAZStrType( + flags={"required": True}, + ) + + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200_201.tags + tags.Element = AAZStrType() + + return cls._schema_on_200_201 + + +__all__ = ["Create"] diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_delete.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_delete.py new file mode 100644 index 00000000000..1696fc1fdbe --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_delete.py @@ -0,0 +1,150 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp workspace delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a Workspace + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/workspaces/{}", "2022-09-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, None) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.workspace_name = AAZStrArg( + options=["-n", "--name", "--workspace-name"], + help="Workspace Name", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-z0-9][-a-z0-9]{0,45}$", + max_length=46, + ), + ) + return cls._args_schema + + def _execute_operations(self): + yield self.WorkspacesDelete(ctx=self.ctx)() + + class WorkspacesDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [204]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_204, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/{workspaceName}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + **self.serialize_url_param( + "workspaceName", self.ctx.args.workspace_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +__all__ = ["Delete"] diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_list.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_list.py new file mode 100644 index 00000000000..a065673ffc0 --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_list.py @@ -0,0 +1,563 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp workspace list", +) +class List(AAZCommand): + """List Workspace resources by subscription ID + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.autonomousdevelopmentplatform/workspaces", "2022-09-01-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/workspaces", "2022-09-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.resource_group = AAZResourceGroupNameArg() + return cls._args_schema + + def _execute_operations(self): + condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) + condition_1 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True + if condition_0: + self.WorkspacesListByResourceGroup(ctx=self.ctx)() + if condition_1: + self.WorkspacesListBySubscription(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class WorkspacesListByResourceGroup(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType( + flags={"required": True}, + ) + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.identity = AAZObjectType() + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.tags = AAZDictType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.value.Element.identity + identity.identity = AAZObjectType() + + identity = cls._schema_on_200.value.Element.identity.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType( + flags={"required": True}, + ) + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.value.Element.identity.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.identity.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.auto_generated_domain_name_label_scope = AAZStrType( + serialized_name="autoGeneratedDomainNameLabelScope", + ) + properties.data_catalog = AAZObjectType( + serialized_name="dataCatalog", + ) + properties.data_location = AAZStrType( + serialized_name="dataLocation", + ) + properties.encryption = AAZObjectType() + properties.endpoint = AAZStrType( + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.source_resource_id = AAZStrType( + serialized_name="sourceResourceId", + ) + properties.storage_account_count = AAZIntType( + serialized_name="storageAccountCount", + ) + properties.storage_sku = AAZObjectType( + serialized_name="storageSku", + ) + + data_catalog = cls._schema_on_200.value.Element.properties.data_catalog + data_catalog.data_explorer = AAZObjectType( + serialized_name="dataExplorer", + ) + data_catalog.external_workspace_ids = AAZListType( + serialized_name="externalWorkspaceIds", + ) + data_catalog.state = AAZStrType( + flags={"required": True}, + ) + + data_explorer = cls._schema_on_200.value.Element.properties.data_catalog.data_explorer + data_explorer.azure_sku = AAZObjectType( + serialized_name="azureSku", + flags={"required": True, "client_flatten": True}, + ) + + azure_sku = cls._schema_on_200.value.Element.properties.data_catalog.data_explorer.azure_sku + azure_sku.capacity = AAZIntType() + azure_sku.name = AAZStrType() + azure_sku.tier = AAZStrType() + + external_workspace_ids = cls._schema_on_200.value.Element.properties.data_catalog.external_workspace_ids + external_workspace_ids.Element = AAZStrType() + + encryption = cls._schema_on_200.value.Element.properties.encryption + encryption.customer_managed_key_encryption = AAZObjectType( + serialized_name="customerManagedKeyEncryption", + flags={"client_flatten": True}, + ) + + customer_managed_key_encryption = cls._schema_on_200.value.Element.properties.encryption.customer_managed_key_encryption + customer_managed_key_encryption.key_encryption_key_identity = AAZObjectType( + serialized_name="keyEncryptionKeyIdentity", + flags={"required": True, "client_flatten": True}, + ) + customer_managed_key_encryption.key_encryption_key_url = AAZStrType( + serialized_name="keyEncryptionKeyUrl", + flags={"required": True}, + ) + + key_encryption_key_identity = cls._schema_on_200.value.Element.properties.encryption.customer_managed_key_encryption.key_encryption_key_identity + key_encryption_key_identity.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + flags={"required": True}, + ) + + storage_sku = cls._schema_on_200.value.Element.properties.storage_sku + storage_sku.name = AAZStrType( + flags={"required": True}, + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + class WorkspacesListBySubscription(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType( + flags={"required": True}, + ) + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.identity = AAZObjectType() + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.tags = AAZDictType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.value.Element.identity + identity.identity = AAZObjectType() + + identity = cls._schema_on_200.value.Element.identity.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType( + flags={"required": True}, + ) + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.value.Element.identity.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.identity.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.auto_generated_domain_name_label_scope = AAZStrType( + serialized_name="autoGeneratedDomainNameLabelScope", + ) + properties.data_catalog = AAZObjectType( + serialized_name="dataCatalog", + ) + properties.data_location = AAZStrType( + serialized_name="dataLocation", + ) + properties.encryption = AAZObjectType() + properties.endpoint = AAZStrType( + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.source_resource_id = AAZStrType( + serialized_name="sourceResourceId", + ) + properties.storage_account_count = AAZIntType( + serialized_name="storageAccountCount", + ) + properties.storage_sku = AAZObjectType( + serialized_name="storageSku", + ) + + data_catalog = cls._schema_on_200.value.Element.properties.data_catalog + data_catalog.data_explorer = AAZObjectType( + serialized_name="dataExplorer", + ) + data_catalog.external_workspace_ids = AAZListType( + serialized_name="externalWorkspaceIds", + ) + data_catalog.state = AAZStrType( + flags={"required": True}, + ) + + data_explorer = cls._schema_on_200.value.Element.properties.data_catalog.data_explorer + data_explorer.azure_sku = AAZObjectType( + serialized_name="azureSku", + flags={"required": True, "client_flatten": True}, + ) + + azure_sku = cls._schema_on_200.value.Element.properties.data_catalog.data_explorer.azure_sku + azure_sku.capacity = AAZIntType() + azure_sku.name = AAZStrType() + azure_sku.tier = AAZStrType() + + external_workspace_ids = cls._schema_on_200.value.Element.properties.data_catalog.external_workspace_ids + external_workspace_ids.Element = AAZStrType() + + encryption = cls._schema_on_200.value.Element.properties.encryption + encryption.customer_managed_key_encryption = AAZObjectType( + serialized_name="customerManagedKeyEncryption", + flags={"client_flatten": True}, + ) + + customer_managed_key_encryption = cls._schema_on_200.value.Element.properties.encryption.customer_managed_key_encryption + customer_managed_key_encryption.key_encryption_key_identity = AAZObjectType( + serialized_name="keyEncryptionKeyIdentity", + flags={"required": True, "client_flatten": True}, + ) + customer_managed_key_encryption.key_encryption_key_url = AAZStrType( + serialized_name="keyEncryptionKeyUrl", + flags={"required": True}, + ) + + key_encryption_key_identity = cls._schema_on_200.value.Element.properties.encryption.customer_managed_key_encryption.key_encryption_key_identity + key_encryption_key_identity.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + flags={"required": True}, + ) + + storage_sku = cls._schema_on_200.value.Element.properties.storage_sku + storage_sku.name = AAZStrType( + flags={"required": True}, + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["List"] diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_show.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_show.py new file mode 100644 index 00000000000..e9237b70f6d --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_show.py @@ -0,0 +1,313 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp workspace show", +) +class Show(AAZCommand): + """Get a Workspace + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/workspaces/{}", "2022-09-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.workspace_name = AAZStrArg( + options=["-n", "--name", "--workspace-name"], + help="Workspace Name", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-z0-9][-a-z0-9]{0,45}$", + max_length=46, + ), + ) + return cls._args_schema + + def _execute_operations(self): + self.WorkspacesGet(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class WorkspacesGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/{workspaceName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + **self.serialize_url_param( + "workspaceName", self.ctx.args.workspace_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.identity = AAZObjectType() + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.identity + identity.identity = AAZObjectType() + + identity = cls._schema_on_200.identity.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType( + flags={"required": True}, + ) + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.identity.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.identity.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.auto_generated_domain_name_label_scope = AAZStrType( + serialized_name="autoGeneratedDomainNameLabelScope", + ) + properties.data_catalog = AAZObjectType( + serialized_name="dataCatalog", + ) + properties.data_location = AAZStrType( + serialized_name="dataLocation", + ) + properties.encryption = AAZObjectType() + properties.endpoint = AAZStrType( + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.source_resource_id = AAZStrType( + serialized_name="sourceResourceId", + ) + properties.storage_account_count = AAZIntType( + serialized_name="storageAccountCount", + ) + properties.storage_sku = AAZObjectType( + serialized_name="storageSku", + ) + + data_catalog = cls._schema_on_200.properties.data_catalog + data_catalog.data_explorer = AAZObjectType( + serialized_name="dataExplorer", + ) + data_catalog.external_workspace_ids = AAZListType( + serialized_name="externalWorkspaceIds", + ) + data_catalog.state = AAZStrType( + flags={"required": True}, + ) + + data_explorer = cls._schema_on_200.properties.data_catalog.data_explorer + data_explorer.azure_sku = AAZObjectType( + serialized_name="azureSku", + flags={"required": True, "client_flatten": True}, + ) + + azure_sku = cls._schema_on_200.properties.data_catalog.data_explorer.azure_sku + azure_sku.capacity = AAZIntType() + azure_sku.name = AAZStrType() + azure_sku.tier = AAZStrType() + + external_workspace_ids = cls._schema_on_200.properties.data_catalog.external_workspace_ids + external_workspace_ids.Element = AAZStrType() + + encryption = cls._schema_on_200.properties.encryption + encryption.customer_managed_key_encryption = AAZObjectType( + serialized_name="customerManagedKeyEncryption", + flags={"client_flatten": True}, + ) + + customer_managed_key_encryption = cls._schema_on_200.properties.encryption.customer_managed_key_encryption + customer_managed_key_encryption.key_encryption_key_identity = AAZObjectType( + serialized_name="keyEncryptionKeyIdentity", + flags={"required": True, "client_flatten": True}, + ) + customer_managed_key_encryption.key_encryption_key_url = AAZStrType( + serialized_name="keyEncryptionKeyUrl", + flags={"required": True}, + ) + + key_encryption_key_identity = cls._schema_on_200.properties.encryption.customer_managed_key_encryption.key_encryption_key_identity + key_encryption_key_identity.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + flags={"required": True}, + ) + + storage_sku = cls._schema_on_200.properties.storage_sku + storage_sku.name = AAZStrType( + flags={"required": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["Show"] diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_update.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_update.py new file mode 100644 index 00000000000..7aadd2044bf --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_update.py @@ -0,0 +1,536 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp workspace update", +) +class Update(AAZCommand): + """Update a Workspace + """ + + _aaz_info = { + "version": "2022-09-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/workspaces/{}", "2022-09-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.workspace_name = AAZStrArg( + options=["-n", "--name", "--workspace-name"], + help="Workspace Name", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-z0-9][-a-z0-9]{0,45}$", + max_length=46, + ), + ) + + # define Arg Group "Resource" + + _args_schema = cls._args_schema + _args_schema.identity = AAZObjectArg( + options=["--identity"], + arg_group="Resource", + help="The managed service identities assigned to this resource.", + nullable=True, + ) + _args_schema.tags = AAZDictArg( + options=["--tags"], + arg_group="Resource", + help="Resource tags.", + nullable=True, + ) + + identity = cls._args_schema.identity + identity.identity = AAZObjectArg( + options=["identity"], + help="The managed service identities assigned to this resource.", + nullable=True, + ) + + identity = cls._args_schema.identity.identity + identity.type = AAZStrArg( + options=["type"], + help="The type of managed identity assigned to this resource.", + enum={"None": "None", "SystemAssigned": "SystemAssigned", "SystemAssigned, UserAssigned": "SystemAssigned, UserAssigned", "UserAssigned": "UserAssigned"}, + ) + identity.user_assigned_identities = AAZObjectArg( + options=["user-assigned-identities"], + help="The identities assigned to this resource by the user.", + nullable=True, + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg( + nullable=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.WorkspacesGet(ctx=self.ctx)() + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + yield self.WorkspacesCreateOrUpdate(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class WorkspacesGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/{workspaceName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + **self.serialize_url_param( + "workspaceName", self.ctx.args.workspace_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _build_schema_workspace_read(cls._schema_on_200) + + return cls._schema_on_200 + + class WorkspacesCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/{workspaceName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + **self.serialize_url_param( + "workspaceName", self.ctx.args.workspace_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _build_schema_workspace_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("identity", AAZObjectType, ".identity") + _builder.set_prop("tags", AAZDictType, ".tags") + + identity = _builder.get(".identity") + if identity is not None: + identity.set_prop("identity", AAZObjectType, ".identity") + + identity = _builder.get(".identity.identity") + if identity is not None: + identity.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + identity.set_prop("userAssignedIdentities", AAZObjectType, ".user_assigned_identities") + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +_schema_workspace_read = None + + +def _build_schema_workspace_read(_schema): + global _schema_workspace_read + if _schema_workspace_read is not None: + _schema.id = _schema_workspace_read.id + _schema.identity = _schema_workspace_read.identity + _schema.location = _schema_workspace_read.location + _schema.name = _schema_workspace_read.name + _schema.properties = _schema_workspace_read.properties + _schema.system_data = _schema_workspace_read.system_data + _schema.tags = _schema_workspace_read.tags + _schema.type = _schema_workspace_read.type + return + + _schema_workspace_read = AAZObjectType() + + workspace_read = _schema_workspace_read + workspace_read.id = AAZStrType( + flags={"read_only": True}, + ) + workspace_read.identity = AAZObjectType() + workspace_read.location = AAZStrType( + flags={"required": True}, + ) + workspace_read.name = AAZStrType( + flags={"read_only": True}, + ) + workspace_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + workspace_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + workspace_read.tags = AAZDictType() + workspace_read.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = _schema_workspace_read.identity + identity.identity = AAZObjectType() + + identity = _schema_workspace_read.identity.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType( + flags={"required": True}, + ) + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_workspace_read.identity.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = _schema_workspace_read.identity.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = _schema_workspace_read.properties + properties.auto_generated_domain_name_label_scope = AAZStrType( + serialized_name="autoGeneratedDomainNameLabelScope", + ) + properties.data_catalog = AAZObjectType( + serialized_name="dataCatalog", + ) + properties.data_location = AAZStrType( + serialized_name="dataLocation", + ) + properties.encryption = AAZObjectType() + properties.endpoint = AAZStrType( + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.source_resource_id = AAZStrType( + serialized_name="sourceResourceId", + ) + properties.storage_account_count = AAZIntType( + serialized_name="storageAccountCount", + ) + properties.storage_sku = AAZObjectType( + serialized_name="storageSku", + ) + + data_catalog = _schema_workspace_read.properties.data_catalog + data_catalog.data_explorer = AAZObjectType( + serialized_name="dataExplorer", + ) + data_catalog.external_workspace_ids = AAZListType( + serialized_name="externalWorkspaceIds", + ) + data_catalog.state = AAZStrType( + flags={"required": True}, + ) + + data_explorer = _schema_workspace_read.properties.data_catalog.data_explorer + data_explorer.azure_sku = AAZObjectType( + serialized_name="azureSku", + flags={"required": True, "client_flatten": True}, + ) + + azure_sku = _schema_workspace_read.properties.data_catalog.data_explorer.azure_sku + azure_sku.capacity = AAZIntType() + azure_sku.name = AAZStrType() + azure_sku.tier = AAZStrType() + + external_workspace_ids = _schema_workspace_read.properties.data_catalog.external_workspace_ids + external_workspace_ids.Element = AAZStrType() + + encryption = _schema_workspace_read.properties.encryption + encryption.customer_managed_key_encryption = AAZObjectType( + serialized_name="customerManagedKeyEncryption", + flags={"client_flatten": True}, + ) + + customer_managed_key_encryption = _schema_workspace_read.properties.encryption.customer_managed_key_encryption + customer_managed_key_encryption.key_encryption_key_identity = AAZObjectType( + serialized_name="keyEncryptionKeyIdentity", + flags={"required": True, "client_flatten": True}, + ) + customer_managed_key_encryption.key_encryption_key_url = AAZStrType( + serialized_name="keyEncryptionKeyUrl", + flags={"required": True}, + ) + + key_encryption_key_identity = _schema_workspace_read.properties.encryption.customer_managed_key_encryption.key_encryption_key_identity + key_encryption_key_identity.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + flags={"required": True}, + ) + + storage_sku = _schema_workspace_read.properties.storage_sku + storage_sku.name = AAZStrType( + flags={"required": True}, + ) + + system_data = _schema_workspace_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = _schema_workspace_read.tags + tags.Element = AAZStrType() + + _schema.id = _schema_workspace_read.id + _schema.identity = _schema_workspace_read.identity + _schema.location = _schema_workspace_read.location + _schema.name = _schema_workspace_read.name + _schema.properties = _schema_workspace_read.properties + _schema.system_data = _schema_workspace_read.system_data + _schema.tags = _schema_workspace_read.tags + _schema.type = _schema_workspace_read.type + + +__all__ = ["Update"] diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_wait.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_wait.py new file mode 100644 index 00000000000..1c44fff8d38 --- /dev/null +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_wait.py @@ -0,0 +1,312 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "adp workspace wait", +) +class Wait(AAZWaitCommand): + """Place the CLI in a waiting state until a condition is met. + """ + + _aaz_info = { + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.autonomousdevelopmentplatform/workspaces/{}", "2022-09-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.workspace_name = AAZStrArg( + options=["-n", "--name", "--workspace-name"], + help="Workspace Name", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[a-z0-9][-a-z0-9]{0,45}$", + max_length=46, + ), + ) + return cls._args_schema + + def _execute_operations(self): + self.WorkspacesGet(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False) + return result + + class WorkspacesGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/{workspaceName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + **self.serialize_url_param( + "workspaceName", self.ctx.args.workspace_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-09-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.identity = AAZObjectType() + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.identity + identity.identity = AAZObjectType() + + identity = cls._schema_on_200.identity.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType( + flags={"required": True}, + ) + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.identity.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.identity.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.auto_generated_domain_name_label_scope = AAZStrType( + serialized_name="autoGeneratedDomainNameLabelScope", + ) + properties.data_catalog = AAZObjectType( + serialized_name="dataCatalog", + ) + properties.data_location = AAZStrType( + serialized_name="dataLocation", + ) + properties.encryption = AAZObjectType() + properties.endpoint = AAZStrType( + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.source_resource_id = AAZStrType( + serialized_name="sourceResourceId", + ) + properties.storage_account_count = AAZIntType( + serialized_name="storageAccountCount", + ) + properties.storage_sku = AAZObjectType( + serialized_name="storageSku", + ) + + data_catalog = cls._schema_on_200.properties.data_catalog + data_catalog.data_explorer = AAZObjectType( + serialized_name="dataExplorer", + ) + data_catalog.external_workspace_ids = AAZListType( + serialized_name="externalWorkspaceIds", + ) + data_catalog.state = AAZStrType( + flags={"required": True}, + ) + + data_explorer = cls._schema_on_200.properties.data_catalog.data_explorer + data_explorer.azure_sku = AAZObjectType( + serialized_name="azureSku", + flags={"required": True, "client_flatten": True}, + ) + + azure_sku = cls._schema_on_200.properties.data_catalog.data_explorer.azure_sku + azure_sku.capacity = AAZIntType() + azure_sku.name = AAZStrType() + azure_sku.tier = AAZStrType() + + external_workspace_ids = cls._schema_on_200.properties.data_catalog.external_workspace_ids + external_workspace_ids.Element = AAZStrType() + + encryption = cls._schema_on_200.properties.encryption + encryption.customer_managed_key_encryption = AAZObjectType( + serialized_name="customerManagedKeyEncryption", + flags={"client_flatten": True}, + ) + + customer_managed_key_encryption = cls._schema_on_200.properties.encryption.customer_managed_key_encryption + customer_managed_key_encryption.key_encryption_key_identity = AAZObjectType( + serialized_name="keyEncryptionKeyIdentity", + flags={"required": True, "client_flatten": True}, + ) + customer_managed_key_encryption.key_encryption_key_url = AAZStrType( + serialized_name="keyEncryptionKeyUrl", + flags={"required": True}, + ) + + key_encryption_key_identity = cls._schema_on_200.properties.encryption.customer_managed_key_encryption.key_encryption_key_identity + key_encryption_key_identity.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + flags={"required": True}, + ) + + storage_sku = cls._schema_on_200.properties.storage_sku + storage_sku.name = AAZStrType( + flags={"required": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["Wait"] diff --git a/src/adp/azext_adp/azext_metadata.json b/src/adp/azext_adp/azext_metadata.json new file mode 100644 index 00000000000..7f5f60de6c3 --- /dev/null +++ b/src/adp/azext_adp/azext_metadata.json @@ -0,0 +1,4 @@ +{ + "azext.isExperimental": true, + "azext.minCliCoreVersion": "2.40.0" +} \ No newline at end of file diff --git a/src/adp/azext_adp/commands.py b/src/adp/azext_adp/commands.py new file mode 100644 index 00000000000..b0d842e4993 --- /dev/null +++ b/src/adp/azext_adp/commands.py @@ -0,0 +1,15 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: disable=too-many-lines +# pylint: disable=too-many-statements + +# from azure.cli.core.commands import CliCommandType + + +def load_command_table(self, _): # pylint: disable=unused-argument + pass diff --git a/src/adp/azext_adp/custom.py b/src/adp/azext_adp/custom.py new file mode 100644 index 00000000000..86df1e48ef5 --- /dev/null +++ b/src/adp/azext_adp/custom.py @@ -0,0 +1,14 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: disable=too-many-lines +# pylint: disable=too-many-statements + +from knack.log import get_logger + + +logger = get_logger(__name__) diff --git a/src/adp/azext_adp/tests/__init__.py b/src/adp/azext_adp/tests/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/adp/azext_adp/tests/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- diff --git a/src/adp/azext_adp/tests/latest/__init__.py b/src/adp/azext_adp/tests/latest/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/adp/azext_adp/tests/latest/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- diff --git a/src/adp/azext_adp/tests/latest/test_adp.py b/src/adp/azext_adp/tests/latest/test_adp.py new file mode 100644 index 00000000000..5379084854b --- /dev/null +++ b/src/adp/azext_adp/tests/latest/test_adp.py @@ -0,0 +1,13 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +from azure.cli.testsdk import * + + +class AdpScenario(ScenarioTest): + # TODO: add tests here + pass diff --git a/src/adp/setup.cfg b/src/adp/setup.cfg new file mode 100644 index 00000000000..2fdd96e5d39 --- /dev/null +++ b/src/adp/setup.cfg @@ -0,0 +1 @@ +#setup.cfg \ No newline at end of file diff --git a/src/adp/setup.py b/src/adp/setup.py new file mode 100644 index 00000000000..ea6d00bcde7 --- /dev/null +++ b/src/adp/setup.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +from codecs import open +from setuptools import setup, find_packages + + +# HISTORY.rst entry. +VERSION = '0.1.0' + +# The full list of classifiers is available at +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +CLASSIFIERS = [ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'License :: OSI Approved :: MIT License', +] + +DEPENDENCIES = [] + +with open('README.md', 'r', encoding='utf-8') as f: + README = f.read() +with open('HISTORY.rst', 'r', encoding='utf-8') as f: + HISTORY = f.read() + +setup( + name='adp', + version=VERSION, + description='Microsoft Azure Command-Line Tools Adp Extension.', + long_description=README + '\n\n' + HISTORY, + license='MIT', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli-extensions/tree/main/src/adp', + classifiers=CLASSIFIERS, + packages=find_packages(exclude=["tests"]), + package_data={'azext_adp': ['azext_metadata.json']}, + install_requires=DEPENDENCIES +) From 14a447be25762ada423f530254ffa9132f2a4c41 Mon Sep 17 00:00:00 2001 From: kareemshibli <63514061+kareemshibli@users.noreply.github.com> Date: Mon, 24 Oct 2022 12:37:19 +0300 Subject: [PATCH 02/14] fix codeowners file --- .github/CODEOWNERS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 9690a0b087e..ead4e4e4e8a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -246,4 +246,6 @@ /src/fleet/ @pdaru -/src/traffic-collector/ @rmodh @japani @kukulkarni1/src/azext_adp-dev/ @kareemshibli +/src/traffic-collector/ @rmodh @japani @kukulkarni1 + +/src/adp/ @kareemshibli From 91d0dfa033f8f7e4a4eadc484721b03b541924f3 Mon Sep 17 00:00:00 2001 From: kareemshibli <63514061+kareemshibli@users.noreply.github.com> Date: Mon, 24 Oct 2022 16:20:05 +0300 Subject: [PATCH 03/14] fix name length --- src/adp/azext_adp/aaz/latest/adp/workspace/_create.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py index c1a0c9d544f..f7ab1a0068d 100644 --- a/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py @@ -59,8 +59,8 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema - _args_schema.auto_generated_domain_name_label_scope = AAZStrArg( - options=["--auto-generated-domain-name-label-scope"], + _args_schema.domain_label_scope = AAZStrArg( + options=["--domain-label-scope"], arg_group="Properties", help="The scope for the FQDN label generation. If not provided, defaults to TenantReuse.", enum={"NoReuse": "NoReuse", "ResourceGroupReuse": "ResourceGroupReuse", "SubscriptionReuse": "SubscriptionReuse", "TenantReuse": "TenantReuse"}, @@ -277,7 +277,7 @@ def content(self): properties = _builder.get(".properties") if properties is not None: - properties.set_prop("autoGeneratedDomainNameLabelScope", AAZStrType, ".auto_generated_domain_name_label_scope") + properties.set_prop("autoGeneratedDomainNameLabelScope", AAZStrType, ".domain_name_label_scope") properties.set_prop("dataLocation", AAZStrType, ".data_location") properties.set_prop("encryption", AAZObjectType, ".encryption") properties.set_prop("sourceResourceId", AAZStrType, ".source_resource_id") From 925da29ddfdf59b8d940d0aff5a472ab2d5b5f3a Mon Sep 17 00:00:00 2001 From: kareemshibli <63514061+kareemshibli@users.noreply.github.com> Date: Mon, 24 Oct 2022 16:40:57 +0300 Subject: [PATCH 04/14] add entry in service name --- src/service_name.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/service_name.json b/src/service_name.json index 0e80eb1edfc..422086e7b6d 100644 --- a/src/service_name.json +++ b/src/service_name.json @@ -648,5 +648,10 @@ "Command": "az hybridaks", "AzureServiceName": "Hybrid Container Service", "URL": "https://learn.microsoft.com/en-us/azure-stack/aks-hci/aks-hybrid-preview-overview" + }, + { + "Command": "az adp", + "AzureServiceName": "Autonomous Development Platform", + "URL": "" } ] From bb49486668babf961b559870069532963c33fd5d Mon Sep 17 00:00:00 2001 From: kareemshibli <63514061+kareemshibli@users.noreply.github.com> Date: Mon, 24 Oct 2022 16:41:20 +0300 Subject: [PATCH 05/14] add entry in service name --- src/service_name.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/service_name.json b/src/service_name.json index 0e80eb1edfc..422086e7b6d 100644 --- a/src/service_name.json +++ b/src/service_name.json @@ -648,5 +648,10 @@ "Command": "az hybridaks", "AzureServiceName": "Hybrid Container Service", "URL": "https://learn.microsoft.com/en-us/azure-stack/aks-hci/aks-hybrid-preview-overview" + }, + { + "Command": "az adp", + "AzureServiceName": "Autonomous Development Platform", + "URL": "" } ] From 92f5270161e185629cd9345aa7c0f1a6f3fb5937 Mon Sep 17 00:00:00 2001 From: kareemshibli <63514061+kareemshibli@users.noreply.github.com> Date: Thu, 17 Nov 2022 00:05:04 +0200 Subject: [PATCH 06/14] fix --- .../azext_adp/aaz/latest/adp/__cmd_group.py | 2 +- .../latest/adp/_check_name_availability.py | 6 +++ .../aaz/latest/adp/account/__cmd_group.py | 2 +- .../adp/account/data_pool/__cmd_group.py | 2 +- .../aaz/latest/adp/workspace/__cmd_group.py | 2 +- .../aaz/latest/adp/workspace/_create.py | 41 ++++++++++++++- .../aaz/latest/adp/workspace/_delete.py | 3 ++ .../aaz/latest/adp/workspace/_list.py | 51 +++++++++++++++++++ .../aaz/latest/adp/workspace/_show.py | 27 ++++++++++ .../aaz/latest/adp/workspace/_update.py | 27 ++++++++++ .../aaz/latest/adp/workspace/_wait.py | 24 +++++++++ src/adp/azext_adp/tests/latest/test_adp.py | 14 ++++- 12 files changed, 193 insertions(+), 8 deletions(-) diff --git a/src/adp/azext_adp/aaz/latest/adp/__cmd_group.py b/src/adp/azext_adp/aaz/latest/adp/__cmd_group.py index a32db3d24fd..02853a0f092 100644 --- a/src/adp/azext_adp/aaz/latest/adp/__cmd_group.py +++ b/src/adp/azext_adp/aaz/latest/adp/__cmd_group.py @@ -15,7 +15,7 @@ "adp", ) class __CMDGroup(AAZCommandGroup): - """adp + """Manage Azure Autonomous Development Platform resources. """ pass diff --git a/src/adp/azext_adp/aaz/latest/adp/_check_name_availability.py b/src/adp/azext_adp/aaz/latest/adp/_check_name_availability.py index fe15a6768a2..b23c1c06bd7 100644 --- a/src/adp/azext_adp/aaz/latest/adp/_check_name_availability.py +++ b/src/adp/azext_adp/aaz/latest/adp/_check_name_availability.py @@ -16,6 +16,12 @@ ) class CheckNameAvailability(AAZCommand): """Checks the resource name is available. + + :example: workspaces check name availability + az adp check-name-availability --subscription "sample-subscription" --name "sample-name" --type Microsoft.AutonomousDevelopmentPlatform/workspaces + + :example: accounts check name availability + az adp check-name-availability --subscription "sample-subscription" --name "sample-name" --type Microsoft.AutonomousDevelopmentPlatform/accounts """ _aaz_info = { diff --git a/src/adp/azext_adp/aaz/latest/adp/account/__cmd_group.py b/src/adp/azext_adp/aaz/latest/adp/account/__cmd_group.py index b67c19c9578..fc50b25b7ef 100644 --- a/src/adp/azext_adp/aaz/latest/adp/account/__cmd_group.py +++ b/src/adp/azext_adp/aaz/latest/adp/account/__cmd_group.py @@ -15,7 +15,7 @@ "adp account", ) class __CMDGroup(AAZCommandGroup): - """manage account + """manage adp accounts """ pass diff --git a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/__cmd_group.py b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/__cmd_group.py index 2a01e0d4455..800e13eb32d 100644 --- a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/__cmd_group.py +++ b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/__cmd_group.py @@ -15,7 +15,7 @@ "adp account data-pool", ) class __CMDGroup(AAZCommandGroup): - """manage data-pool + """manage adp data-pool """ pass diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/__cmd_group.py b/src/adp/azext_adp/aaz/latest/adp/workspace/__cmd_group.py index ffad8768d96..6eee232437b 100644 --- a/src/adp/azext_adp/aaz/latest/adp/workspace/__cmd_group.py +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/__cmd_group.py @@ -15,7 +15,7 @@ "adp workspace", ) class __CMDGroup(AAZCommandGroup): - """manage workspace + """manage adp workspace """ pass diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py index f7ab1a0068d..e2cb597510a 100644 --- a/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py @@ -16,6 +16,12 @@ ) class Create(AAZCommand): """Create a Workspace + + :example: create workspace with 3 storage accounts with LRS sku + az adp workspaces create --subscription sample-subscription --resource-group sample-rg --location westus3 --storage-account-count 3 --storage-sku name=Standard_LRS + + :example: create workspace with encryption + az adp workspace create --name sample-ws --resource-group sample-rg --location westus3 --encryption key-encryption-key-url=https://contosovault.vault.azure.net/keys/contosokek user-assigned-identity-resource-id=/subscriptions//resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId """ _aaz_info = { @@ -59,8 +65,8 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema - _args_schema.domain_label_scope = AAZStrArg( - options=["--domain-label-scope"], + _args_schema.domain_name_label_scope = AAZStrArg( + options=["--domain-name-label-scope"], arg_group="Properties", help="The scope for the FQDN label generation. If not provided, defaults to TenantReuse.", enum={"NoReuse": "NoReuse", "ResourceGroupReuse": "ResourceGroupReuse", "SubscriptionReuse": "SubscriptionReuse", "TenantReuse": "TenantReuse"}, @@ -70,6 +76,12 @@ def _build_arguments_schema(cls, *args, **kwargs): arg_group="Properties", help="The Workspace's data location. If not provided, defaults to the resource's location.", ) + _args_schema.direct_read_access = AAZStrArg( + options=["--direct-read-access"], + arg_group="Properties", + help="Enables direct data plane read access to the Workspace's underlying Azure resources according to Azure RBAC (thus bypassing the Autonomous Development Platform's authorization systems).", + enum={"Disabled": "Disabled", "Enabled": "Enabled"}, + ) _args_schema.encryption = AAZObjectArg( options=["--encryption"], arg_group="Properties", @@ -279,6 +291,7 @@ def content(self): if properties is not None: properties.set_prop("autoGeneratedDomainNameLabelScope", AAZStrType, ".domain_name_label_scope") properties.set_prop("dataLocation", AAZStrType, ".data_location") + properties.set_prop("directReadAccess", AAZStrType, ".direct_read_access") properties.set_prop("encryption", AAZObjectType, ".encryption") properties.set_prop("sourceResourceId", AAZStrType, ".source_resource_id") properties.set_prop("storageAccountCount", AAZIntType, ".storage_account_count") @@ -383,12 +396,18 @@ def _build_schema_on_200_201(cls): properties.auto_generated_domain_name_label_scope = AAZStrType( serialized_name="autoGeneratedDomainNameLabelScope", ) + properties.batch_accounts = AAZListType( + serialized_name="batchAccounts", + ) properties.data_catalog = AAZObjectType( serialized_name="dataCatalog", ) properties.data_location = AAZStrType( serialized_name="dataLocation", ) + properties.direct_read_access = AAZStrType( + serialized_name="directReadAccess", + ) properties.encryption = AAZObjectType() properties.endpoint = AAZStrType( flags={"read_only": True}, @@ -397,6 +416,7 @@ def _build_schema_on_200_201(cls): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.resim = AAZObjectType() properties.source_resource_id = AAZStrType( serialized_name="sourceResourceId", ) @@ -407,6 +427,18 @@ def _build_schema_on_200_201(cls): serialized_name="storageSku", ) + batch_accounts = cls._schema_on_200_201.properties.batch_accounts + batch_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.batch_accounts.Element + _element.batch_account_resource_id = AAZStrType( + serialized_name="batchAccountResourceId", + flags={"required": True}, + ) + _element.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + ) + data_catalog = cls._schema_on_200_201.properties.data_catalog data_catalog.data_explorer = AAZObjectType( serialized_name="dataExplorer", @@ -454,6 +486,11 @@ def _build_schema_on_200_201(cls): flags={"required": True}, ) + resim = cls._schema_on_200_201.properties.resim + resim.state = AAZStrType( + flags={"required": True}, + ) + storage_sku = cls._schema_on_200_201.properties.storage_sku storage_sku.name = AAZStrType( flags={"required": True}, diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_delete.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_delete.py index 1696fc1fdbe..0ab7a2d22df 100644 --- a/src/adp/azext_adp/aaz/latest/adp/workspace/_delete.py +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_delete.py @@ -17,6 +17,9 @@ ) class Delete(AAZCommand): """Delete a Workspace + + :example: delete workspace + az adp workspace delete --subscription sample-subscription --resource-group sample-rg --name sample-ws """ _aaz_info = { diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_list.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_list.py index a065673ffc0..ca122e1f758 100644 --- a/src/adp/azext_adp/aaz/latest/adp/workspace/_list.py +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_list.py @@ -16,6 +16,9 @@ ) class List(AAZCommand): """List Workspace resources by subscription ID + + :example: list workspaces in resource group + az adp workspace list --subscription sample-subscription --resource-group sample-rg """ _aaz_info = { @@ -203,12 +206,18 @@ def _build_schema_on_200(cls): properties.auto_generated_domain_name_label_scope = AAZStrType( serialized_name="autoGeneratedDomainNameLabelScope", ) + properties.batch_accounts = AAZListType( + serialized_name="batchAccounts", + ) properties.data_catalog = AAZObjectType( serialized_name="dataCatalog", ) properties.data_location = AAZStrType( serialized_name="dataLocation", ) + properties.direct_read_access = AAZStrType( + serialized_name="directReadAccess", + ) properties.encryption = AAZObjectType() properties.endpoint = AAZStrType( flags={"read_only": True}, @@ -217,6 +226,7 @@ def _build_schema_on_200(cls): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.resim = AAZObjectType() properties.source_resource_id = AAZStrType( serialized_name="sourceResourceId", ) @@ -227,6 +237,18 @@ def _build_schema_on_200(cls): serialized_name="storageSku", ) + batch_accounts = cls._schema_on_200.value.Element.properties.batch_accounts + batch_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.batch_accounts.Element + _element.batch_account_resource_id = AAZStrType( + serialized_name="batchAccountResourceId", + flags={"required": True}, + ) + _element.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + ) + data_catalog = cls._schema_on_200.value.Element.properties.data_catalog data_catalog.data_explorer = AAZObjectType( serialized_name="dataExplorer", @@ -274,6 +296,11 @@ def _build_schema_on_200(cls): flags={"required": True}, ) + resim = cls._schema_on_200.value.Element.properties.resim + resim.state = AAZStrType( + flags={"required": True}, + ) + storage_sku = cls._schema_on_200.value.Element.properties.storage_sku storage_sku.name = AAZStrType( flags={"required": True}, @@ -452,12 +479,18 @@ def _build_schema_on_200(cls): properties.auto_generated_domain_name_label_scope = AAZStrType( serialized_name="autoGeneratedDomainNameLabelScope", ) + properties.batch_accounts = AAZListType( + serialized_name="batchAccounts", + ) properties.data_catalog = AAZObjectType( serialized_name="dataCatalog", ) properties.data_location = AAZStrType( serialized_name="dataLocation", ) + properties.direct_read_access = AAZStrType( + serialized_name="directReadAccess", + ) properties.encryption = AAZObjectType() properties.endpoint = AAZStrType( flags={"read_only": True}, @@ -466,6 +499,7 @@ def _build_schema_on_200(cls): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.resim = AAZObjectType() properties.source_resource_id = AAZStrType( serialized_name="sourceResourceId", ) @@ -476,6 +510,18 @@ def _build_schema_on_200(cls): serialized_name="storageSku", ) + batch_accounts = cls._schema_on_200.value.Element.properties.batch_accounts + batch_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.batch_accounts.Element + _element.batch_account_resource_id = AAZStrType( + serialized_name="batchAccountResourceId", + flags={"required": True}, + ) + _element.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + ) + data_catalog = cls._schema_on_200.value.Element.properties.data_catalog data_catalog.data_explorer = AAZObjectType( serialized_name="dataExplorer", @@ -523,6 +569,11 @@ def _build_schema_on_200(cls): flags={"required": True}, ) + resim = cls._schema_on_200.value.Element.properties.resim + resim.state = AAZStrType( + flags={"required": True}, + ) + storage_sku = cls._schema_on_200.value.Element.properties.storage_sku storage_sku.name = AAZStrType( flags={"required": True}, diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_show.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_show.py index e9237b70f6d..425798622c8 100644 --- a/src/adp/azext_adp/aaz/latest/adp/workspace/_show.py +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_show.py @@ -16,6 +16,9 @@ ) class Show(AAZCommand): """Get a Workspace + + :example: show workspace in resource group + az adp workspace show --subscription sample-subscription --resource-group sample-rg --name sample-ws """ _aaz_info = { @@ -202,12 +205,18 @@ def _build_schema_on_200(cls): properties.auto_generated_domain_name_label_scope = AAZStrType( serialized_name="autoGeneratedDomainNameLabelScope", ) + properties.batch_accounts = AAZListType( + serialized_name="batchAccounts", + ) properties.data_catalog = AAZObjectType( serialized_name="dataCatalog", ) properties.data_location = AAZStrType( serialized_name="dataLocation", ) + properties.direct_read_access = AAZStrType( + serialized_name="directReadAccess", + ) properties.encryption = AAZObjectType() properties.endpoint = AAZStrType( flags={"read_only": True}, @@ -216,6 +225,7 @@ def _build_schema_on_200(cls): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.resim = AAZObjectType() properties.source_resource_id = AAZStrType( serialized_name="sourceResourceId", ) @@ -226,6 +236,18 @@ def _build_schema_on_200(cls): serialized_name="storageSku", ) + batch_accounts = cls._schema_on_200.properties.batch_accounts + batch_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.batch_accounts.Element + _element.batch_account_resource_id = AAZStrType( + serialized_name="batchAccountResourceId", + flags={"required": True}, + ) + _element.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + ) + data_catalog = cls._schema_on_200.properties.data_catalog data_catalog.data_explorer = AAZObjectType( serialized_name="dataExplorer", @@ -273,6 +295,11 @@ def _build_schema_on_200(cls): flags={"required": True}, ) + resim = cls._schema_on_200.properties.resim + resim.state = AAZStrType( + flags={"required": True}, + ) + storage_sku = cls._schema_on_200.properties.storage_sku storage_sku.name = AAZStrType( flags={"required": True}, diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_update.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_update.py index 7aadd2044bf..c5731e4c916 100644 --- a/src/adp/azext_adp/aaz/latest/adp/workspace/_update.py +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_update.py @@ -16,6 +16,9 @@ ) class Update(AAZCommand): """Update a Workspace + + :example: update workspace to 3 storage account + az adp workspace update --subscription sample-rg --resource-group sample-rg --workspace-name sample-ws --set properties.StorageAccountCount=3 """ _aaz_info = { @@ -418,12 +421,18 @@ def _build_schema_workspace_read(_schema): properties.auto_generated_domain_name_label_scope = AAZStrType( serialized_name="autoGeneratedDomainNameLabelScope", ) + properties.batch_accounts = AAZListType( + serialized_name="batchAccounts", + ) properties.data_catalog = AAZObjectType( serialized_name="dataCatalog", ) properties.data_location = AAZStrType( serialized_name="dataLocation", ) + properties.direct_read_access = AAZStrType( + serialized_name="directReadAccess", + ) properties.encryption = AAZObjectType() properties.endpoint = AAZStrType( flags={"read_only": True}, @@ -432,6 +441,7 @@ def _build_schema_workspace_read(_schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.resim = AAZObjectType() properties.source_resource_id = AAZStrType( serialized_name="sourceResourceId", ) @@ -442,6 +452,18 @@ def _build_schema_workspace_read(_schema): serialized_name="storageSku", ) + batch_accounts = _schema_workspace_read.properties.batch_accounts + batch_accounts.Element = AAZObjectType() + + _element = _schema_workspace_read.properties.batch_accounts.Element + _element.batch_account_resource_id = AAZStrType( + serialized_name="batchAccountResourceId", + flags={"required": True}, + ) + _element.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + ) + data_catalog = _schema_workspace_read.properties.data_catalog data_catalog.data_explorer = AAZObjectType( serialized_name="dataExplorer", @@ -489,6 +511,11 @@ def _build_schema_workspace_read(_schema): flags={"required": True}, ) + resim = _schema_workspace_read.properties.resim + resim.state = AAZStrType( + flags={"required": True}, + ) + storage_sku = _schema_workspace_read.properties.storage_sku storage_sku.name = AAZStrType( flags={"required": True}, diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_wait.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_wait.py index 1c44fff8d38..accd501bbcb 100644 --- a/src/adp/azext_adp/aaz/latest/adp/workspace/_wait.py +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_wait.py @@ -201,12 +201,18 @@ def _build_schema_on_200(cls): properties.auto_generated_domain_name_label_scope = AAZStrType( serialized_name="autoGeneratedDomainNameLabelScope", ) + properties.batch_accounts = AAZListType( + serialized_name="batchAccounts", + ) properties.data_catalog = AAZObjectType( serialized_name="dataCatalog", ) properties.data_location = AAZStrType( serialized_name="dataLocation", ) + properties.direct_read_access = AAZStrType( + serialized_name="directReadAccess", + ) properties.encryption = AAZObjectType() properties.endpoint = AAZStrType( flags={"read_only": True}, @@ -215,6 +221,7 @@ def _build_schema_on_200(cls): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.resim = AAZObjectType() properties.source_resource_id = AAZStrType( serialized_name="sourceResourceId", ) @@ -225,6 +232,18 @@ def _build_schema_on_200(cls): serialized_name="storageSku", ) + batch_accounts = cls._schema_on_200.properties.batch_accounts + batch_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.batch_accounts.Element + _element.batch_account_resource_id = AAZStrType( + serialized_name="batchAccountResourceId", + flags={"required": True}, + ) + _element.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + ) + data_catalog = cls._schema_on_200.properties.data_catalog data_catalog.data_explorer = AAZObjectType( serialized_name="dataExplorer", @@ -272,6 +291,11 @@ def _build_schema_on_200(cls): flags={"required": True}, ) + resim = cls._schema_on_200.properties.resim + resim.state = AAZStrType( + flags={"required": True}, + ) + storage_sku = cls._schema_on_200.properties.storage_sku storage_sku.name = AAZStrType( flags={"required": True}, diff --git a/src/adp/azext_adp/tests/latest/test_adp.py b/src/adp/azext_adp/tests/latest/test_adp.py index 5379084854b..186e99a4c0d 100644 --- a/src/adp/azext_adp/tests/latest/test_adp.py +++ b/src/adp/azext_adp/tests/latest/test_adp.py @@ -9,5 +9,15 @@ class AdpScenario(ScenarioTest): - # TODO: add tests here - pass + def test_workpaces(self): + workspaces = self.cmd("az adp workspace list").get_output_in_json() + assert len(workspaces) > 0 + workspace = workspaces[0] + assert workspace['name'] is not None + assert workspace['location'] is not None + assert workspace['type'] == "Microsoft.AutonomousDevelopmentPlatform/workspaces" + # assert workspace['city'] is not None + # assert workspace['providerName'] is not None + # assert workspace['longitudeDegrees'] is not None + # assert workspace['latitudeDegrees'] is not None + # assert workspace['altitudeMeters'] is not None From 05dbb8f40f4cc8f3acbbb445de05b7ffb928eab2 Mon Sep 17 00:00:00 2001 From: kareemshibli <63514061+kareemshibli@users.noreply.github.com> Date: Mon, 21 Nov 2022 02:16:18 +0200 Subject: [PATCH 07/14] add test --- .../latest/recordings/test_workpaces.yaml | 46 + .../test_workspace_DirectReadAccess.yaml | 1235 +++++++++++++++ .../test_workspace_differentDataLocation.yaml | 800 ++++++++++ .../recordings/test_workspace_encryption.yaml | 1257 +++++++++++++++ ...test_workspace_storageAccountIncrease.yaml | 1371 +++++++++++++++++ ...st_workspace_storageAccountSkuUpgrade.yaml | 1194 ++++++++++++++ src/adp/azext_adp/tests/latest/test_adp.py | 186 ++- 7 files changed, 6077 insertions(+), 12 deletions(-) create mode 100644 src/adp/azext_adp/tests/latest/recordings/test_workpaces.yaml create mode 100644 src/adp/azext_adp/tests/latest/recordings/test_workspace_DirectReadAccess.yaml create mode 100644 src/adp/azext_adp/tests/latest/recordings/test_workspace_differentDataLocation.yaml create mode 100644 src/adp/azext_adp/tests/latest/recordings/test_workspace_encryption.yaml create mode 100644 src/adp/azext_adp/tests/latest/recordings/test_workspace_storageAccountIncrease.yaml create mode 100644 src/adp/azext_adp/tests/latest/recordings/test_workspace_storageAccountSkuUpgrade.yaml diff --git a/src/adp/azext_adp/tests/latest/recordings/test_workpaces.yaml b/src/adp/azext_adp/tests/latest/recordings/test_workpaces.yaml new file mode 100644 index 00000000000..6d6ffde3479 --- /dev/null +++ b/src/adp/azext_adp/tests/latest/recordings/test_workpaces.yaml @@ -0,0 +1,46 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace list + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces?api-version=2022-09-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/tip-workspace-1-westus3","name":"tip-workspace-1-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-08-03T08:27:25.8301993Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-28T12:20:45.3249114Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://tip-workspace-1-westus3-g0bjeddtf6bubjhx.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/local-workspace-1-westus3","name":"local-workspace-1-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-08-03T08:27:25.9943206Z","lastModifiedBy":"elirandavid@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-07T10:15:04.9378854Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://local-workspace-1-westus3-era4fjfxdkfaaxej.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/dvt-workspace-1-westus3","name":"dvt-workspace-1-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-08-03T09:22:23.6178872Z","lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-03T14:47:19.0066426Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://dvt-workspace-1-westus3-gxatb9bddeetcnf7.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/scale-workspace-1-westus3","name":"scale-workspace-1-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"key1":"value1"},"systemData":{"lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-28T12:16:35.1332416Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://scale-workspace-1-westus3-bxbzf0gjh7dxc5ht.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources-2/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/ilank-workspace","name":"ilank-workspace","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-10-03T12:52:41.5033833Z","lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-10-03T12:52:41.5033833Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://ilank-workspace-h4dpbzeudpgzhnav.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":2,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/scale-workspace-2-westus3","name":"scale-workspace-2-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-06T10:34:38.9075878Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://scale-workspace-2-westus3-a4hjdufddddhf2ae.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/scale-ingestion-workspace-1-westus3","name":"scale-ingestion-workspace-1-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"dyochpaz@microsoft.com","createdByType":"User","createdAt":"2022-06-12T11:12:08.4707943Z","lastModifiedBy":"dyochpaz@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-12T11:12:08.4707943Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://scale-ingestion-workspace-1-westus3-asdxgbcybvhaebf4.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/scale-ingestion-workspace-2-westus3","name":"scale-ingestion-workspace-2-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"dyochpaz@microsoft.com","createdByType":"User","createdAt":"2022-06-12T12:11:08.510689Z","lastModifiedBy":"dyochpaz@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-12T12:11:08.510689Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://scale-ingestion-workspace-2-westus3-ghevhcaeanasa0fx.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/scale-ingestion-workspace-3-westus3","name":"scale-ingestion-workspace-3-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"dyochpaz@microsoft.com","createdByType":"User","createdAt":"2022-06-12T12:49:55.7255029Z","lastModifiedBy":"dyochpaz@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-12T12:49:55.7255029Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://scale-ingestion-workspace-3-westus3-erbjf6f3gmb0debx.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/scale-ingestion-workspace-4-westus3","name":"scale-ingestion-workspace-4-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"dyochpaz@microsoft.com","createdByType":"User","createdAt":"2022-06-12T13:04:57.5326133Z","lastModifiedBy":"dyochpaz@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-12T13:04:57.5326133Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://scale-ingestion-workspace-4-westus3-d4cec3ajcthcdub2.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-unauthorized-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/data-contributor-workspace","name":"data-contributor-workspace","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-06-16T08:51:58.6931385Z","lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-16T08:51:58.6931385Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://data-contributor-workspace-cedahfe6fzdka9df.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-unauthorized-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/data-reader-workspace","name":"data-reader-workspace","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-06-16T08:52:06.2734952Z","lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-10-19T11:28:27.9440802Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://data-reader-workspace-htfed5cqgfg6bfaz.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-unauthorized-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/unauthorized-workspace","name":"unauthorized-workspace","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-06-16T08:52:15.9912696Z","lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-10-12T18:11:12.2558129Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://unauthorized-workspace-ekc2b6fvcxfgccdw.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/migrated-workspace-1","name":"migrated-workspace-1","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"sagimarcus@microsoft.com","createdByType":"User","createdAt":"2022-11-08T11:18:34.4867311Z","lastModifiedBy":"dad37da6-229d-4bc0-8b94-fee8600589db","lastModifiedByType":"Application","lastModifiedAt":"2022-11-08T12:06:09.9600576Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://migrated-workspace-1-bcc0fzh9cveja7g5.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/localaccount/dataPools/migration-test-dp-1","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/local-workspace-1-westus3-1","name":"local-workspace-1-westus3-1","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"elirandavid@microsoft.com","createdByType":"User","createdAt":"2022-11-09T09:35:54.7524334Z","lastModifiedBy":"elirandavid@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-09T09:35:54.7524334Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://local-workspace-1-westus3-1-euaha0dvc3d4aca3.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/migrated-from-dp-2","name":"migrated-from-dp-2","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"sagimarcus@microsoft.com","createdByType":"User","createdAt":"2022-11-09T09:40:46.7683851Z","lastModifiedBy":"dad37da6-229d-4bc0-8b94-fee8600589db","lastModifiedByType":"Application","lastModifiedAt":"2022-11-09T10:28:19.9486078Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://migrated-from-dp-2-eycja9cad7c7drdr.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/localaccount/dataPools/migration-dp-2","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/migrated-from-dp-3","name":"migrated-from-dp-3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"sagimarcus@microsoft.com","createdByType":"User","createdAt":"2022-11-09T14:49:12.1204345Z","lastModifiedBy":"dad37da6-229d-4bc0-8b94-fee8600589db","lastModifiedByType":"Application","lastModifiedAt":"2022-11-09T15:36:30.8212911Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://migrated-from-dp-3-ccebdsdcguetbpf3.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/localaccount/dataPools/migration-dp-3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/migrated-from-migration-kareem-dp-2","name":"migrated-from-migration-kareem-dp-2","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-09T15:47:38.2174128Z","lastModifiedBy":"dad37da6-229d-4bc0-8b94-fee8600589db","lastModifiedByType":"Application","lastModifiedAt":"2022-11-09T16:34:33.7903507Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://migrated-from-migration-kareem-dp-2-e4htcwfec7f0f3b4.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/localaccount/dataPools/migration-kareem-dp-2","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/liabadi-tags-migration-ws","name":"liabadi-tags-migration-ws","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"wsTag":"wsValue"},"systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-11-10T10:56:34.6783461Z","lastModifiedBy":"dad37da6-229d-4bc0-8b94-fee8600589db","lastModifiedByType":"Application","lastModifiedAt":"2022-11-10T11:42:57.8246093Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://liabadi-tags-migration-ws-hqg5djgfdyc9gpgr.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/liabadi-migration-test/dataPools/migration","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/read-access-test","name":"read-access-test","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-14T14:24:26.4979868Z","lastModifiedBy":"dad37da6-229d-4bc0-8b94-fee8600589db","lastModifiedByType":"Application","lastModifiedAt":"2022-11-16T21:36:13.6186136Z"},"properties":{"provisioningState":"Failed","endpoint":"https://read-access-test-ghhfeubkh7dna2ek.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_LRS"},"storageAccountCount":1,"directReadAccess":"Enabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/kareem-cli-test","name":"kareem-cli-test","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T00:19:34.9908266Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T00:19:34.9908266Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://kareem-cli-test-gudvcag8c6h3eegc.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":{"customerManagedKeyEncryption":{"keyEncryptionKeyUrl":"https://kareem-test-kv.vault.azure.net/keys/test/1859093527af4431a4d989b88ad3ff19","keyEncryptionKeyIdentity":{"userAssignedIdentityResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/adp-stage-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/kareem"}}}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/mmw0t0","name":"mmw0t0","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"t1":"v1"},"systemData":{"createdBy":"moaidhathot@microsoft.com","createdByType":"User","createdAt":"2022-11-20T09:32:23.524909Z","lastModifiedBy":"moaidhathot@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T09:32:23.524909Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://mmw0t0-ffd3fnfcgfh9budn.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westeurope","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/mmw0t1","name":"mmw0t1","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"t1":"v1 + t2=v2"},"systemData":{"createdBy":"moaidhathot@microsoft.com","createdByType":"User","createdAt":"2022-11-20T10:33:22.8769559Z","lastModifiedBy":"moaidhathot@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T10:33:22.8769559Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://mmw0t1-fpajathwehbcfpa7.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westeurope","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cliaawxqfksxgp2i43evc5pf7ketosvx3zuwbpziqo7vzdpcgh2k3tpq22eiszygldaofff/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/sample-ws3","name":"sample-ws3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T12:40:52.4136443Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T12:40:52.4136443Z"},"properties":{"provisioningState":"Failed","endpoint":"https://sample-ws3-e9fvaeczb4ang2eq.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cliwnb3gzmsxgynr4yjpxcr6rc5v2ybdptwcd7cy4zmworegd7fbjev6oj6yryb5fxxwiza/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/sample-ws","name":"sample-ws","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T12:40:53.7646287Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T12:40:53.7646287Z"},"properties":{"provisioningState":"Failed","endpoint":"https://sample-ws-fscpa2e8ffb4g8hz.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli5q3tscrqsy4f2fejgczaaathacfhu4yed2ge2jrlde7gwujdj2hy5tqtowqwhrxh6xn5/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/sample-ws2","name":"sample-ws2","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T12:40:54.6662678Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T12:40:54.6662678Z"},"properties":{"provisioningState":"Failed","endpoint":"https://sample-ws2-e4epfrbre9e4ffbe.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/local-workspace","name":"local-workspace","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"southcentralus","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-05-27T04:44:48.445286Z","lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-05-27T04:44:48.445286Z"},"properties":{"provisioningState":"Failed","endpoint":"https://local-workspace-dvh8g6a6dyc4dphp.workspaces.southcentralus.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westeurope","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/scale-workspace-2-southcentralus","name":"scale-workspace-2-southcentralus","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"southcentralus","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-08-03T07:19:35.8204279Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-28T12:19:51.3454281Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://scale-workspace-2-southcentralus-h2fsdaa5azfqg9f6.workspaces.southcentralus.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/local-workspace-2-southcentralus","name":"local-workspace-2-southcentralus","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"southcentralus","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-08-03T08:27:25.8301993Z","lastModifiedBy":"elirandavid@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-07T15:28:58.2459401Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://local-workspace-2-southcentralus-dahcaqgwarbehzgb.workspaces.southcentralus.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/tip-workspace-2-southcentralus","name":"tip-workspace-2-southcentralus","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"southcentralus","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-08-03T08:27:26.2795031Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-28T12:20:44.4695418Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://tip-workspace-2-southcentralus-ddhee4a4h7evghas.workspaces.southcentralus.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/dvt-workspace-2-southcentralus","name":"dvt-workspace-2-southcentralus","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"southcentralus","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-08-03T08:27:25.9786992Z","lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-03T14:54:52.9734954Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://dvt-workspace-2-southcentralus-h0dag7d9fadmbjbb.workspaces.southcentralus.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/local-workspace-1-southcentralus","name":"local-workspace-1-southcentralus","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"southcentralus","systemData":{"createdBy":"elirandavid@microsoft.com","createdByType":"User","createdAt":"2022-11-07T16:24:30.4362082Z","lastModifiedBy":"elirandavid@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-08T11:10:41.0053797Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://local-workspace-1-southcentralus-baewf0gad2hrhgam.workspaces.southcentralus.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}]}' + headers: + cache-control: + - no-cache + content-length: + - '30728' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:12:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-original-request-ids: + - a000d10e-b0a3-4c54-9990-c41853449937 + - ef78bebf-41ce-41ec-a3a9-d4fe1d7fa246 + status: + code: 200 + message: OK +version: 1 diff --git a/src/adp/azext_adp/tests/latest/recordings/test_workspace_DirectReadAccess.yaml b/src/adp/azext_adp/tests/latest/recordings/test_workspace_DirectReadAccess.yaml new file mode 100644 index 00000000000..a08895d3403 --- /dev/null +++ b/src/adp/azext_adp/tests/latest/recordings/test_workspace_DirectReadAccess.yaml @@ -0,0 +1,1235 @@ +interactions: +- request: + body: '{"location": "westus3", "properties": {"storageAccountCount": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + Content-Length: + - '65' + Content-Type: + - application/json + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0779766Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:12:59.0779766Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://cli000002-dqbcdpgba9egcqhh.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}}' + headers: + api-supported-versions: + - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + cache-control: + - no-cache + content-length: + - '975' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:13:00 GMT + etag: + - '"7e00e333-0000-4d00-0000-637a985c0000"' + expires: + - '-1' + mise-correlation-id: + - 2a3d99a6-3ab1-49a6-a6e4-7971e9157ddc + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + traceresponse: + - 00-b9efee47282a81d61a4a4ce16ad1a17f-c87f75c63de730ea-01 + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:12:59.9095016Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:13:31 GMT + etag: + - '"aa0004d3-0000-4d00-0000-637a985b0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:12:59.9095016Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:14:01 GMT + etag: + - '"aa0004d3-0000-4d00-0000-637a985b0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:12:59.9095016Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:14:31 GMT + etag: + - '"aa0004d3-0000-4d00-0000-637a985b0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:12:59.9095016Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:15:01 GMT + etag: + - '"aa0004d3-0000-4d00-0000-637a985b0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:12:59.9095016Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:15:32 GMT + etag: + - '"aa0004d3-0000-4d00-0000-637a985b0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:12:59.9095016Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:16:02 GMT + etag: + - '"aa0004d3-0000-4d00-0000-637a985b0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"0be503f1-d233-4442-a9b2-d173157169ac*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-20T21:12:59.9095016Z","endTime":"2022-11-20T21:16:11.6125716Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '598' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:16:32 GMT + etag: + - '"aa0019d4-0000-4d00-0000-637a991b0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0779766Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:12:59.0779766Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-dqbcdpgba9egcqhh.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '914' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:16:33 GMT + etag: + - '"7e00e734-0000-4d00-0000-637a991b0000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0779766Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:12:59.0779766Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-dqbcdpgba9egcqhh.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '914' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:16:37 GMT + etag: + - '"7e00e734-0000-4d00-0000-637a991b0000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"location": "westus3", "properties": {"autoGeneratedDomainNameLabelScope": + "TenantReuse", "batchAccounts": [], "dataCatalog": {"externalWorkspaceIds": + [], "state": "Disabled"}, "dataLocation": "westus3", "directReadAccess": "Enabled", + "resim": {"state": "Disabled"}, "storageAccountCount": 1, "storageSku": {"name": + "Standard_ZRS"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + Content-Length: + - '334' + Content-Type: + - application/json + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0779766Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:16:38.8903525Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://cli000002-dqbcdpgba9egcqhh.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Enabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}}' + headers: + api-supported-versions: + - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + cache-control: + - no-cache + content-length: + - '974' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:16:39 GMT + etag: + - '"7e003b35-0000-4d00-0000-637a99370000"' + expires: + - '-1' + mise-correlation-id: + - c5106c49-b478-4529-a4cd-1432002a56eb + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + traceresponse: + - 00-e67d0459a52119f18bbaae6800038624-7908d1f029d99904-01 + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:16:39.11497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:17:09 GMT + etag: + - '"aa0046d4-0000-4d00-0000-637a99370000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:16:39.11497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:17:38 GMT + etag: + - '"aa0046d4-0000-4d00-0000-637a99370000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:16:39.11497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:18:09 GMT + etag: + - '"aa0046d4-0000-4d00-0000-637a99370000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:16:39.11497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:18:40 GMT + etag: + - '"aa0046d4-0000-4d00-0000-637a99370000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:16:39.11497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:19:10 GMT + etag: + - '"aa0046d4-0000-4d00-0000-637a99370000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"2af649ec-6580-4cde-a9e2-ca6b0a5ec9cf*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-20T21:16:39.11497Z","endTime":"2022-11-20T21:19:34.3829925Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '596' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:19:41 GMT + etag: + - '"aa00eed4-0000-4d00-0000-637a99e60000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0779766Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:16:38.8903525Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-dqbcdpgba9egcqhh.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Enabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '913' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:19:41 GMT + etag: + - '"7e002136-0000-4d00-0000-637a99e60000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces?api-version=2022-09-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0779766Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:16:38.8903525Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-dqbcdpgba9egcqhh.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Enabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}]}' + headers: + cache-control: + - no-cache + content-length: + - '925' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:19:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-original-request-ids: + - 16f153c5-eef8-49b8-981a-a1d193de675b + - 01502eea-a16f-4376-88cd-7543e77757d6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace show + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0779766Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:16:38.8903525Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-dqbcdpgba9egcqhh.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Enabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '913' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:19:43 GMT + etag: + - '"7e002136-0000-4d00-0000-637a99e60000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: 'null' + headers: + api-supported-versions: + - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:19:49 GMT + etag: + - '"7e005436-0000-4d00-0000-637a99f50000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + mise-correlation-id: + - e210a56e-8792-4727-b05f-7a0dde9eb1ed + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + traceresponse: + - 00-22b2ca49871c68f74503146e699d493c-a600c8535c8e3747-01 + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-20T21:19:49.1871589Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:20:19 GMT + etag: + - '"aa00f6d4-0000-4d00-0000-637a99f50000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-20T21:19:49.1871589Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:20:49 GMT + etag: + - '"aa00f6d4-0000-4d00-0000-637a99f50000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-20T21:19:49.1871589Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:21:19 GMT + etag: + - '"aa00f6d4-0000-4d00-0000-637a99f50000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-20T21:19:49.1871589Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:21:50 GMT + etag: + - '"aa00f6d4-0000-4d00-0000-637a99f50000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","name":"4058b97c-9b80-48d5-96e6-e52caf421212*FDF3A02B47014AB0902F0032DB590F82850F3992CE73E284C0C2BA3505ACFEDB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-20T21:19:49.1871589Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '557' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:22:20 GMT + etag: + - '"00009518-0000-0600-0000-637a9a780000"' + 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 +version: 1 diff --git a/src/adp/azext_adp/tests/latest/recordings/test_workspace_differentDataLocation.yaml b/src/adp/azext_adp/tests/latest/recordings/test_workspace_differentDataLocation.yaml new file mode 100644 index 00000000000..a673180aa6d --- /dev/null +++ b/src/adp/azext_adp/tests/latest/recordings/test_workspace_differentDataLocation.yaml @@ -0,0 +1,800 @@ +interactions: +- request: + body: '{"location": "westus3", "properties": {"autoGeneratedDomainNameLabelScope": + "TenantReuse", "dataLocation": "southcentralus", "storageAccountCount": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + Content-Length: + - '151' + Content-Type: + - application/json + ParameterSetName: + - -g --name -l --data-location --storage-account-count --domain-name-label-scope + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T23:58:08.2574068Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T23:58:08.2574068Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://cli000002-cfhvhzg4fmg6d5dr.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}}' + headers: + api-supported-versions: + - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + cache-control: + - no-cache + content-length: + - '982' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 23:58:10 GMT + etag: + - '"7e001c83-0000-4d00-0000-637abf110000"' + expires: + - '-1' + mise-correlation-id: + - cbbf3107-6619-4d41-ae6a-ab08d2f89d17 + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + traceresponse: + - 00-09b68dcee8afa69e256b459d7965b92a-a8d503054b906a4f-01 + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --data-location --storage-account-count --domain-name-label-scope + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T23:58:09.13052Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 23:58:39 GMT + etag: + - '"aa0036ff-0000-4d00-0000-637abf110000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --data-location --storage-account-count --domain-name-label-scope + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T23:58:09.13052Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 23:59:10 GMT + etag: + - '"aa0036ff-0000-4d00-0000-637abf110000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --data-location --storage-account-count --domain-name-label-scope + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T23:58:09.13052Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 23:59:40 GMT + etag: + - '"aa0036ff-0000-4d00-0000-637abf110000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --data-location --storage-account-count --domain-name-label-scope + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T23:58:09.13052Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 21 Nov 2022 00:00:11 GMT + etag: + - '"aa0036ff-0000-4d00-0000-637abf110000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --data-location --storage-account-count --domain-name-label-scope + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T23:58:09.13052Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 21 Nov 2022 00:00:41 GMT + etag: + - '"aa0036ff-0000-4d00-0000-637abf110000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --data-location --storage-account-count --domain-name-label-scope + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T23:58:09.13052Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 21 Nov 2022 00:01:11 GMT + etag: + - '"aa0036ff-0000-4d00-0000-637abf110000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --data-location --storage-account-count --domain-name-label-scope + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-20T23:58:09.13052Z","endTime":"2022-11-21T00:01:41.3282211Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '596' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 21 Nov 2022 00:01:42 GMT + etag: + - '"ab001f00-0000-4d00-0000-637abfe50000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --data-location --storage-account-count --domain-name-label-scope + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T23:58:08.2574068Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T23:58:08.2574068Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-cfhvhzg4fmg6d5dr.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '921' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 21 Nov 2022 00:01:42 GMT + etag: + - '"7e008584-0000-4d00-0000-637abfe50000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces?api-version=2022-09-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T23:58:08.2574068Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T23:58:08.2574068Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-cfhvhzg4fmg6d5dr.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}]}' + headers: + cache-control: + - no-cache + content-length: + - '933' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 21 Nov 2022 00:01:44 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-original-request-ids: + - 7f9862c0-ffe9-4829-a88d-0621eae66cfb + - 25f6fc4a-c2e2-4cd0-a88a-8073f8882f8c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace show + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T23:58:08.2574068Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T23:58:08.2574068Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-cfhvhzg4fmg6d5dr.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '921' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 21 Nov 2022 00:01:48 GMT + etag: + - '"7e008584-0000-4d00-0000-637abfe50000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: 'null' + headers: + api-supported-versions: + - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 21 Nov 2022 00:01:52 GMT + etag: + - '"7e009d84-0000-4d00-0000-637abff10000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + mise-correlation-id: + - 8153a26b-35e3-4e48-8e74-ff78ed108991 + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + traceresponse: + - 00-de067c702fbe2e74390bb329dbc92932-255e269efcee3542-01 + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T00:01:53.0123026Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 21 Nov 2022 00:02:23 GMT + etag: + - '"ab002b00-0000-4d00-0000-637abff10000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T00:01:53.0123026Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 21 Nov 2022 00:02:53 GMT + etag: + - '"ab002b00-0000-4d00-0000-637abff10000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T00:01:53.0123026Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 21 Nov 2022 00:03:23 GMT + etag: + - '"ab002b00-0000-4d00-0000-637abff10000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T00:01:53.0123026Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 21 Nov 2022 00:03:53 GMT + etag: + - '"ab002b00-0000-4d00-0000-637abff10000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-21T00:01:53.0123026Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '557' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 21 Nov 2022 00:04:24 GMT + etag: + - '"00001019-0000-0600-0000-637ac0760000"' + 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 +version: 1 diff --git a/src/adp/azext_adp/tests/latest/recordings/test_workspace_encryption.yaml b/src/adp/azext_adp/tests/latest/recordings/test_workspace_encryption.yaml new file mode 100644 index 00000000000..2d7b8be5c58 --- /dev/null +++ b/src/adp/azext_adp/tests/latest/recordings/test_workspace_encryption.yaml @@ -0,0 +1,1257 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + ParameterSetName: + - --name -g + User-Agent: + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.8 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/adp_cli000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001","name":"adp_cli000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-11-20T21:39:12Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '304' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:40:03 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - --name -g + User-Agent: + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-msi/6.1.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity000005?api-version=2022-01-31-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/adp_cli000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity000005","name":"testidentity000005","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus","tags":{},"properties":{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"22d243e4-5845-492e-b5eb-11f7b5559625","clientId":"236b7c81-07c9-4b46-af9d-29f465e4f227"}}' + headers: + cache-control: + - no-cache + content-length: + - '451' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:40:11 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/adp_cli000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity000005 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.10.8 (Windows-10-10.0.22621-SP0) AZURECLI/2.42.0 (PIP) + method: GET + uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27dad37da6-229d-4bc0-8b94-fee8600589db%27%29 + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[{"id":"8982d764-3cf0-4ee2-b3ae-9c41f1ff0880","deletedDateTime":null,"accountEnabled":true,"alternativeNames":[],"appDisplayName":"Autonomous + Development Platform Resource Provider","appDescription":null,"appId":"dad37da6-229d-4bc0-8b94-fee8600589db","applicationTemplateId":null,"appOwnerOrganizationId":"f8cdef31-a31e-4b4a-93e4-5f571e91255a","appRoleAssignmentRequired":false,"createdDateTime":"2020-09-03T07:13:20Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"Autonomous + Development Platform Resource Provider - PPE","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["dad37da6-229d-4bc0-8b94-fee8600589db"],"servicePrincipalType":"Application","signInAudience":"AzureADMultipleOrgs","tags":[],"tokenEncryptionKeyId":null,"samlSingleSignOnSettings":null,"addIns":[],"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1375' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Sun, 20 Nov 2022 21:40:12 GMT + odata-version: + - '4.0' + request-id: + - 096fd355-523d-4114-8807-1a947d746526 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"North Europe","Slice":"E","Ring":"4","ScaleUnit":"005","RoleInstance":"DU6PEPF00002C4F"}}' + x-ms-resource-unit: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.10.8 (Windows-10-10.0.22621-SP0) msrest/0.7.1 msrest_azure/0.6.4 + azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.42.0 (PIP) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/adp_cli000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity000005/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Managed%20Identity%20Operator%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Managed Identity Operator","type":"BuiltInRole","description":"Read + and Assign User Assigned Identity","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.ManagedIdentity/userAssignedIdentities/*/read","Microsoft.ManagedIdentity/userAssignedIdentities/*/assign/action","Microsoft.Authorization/*/read","Microsoft.Insights/alertRules/*","Microsoft.Resources/subscriptions/resourceGroups/read","Microsoft.Resources/deployments/*","Microsoft.Support/*"],"notActions":[],"dataActions":[],"notDataActions":[]}],"createdOn":"2017-12-14T19:52:04.3924594Z","updatedOn":"2021-11-11T20:13:38.9523759Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/f1a07417-d97a-45cb-824c-7a7467783830","type":"Microsoft.Authorization/roleDefinitions","name":"f1a07417-d97a-45cb-824c-7a7467783830"}]}' + headers: + cache-control: + - no-cache + content-length: + - '918' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:40:13 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + 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: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/f1a07417-d97a-45cb-824c-7a7467783830", + "principalId": "8982d764-3cf0-4ee2-b3ae-9c41f1ff0880", "principalType": "ServicePrincipal"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '270' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.10.8 (Windows-10-10.0.22621-SP0) msrest/0.7.1 msrest_azure/0.6.4 + azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.42.0 (PIP) + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/adp_cli000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity000005/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001?api-version=2020-04-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/f1a07417-d97a-45cb-824c-7a7467783830","principalId":"8982d764-3cf0-4ee2-b3ae-9c41f1ff0880","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/adp_cli000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity000005","condition":null,"conditionVersion":null,"createdOn":"2022-11-20T21:40:14.7716736Z","updatedOn":"2022-11-20T21:40:15.2717416Z","createdBy":null,"updatedBy":"9195fe09-5061-413a-bbda-ca472ace9771","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/adp_cli000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity000005/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000001"}' + headers: + cache-control: + - no-cache + content-length: + - '1037' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:40:20 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-keyvault/10.1.0 Python/3.10.8 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.KeyVault/vaults/clitest000002?api-version=2022-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.KeyVault/vaults/clitest000002","name":"clitest000002","type":"Microsoft.KeyVault/vaults","location":"westus3","tags":{},"systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:39:26.878Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:39:26.878Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","accessPolicies":[],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":7,"enableRbacAuthorization":true,"enablePurgeProtection":true,"vaultUri":"https://clitest000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' + headers: + cache-control: + - no-cache + content-length: + - '847' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:40:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.5.564.0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-keyvault-keys/4.5.1 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: POST + uri: https://clitest000002.vault.azure.net/keys/testkey000004/create?api-version=7.3 + response: + body: + string: '{"error":{"code":"Unauthorized","message":"AKV10000: Request is missing + a Bearer or PoP token."}}' + headers: + cache-control: + - no-cache + content-length: + - '97' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:40:24 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000;includeSubDomains + www-authenticate: + - Bearer authorization="https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47", + resource="https://vault.azure.net" + x-content-type-options: + - nosniff + x-ms-keyvault-network-info: + - conn_type=Ipv4;addr=87.70.5.246;act_addr_fam=InterNetwork; + x-ms-keyvault-region: + - westus3 + x-ms-keyvault-service-version: + - 1.9.576.1 + status: + code: 401 + message: Unauthorized +- request: + body: '{"kty": "RSA", "attributes": {"enabled": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '47' + Content-Type: + - application/json + User-Agent: + - azsdk-python-keyvault-keys/4.5.1 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: POST + uri: https://clitest000002.vault.azure.net/keys/testkey000004/create?api-version=7.3 + response: + body: + string: '{"key":{"kid":"https://clitest000002.vault.azure.net/keys/testkey000004/37a5acd5694a43ccb34b336e4c505d78","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"384zdbC2ilFjqVzGg_g5Ren6ZOLukbSathdMvCDDvQo5iW_fAS1Wh3uai_wtEbrxHLPJn5VZX3TWIQHkK0yS6NbKVKyy7GnCO3GtJYvklhVrge7G773Wxw9X7aUx3D_19O8XeESXtBJ9w-LhKa-ED6FM5ZdmFT1Z6-yZVGGPEl-GqdKG_WFcTCqxGLtCslEa8f9loZGhwj14_aAN53fS5ys5Uy77Dcdju894VP-w60LxcXJiNc5Pn58-3E87UhKdu3_ZWzIcKieuN5rbB6-9yBPnMNDYHoXju2Phz4dzvG_rTLRpgOnD96RyMCxrK7SALqJ76lzJIQ8Iixgb0F-6wQ","e":"AQAB"},"attributes":{"enabled":true,"created":1668980426,"updated":1668980426,"recoveryLevel":"CustomizedRecoverable","recoverableDays":7,"exportable":false}}' + headers: + cache-control: + - no-cache + content-length: + - '700' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:40:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000;includeSubDomains + x-content-type-options: + - nosniff + x-ms-keyvault-network-info: + - conn_type=Ipv4;addr=87.70.5.246;act_addr_fam=InterNetwork; + x-ms-keyvault-rbac-assignment-id: + - 23711abd-8e59-440f-a263-99083a05280b + x-ms-keyvault-rbac-cache: + - ra_age=0;da_age=0;rd_age=864;brd_age=17119;ra_notif_age=199;da_notif_age=201;dec_lev=3; + x-ms-keyvault-region: + - westus3 + x-ms-keyvault-service-version: + - 1.9.576.1 + status: + code: 200 + message: OK +- request: + body: '{"ids": ["22d243e4-5845-492e-b5eb-11f7b5559625"], "types": ["user", "group", + "servicePrincipal", "directoryObjectPartnerReference"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '132' + Content-Type: + - application/json + ParameterSetName: + - --assignee-object-id --role --scope + User-Agent: + - python/3.10.8 (Windows-10-10.0.22621-SP0) AZURECLI/2.42.0 (PIP) + method: POST + uri: https://graph.microsoft.com/v1.0/directoryObjects/getByIds + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#directoryObjects","value":[{"@odata.type":"#microsoft.graph.servicePrincipal","id":"22d243e4-5845-492e-b5eb-11f7b5559625","deletedDateTime":null,"accountEnabled":true,"alternativeNames":["isExplicit=True","/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/adp_cli000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity000005"],"appDisplayName":null,"appDescription":null,"appId":"236b7c81-07c9-4b46-af9d-29f465e4f227","applicationTemplateId":null,"appOwnerOrganizationId":null,"appRoleAssignmentRequired":false,"createdDateTime":"2022-11-20T21:40:10Z","description":null,"disabledByMicrosoftStatus":null,"displayName":"testidentity000005","homepage":null,"loginUrl":null,"logoutUrl":null,"notes":null,"notificationEmailAddresses":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyThumbprint":null,"replyUrls":[],"servicePrincipalNames":["236b7c81-07c9-4b46-af9d-29f465e4f227","https://identity.azure.net/Fb/VZiBXX++vAaOFMXDFbet8Z9+wai7LrG1PUiY6xuU="],"servicePrincipalType":"ManagedIdentity","signInAudience":null,"tags":[],"tokenEncryptionKeyId":null,"info":null,"samlSingleSignOnSettings":null,"addIns":[],"appRoles":[],"keyCredentials":[{"customKeyIdentifier":"AAD3D231EEEE83604BDAA748C08E23BBF3E05CA4","displayName":"CN=236b7c81-07c9-4b46-af9d-29f465e4f227","endDateTime":"2023-02-18T21:35:00Z","key":null,"keyId":"c364ea29-006e-4dd1-a359-5c687ee5473c","startDateTime":"2022-11-20T21:35:00Z","type":"AsymmetricX509Cert","usage":"Verify"}],"oauth2PermissionScopes":[],"passwordCredentials":[],"resourceSpecificApplicationPermissions":[],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1744' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Sun, 20 Nov 2022 21:40:26 GMT + location: + - https://graph.microsoft.com + odata-version: + - '4.0' + request-id: + - 6631b8b6-cb66-4c00-aa70-1d650a6bcac6 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"North Europe","Slice":"E","Ring":"4","ScaleUnit":"005","RoleInstance":"DU6PEPF00002DD7"}}' + x-ms-resource-unit: + - '3' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/e147488a-f6f5-4113-8e2d-b22465e65bf6", + "principalId": "22d243e4-5845-492e-b5eb-11f7b5559625", "principalType": "ServicePrincipal"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '270' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --assignee-object-id --role --scope + User-Agent: + - python/3.10.8 (Windows-10-10.0.22621-SP0) msrest/0.7.1 msrest_azure/0.6.4 + azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.42.0 (PIP) + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.KeyVault/vaults/clitest000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000002?api-version=2020-04-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/e147488a-f6f5-4113-8e2d-b22465e65bf6","principalId":"22d243e4-5845-492e-b5eb-11f7b5559625","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.KeyVault/vaults/clitest000002","condition":null,"conditionVersion":null,"createdOn":"2022-11-20T21:40:30.8187164Z","updatedOn":"2022-11-20T21:40:31.3499330Z","createdBy":null,"updatedBy":"9195fe09-5061-413a-bbda-ca472ace9771","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.KeyVault/vaults/clitest000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000002","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000002"}' + headers: + cache-control: + - no-cache + content-length: + - '981' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:40:36 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: '{"location": "westus3", "properties": {"encryption": {"customerManagedKeyEncryption": + {"keyEncryptionKeyIdentity": {"userAssignedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/adp_cli000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity000005"}, + "keyEncryptionKeyUrl": "https://clitest000002.vault.azure.net/keys/testkey000004/37a5acd5694a43ccb34b336e4c505d78"}}, + "storageAccountCount": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + Content-Length: + - '457' + Content-Type: + - application/json + ParameterSetName: + - -g --name -l --storage-account-count --encryption + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003","name":"cli000003","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:40:45.3267484Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:40:45.3267484Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://cli000003-d5efhcc8h4gqbze2.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":{"customerManagedKeyEncryption":{"keyEncryptionKeyUrl":"https://clitest000002.vault.azure.net/keys/testkey000004/37a5acd5694a43ccb34b336e4c505d78","keyEncryptionKeyIdentity":{"userAssignedIdentityResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/adp_cli000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity000005"}}}}}' + headers: + api-supported-versions: + - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538?api-version=2022-09-01-preview + cache-control: + - no-cache + content-length: + - '1342' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:40:46 GMT + etag: + - '"7e006b42-0000-4d00-0000-637a9ede0000"' + expires: + - '-1' + mise-correlation-id: + - 810c75ed-8c22-4333-85c6-a919b0326847 + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + traceresponse: + - 00-48ff6c44ae1be73135946dc88833e2e3-86cd2be1aa3c0b72-01 + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --encryption + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","name":"3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003","status":"Accepted","startTime":"2022-11-20T21:40:46.1484734Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:41:17 GMT + etag: + - '"aa0021db-0000-4d00-0000-637a9ede0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --encryption + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","name":"3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003","status":"Accepted","startTime":"2022-11-20T21:40:46.1484734Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:41:47 GMT + etag: + - '"aa0021db-0000-4d00-0000-637a9ede0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --encryption + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","name":"3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003","status":"Accepted","startTime":"2022-11-20T21:40:46.1484734Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:42:17 GMT + etag: + - '"aa0021db-0000-4d00-0000-637a9ede0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --encryption + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","name":"3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003","status":"Accepted","startTime":"2022-11-20T21:40:46.1484734Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:42:48 GMT + etag: + - '"aa0021db-0000-4d00-0000-637a9ede0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --encryption + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","name":"3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003","status":"Accepted","startTime":"2022-11-20T21:40:46.1484734Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:43:17 GMT + etag: + - '"aa0021db-0000-4d00-0000-637a9ede0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --encryption + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","name":"3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003","status":"Accepted","startTime":"2022-11-20T21:40:46.1484734Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:43:48 GMT + etag: + - '"aa0021db-0000-4d00-0000-637a9ede0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --encryption + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","name":"3c5926f8-3357-4e24-bfe8-2d1f592163c8*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003","status":"Succeeded","startTime":"2022-11-20T21:40:46.1484734Z","endTime":"2022-11-20T21:44:18.7617758Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '598' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:44:18 GMT + etag: + - '"aa0021dc-0000-4d00-0000-637a9fb20000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --encryption + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003","name":"cli000003","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:40:45.3267484Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:40:45.3267484Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000003-d5efhcc8h4gqbze2.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":{"customerManagedKeyEncryption":{"keyEncryptionKeyUrl":"https://clitest000002.vault.azure.net/keys/testkey000004/37a5acd5694a43ccb34b336e4c505d78","keyEncryptionKeyIdentity":{"userAssignedIdentityResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/adp_cli000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity000005"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1299' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:44:19 GMT + etag: + - '"7e003543-0000-4d00-0000-637a9fb20000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces?api-version=2022-09-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003","name":"cli000003","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:40:45.3267484Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:40:45.3267484Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000003-d5efhcc8h4gqbze2.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":{"customerManagedKeyEncryption":{"keyEncryptionKeyUrl":"https://clitest000002.vault.azure.net/keys/testkey000004/37a5acd5694a43ccb34b336e4c505d78","keyEncryptionKeyIdentity":{"userAssignedIdentityResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/adp_cli000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity000005"}}}}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1311' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:44:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-original-request-ids: + - 83b7b911-76a2-486d-ad49-43f46cfe9674 + - f7982327-def6-40f7-860c-c41a2b9799b0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace show + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003","name":"cli000003","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:40:45.3267484Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:40:45.3267484Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000003-d5efhcc8h4gqbze2.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":{"customerManagedKeyEncryption":{"keyEncryptionKeyUrl":"https://clitest000002.vault.azure.net/keys/testkey000004/37a5acd5694a43ccb34b336e4c505d78","keyEncryptionKeyIdentity":{"userAssignedIdentityResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/adp_cli000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity000005"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1299' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:44:24 GMT + etag: + - '"7e003543-0000-4d00-0000-637a9fb20000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003?api-version=2022-09-01-preview + response: + body: + string: 'null' + headers: + api-supported-versions: + - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/02fa28be-cf8c-4c88-8409-980fbf0737e0*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538?api-version=2022-09-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:44:29 GMT + etag: + - '"7e005b43-0000-4d00-0000-637a9fbd0000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/02fa28be-cf8c-4c88-8409-980fbf0737e0*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538?api-version=2022-09-01-preview + mise-correlation-id: + - 931c81a4-9515-447d-87db-b1121143c7be + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + traceresponse: + - 00-eedb1006493e824eae48b88e9bc324ad-2747b1063a56824c-01 + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/02fa28be-cf8c-4c88-8409-980fbf0737e0*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/02fa28be-cf8c-4c88-8409-980fbf0737e0*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","name":"02fa28be-cf8c-4c88-8409-980fbf0737e0*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003","status":"Deleting","startTime":"2022-11-20T21:44:29.4216263Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:45:00 GMT + etag: + - '"aa002cdc-0000-4d00-0000-637a9fbd0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/02fa28be-cf8c-4c88-8409-980fbf0737e0*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/02fa28be-cf8c-4c88-8409-980fbf0737e0*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","name":"02fa28be-cf8c-4c88-8409-980fbf0737e0*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003","status":"Deleting","startTime":"2022-11-20T21:44:29.4216263Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:45:30 GMT + etag: + - '"aa002cdc-0000-4d00-0000-637a9fbd0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/02fa28be-cf8c-4c88-8409-980fbf0737e0*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/02fa28be-cf8c-4c88-8409-980fbf0737e0*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","name":"02fa28be-cf8c-4c88-8409-980fbf0737e0*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003","status":"Deleting","startTime":"2022-11-20T21:44:29.4216263Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:46:00 GMT + etag: + - '"aa002cdc-0000-4d00-0000-637a9fbd0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/02fa28be-cf8c-4c88-8409-980fbf0737e0*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/02fa28be-cf8c-4c88-8409-980fbf0737e0*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","name":"02fa28be-cf8c-4c88-8409-980fbf0737e0*6B33D5C439568634BC25ADFE48E1E674CA3A7648D2681D855F513ECB0A0D1538","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000003","status":"Succeeded","startTime":"2022-11-20T21:44:29.4216263Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '557' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:46:31 GMT + etag: + - '"aa00aedc-0000-4d00-0000-637aa0320000"' + 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 +version: 1 diff --git a/src/adp/azext_adp/tests/latest/recordings/test_workspace_storageAccountIncrease.yaml b/src/adp/azext_adp/tests/latest/recordings/test_workspace_storageAccountIncrease.yaml new file mode 100644 index 00000000000..278badef4c7 --- /dev/null +++ b/src/adp/azext_adp/tests/latest/recordings/test_workspace_storageAccountIncrease.yaml @@ -0,0 +1,1371 @@ +interactions: +- request: + body: '{"location": "westus3", "properties": {"storageAccountCount": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + Content-Length: + - '65' + Content-Type: + - application/json + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0786849Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:12:59.0786849Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://cli000002-facvb4emcrgjd5c6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}}' + headers: + api-supported-versions: + - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + cache-control: + - no-cache + content-length: + - '975' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:13:00 GMT + etag: + - '"7e00e433-0000-4d00-0000-637a985c0000"' + expires: + - '-1' + mise-correlation-id: + - 5855be90-fa9e-4ac5-ae78-87557679e2de + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + traceresponse: + - 00-3989f74865ae2d9fcc22cd4b595afd05-59d79a8bfa9b44c1-01 + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:12:59.9731794Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:13:31 GMT + etag: + - '"aa0005d3-0000-4d00-0000-637a985b0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:12:59.9731794Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:14:01 GMT + etag: + - '"aa0005d3-0000-4d00-0000-637a985b0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:12:59.9731794Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:14:31 GMT + etag: + - '"aa0005d3-0000-4d00-0000-637a985b0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:12:59.9731794Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:15:01 GMT + etag: + - '"aa0005d3-0000-4d00-0000-637a985b0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:12:59.9731794Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:15:32 GMT + etag: + - '"aa0005d3-0000-4d00-0000-637a985b0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:12:59.9731794Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:16:02 GMT + etag: + - '"aa0005d3-0000-4d00-0000-637a985b0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:12:59.9731794Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:16:32 GMT + etag: + - '"aa0005d3-0000-4d00-0000-637a985b0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"cb952d80-ee34-4e79-a070-d995636ec8a2*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-20T21:12:59.9731794Z","endTime":"2022-11-20T21:16:33.4623942Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '598' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:17:03 GMT + etag: + - '"aa003dd4-0000-4d00-0000-637a99310000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0786849Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:12:59.0786849Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-facvb4emcrgjd5c6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '914' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:17:03 GMT + etag: + - '"7e00ec34-0000-4d00-0000-637a99310000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0786849Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:12:59.0786849Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-facvb4emcrgjd5c6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '914' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:17:07 GMT + etag: + - '"7e00ec34-0000-4d00-0000-637a99310000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"location": "westus3", "properties": {"autoGeneratedDomainNameLabelScope": + "TenantReuse", "batchAccounts": [], "dataCatalog": {"externalWorkspaceIds": + [], "state": "Disabled"}, "dataLocation": "westus3", "directReadAccess": "Disabled", + "resim": {"state": "Disabled"}, "storageAccountCount": 2, "storageSku": {"name": + "Standard_ZRS"}}, "tags": {"tag1": "value1", "tag2": "value2"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + Content-Length: + - '381' + Content-Type: + - application/json + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"tag1":"value1","tag2":"value2"},"systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0786849Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:17:09.0515684Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://cli000002-facvb4emcrgjd5c6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":2,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}}' + headers: + api-supported-versions: + - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + cache-control: + - no-cache + content-length: + - '1016' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:17:11 GMT + etag: + - '"7e005e35-0000-4d00-0000-637a99550000"' + expires: + - '-1' + mise-correlation-id: + - ecb45f51-9090-4036-9abd-e8f287050bea + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + traceresponse: + - 00-5216ec856e2c02bbc3d96185a7fcac7a-e76713bc95d17632-01 + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:17:09.2056845Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:17:42 GMT + etag: + - '"aa0054d4-0000-4d00-0000-637a99550000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:17:09.2056845Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:18:11 GMT + etag: + - '"aa0054d4-0000-4d00-0000-637a99550000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:17:09.2056845Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:18:42 GMT + etag: + - '"aa0054d4-0000-4d00-0000-637a99550000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:17:09.2056845Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:19:12 GMT + etag: + - '"aa0054d4-0000-4d00-0000-637a99550000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:17:09.2056845Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:19:43 GMT + etag: + - '"aa0054d4-0000-4d00-0000-637a99550000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:17:09.2056845Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:20:14 GMT + etag: + - '"aa0054d4-0000-4d00-0000-637a99550000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"2b4f796f-f4b4-43dc-bf69-c720a7df8ad6*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-20T21:17:09.2056845Z","endTime":"2022-11-20T21:20:21.7043082Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '598' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:20:44 GMT + etag: + - '"aa001bd5-0000-4d00-0000-637a9a150000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"tag1":"value1","tag2":"value2"},"systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0786849Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:17:09.0515684Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-facvb4emcrgjd5c6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":2,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '955' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:20:45 GMT + etag: + - '"7e005e36-0000-4d00-0000-637a9a150000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace list + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces?api-version=2022-09-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/tip-workspace-1-westus3","name":"tip-workspace-1-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-08-03T08:27:25.8301993Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-28T12:20:45.3249114Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://tip-workspace-1-westus3-g0bjeddtf6bubjhx.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/local-workspace-1-westus3","name":"local-workspace-1-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-08-03T08:27:25.9943206Z","lastModifiedBy":"elirandavid@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-07T10:15:04.9378854Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://local-workspace-1-westus3-era4fjfxdkfaaxej.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/dvt-workspace-1-westus3","name":"dvt-workspace-1-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-08-03T09:22:23.6178872Z","lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-03T14:47:19.0066426Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://dvt-workspace-1-westus3-gxatb9bddeetcnf7.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/scale-workspace-1-westus3","name":"scale-workspace-1-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"key1":"value1"},"systemData":{"lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-28T12:16:35.1332416Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://scale-workspace-1-westus3-bxbzf0gjh7dxc5ht.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources-2/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/ilank-workspace","name":"ilank-workspace","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-10-03T12:52:41.5033833Z","lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-10-03T12:52:41.5033833Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://ilank-workspace-h4dpbzeudpgzhnav.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":2,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/scale-workspace-2-westus3","name":"scale-workspace-2-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-06T10:34:38.9075878Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://scale-workspace-2-westus3-a4hjdufddddhf2ae.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/scale-ingestion-workspace-1-westus3","name":"scale-ingestion-workspace-1-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"dyochpaz@microsoft.com","createdByType":"User","createdAt":"2022-06-12T11:12:08.4707943Z","lastModifiedBy":"dyochpaz@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-12T11:12:08.4707943Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://scale-ingestion-workspace-1-westus3-asdxgbcybvhaebf4.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/scale-ingestion-workspace-2-westus3","name":"scale-ingestion-workspace-2-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"dyochpaz@microsoft.com","createdByType":"User","createdAt":"2022-06-12T12:11:08.510689Z","lastModifiedBy":"dyochpaz@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-12T12:11:08.510689Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://scale-ingestion-workspace-2-westus3-ghevhcaeanasa0fx.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/scale-ingestion-workspace-3-westus3","name":"scale-ingestion-workspace-3-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"dyochpaz@microsoft.com","createdByType":"User","createdAt":"2022-06-12T12:49:55.7255029Z","lastModifiedBy":"dyochpaz@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-12T12:49:55.7255029Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://scale-ingestion-workspace-3-westus3-erbjf6f3gmb0debx.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/scale-ingestion-workspace-4-westus3","name":"scale-ingestion-workspace-4-westus3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"dyochpaz@microsoft.com","createdByType":"User","createdAt":"2022-06-12T13:04:57.5326133Z","lastModifiedBy":"dyochpaz@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-12T13:04:57.5326133Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://scale-ingestion-workspace-4-westus3-d4cec3ajcthcdub2.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-unauthorized-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/data-contributor-workspace","name":"data-contributor-workspace","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-06-16T08:51:58.6931385Z","lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-16T08:51:58.6931385Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://data-contributor-workspace-cedahfe6fzdka9df.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-unauthorized-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/data-reader-workspace","name":"data-reader-workspace","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-06-16T08:52:06.2734952Z","lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-10-19T11:28:27.9440802Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://data-reader-workspace-htfed5cqgfg6bfaz.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-unauthorized-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/unauthorized-workspace","name":"unauthorized-workspace","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-06-16T08:52:15.9912696Z","lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-10-12T18:11:12.2558129Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://unauthorized-workspace-ekc2b6fvcxfgccdw.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/migrated-workspace-1","name":"migrated-workspace-1","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"sagimarcus@microsoft.com","createdByType":"User","createdAt":"2022-11-08T11:18:34.4867311Z","lastModifiedBy":"dad37da6-229d-4bc0-8b94-fee8600589db","lastModifiedByType":"Application","lastModifiedAt":"2022-11-08T12:06:09.9600576Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://migrated-workspace-1-bcc0fzh9cveja7g5.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/localaccount/dataPools/migration-test-dp-1","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/local-workspace-1-westus3-1","name":"local-workspace-1-westus3-1","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"elirandavid@microsoft.com","createdByType":"User","createdAt":"2022-11-09T09:35:54.7524334Z","lastModifiedBy":"elirandavid@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-09T09:35:54.7524334Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://local-workspace-1-westus3-1-euaha0dvc3d4aca3.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/migrated-from-dp-2","name":"migrated-from-dp-2","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"sagimarcus@microsoft.com","createdByType":"User","createdAt":"2022-11-09T09:40:46.7683851Z","lastModifiedBy":"dad37da6-229d-4bc0-8b94-fee8600589db","lastModifiedByType":"Application","lastModifiedAt":"2022-11-09T10:28:19.9486078Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://migrated-from-dp-2-eycja9cad7c7drdr.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/localaccount/dataPools/migration-dp-2","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/migrated-from-dp-3","name":"migrated-from-dp-3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"sagimarcus@microsoft.com","createdByType":"User","createdAt":"2022-11-09T14:49:12.1204345Z","lastModifiedBy":"dad37da6-229d-4bc0-8b94-fee8600589db","lastModifiedByType":"Application","lastModifiedAt":"2022-11-09T15:36:30.8212911Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://migrated-from-dp-3-ccebdsdcguetbpf3.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/localaccount/dataPools/migration-dp-3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/migrated-from-migration-kareem-dp-2","name":"migrated-from-migration-kareem-dp-2","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-09T15:47:38.2174128Z","lastModifiedBy":"dad37da6-229d-4bc0-8b94-fee8600589db","lastModifiedByType":"Application","lastModifiedAt":"2022-11-09T16:34:33.7903507Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://migrated-from-migration-kareem-dp-2-e4htcwfec7f0f3b4.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/localaccount/dataPools/migration-kareem-dp-2","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/liabadi-tags-migration-ws","name":"liabadi-tags-migration-ws","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"wsTag":"wsValue"},"systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-11-10T10:56:34.6783461Z","lastModifiedBy":"dad37da6-229d-4bc0-8b94-fee8600589db","lastModifiedByType":"Application","lastModifiedAt":"2022-11-10T11:42:57.8246093Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://liabadi-tags-migration-ws-hqg5djgfdyc9gpgr.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/liabadi-migration-test/dataPools/migration","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/read-access-test","name":"read-access-test","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-14T14:24:26.4979868Z","lastModifiedBy":"dad37da6-229d-4bc0-8b94-fee8600589db","lastModifiedByType":"Application","lastModifiedAt":"2022-11-16T21:36:13.6186136Z"},"properties":{"provisioningState":"Failed","endpoint":"https://read-access-test-ghhfeubkh7dna2ek.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_LRS"},"storageAccountCount":1,"directReadAccess":"Enabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/kareem-cli-test","name":"kareem-cli-test","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T00:19:34.9908266Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T00:19:34.9908266Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://kareem-cli-test-gudvcag8c6h3eegc.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":{"customerManagedKeyEncryption":{"keyEncryptionKeyUrl":"https://kareem-test-kv.vault.azure.net/keys/test/1859093527af4431a4d989b88ad3ff19","keyEncryptionKeyIdentity":{"userAssignedIdentityResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/adp-stage-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/kareem"}}}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/mmw0t0","name":"mmw0t0","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"t1":"v1"},"systemData":{"createdBy":"moaidhathot@microsoft.com","createdByType":"User","createdAt":"2022-11-20T09:32:23.524909Z","lastModifiedBy":"moaidhathot@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T09:32:23.524909Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://mmw0t0-ffd3fnfcgfh9budn.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westeurope","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-accounts/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/mmw0t1","name":"mmw0t1","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"t1":"v1 + t2=v2"},"systemData":{"createdBy":"moaidhathot@microsoft.com","createdByType":"User","createdAt":"2022-11-20T10:33:22.8769559Z","lastModifiedBy":"moaidhathot@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T10:33:22.8769559Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://mmw0t1-fpajathwehbcfpa7.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westeurope","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cliaawxqfksxgp2i43evc5pf7ketosvx3zuwbpziqo7vzdpcgh2k3tpq22eiszygldaofff/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/sample-ws3","name":"sample-ws3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T12:40:52.4136443Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T12:40:52.4136443Z"},"properties":{"provisioningState":"Failed","endpoint":"https://sample-ws3-e9fvaeczb4ang2eq.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cliwnb3gzmsxgynr4yjpxcr6rc5v2ybdptwcd7cy4zmworegd7fbjev6oj6yryb5fxxwiza/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/sample-ws","name":"sample-ws","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T12:40:53.7646287Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T12:40:53.7646287Z"},"properties":{"provisioningState":"Failed","endpoint":"https://sample-ws-fscpa2e8ffb4g8hz.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli5q3tscrqsy4f2fejgczaaathacfhu4yed2ge2jrlde7gwujdj2hy5tqtowqwhrxh6xn5/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/sample-ws2","name":"sample-ws2","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T12:40:54.6662678Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T12:40:54.6662678Z"},"properties":{"provisioningState":"Failed","endpoint":"https://sample-ws2-e4epfrbre9e4ffbe.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_clicygjzrg2slrhrbldtrlvbwpqr5nkrslpahne6x3kdj5sytkyrwxw5mzkuwxyeabbam3u/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/climaipgski3wmbz4q2d2ydtjdw4zfw3poeihdkr","name":"climaipgski3wmbz4q2d2ydtjdw4zfw3poeihdkr","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0779766Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:16:38.8903525Z"},"properties":{"provisioningState":"Deleting","endpoint":"https://climaipgski3wmbz4q2d2ydtjdw4zfw3poeihdkr-dqbcdpgba9egcqhh.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Enabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"tag1":"value1","tag2":"value2"},"systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0786849Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:17:09.0515684Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-facvb4emcrgjd5c6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":2,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cliaggf43svodxux56tehywvfty2jnoyj4x3lcjg6hdrvdjywvtuc3d5i7e7gd3np5xau7b/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/clinkwml4fvldlurjzwwcwqrgpwattkdnbtwlmx3","name":"clinkwml4fvldlurjzwwcwqrgpwattkdnbtwlmx3","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"tag1":"value1","tag2":"value2"},"systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.4700777Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:16:38.1370763Z"},"properties":{"provisioningState":"Deleting","endpoint":"https://clinkwml4fvldlurjzwwcwqrgpwattkdnbtwlmx3-hsf9dadmb2hbhph6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_GRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-rp-remote-tests/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/rp-tip-test-stage-workspace-yx4x-1-cmk","name":"rp-tip-test-stage-workspace-yx4x-1-cmk","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{},"systemData":{"createdBy":"ef0105a2-b3b3-4998-9a9c-347126cfc970","createdByType":"Application","createdAt":"2022-11-20T21:16:49.1812744Z","lastModifiedBy":"ef0105a2-b3b3-4998-9a9c-347126cfc970","lastModifiedByType":"Application","lastModifiedAt":"2022-11-20T21:16:49.1812744Z"},"properties":{"provisioningState":"Deleting","endpoint":"https://rp-tip-test-stage-workspace-yx4x-1-cmk-drhthqhbe5ahgzfh.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":3,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":{"customerManagedKeyEncryption":{"keyEncryptionKeyUrl":"https://adp-stage-cmk.vault.azure.net/keys/CMK","keyEncryptionKeyIdentity":{"userAssignedIdentityResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-cmk/providers/Microsoft.ManagedIdentity/userAssignedIdentities/adp-stage-cmk-mi"}}}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/local-workspace","name":"local-workspace","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"southcentralus","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-05-27T04:44:48.445286Z","lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-05-27T04:44:48.445286Z"},"properties":{"provisioningState":"Failed","endpoint":"https://local-workspace-dvh8g6a6dyc4dphp.workspaces.southcentralus.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westeurope","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/scale-workspace-2-southcentralus","name":"scale-workspace-2-southcentralus","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"southcentralus","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-08-03T07:19:35.8204279Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-28T12:19:51.3454281Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://scale-workspace-2-southcentralus-h2fsdaa5azfqg9f6.workspaces.southcentralus.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/local-workspace-2-southcentralus","name":"local-workspace-2-southcentralus","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"southcentralus","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-08-03T08:27:25.8301993Z","lastModifiedBy":"elirandavid@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-07T15:28:58.2459401Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://local-workspace-2-southcentralus-dahcaqgwarbehzgb.workspaces.southcentralus.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/tip-workspace-2-southcentralus","name":"tip-workspace-2-southcentralus","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"southcentralus","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-08-03T08:27:26.2795031Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-28T12:20:44.4695418Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://tip-workspace-2-southcentralus-ddhee4a4h7evghas.workspaces.southcentralus.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/dvt-workspace-2-southcentralus","name":"dvt-workspace-2-southcentralus","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"southcentralus","systemData":{"createdBy":"liabadi@microsoft.com","createdByType":"User","createdAt":"2022-08-03T08:27:25.9786992Z","lastModifiedBy":"liabadi@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-03T14:54:52.9734954Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://dvt-workspace-2-southcentralus-h0dag7d9fadmbjbb.workspaces.southcentralus.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp-stage-resources/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/local-workspace-1-southcentralus","name":"local-workspace-1-southcentralus","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"southcentralus","systemData":{"createdBy":"elirandavid@microsoft.com","createdByType":"User","createdAt":"2022-11-07T16:24:30.4362082Z","lastModifiedBy":"elirandavid@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-08T11:10:41.0053797Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://local-workspace-1-southcentralus-baewf0gad2hrhgam.workspaces.southcentralus.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":5,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}]}' + headers: + cache-control: + - no-cache + content-length: + - '35253' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:20:47 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-original-request-ids: + - 80a15be8-72ef-4d6b-bd3a-66c6affb7520 + - 784686bb-2d9e-43d9-a90e-94df6af46b85 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces?api-version=2022-09-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"tag1":"value1","tag2":"value2"},"systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0786849Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:17:09.0515684Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-facvb4emcrgjd5c6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":2,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}]}' + headers: + cache-control: + - no-cache + content-length: + - '967' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:20:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-original-request-ids: + - b0165031-1c45-48fb-8693-75e90105a53c + - 8b21a8b1-41d1-487b-999c-421899460106 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace show + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"tag1":"value1","tag2":"value2"},"systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.0786849Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:17:09.0515684Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-facvb4emcrgjd5c6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":2,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '955' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:20:51 GMT + etag: + - '"7e005e36-0000-4d00-0000-637a9a150000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: 'null' + headers: + api-supported-versions: + - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:20:55 GMT + etag: + - '"7e009736-0000-4d00-0000-637a9a370000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + mise-correlation-id: + - 8cd427b7-0a3b-4f9a-b09f-f05ff9c8c5d6 + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + traceresponse: + - 00-32c2d97d068c9dbf152f716fa23bbac0-d08bed16403787ff-01 + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-20T21:20:55.2462903Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:21:25 GMT + etag: + - '"aa0051d5-0000-4d00-0000-637a9a370000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-20T21:20:55.2462903Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:21:55 GMT + etag: + - '"aa0051d5-0000-4d00-0000-637a9a370000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-20T21:20:55.2462903Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:22:26 GMT + etag: + - '"aa0051d5-0000-4d00-0000-637a9a370000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-20T21:20:55.2462903Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:22:56 GMT + etag: + - '"aa0051d5-0000-4d00-0000-637a9a370000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","name":"bf292a1c-fb96-4508-87c7-a9538634139f*3C20A733C8B53FCDBBA997111715C70CB14A678D74FD0A7A20132CD042E113EB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-20T21:20:55.2462903Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '557' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:23:26 GMT + etag: + - '"00009818-0000-0600-0000-637a9aba0000"' + 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 +version: 1 diff --git a/src/adp/azext_adp/tests/latest/recordings/test_workspace_storageAccountSkuUpgrade.yaml b/src/adp/azext_adp/tests/latest/recordings/test_workspace_storageAccountSkuUpgrade.yaml new file mode 100644 index 00000000000..6de86ca54f7 --- /dev/null +++ b/src/adp/azext_adp/tests/latest/recordings/test_workspace_storageAccountSkuUpgrade.yaml @@ -0,0 +1,1194 @@ +interactions: +- request: + body: '{"location": "westus3", "properties": {"storageAccountCount": 1, "storageSku": + {"name": "Standard_LRS"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + Content-Length: + - '105' + Content-Type: + - application/json + ParameterSetName: + - -g --name -l --storage-account-count --storage-sku + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.4700777Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:12:59.4700777Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://cli000002-hsf9dadmb2hbhph6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":null,"storageSku":{"name":"Standard_LRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}}' + headers: + api-supported-versions: + - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + cache-control: + - no-cache + content-length: + - '975' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:13:01 GMT + etag: + - '"7e00e633-0000-4d00-0000-637a985c0000"' + expires: + - '-1' + mise-correlation-id: + - b4e75387-936c-4751-98ae-3beafab88e2f + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + traceresponse: + - 00-1f98c7c97537964833843d580e412df6-eec0e6b9d3950194-01 + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --storage-sku + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:13:00.3029484Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:13:31 GMT + etag: + - '"aa0008d3-0000-4d00-0000-637a985c0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --storage-sku + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:13:00.3029484Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:14:01 GMT + etag: + - '"aa0008d3-0000-4d00-0000-637a985c0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --storage-sku + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:13:00.3029484Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:14:31 GMT + etag: + - '"aa0008d3-0000-4d00-0000-637a985c0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --storage-sku + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:13:00.3029484Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:15:02 GMT + etag: + - '"aa0008d3-0000-4d00-0000-637a985c0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --storage-sku + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:13:00.3029484Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:15:32 GMT + etag: + - '"aa0008d3-0000-4d00-0000-637a985c0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --storage-sku + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:13:00.3029484Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:16:02 GMT + etag: + - '"aa0008d3-0000-4d00-0000-637a985c0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --storage-sku + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"0d863e98-720b-44f0-ae73-f482e03153ec*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-20T21:13:00.3029484Z","endTime":"2022-11-20T21:16:28.8043724Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '598' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:16:33 GMT + etag: + - '"aa0038d4-0000-4d00-0000-637a992c0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --storage-account-count --storage-sku + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.4700777Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:12:59.4700777Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-hsf9dadmb2hbhph6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_LRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '914' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:16:33 GMT + etag: + - '"7e00ea34-0000-4d00-0000-637a992c0000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.4700777Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:12:59.4700777Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-hsf9dadmb2hbhph6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_LRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '914' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:16:36 GMT + etag: + - '"7e00ea34-0000-4d00-0000-637a992c0000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"location": "westus3", "properties": {"autoGeneratedDomainNameLabelScope": + "TenantReuse", "batchAccounts": [], "dataCatalog": {"externalWorkspaceIds": + [], "state": "Disabled"}, "dataLocation": "westus3", "directReadAccess": "Disabled", + "resim": {"state": "Disabled"}, "storageAccountCount": 1, "storageSku": {"name": + "Standard_GRS"}}, "tags": {"tag1": "value1", "tag2": "value2"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + Content-Length: + - '381' + Content-Type: + - application/json + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"tag1":"value1","tag2":"value2"},"systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.4700777Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:16:38.1370763Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://cli000002-hsf9dadmb2hbhph6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","sourceResourceId":null,"storageSku":{"name":"Standard_GRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}}' + headers: + api-supported-versions: + - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + cache-control: + - no-cache + content-length: + - '1016' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:16:40 GMT + etag: + - '"7e003935-0000-4d00-0000-637a99360000"' + expires: + - '-1' + mise-correlation-id: + - 73e82c48-0b3d-419a-a5c1-83e3d30fa4f3 + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + traceresponse: + - 00-3b98cfcd675c333f13a8b9c4b90fba13-813918db3a73109a-01 + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:16:38.37557Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:17:10 GMT + etag: + - '"aa0044d4-0000-4d00-0000-637a99360000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:16:38.37557Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:17:40 GMT + etag: + - '"aa0044d4-0000-4d00-0000-637a99360000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:16:38.37557Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:18:11 GMT + etag: + - '"aa0044d4-0000-4d00-0000-637a99360000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:16:38.37557Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:18:41 GMT + etag: + - '"aa0044d4-0000-4d00-0000-637a99360000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T21:16:38.37557Z"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:19:11 GMT + etag: + - '"aa0044d4-0000-4d00-0000-637a99360000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"754216ef-7679-43d7-8364-63996ef952d7*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-20T21:16:38.37557Z","endTime":"2022-11-20T21:19:34.9461598Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '596' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:19:41 GMT + etag: + - '"aa00efd4-0000-4d00-0000-637a99e60000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --tags --set + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"tag1":"value1","tag2":"value2"},"systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.4700777Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:16:38.1370763Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-hsf9dadmb2hbhph6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_GRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '955' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:19:44 GMT + etag: + - '"7e004436-0000-4d00-0000-637a99e60000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces?api-version=2022-09-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"tag1":"value1","tag2":"value2"},"systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.4700777Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:16:38.1370763Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-hsf9dadmb2hbhph6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_GRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}]}' + headers: + cache-control: + - no-cache + content-length: + - '967' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:19:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-original-request-ids: + - d6fb766b-3961-47a6-9146-055ce21f88e4 + - 61b15991-6ca9-44e8-975e-9f9a4100dea5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace show + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","tags":{"tag1":"value1","tag2":"value2"},"systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T21:12:59.4700777Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T21:16:38.1370763Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-hsf9dadmb2hbhph6.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"westus3","storageSku":{"name":"Standard_GRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '955' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:19:48 GMT + etag: + - '"7e004436-0000-4d00-0000-637a99e60000"' + 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-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview + response: + body: + string: 'null' + headers: + api-supported-versions: + - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3ada8b42-dee6-40a8-a416-4d292932f372*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:19:53 GMT + etag: + - '"7e005536-0000-4d00-0000-637a99fa0000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3ada8b42-dee6-40a8-a416-4d292932f372*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + mise-correlation-id: + - dcb2647d-4b1a-4ed3-a053-b07161df74bc + pragma: + - no-cache + request-context: + - appId= + strict-transport-security: + - max-age=31536000; includeSubDomains + traceresponse: + - 00-bbe14496519f8e1b45433698e72fdeaa-5131b31a871975d4-01 + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3ada8b42-dee6-40a8-a416-4d292932f372*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3ada8b42-dee6-40a8-a416-4d292932f372*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"3ada8b42-dee6-40a8-a416-4d292932f372*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-20T21:19:54.2311585Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:20:24 GMT + etag: + - '"aa00fcd4-0000-4d00-0000-637a99fa0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3ada8b42-dee6-40a8-a416-4d292932f372*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3ada8b42-dee6-40a8-a416-4d292932f372*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"3ada8b42-dee6-40a8-a416-4d292932f372*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-20T21:19:54.2311585Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:20:54 GMT + etag: + - '"aa00fcd4-0000-4d00-0000-637a99fa0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3ada8b42-dee6-40a8-a416-4d292932f372*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3ada8b42-dee6-40a8-a416-4d292932f372*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"3ada8b42-dee6-40a8-a416-4d292932f372*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-20T21:19:54.2311585Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:21:25 GMT + etag: + - '"aa00fcd4-0000-4d00-0000-637a99fa0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3ada8b42-dee6-40a8-a416-4d292932f372*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/3ada8b42-dee6-40a8-a416-4d292932f372*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","name":"3ada8b42-dee6-40a8-a416-4d292932f372*4AD9F14235B0BC5A316B0F7A14D894F2E460924AF57D020DE630F2A3C3A691F8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-20T21:19:54.2311585Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '557' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 20 Nov 2022 21:21:54 GMT + etag: + - '"00009418-0000-0600-0000-637a9a6b0000"' + 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 +version: 1 diff --git a/src/adp/azext_adp/tests/latest/test_adp.py b/src/adp/azext_adp/tests/latest/test_adp.py index 186e99a4c0d..0b15bc85d3d 100644 --- a/src/adp/azext_adp/tests/latest/test_adp.py +++ b/src/adp/azext_adp/tests/latest/test_adp.py @@ -6,18 +6,180 @@ # -------------------------------------------------------------------------------------------- from azure.cli.testsdk import * +from unittest import mock class AdpScenario(ScenarioTest): - def test_workpaces(self): - workspaces = self.cmd("az adp workspace list").get_output_in_json() - assert len(workspaces) > 0 - workspace = workspaces[0] - assert workspace['name'] is not None - assert workspace['location'] is not None - assert workspace['type'] == "Microsoft.AutonomousDevelopmentPlatform/workspaces" - # assert workspace['city'] is not None - # assert workspace['providerName'] is not None - # assert workspace['longitudeDegrees'] is not None - # assert workspace['latitudeDegrees'] is not None - # assert workspace['altitudeMeters'] is not None + # def test_workpaces(self): + # workspaces = self.cmd("az adp workspace list").get_output_in_json() + # assert len(workspaces) > 0 + # workspace = workspaces[0] + # assert workspace['id'] is not None + # assert workspace['name'] is not None + # assert workspace['location'] is not None + # assert workspace['type'] == "microsoft.autonomousdevelopmentplatform/workspaces" + # assert workspace['endpoint'] is not None + # assert workspace['autoGeneratedDomainNameLabelScope'] is not None + # assert workspace['dataCatalog'] is not None + # assert workspace['dataLocation'] is not None + # assert workspace['storageAccountCount'] is not None + # assert workspace['storageSku'] is not None + + + # @ResourceGroupPreparer(name_prefix="adp_cli", parameter_name_for_location="location") + # @KeyVaultPreparer(additional_params='--enable-purge-protection --enable-rbac-authorization ', location='westus3') + # def test_workspace_encryption(self, resource_group, key_vault): + # workpace_name = self.create_random_name(prefix='cli', length=40) + # self.kwargs.update({ + # "resource-group": resource_group, + # "workspace-name": workpace_name, + # "location": "westus3", + # "storage-account-count": "1", + # 'key_vault': key_vault, + # 'key_name': self.create_random_name('testkey', 20), + # 'identity_name': self.create_random_name('testidentity', 20), + # 'identity_permissions': "Key Vault Crypto Service Encryption User", + # 'role' : "Managed Identity Operator", + # 'adp_rp_identity' : "dad37da6-229d-4bc0-8b94-fee8600589db", + # }) + + # # create a user-assigned identity and give it access to the key + # result = self.cmd('az identity create --name {identity_name} -g {resource-group}') + # self.kwargs['principal_id'] = result.get_output_in_json()['principalId'] + # self.kwargs['identity_id'] = result.get_output_in_json()['id'] + # self.kwargs['client_id'] = result.get_output_in_json()['clientId'] + + # # assign 'Managed Identity Operator' role to ADP's RP identity on MI scope + # with mock.patch('azure.cli.command_modules.role.custom._gen_guid', side_effect=self.create_guid): + # self.cmd('az role assignment create --assignee {adp_rp_identity} --role "{role}" --scope {identity_id}') + + # result = self.cmd('az keyvault show -g {resource-group} -n {key_vault}') + # self.kwargs['kv_id'] = result.get_output_in_json()['id'] + # # create a new key + # result = self.cmd('az keyvault key create --name {key_name} --vault-name {key_vault}') + # self.kwargs['key_id'] = result.get_output_in_json()['key']['kid'] + + # with mock.patch('azure.cli.command_modules.role.custom._gen_guid', side_effect=self.create_guid): + # self.cmd("az role assignment create --assignee-object-id {principal_id} --role e147488a-f6f5-4113-8e2d-b22465e65bf6 --scope {kv_id}") + + # self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --storage-account-count {storage-account-count} --encryption key-encryption-key-url={key_id} user-assigned-identity-resource-id={identity_id}") + # workspace_list_by_rg = self.cmd("az adp workspace list -g {resource-group}").get_output_in_json() + # assert len(workspace_list_by_rg) > 0 + # workspace = self.cmd("az adp workspace show --name {workspace-name} --resource-group {resource-group}", checks=[ + # self.check('name', '{workspace-name}'), + # self.check('provisioningState', 'Succeeded'), + # self.check('type', 'microsoft.autonomousdevelopmentplatform/workspaces'), + # self.check('location', '{location}'), + # self.check('storageAccountCount', '{storage-account-count}'), + # self.check('encryption.keyEncryptionKeyUrl', '{key_id}'), + # self.check('encryption.userAssignedIdentityResourceId', '{identity_id}'), + # ]).get_output_in_json() + # self.cmd("az adp workspace delete --name {workspace-name} --resource-group {resource-group} --yes") + + + # @ResourceGroupPreparer(name_prefix="adp_cli", parameter_name_for_location="location") + # def test_workspace_storageAccountIncrease(self, resource_group): + # workpace_name = self.create_random_name(prefix='cli', length=40) + # self.kwargs.update({ + # "resource-group": resource_group, + # "workspace-name": workpace_name, + # "location": "westus3", + # "storage-account-count": "1", + # "new-storage-account-count": "2", + # "tags": "{tag1:value1,tag2:value2}" + # }) + + # self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --storage-account-count {storage-account-count}") + # self.cmd('az adp workspace update --name {workspace-name} --resource-group {resource-group} --tags {tags} --set "properties.storageAccountCount={new-storage-account-count}"') + # workspace_list = self.cmd("az adp workspace list").get_output_in_json() + # assert len(workspace_list) > 0 + # workspace_list_by_rg = self.cmd("az adp workspace list -g {resource-group}").get_output_in_json() + # assert len(workspace_list_by_rg) > 0 + # workspace = self.cmd("az adp workspace show --name {workspace-name} --resource-group {resource-group}", checks=[ + # self.check('name', '{workspace-name}'), + # self.check('provisioningState', 'Succeeded'), + # self.check('type', 'microsoft.autonomousdevelopmentplatform/workspaces'), + # self.check('location', '{location}'), + # self.check('dataLocation', '{location}'), + # self.check('storageAccountCount', '{new-storage-account-count}') + # ]).get_output_in_json() + # assert workspace['tags'] is not None + # self.cmd("az adp workspace delete --name {workspace-name} --resource-group {resource-group} --yes") + + # @ResourceGroupPreparer(name_prefix="adp_cli", parameter_name_for_location="location") + # def test_workspace_storageAccountSkuUpgrade(self, resource_group): + # workpace_name = self.create_random_name(prefix='cli', length=40) + # self.kwargs.update({ + # "resource-group": resource_group, + # "workspace-name": workpace_name, + # "location": "westus3", + # "storage-account-count": "1", + # "storage-account-sku": "Standard_LRS", + # "new-storage-account-sku": "Standard_GRS", + # "tags": "{tag1:value1,tag2:value2}" + # }) + + # self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --storage-account-count {storage-account-count} --storage-sku name={storage-account-sku}") + # self.cmd('az adp workspace update --name {workspace-name} --resource-group {resource-group} --tags {tags} --set "properties.storageSku.name={new-storage-account-sku}"') + # workspace_list_by_rg = self.cmd("az adp workspace list -g {resource-group}").get_output_in_json() + # assert len(workspace_list_by_rg) > 0 + # workspace = self.cmd("az adp workspace show --name {workspace-name} --resource-group {resource-group}", checks=[ + # self.check('name', '{workspace-name}'), + # self.check('provisioningState', 'Succeeded'), + # self.check('type', 'microsoft.autonomousdevelopmentplatform/workspaces'), + # self.check('location', '{location}'), + # self.check('dataLocation', '{location}'), + # self.check('storageAccountCount', '{storage-account-count}'), + # self.check('storageSku', {'name': self.kwargs['new-storage-account-sku']}) + # ]).get_output_in_json() + # assert workspace['tags'] is not None + # self.cmd("az adp workspace delete --name {workspace-name} --resource-group {resource-group} --yes") + + # @ResourceGroupPreparer(name_prefix="adp_cli", parameter_name_for_location="location") + # def test_workspace_DirectReadAccess(self, resource_group): + # workpace_name = self.create_random_name(prefix='cli', length=40) + # self.kwargs.update({ + # "resource-group": resource_group, + # "workspace-name": workpace_name, + # "location": "westus3", + # "storage-account-count": "1" + # }) + + # self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --storage-account-count {storage-account-count}") + # self.cmd('az adp workspace update --name {workspace-name} --resource-group {resource-group} --set "properties.directReadAccess=Enabled"') + # workspace_list_by_rg = self.cmd("az adp workspace list -g {resource-group}").get_output_in_json() + # assert len(workspace_list_by_rg) > 0 + # workspace = self.cmd("az adp workspace show --name {workspace-name} --resource-group {resource-group}", checks=[ + # self.check('name', '{workspace-name}'), + # self.check('type', 'microsoft.autonomousdevelopmentplatform/workspaces'), + # self.check('location', '{location}'), + # self.check('dataLocation', '{location}'), + # self.check('directReadAccess', 'Enabled'), + # ]).get_output_in_json() + # self.cmd("az adp workspace delete --name {workspace-name} --resource-group {resource-group} --yes") + + + @ResourceGroupPreparer(name_prefix="adp_cli", parameter_name_for_location="location") + def test_workspace_differentDataLocation(self, resource_group): + workpace_name = self.create_random_name(prefix='cli', length=40) + self.kwargs.update({ + "resource-group": resource_group, + "workspace-name": workpace_name, + "location": "westus3", + "data-location": "southcentralus", + "storage-account-count": "1", + "domain-name-label-scope" : "TenantReuse", + }) + + self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --data-location {data-location} --storage-account-count {storage-account-count} --domain-name-label-scope {domain-name-label-scope}") + workspace_list_by_rg = self.cmd("az adp workspace list -g {resource-group}").get_output_in_json() + assert len(workspace_list_by_rg) > 0 + workspace = self.cmd("az adp workspace show --name {workspace-name} --resource-group {resource-group}", checks=[ + self.check('name', '{workspace-name}'), + self.check('provisioningState', 'Succeeded'), + self.check('type', 'microsoft.autonomousdevelopmentplatform/workspaces'), + self.check('location', '{location}'), + self.check('dataLocation', '{data-location}'), + self.check('storageAccountCount', '{storage-account-count}') + ]).get_output_in_json() + self.cmd("az adp workspace delete --name {workspace-name} --resource-group {resource-group} --yes") From e8ceb41a5f76fc65666191d69b9e21088b8e7b84 Mon Sep 17 00:00:00 2001 From: kareemshibli <63514061+kareemshibli@users.noreply.github.com> Date: Mon, 21 Nov 2022 02:37:57 +0200 Subject: [PATCH 08/14] fix --- src/adp/azext_adp/aaz/latest/adp/workspace/_create.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py index e2cb597510a..c5b41905f0f 100644 --- a/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py @@ -65,8 +65,8 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema - _args_schema.domain_name_label_scope = AAZStrArg( - options=["--domain-name-label-scope"], + _args_schema.domain_label_scope = AAZStrArg( + options=["--domain-label-scope"], arg_group="Properties", help="The scope for the FQDN label generation. If not provided, defaults to TenantReuse.", enum={"NoReuse": "NoReuse", "ResourceGroupReuse": "ResourceGroupReuse", "SubscriptionReuse": "SubscriptionReuse", "TenantReuse": "TenantReuse"}, @@ -289,7 +289,7 @@ def content(self): properties = _builder.get(".properties") if properties is not None: - properties.set_prop("autoGeneratedDomainNameLabelScope", AAZStrType, ".domain_name_label_scope") + properties.set_prop("autoGeneratedDomainNameLabelScope", AAZStrType, ".domain_label_scope") properties.set_prop("dataLocation", AAZStrType, ".data_location") properties.set_prop("directReadAccess", AAZStrType, ".direct_read_access") properties.set_prop("encryption", AAZObjectType, ".encryption") From 0d1ffa15f74d896ee75db07d97fe1702e4eeebfc Mon Sep 17 00:00:00 2001 From: kareemshibli <63514061+kareemshibli@users.noreply.github.com> Date: Mon, 21 Nov 2022 03:44:22 +0200 Subject: [PATCH 09/14] fix --- .../aaz/latest/adp/workspace/_create.py | 6 +- .../test_workspace_differentDataLocation.yaml | 260 ++++++++++----- src/adp/azext_adp/tests/latest/test_adp.py | 296 +++++++++--------- src/adp/linter_exclusions.yml | 8 + 4 files changed, 333 insertions(+), 237 deletions(-) create mode 100644 src/adp/linter_exclusions.yml diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py index c5b41905f0f..8bd411238bb 100644 --- a/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py @@ -65,8 +65,8 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema - _args_schema.domain_label_scope = AAZStrArg( - options=["--domain-label-scope"], + _args_schema.auto_generated_domain_name_label_scope = AAZStrArg( + options=["--auto-generated-domain-name-label-scope"], arg_group="Properties", help="The scope for the FQDN label generation. If not provided, defaults to TenantReuse.", enum={"NoReuse": "NoReuse", "ResourceGroupReuse": "ResourceGroupReuse", "SubscriptionReuse": "SubscriptionReuse", "TenantReuse": "TenantReuse"}, @@ -289,7 +289,7 @@ def content(self): properties = _builder.get(".properties") if properties is not None: - properties.set_prop("autoGeneratedDomainNameLabelScope", AAZStrType, ".domain_label_scope") + properties.set_prop("autoGeneratedDomainNameLabelScope", AAZStrType, ".auto_generated_domain_name_label_scope") properties.set_prop("dataLocation", AAZStrType, ".data_location") properties.set_prop("directReadAccess", AAZStrType, ".direct_read_access") properties.set_prop("encryption", AAZObjectType, ".encryption") diff --git a/src/adp/azext_adp/tests/latest/recordings/test_workspace_differentDataLocation.yaml b/src/adp/azext_adp/tests/latest/recordings/test_workspace_differentDataLocation.yaml index a673180aa6d..7ee216e0cae 100644 --- a/src/adp/azext_adp/tests/latest/recordings/test_workspace_differentDataLocation.yaml +++ b/src/adp/azext_adp/tests/latest/recordings/test_workspace_differentDataLocation.yaml @@ -16,19 +16,19 @@ interactions: Content-Type: - application/json ParameterSetName: - - -g --name -l --data-location --storage-account-count --domain-name-label-scope + - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T23:58:08.2574068Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T23:58:08.2574068Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://cli000002-cfhvhzg4fmg6d5dr.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-21T01:26:31.7552854Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-21T01:26:31.7552854Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://cli000002-g4gycheudvdne0c8.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}}' headers: api-supported-versions: - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview cache-control: - no-cache content-length: @@ -36,13 +36,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 20 Nov 2022 23:58:10 GMT + - Mon, 21 Nov 2022 01:26:33 GMT etag: - - '"7e001c83-0000-4d00-0000-637abf110000"' + - '"7e0008b9-0000-4d00-0000-637ad3c80000"' expires: - '-1' mise-correlation-id: - - cbbf3107-6619-4d41-ae6a-ab08d2f89d17 + - 2f6b8116-f394-4e7f-a2e2-79f5b8045aef pragma: - no-cache request-context: @@ -50,7 +50,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains traceresponse: - - 00-09b68dcee8afa69e256b459d7965b92a-a8d503054b906a4f-01 + - 00-49cc956f24757ebfd5c22ad954b1432c-47eaf315578f3387-01 x-content-type-options: - nosniff x-ms-providerhub-traffic: @@ -72,25 +72,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --domain-name-label-scope + - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T23:58:09.13052Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-21T01:26:32.5594845Z"}' headers: cache-control: - no-cache content-length: - - '536' + - '538' content-type: - application/json; charset=utf-8 date: - - Sun, 20 Nov 2022 23:58:39 GMT + - Mon, 21 Nov 2022 01:27:03 GMT etag: - - '"aa0036ff-0000-4d00-0000-637abf110000"' + - '"ab005916-0000-4d00-0000-637ad3c80000"' expires: - '-1' pragma: @@ -118,25 +118,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --domain-name-label-scope + - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T23:58:09.13052Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-21T01:26:32.5594845Z"}' headers: cache-control: - no-cache content-length: - - '536' + - '538' content-type: - application/json; charset=utf-8 date: - - Sun, 20 Nov 2022 23:59:10 GMT + - Mon, 21 Nov 2022 01:27:33 GMT etag: - - '"aa0036ff-0000-4d00-0000-637abf110000"' + - '"ab005916-0000-4d00-0000-637ad3c80000"' expires: - '-1' pragma: @@ -164,25 +164,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --domain-name-label-scope + - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T23:58:09.13052Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-21T01:26:32.5594845Z"}' headers: cache-control: - no-cache content-length: - - '536' + - '538' content-type: - application/json; charset=utf-8 date: - - Sun, 20 Nov 2022 23:59:40 GMT + - Mon, 21 Nov 2022 01:28:04 GMT etag: - - '"aa0036ff-0000-4d00-0000-637abf110000"' + - '"ab005916-0000-4d00-0000-637ad3c80000"' expires: - '-1' pragma: @@ -210,25 +210,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --domain-name-label-scope + - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T23:58:09.13052Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-21T01:26:32.5594845Z"}' headers: cache-control: - no-cache content-length: - - '536' + - '538' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 00:00:11 GMT + - Mon, 21 Nov 2022 01:28:34 GMT etag: - - '"aa0036ff-0000-4d00-0000-637abf110000"' + - '"ab005916-0000-4d00-0000-637ad3c80000"' expires: - '-1' pragma: @@ -256,25 +256,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --domain-name-label-scope + - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T23:58:09.13052Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-21T01:26:32.5594845Z"}' headers: cache-control: - no-cache content-length: - - '536' + - '538' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 00:00:41 GMT + - Mon, 21 Nov 2022 01:29:04 GMT etag: - - '"aa0036ff-0000-4d00-0000-637abf110000"' + - '"ab005916-0000-4d00-0000-637ad3c80000"' expires: - '-1' pragma: @@ -302,25 +302,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --domain-name-label-scope + - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-20T23:58:09.13052Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-21T01:26:32.5594845Z"}' headers: cache-control: - no-cache content-length: - - '536' + - '538' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 00:01:11 GMT + - Mon, 21 Nov 2022 01:29:34 GMT etag: - - '"aa0036ff-0000-4d00-0000-637abf110000"' + - '"ab005916-0000-4d00-0000-637ad3c80000"' expires: - '-1' pragma: @@ -348,25 +348,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --domain-name-label-scope + - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"aab3e316-6084-4805-aa73-293e13c4f99c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-20T23:58:09.13052Z","endTime":"2022-11-21T00:01:41.3282211Z","properties":null}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-21T01:26:32.5594845Z"}' headers: cache-control: - no-cache content-length: - - '596' + - '538' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 00:01:42 GMT + - Mon, 21 Nov 2022 01:30:05 GMT etag: - - '"ab001f00-0000-4d00-0000-637abfe50000"' + - '"ab005916-0000-4d00-0000-637ad3c80000"' expires: - '-1' pragma: @@ -394,14 +394,60 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --domain-name-label-scope + - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-21T01:26:32.5594845Z","endTime":"2022-11-21T01:30:19.8532109Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '598' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 21 Nov 2022 01:30:35 GMT + etag: + - '"ab008317-0000-4d00-0000-637ad4ab0000"' + 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-Encoding: + - gzip, deflate + CommandName: + - adp workspace create + Connection: + - keep-alive + ParameterSetName: + - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T23:58:08.2574068Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T23:58:08.2574068Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-cfhvhzg4fmg6d5dr.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-21T01:26:31.7552854Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-21T01:26:31.7552854Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-g4gycheudvdne0c8.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' headers: cache-control: - no-cache @@ -410,9 +456,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 00:01:42 GMT + - Mon, 21 Nov 2022 01:30:35 GMT etag: - - '"7e008584-0000-4d00-0000-637abfe50000"' + - '"7e0010bd-0000-4d00-0000-637ad4ab0000"' expires: - '-1' pragma: @@ -449,7 +495,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces?api-version=2022-09-01-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T23:58:08.2574068Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T23:58:08.2574068Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-cfhvhzg4fmg6d5dr.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-21T01:26:31.7552854Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-21T01:26:31.7552854Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-g4gycheudvdne0c8.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}]}' headers: cache-control: - no-cache @@ -458,7 +504,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 00:01:44 GMT + - Mon, 21 Nov 2022 01:30:38 GMT expires: - '-1' pragma: @@ -470,8 +516,8 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 7f9862c0-ffe9-4829-a88d-0621eae66cfb - - 25f6fc4a-c2e2-4cd0-a88a-8073f8882f8c + - 10007746-9ded-44e8-9264-a21794c17162 + - 645ad141-f2a6-45ff-bcf2-6cd49e848c99 status: code: 200 message: OK @@ -494,7 +540,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-20T23:58:08.2574068Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-20T23:58:08.2574068Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-cfhvhzg4fmg6d5dr.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-21T01:26:31.7552854Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-21T01:26:31.7552854Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-g4gycheudvdne0c8.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' headers: cache-control: - no-cache @@ -503,9 +549,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 00:01:48 GMT + - Mon, 21 Nov 2022 01:30:42 GMT etag: - - '"7e008584-0000-4d00-0000-637abfe50000"' + - '"7e0010bd-0000-4d00-0000-637ad4ab0000"' expires: - '-1' pragma: @@ -549,7 +595,7 @@ interactions: api-supported-versions: - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview cache-control: - no-cache content-length: @@ -557,15 +603,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 00:01:52 GMT + - Mon, 21 Nov 2022 01:30:46 GMT etag: - - '"7e009d84-0000-4d00-0000-637abff10000"' + - '"7e0025bd-0000-4d00-0000-637ad4c60000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview mise-correlation-id: - - 8153a26b-35e3-4e48-8e74-ff78ed108991 + - b4f4f4a7-afb0-43f7-8fe9-463c5765c46e pragma: - no-cache request-context: @@ -573,7 +619,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains traceresponse: - - 00-de067c702fbe2e74390bb329dbc92932-255e269efcee3542-01 + - 00-a77ef3c44b12946350bf50325e42bbc5-537f08a647466bd2-01 x-content-type-options: - nosniff x-ms-providerhub-traffic: @@ -599,10 +645,52 @@ interactions: User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T01:30:46.6495993Z"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 21 Nov 2022 01:31:16 GMT + etag: + - '"ab00a417-0000-4d00-0000-637ad4c60000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - adp workspace delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --yes + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T00:01:53.0123026Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T01:30:46.6495993Z"}' headers: cache-control: - no-cache @@ -611,9 +699,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 00:02:23 GMT + - Mon, 21 Nov 2022 01:31:47 GMT etag: - - '"ab002b00-0000-4d00-0000-637abff10000"' + - '"ab00a417-0000-4d00-0000-637ad4c60000"' expires: - '-1' pragma: @@ -641,10 +729,10 @@ interactions: User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T00:01:53.0123026Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T01:30:46.6495993Z"}' headers: cache-control: - no-cache @@ -653,9 +741,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 00:02:53 GMT + - Mon, 21 Nov 2022 01:32:17 GMT etag: - - '"ab002b00-0000-4d00-0000-637abff10000"' + - '"ab00a417-0000-4d00-0000-637ad4c60000"' expires: - '-1' pragma: @@ -683,10 +771,10 @@ interactions: User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T00:01:53.0123026Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T01:30:46.6495993Z"}' headers: cache-control: - no-cache @@ -695,9 +783,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 00:03:23 GMT + - Mon, 21 Nov 2022 01:32:47 GMT etag: - - '"ab002b00-0000-4d00-0000-637abff10000"' + - '"ab00a417-0000-4d00-0000-637ad4c60000"' expires: - '-1' pragma: @@ -725,10 +813,10 @@ interactions: User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T00:01:53.0123026Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T01:30:46.6495993Z"}' headers: cache-control: - no-cache @@ -737,9 +825,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 00:03:53 GMT + - Mon, 21 Nov 2022 01:33:18 GMT etag: - - '"ab002b00-0000-4d00-0000-637abff10000"' + - '"ab00a417-0000-4d00-0000-637ad4c60000"' expires: - '-1' pragma: @@ -767,10 +855,10 @@ interactions: User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","name":"c2a47f41-b6c5-48c3-89c0-b7c70adbbc7c*7651FBAE2254313D54A367F48DBEA0FCE8C55801D1D27AB8FB3EB570B34A97B0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-21T00:01:53.0123026Z","properties":null}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-21T01:30:46.6495993Z","properties":null}' headers: cache-control: - no-cache @@ -779,9 +867,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 00:04:24 GMT + - Mon, 21 Nov 2022 01:33:48 GMT etag: - - '"00001019-0000-0600-0000-637ac0760000"' + - '"0000cc8c-0000-0500-0000-637ad5790000"' expires: - '-1' pragma: diff --git a/src/adp/azext_adp/tests/latest/test_adp.py b/src/adp/azext_adp/tests/latest/test_adp.py index 0b15bc85d3d..4f62b5f0a74 100644 --- a/src/adp/azext_adp/tests/latest/test_adp.py +++ b/src/adp/azext_adp/tests/latest/test_adp.py @@ -10,153 +10,153 @@ class AdpScenario(ScenarioTest): - # def test_workpaces(self): - # workspaces = self.cmd("az adp workspace list").get_output_in_json() - # assert len(workspaces) > 0 - # workspace = workspaces[0] - # assert workspace['id'] is not None - # assert workspace['name'] is not None - # assert workspace['location'] is not None - # assert workspace['type'] == "microsoft.autonomousdevelopmentplatform/workspaces" - # assert workspace['endpoint'] is not None - # assert workspace['autoGeneratedDomainNameLabelScope'] is not None - # assert workspace['dataCatalog'] is not None - # assert workspace['dataLocation'] is not None - # assert workspace['storageAccountCount'] is not None - # assert workspace['storageSku'] is not None - - - # @ResourceGroupPreparer(name_prefix="adp_cli", parameter_name_for_location="location") - # @KeyVaultPreparer(additional_params='--enable-purge-protection --enable-rbac-authorization ', location='westus3') - # def test_workspace_encryption(self, resource_group, key_vault): - # workpace_name = self.create_random_name(prefix='cli', length=40) - # self.kwargs.update({ - # "resource-group": resource_group, - # "workspace-name": workpace_name, - # "location": "westus3", - # "storage-account-count": "1", - # 'key_vault': key_vault, - # 'key_name': self.create_random_name('testkey', 20), - # 'identity_name': self.create_random_name('testidentity', 20), - # 'identity_permissions': "Key Vault Crypto Service Encryption User", - # 'role' : "Managed Identity Operator", - # 'adp_rp_identity' : "dad37da6-229d-4bc0-8b94-fee8600589db", - # }) - - # # create a user-assigned identity and give it access to the key - # result = self.cmd('az identity create --name {identity_name} -g {resource-group}') - # self.kwargs['principal_id'] = result.get_output_in_json()['principalId'] - # self.kwargs['identity_id'] = result.get_output_in_json()['id'] - # self.kwargs['client_id'] = result.get_output_in_json()['clientId'] - - # # assign 'Managed Identity Operator' role to ADP's RP identity on MI scope - # with mock.patch('azure.cli.command_modules.role.custom._gen_guid', side_effect=self.create_guid): - # self.cmd('az role assignment create --assignee {adp_rp_identity} --role "{role}" --scope {identity_id}') - - # result = self.cmd('az keyvault show -g {resource-group} -n {key_vault}') - # self.kwargs['kv_id'] = result.get_output_in_json()['id'] - # # create a new key - # result = self.cmd('az keyvault key create --name {key_name} --vault-name {key_vault}') - # self.kwargs['key_id'] = result.get_output_in_json()['key']['kid'] - - # with mock.patch('azure.cli.command_modules.role.custom._gen_guid', side_effect=self.create_guid): - # self.cmd("az role assignment create --assignee-object-id {principal_id} --role e147488a-f6f5-4113-8e2d-b22465e65bf6 --scope {kv_id}") - - # self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --storage-account-count {storage-account-count} --encryption key-encryption-key-url={key_id} user-assigned-identity-resource-id={identity_id}") - # workspace_list_by_rg = self.cmd("az adp workspace list -g {resource-group}").get_output_in_json() - # assert len(workspace_list_by_rg) > 0 - # workspace = self.cmd("az adp workspace show --name {workspace-name} --resource-group {resource-group}", checks=[ - # self.check('name', '{workspace-name}'), - # self.check('provisioningState', 'Succeeded'), - # self.check('type', 'microsoft.autonomousdevelopmentplatform/workspaces'), - # self.check('location', '{location}'), - # self.check('storageAccountCount', '{storage-account-count}'), - # self.check('encryption.keyEncryptionKeyUrl', '{key_id}'), - # self.check('encryption.userAssignedIdentityResourceId', '{identity_id}'), - # ]).get_output_in_json() - # self.cmd("az adp workspace delete --name {workspace-name} --resource-group {resource-group} --yes") - - - # @ResourceGroupPreparer(name_prefix="adp_cli", parameter_name_for_location="location") - # def test_workspace_storageAccountIncrease(self, resource_group): - # workpace_name = self.create_random_name(prefix='cli', length=40) - # self.kwargs.update({ - # "resource-group": resource_group, - # "workspace-name": workpace_name, - # "location": "westus3", - # "storage-account-count": "1", - # "new-storage-account-count": "2", - # "tags": "{tag1:value1,tag2:value2}" - # }) - - # self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --storage-account-count {storage-account-count}") - # self.cmd('az adp workspace update --name {workspace-name} --resource-group {resource-group} --tags {tags} --set "properties.storageAccountCount={new-storage-account-count}"') - # workspace_list = self.cmd("az adp workspace list").get_output_in_json() - # assert len(workspace_list) > 0 - # workspace_list_by_rg = self.cmd("az adp workspace list -g {resource-group}").get_output_in_json() - # assert len(workspace_list_by_rg) > 0 - # workspace = self.cmd("az adp workspace show --name {workspace-name} --resource-group {resource-group}", checks=[ - # self.check('name', '{workspace-name}'), - # self.check('provisioningState', 'Succeeded'), - # self.check('type', 'microsoft.autonomousdevelopmentplatform/workspaces'), - # self.check('location', '{location}'), - # self.check('dataLocation', '{location}'), - # self.check('storageAccountCount', '{new-storage-account-count}') - # ]).get_output_in_json() - # assert workspace['tags'] is not None - # self.cmd("az adp workspace delete --name {workspace-name} --resource-group {resource-group} --yes") - - # @ResourceGroupPreparer(name_prefix="adp_cli", parameter_name_for_location="location") - # def test_workspace_storageAccountSkuUpgrade(self, resource_group): - # workpace_name = self.create_random_name(prefix='cli', length=40) - # self.kwargs.update({ - # "resource-group": resource_group, - # "workspace-name": workpace_name, - # "location": "westus3", - # "storage-account-count": "1", - # "storage-account-sku": "Standard_LRS", - # "new-storage-account-sku": "Standard_GRS", - # "tags": "{tag1:value1,tag2:value2}" - # }) - - # self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --storage-account-count {storage-account-count} --storage-sku name={storage-account-sku}") - # self.cmd('az adp workspace update --name {workspace-name} --resource-group {resource-group} --tags {tags} --set "properties.storageSku.name={new-storage-account-sku}"') - # workspace_list_by_rg = self.cmd("az adp workspace list -g {resource-group}").get_output_in_json() - # assert len(workspace_list_by_rg) > 0 - # workspace = self.cmd("az adp workspace show --name {workspace-name} --resource-group {resource-group}", checks=[ - # self.check('name', '{workspace-name}'), - # self.check('provisioningState', 'Succeeded'), - # self.check('type', 'microsoft.autonomousdevelopmentplatform/workspaces'), - # self.check('location', '{location}'), - # self.check('dataLocation', '{location}'), - # self.check('storageAccountCount', '{storage-account-count}'), - # self.check('storageSku', {'name': self.kwargs['new-storage-account-sku']}) - # ]).get_output_in_json() - # assert workspace['tags'] is not None - # self.cmd("az adp workspace delete --name {workspace-name} --resource-group {resource-group} --yes") - - # @ResourceGroupPreparer(name_prefix="adp_cli", parameter_name_for_location="location") - # def test_workspace_DirectReadAccess(self, resource_group): - # workpace_name = self.create_random_name(prefix='cli', length=40) - # self.kwargs.update({ - # "resource-group": resource_group, - # "workspace-name": workpace_name, - # "location": "westus3", - # "storage-account-count": "1" - # }) - - # self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --storage-account-count {storage-account-count}") - # self.cmd('az adp workspace update --name {workspace-name} --resource-group {resource-group} --set "properties.directReadAccess=Enabled"') - # workspace_list_by_rg = self.cmd("az adp workspace list -g {resource-group}").get_output_in_json() - # assert len(workspace_list_by_rg) > 0 - # workspace = self.cmd("az adp workspace show --name {workspace-name} --resource-group {resource-group}", checks=[ - # self.check('name', '{workspace-name}'), - # self.check('type', 'microsoft.autonomousdevelopmentplatform/workspaces'), - # self.check('location', '{location}'), - # self.check('dataLocation', '{location}'), - # self.check('directReadAccess', 'Enabled'), - # ]).get_output_in_json() - # self.cmd("az adp workspace delete --name {workspace-name} --resource-group {resource-group} --yes") + def test_workpaces(self): + workspaces = self.cmd("az adp workspace list").get_output_in_json() + assert len(workspaces) > 0 + workspace = workspaces[0] + assert workspace['id'] is not None + assert workspace['name'] is not None + assert workspace['location'] is not None + assert workspace['type'] == "microsoft.autonomousdevelopmentplatform/workspaces" + assert workspace['endpoint'] is not None + assert workspace['autoGeneratedDomainNameLabelScope'] is not None + assert workspace['dataCatalog'] is not None + assert workspace['dataLocation'] is not None + assert workspace['storageAccountCount'] is not None + assert workspace['storageSku'] is not None + + + @ResourceGroupPreparer(name_prefix="adp_cli", parameter_name_for_location="location") + @KeyVaultPreparer(additional_params='--enable-purge-protection --enable-rbac-authorization ', location='westus3') + def test_workspace_encryption(self, resource_group, key_vault): + workpace_name = self.create_random_name(prefix='cli', length=40) + self.kwargs.update({ + "resource-group": resource_group, + "workspace-name": workpace_name, + "location": "westus3", + "storage-account-count": "1", + 'key_vault': key_vault, + 'key_name': self.create_random_name('testkey', 20), + 'identity_name': self.create_random_name('testidentity', 20), + 'identity_permissions': "Key Vault Crypto Service Encryption User", + 'role' : "Managed Identity Operator", + 'adp_rp_identity' : "dad37da6-229d-4bc0-8b94-fee8600589db", + }) + + # create a user-assigned identity and give it access to the key + result = self.cmd('az identity create --name {identity_name} -g {resource-group}') + self.kwargs['principal_id'] = result.get_output_in_json()['principalId'] + self.kwargs['identity_id'] = result.get_output_in_json()['id'] + self.kwargs['client_id'] = result.get_output_in_json()['clientId'] + + # assign 'Managed Identity Operator' role to ADP's RP identity on MI scope + with mock.patch('azure.cli.command_modules.role.custom._gen_guid', side_effect=self.create_guid): + self.cmd('az role assignment create --assignee {adp_rp_identity} --role "{role}" --scope {identity_id}') + + result = self.cmd('az keyvault show -g {resource-group} -n {key_vault}') + self.kwargs['kv_id'] = result.get_output_in_json()['id'] + # create a new key + result = self.cmd('az keyvault key create --name {key_name} --vault-name {key_vault}') + self.kwargs['key_id'] = result.get_output_in_json()['key']['kid'] + + with mock.patch('azure.cli.command_modules.role.custom._gen_guid', side_effect=self.create_guid): + self.cmd("az role assignment create --assignee-object-id {principal_id} --role e147488a-f6f5-4113-8e2d-b22465e65bf6 --scope {kv_id}") + + self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --storage-account-count {storage-account-count} --encryption key-encryption-key-url={key_id} user-assigned-identity-resource-id={identity_id}") + workspace_list_by_rg = self.cmd("az adp workspace list -g {resource-group}").get_output_in_json() + assert len(workspace_list_by_rg) > 0 + workspace = self.cmd("az adp workspace show --name {workspace-name} --resource-group {resource-group}", checks=[ + self.check('name', '{workspace-name}'), + self.check('provisioningState', 'Succeeded'), + self.check('type', 'microsoft.autonomousdevelopmentplatform/workspaces'), + self.check('location', '{location}'), + self.check('storageAccountCount', '{storage-account-count}'), + self.check('encryption.keyEncryptionKeyUrl', '{key_id}'), + self.check('encryption.userAssignedIdentityResourceId', '{identity_id}'), + ]).get_output_in_json() + self.cmd("az adp workspace delete --name {workspace-name} --resource-group {resource-group} --yes") + + + @ResourceGroupPreparer(name_prefix="adp_cli", parameter_name_for_location="location") + def test_workspace_storageAccountIncrease(self, resource_group): + workpace_name = self.create_random_name(prefix='cli', length=40) + self.kwargs.update({ + "resource-group": resource_group, + "workspace-name": workpace_name, + "location": "westus3", + "storage-account-count": "1", + "new-storage-account-count": "2", + "tags": "{tag1:value1,tag2:value2}" + }) + + self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --storage-account-count {storage-account-count}") + self.cmd('az adp workspace update --name {workspace-name} --resource-group {resource-group} --tags {tags} --set "properties.storageAccountCount={new-storage-account-count}"') + workspace_list = self.cmd("az adp workspace list").get_output_in_json() + assert len(workspace_list) > 0 + workspace_list_by_rg = self.cmd("az adp workspace list -g {resource-group}").get_output_in_json() + assert len(workspace_list_by_rg) > 0 + workspace = self.cmd("az adp workspace show --name {workspace-name} --resource-group {resource-group}", checks=[ + self.check('name', '{workspace-name}'), + self.check('provisioningState', 'Succeeded'), + self.check('type', 'microsoft.autonomousdevelopmentplatform/workspaces'), + self.check('location', '{location}'), + self.check('dataLocation', '{location}'), + self.check('storageAccountCount', '{new-storage-account-count}') + ]).get_output_in_json() + assert workspace['tags'] is not None + self.cmd("az adp workspace delete --name {workspace-name} --resource-group {resource-group} --yes") + + @ResourceGroupPreparer(name_prefix="adp_cli", parameter_name_for_location="location") + def test_workspace_storageAccountSkuUpgrade(self, resource_group): + workpace_name = self.create_random_name(prefix='cli', length=40) + self.kwargs.update({ + "resource-group": resource_group, + "workspace-name": workpace_name, + "location": "westus3", + "storage-account-count": "1", + "storage-account-sku": "Standard_LRS", + "new-storage-account-sku": "Standard_GRS", + "tags": "{tag1:value1,tag2:value2}" + }) + + self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --storage-account-count {storage-account-count} --storage-sku name={storage-account-sku}") + self.cmd('az adp workspace update --name {workspace-name} --resource-group {resource-group} --tags {tags} --set "properties.storageSku.name={new-storage-account-sku}"') + workspace_list_by_rg = self.cmd("az adp workspace list -g {resource-group}").get_output_in_json() + assert len(workspace_list_by_rg) > 0 + workspace = self.cmd("az adp workspace show --name {workspace-name} --resource-group {resource-group}", checks=[ + self.check('name', '{workspace-name}'), + self.check('provisioningState', 'Succeeded'), + self.check('type', 'microsoft.autonomousdevelopmentplatform/workspaces'), + self.check('location', '{location}'), + self.check('dataLocation', '{location}'), + self.check('storageAccountCount', '{storage-account-count}'), + self.check('storageSku', {'name': self.kwargs['new-storage-account-sku']}) + ]).get_output_in_json() + assert workspace['tags'] is not None + self.cmd("az adp workspace delete --name {workspace-name} --resource-group {resource-group} --yes") + + @ResourceGroupPreparer(name_prefix="adp_cli", parameter_name_for_location="location") + def test_workspace_DirectReadAccess(self, resource_group): + workpace_name = self.create_random_name(prefix='cli', length=40) + self.kwargs.update({ + "resource-group": resource_group, + "workspace-name": workpace_name, + "location": "westus3", + "storage-account-count": "1" + }) + + self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --storage-account-count {storage-account-count}") + self.cmd('az adp workspace update --name {workspace-name} --resource-group {resource-group} --set "properties.directReadAccess=Enabled"') + workspace_list_by_rg = self.cmd("az adp workspace list -g {resource-group}").get_output_in_json() + assert len(workspace_list_by_rg) > 0 + workspace = self.cmd("az adp workspace show --name {workspace-name} --resource-group {resource-group}", checks=[ + self.check('name', '{workspace-name}'), + self.check('type', 'microsoft.autonomousdevelopmentplatform/workspaces'), + self.check('location', '{location}'), + self.check('dataLocation', '{location}'), + self.check('directReadAccess', 'Enabled'), + ]).get_output_in_json() + self.cmd("az adp workspace delete --name {workspace-name} --resource-group {resource-group} --yes") @ResourceGroupPreparer(name_prefix="adp_cli", parameter_name_for_location="location") @@ -171,7 +171,7 @@ def test_workspace_differentDataLocation(self, resource_group): "domain-name-label-scope" : "TenantReuse", }) - self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --data-location {data-location} --storage-account-count {storage-account-count} --domain-name-label-scope {domain-name-label-scope}") + self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --data-location {data-location} --storage-account-count {storage-account-count} --auto-generated-domain-name-label-scope {domain-name-label-scope}") workspace_list_by_rg = self.cmd("az adp workspace list -g {resource-group}").get_output_in_json() assert len(workspace_list_by_rg) > 0 workspace = self.cmd("az adp workspace show --name {workspace-name} --resource-group {resource-group}", checks=[ diff --git a/src/adp/linter_exclusions.yml b/src/adp/linter_exclusions.yml new file mode 100644 index 00000000000..baef7012370 --- /dev/null +++ b/src/adp/linter_exclusions.yml @@ -0,0 +1,8 @@ +adp workspace create: + parameters: + auto_generated_domain_name_label_scope: + rule_exclusions: + - option_length_too_long + domain_name_label_scope: + rule_exclusions: + - option_length_too_long \ No newline at end of file From 8156701a37c288f7da7595014ab83a73f617fff0 Mon Sep 17 00:00:00 2001 From: kareemshibli <63514061+kareemshibli@users.noreply.github.com> Date: Mon, 21 Nov 2022 03:49:47 +0200 Subject: [PATCH 10/14] Merge branch 'feature-adp' of https://github.com/kareemshibli/azure-cli-extensions into feature-adp --- src/adp/loa1.pdf | Bin 0 -> 73 bytes src/adp/recoveryconfig_hana_archive.json | 1 + src/adp/recoveryconfig_hana_restore.json | 1 + src/adp/recoveryconfig_sql_archive.json | 1 + src/adp/recoveryconfig_sql_crr.json | 1 + src/adp/recoveryconfig_sql_raf.json | 1 + src/adp/recoveryconfig_sql_restore.json | 1 + src/adp/testcert-chain.pem | 35 +++++++++++++++++++++++ src/adp/testcert.cer | 17 +++++++++++ src/adp/testkey.pvk | 27 +++++++++++++++++ 10 files changed, 85 insertions(+) create mode 100644 src/adp/loa1.pdf create mode 100644 src/adp/recoveryconfig_hana_archive.json create mode 100644 src/adp/recoveryconfig_hana_restore.json create mode 100644 src/adp/recoveryconfig_sql_archive.json create mode 100644 src/adp/recoveryconfig_sql_crr.json create mode 100644 src/adp/recoveryconfig_sql_raf.json create mode 100644 src/adp/recoveryconfig_sql_restore.json create mode 100644 src/adp/testcert-chain.pem create mode 100644 src/adp/testcert.cer create mode 100644 src/adp/testkey.pvk diff --git a/src/adp/loa1.pdf b/src/adp/loa1.pdf new file mode 100644 index 0000000000000000000000000000000000000000..4e5df79d8982429672d64ff342c283b0aa08aa5f GIT binary patch literal 73 zcmWGaELTXXEJ-a^$WK#9R0wc!Q%KIwD@n~OQ7B3+$Vp62O##X)xK Date: Mon, 21 Nov 2022 03:51:47 +0200 Subject: [PATCH 11/14] fix --- src/adp/loa1.pdf | Bin 73 -> 0 bytes src/adp/recoveryconfig_hana_archive.json | 1 - src/adp/recoveryconfig_hana_restore.json | 1 - src/adp/recoveryconfig_sql_archive.json | 1 - src/adp/recoveryconfig_sql_crr.json | 1 - src/adp/recoveryconfig_sql_raf.json | 1 - src/adp/recoveryconfig_sql_restore.json | 1 - src/adp/testcert-chain.pem | 35 ----------------------- src/adp/testcert.cer | 17 ----------- src/adp/testkey.pvk | 27 ----------------- 10 files changed, 85 deletions(-) delete mode 100644 src/adp/loa1.pdf delete mode 100644 src/adp/recoveryconfig_hana_archive.json delete mode 100644 src/adp/recoveryconfig_hana_restore.json delete mode 100644 src/adp/recoveryconfig_sql_archive.json delete mode 100644 src/adp/recoveryconfig_sql_crr.json delete mode 100644 src/adp/recoveryconfig_sql_raf.json delete mode 100644 src/adp/recoveryconfig_sql_restore.json delete mode 100644 src/adp/testcert-chain.pem delete mode 100644 src/adp/testcert.cer delete mode 100644 src/adp/testkey.pvk diff --git a/src/adp/loa1.pdf b/src/adp/loa1.pdf deleted file mode 100644 index 4e5df79d8982429672d64ff342c283b0aa08aa5f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 73 zcmWGaELTXXEJ-a^$WK#9R0wc!Q%KIwD@n~OQ7B3+$Vp62O##X)xK Date: Wed, 23 Nov 2022 17:06:10 +0200 Subject: [PATCH 12/14] add name alias for long parameter --- .../aaz/latest/adp/workspace/_create.py | 6 +- .../test_workspace_differentDataLocation.yaml | 176 +++++++++--------- src/adp/azext_adp/tests/latest/test_adp.py | 2 +- src/adp/linter_exclusions.yml | 8 - 4 files changed, 92 insertions(+), 100 deletions(-) delete mode 100644 src/adp/linter_exclusions.yml diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py index 8bd411238bb..7f9e82855ea 100644 --- a/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py @@ -65,8 +65,8 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema - _args_schema.auto_generated_domain_name_label_scope = AAZStrArg( - options=["--auto-generated-domain-name-label-scope"], + _args_schema.domain_name_scope = AAZStrArg( + options=["--domain-name-scope"], arg_group="Properties", help="The scope for the FQDN label generation. If not provided, defaults to TenantReuse.", enum={"NoReuse": "NoReuse", "ResourceGroupReuse": "ResourceGroupReuse", "SubscriptionReuse": "SubscriptionReuse", "TenantReuse": "TenantReuse"}, @@ -289,7 +289,7 @@ def content(self): properties = _builder.get(".properties") if properties is not None: - properties.set_prop("autoGeneratedDomainNameLabelScope", AAZStrType, ".auto_generated_domain_name_label_scope") + properties.set_prop("autoGeneratedDomainNameLabelScope", AAZStrType, ".domain_name_scope") properties.set_prop("dataLocation", AAZStrType, ".data_location") properties.set_prop("directReadAccess", AAZStrType, ".direct_read_access") properties.set_prop("encryption", AAZObjectType, ".encryption") diff --git a/src/adp/azext_adp/tests/latest/recordings/test_workspace_differentDataLocation.yaml b/src/adp/azext_adp/tests/latest/recordings/test_workspace_differentDataLocation.yaml index 7ee216e0cae..e8cd06acdd5 100644 --- a/src/adp/azext_adp/tests/latest/recordings/test_workspace_differentDataLocation.yaml +++ b/src/adp/azext_adp/tests/latest/recordings/test_workspace_differentDataLocation.yaml @@ -16,19 +16,19 @@ interactions: Content-Type: - application/json ParameterSetName: - - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope + - -g --name -l --data-location --storage-account-count --domain-name-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-21T01:26:31.7552854Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-21T01:26:31.7552854Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://cli000002-g4gycheudvdne0c8.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-23T14:41:40.7008457Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T14:41:40.7008457Z"},"properties":{"provisioningState":"Accepted","endpoint":"https://cli000002-gbdkc2a5gwe5hvec.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","sourceResourceId":null,"storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[],"dataExplorer":null},"resim":{"state":"Disabled"},"batchAccounts":[],"encryption":null}}' headers: api-supported-versions: - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview cache-control: - no-cache content-length: @@ -36,13 +36,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:26:33 GMT + - Wed, 23 Nov 2022 14:41:43 GMT etag: - - '"7e0008b9-0000-4d00-0000-637ad3c80000"' + - '"8800f447-0000-4d00-0000-637e31260000"' expires: - '-1' mise-correlation-id: - - 2f6b8116-f394-4e7f-a2e2-79f5b8045aef + - 9aed62ca-3207-47d3-89b7-db312fbcbf9e pragma: - no-cache request-context: @@ -50,7 +50,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains traceresponse: - - 00-49cc956f24757ebfd5c22ad954b1432c-47eaf315578f3387-01 + - 00-74c063e1e2b2723b2db3a18402ab157b-47ca11a0d4efde1b-01 x-content-type-options: - nosniff x-ms-providerhub-traffic: @@ -72,14 +72,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope + - -g --name -l --data-location --storage-account-count --domain-name-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-21T01:26:32.5594845Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","name":"dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-23T14:41:42.1508422Z"}' headers: cache-control: - no-cache @@ -88,9 +88,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:27:03 GMT + - Wed, 23 Nov 2022 14:42:14 GMT etag: - - '"ab005916-0000-4d00-0000-637ad3c80000"' + - '"b300325f-0000-4d00-0000-637e31260000"' expires: - '-1' pragma: @@ -118,14 +118,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope + - -g --name -l --data-location --storage-account-count --domain-name-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-21T01:26:32.5594845Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","name":"dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-23T14:41:42.1508422Z"}' headers: cache-control: - no-cache @@ -134,9 +134,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:27:33 GMT + - Wed, 23 Nov 2022 14:42:44 GMT etag: - - '"ab005916-0000-4d00-0000-637ad3c80000"' + - '"b300325f-0000-4d00-0000-637e31260000"' expires: - '-1' pragma: @@ -164,14 +164,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope + - -g --name -l --data-location --storage-account-count --domain-name-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-21T01:26:32.5594845Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","name":"dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-23T14:41:42.1508422Z"}' headers: cache-control: - no-cache @@ -180,9 +180,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:28:04 GMT + - Wed, 23 Nov 2022 14:43:15 GMT etag: - - '"ab005916-0000-4d00-0000-637ad3c80000"' + - '"b300325f-0000-4d00-0000-637e31260000"' expires: - '-1' pragma: @@ -210,14 +210,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope + - -g --name -l --data-location --storage-account-count --domain-name-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-21T01:26:32.5594845Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","name":"dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-23T14:41:42.1508422Z"}' headers: cache-control: - no-cache @@ -226,9 +226,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:28:34 GMT + - Wed, 23 Nov 2022 14:43:45 GMT etag: - - '"ab005916-0000-4d00-0000-637ad3c80000"' + - '"b300325f-0000-4d00-0000-637e31260000"' expires: - '-1' pragma: @@ -256,14 +256,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope + - -g --name -l --data-location --storage-account-count --domain-name-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-21T01:26:32.5594845Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","name":"dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-23T14:41:42.1508422Z"}' headers: cache-control: - no-cache @@ -272,9 +272,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:29:04 GMT + - Wed, 23 Nov 2022 14:44:15 GMT etag: - - '"ab005916-0000-4d00-0000-637ad3c80000"' + - '"b300325f-0000-4d00-0000-637e31260000"' expires: - '-1' pragma: @@ -302,14 +302,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope + - -g --name -l --data-location --storage-account-count --domain-name-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-21T01:26:32.5594845Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","name":"dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-23T14:41:42.1508422Z"}' headers: cache-control: - no-cache @@ -318,9 +318,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:29:34 GMT + - Wed, 23 Nov 2022 14:44:47 GMT etag: - - '"ab005916-0000-4d00-0000-637ad3c80000"' + - '"b300325f-0000-4d00-0000-637e31260000"' expires: - '-1' pragma: @@ -348,14 +348,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope + - -g --name -l --data-location --storage-account-count --domain-name-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-21T01:26:32.5594845Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","name":"dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Accepted","startTime":"2022-11-23T14:41:42.1508422Z"}' headers: cache-control: - no-cache @@ -364,9 +364,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:30:05 GMT + - Wed, 23 Nov 2022 14:45:17 GMT etag: - - '"ab005916-0000-4d00-0000-637ad3c80000"' + - '"b300325f-0000-4d00-0000-637e31260000"' expires: - '-1' pragma: @@ -394,14 +394,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope + - -g --name -l --data-location --storage-account-count --domain-name-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"686a0e71-1c17-4d14-84d4-64d0463542fe*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-21T01:26:32.5594845Z","endTime":"2022-11-21T01:30:19.8532109Z","properties":null}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","name":"dfbfc22f-92dc-4b41-86b7-afead8f3316d*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-23T14:41:42.1508422Z","endTime":"2022-11-23T14:45:25.0853299Z","properties":null}' headers: cache-control: - no-cache @@ -410,9 +410,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:30:35 GMT + - Wed, 23 Nov 2022 14:45:47 GMT etag: - - '"ab008317-0000-4d00-0000-637ad4ab0000"' + - '"b3000c60-0000-4d00-0000-637e32050000"' expires: - '-1' pragma: @@ -440,14 +440,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --name -l --data-location --storage-account-count --auto-generated-domain-name-label-scope + - -g --name -l --data-location --storage-account-count --domain-name-scope User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-21T01:26:31.7552854Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-21T01:26:31.7552854Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-g4gycheudvdne0c8.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-23T14:41:40.7008457Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T14:41:40.7008457Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-gbdkc2a5gwe5hvec.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' headers: cache-control: - no-cache @@ -456,9 +456,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:30:35 GMT + - Wed, 23 Nov 2022 14:45:48 GMT etag: - - '"7e0010bd-0000-4d00-0000-637ad4ab0000"' + - '"88003e4b-0000-4d00-0000-637e32050000"' expires: - '-1' pragma: @@ -495,7 +495,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces?api-version=2022-09-01-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-21T01:26:31.7552854Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-21T01:26:31.7552854Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-g4gycheudvdne0c8.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-23T14:41:40.7008457Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T14:41:40.7008457Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-gbdkc2a5gwe5hvec.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}]}' headers: cache-control: - no-cache @@ -504,7 +504,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:30:38 GMT + - Wed, 23 Nov 2022 14:45:50 GMT expires: - '-1' pragma: @@ -516,8 +516,8 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 10007746-9ded-44e8-9264-a21794c17162 - - 645ad141-f2a6-45ff-bcf2-6cd49e848c99 + - 5a842339-5ff6-4efd-a3f2-9c19b115a30d + - a5c56d15-2129-4e5d-8e15-90432ea46110 status: code: 200 message: OK @@ -540,7 +540,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002?api-version=2022-09-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-21T01:26:31.7552854Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-21T01:26:31.7552854Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-g4gycheudvdne0c8.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","name":"cli000002","type":"microsoft.autonomousdevelopmentplatform/workspaces","location":"westus3","systemData":{"createdBy":"kareemshibli@microsoft.com","createdByType":"User","createdAt":"2022-11-23T14:41:40.7008457Z","lastModifiedBy":"kareemshibli@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T14:41:40.7008457Z"},"properties":{"provisioningState":"Succeeded","endpoint":"https://cli000002-gbdkc2a5gwe5hvec.workspaces.westus3.adp-stage.azure.com/","autoGeneratedDomainNameLabelScope":"TenantReuse","dataLocation":"southcentralus","storageSku":{"name":"Standard_ZRS"},"storageAccountCount":1,"directReadAccess":"Disabled","dataCatalog":{"state":"Disabled","externalWorkspaceIds":[]},"resim":{"state":"Disabled"},"batchAccounts":[]}}' headers: cache-control: - no-cache @@ -549,9 +549,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:30:42 GMT + - Wed, 23 Nov 2022 14:45:52 GMT etag: - - '"7e0010bd-0000-4d00-0000-637ad4ab0000"' + - '"88003e4b-0000-4d00-0000-637e32050000"' expires: - '-1' pragma: @@ -595,7 +595,7 @@ interactions: api-supported-versions: - 2022-02-01-privatepreview, 2022-03-01-preview, 2022-09-01-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview cache-control: - no-cache content-length: @@ -603,15 +603,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:30:46 GMT + - Wed, 23 Nov 2022 14:46:01 GMT etag: - - '"7e0025bd-0000-4d00-0000-637ad4c60000"' + - '"88007b4b-0000-4d00-0000-637e32290000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + - https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview mise-correlation-id: - - b4f4f4a7-afb0-43f7-8fe9-463c5765c46e + - 1b9bf831-2e97-4eb5-9cae-7c652b2f6d6e pragma: - no-cache request-context: @@ -619,7 +619,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains traceresponse: - - 00-a77ef3c44b12946350bf50325e42bbc5-537f08a647466bd2-01 + - 00-9af1fdb6732ddde8f1ef9a3bd6a9e14b-b0ddbd92de9d5c9c-01 x-content-type-options: - nosniff x-ms-providerhub-traffic: @@ -645,10 +645,10 @@ interactions: User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T01:30:46.6495993Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","name":"6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-23T14:46:01.3609296Z"}' headers: cache-control: - no-cache @@ -657,9 +657,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:31:16 GMT + - Wed, 23 Nov 2022 14:46:31 GMT etag: - - '"ab00a417-0000-4d00-0000-637ad4c60000"' + - '"b3003f60-0000-4d00-0000-637e32290000"' expires: - '-1' pragma: @@ -687,10 +687,10 @@ interactions: User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T01:30:46.6495993Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","name":"6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-23T14:46:01.3609296Z"}' headers: cache-control: - no-cache @@ -699,9 +699,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:31:47 GMT + - Wed, 23 Nov 2022 14:47:02 GMT etag: - - '"ab00a417-0000-4d00-0000-637ad4c60000"' + - '"b3003f60-0000-4d00-0000-637e32290000"' expires: - '-1' pragma: @@ -729,10 +729,10 @@ interactions: User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T01:30:46.6495993Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","name":"6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-23T14:46:01.3609296Z"}' headers: cache-control: - no-cache @@ -741,9 +741,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:32:17 GMT + - Wed, 23 Nov 2022 14:47:33 GMT etag: - - '"ab00a417-0000-4d00-0000-637ad4c60000"' + - '"b3003f60-0000-4d00-0000-637e32290000"' expires: - '-1' pragma: @@ -771,10 +771,10 @@ interactions: User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T01:30:46.6495993Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","name":"6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-23T14:46:01.3609296Z"}' headers: cache-control: - no-cache @@ -783,9 +783,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:32:47 GMT + - Wed, 23 Nov 2022 14:48:03 GMT etag: - - '"ab00a417-0000-4d00-0000-637ad4c60000"' + - '"b3003f60-0000-4d00-0000-637e32290000"' expires: - '-1' pragma: @@ -813,10 +813,10 @@ interactions: User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-21T01:30:46.6495993Z"}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","name":"6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Deleting","startTime":"2022-11-23T14:46:01.3609296Z"}' headers: cache-control: - no-cache @@ -825,9 +825,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:33:18 GMT + - Wed, 23 Nov 2022 14:48:33 GMT etag: - - '"ab00a417-0000-4d00-0000-637ad4c60000"' + - '"b3003f60-0000-4d00-0000-637e32290000"' expires: - '-1' pragma: @@ -855,10 +855,10 @@ interactions: User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.10.8 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7?api-version=2022-09-01-preview + uri: https://management.azure.com/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4?api-version=2022-09-01-preview response: body: - string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","name":"9d8e5e27-210f-49e3-aa07-4aa9a2abb40e*4B01E2CCABC27F9B2EA6B7B438804A400ED68DF8F79D81351A338F8681213ED7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-21T01:30:46.6495993Z","properties":null}' + string: '{"id":"/providers/Microsoft.AutonomousDevelopmentPlatform/locations/WESTUS3/operationStatuses/6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","name":"6c78ac95-4aa5-46a4-964b-e0f11404081e*03DE58B2F4A9F7A34408D5AF837532C02C82C2504BDD776FD1294BC804EB43F4","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adp_cli000001/providers/Microsoft.AutonomousDevelopmentPlatform/workspaces/cli000002","status":"Succeeded","startTime":"2022-11-23T14:46:01.3609296Z","properties":null}' headers: cache-control: - no-cache @@ -867,9 +867,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Nov 2022 01:33:48 GMT + - Wed, 23 Nov 2022 14:49:05 GMT etag: - - '"0000cc8c-0000-0500-0000-637ad5790000"' + - '"00008922-0000-0600-0000-637e32d90000"' expires: - '-1' pragma: diff --git a/src/adp/azext_adp/tests/latest/test_adp.py b/src/adp/azext_adp/tests/latest/test_adp.py index 4f62b5f0a74..fa95a5e072c 100644 --- a/src/adp/azext_adp/tests/latest/test_adp.py +++ b/src/adp/azext_adp/tests/latest/test_adp.py @@ -171,7 +171,7 @@ def test_workspace_differentDataLocation(self, resource_group): "domain-name-label-scope" : "TenantReuse", }) - self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --data-location {data-location} --storage-account-count {storage-account-count} --auto-generated-domain-name-label-scope {domain-name-label-scope}") + self.cmd("az adp workspace create -g {resource-group} --name {workspace-name} -l {location} --data-location {data-location} --storage-account-count {storage-account-count} --domain-name-scope {domain-name-label-scope}") workspace_list_by_rg = self.cmd("az adp workspace list -g {resource-group}").get_output_in_json() assert len(workspace_list_by_rg) > 0 workspace = self.cmd("az adp workspace show --name {workspace-name} --resource-group {resource-group}", checks=[ diff --git a/src/adp/linter_exclusions.yml b/src/adp/linter_exclusions.yml deleted file mode 100644 index baef7012370..00000000000 --- a/src/adp/linter_exclusions.yml +++ /dev/null @@ -1,8 +0,0 @@ -adp workspace create: - parameters: - auto_generated_domain_name_label_scope: - rule_exclusions: - - option_length_too_long - domain_name_label_scope: - rule_exclusions: - - option_length_too_long \ No newline at end of file From b552d7f5f4134f1ea88db8062439d2eb8e1341e1 Mon Sep 17 00:00:00 2001 From: kareemshibli <63514061+kareemshibli@users.noreply.github.com> Date: Wed, 30 Nov 2022 16:15:09 +0200 Subject: [PATCH 13/14] change account command group to expermintal --- .../aaz/latest/adp/account/_create.py | 1 + .../aaz/latest/adp/account/_delete.py | 1 + .../azext_adp/aaz/latest/adp/account/_list.py | 1 + .../azext_adp/aaz/latest/adp/account/_show.py | 1 + .../aaz/latest/adp/account/_update.py | 1 + .../latest/adp/account/data_pool/_create.py | 1 + .../latest/adp/account/data_pool/_delete.py | 1 + .../aaz/latest/adp/account/data_pool/_list.py | 1 + .../aaz/latest/adp/account/data_pool/_show.py | 1 + .../latest/adp/account/data_pool/_update.py | 1 + .../aaz/latest/adp/account/data_pool/_wait.py | 219 ++++++++++-------- 11 files changed, 131 insertions(+), 98 deletions(-) diff --git a/src/adp/azext_adp/aaz/latest/adp/account/_create.py b/src/adp/azext_adp/aaz/latest/adp/account/_create.py index 79ed32a3838..4c657321ad2 100644 --- a/src/adp/azext_adp/aaz/latest/adp/account/_create.py +++ b/src/adp/azext_adp/aaz/latest/adp/account/_create.py @@ -13,6 +13,7 @@ @register_command( "adp account create", + is_experimental=True, ) class Create(AAZCommand): """Create an ADP account diff --git a/src/adp/azext_adp/aaz/latest/adp/account/_delete.py b/src/adp/azext_adp/aaz/latest/adp/account/_delete.py index caa6803e788..a15347401d1 100644 --- a/src/adp/azext_adp/aaz/latest/adp/account/_delete.py +++ b/src/adp/azext_adp/aaz/latest/adp/account/_delete.py @@ -13,6 +13,7 @@ @register_command( "adp account delete", + is_experimental=True, confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): diff --git a/src/adp/azext_adp/aaz/latest/adp/account/_list.py b/src/adp/azext_adp/aaz/latest/adp/account/_list.py index bec3ba7aaff..9b3bf22fd3e 100644 --- a/src/adp/azext_adp/aaz/latest/adp/account/_list.py +++ b/src/adp/azext_adp/aaz/latest/adp/account/_list.py @@ -13,6 +13,7 @@ @register_command( "adp account list", + is_experimental=True, ) class List(AAZCommand): """List all ADP accounts available under the subscription diff --git a/src/adp/azext_adp/aaz/latest/adp/account/_show.py b/src/adp/azext_adp/aaz/latest/adp/account/_show.py index 371bc7d8dd0..0032a7b4232 100644 --- a/src/adp/azext_adp/aaz/latest/adp/account/_show.py +++ b/src/adp/azext_adp/aaz/latest/adp/account/_show.py @@ -13,6 +13,7 @@ @register_command( "adp account show", + is_experimental=True, ) class Show(AAZCommand): """Get the properties of an ADP account diff --git a/src/adp/azext_adp/aaz/latest/adp/account/_update.py b/src/adp/azext_adp/aaz/latest/adp/account/_update.py index af910351dbc..8e18f6aab6b 100644 --- a/src/adp/azext_adp/aaz/latest/adp/account/_update.py +++ b/src/adp/azext_adp/aaz/latest/adp/account/_update.py @@ -13,6 +13,7 @@ @register_command( "adp account update", + is_experimental=True, ) class Update(AAZCommand): """Update an ADP account diff --git a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_create.py b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_create.py index 3473343c78a..273ac484f73 100644 --- a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_create.py +++ b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_create.py @@ -13,6 +13,7 @@ @register_command( "adp account data-pool create", + is_experimental=True, ) class Create(AAZCommand): """Create a Data Pool diff --git a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_delete.py b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_delete.py index c1cfa03cd48..7da7f72127c 100644 --- a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_delete.py +++ b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_delete.py @@ -13,6 +13,7 @@ @register_command( "adp account data-pool delete", + is_experimental=True, confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): diff --git a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_list.py b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_list.py index 8ea58dd1f0c..32f76edd16f 100644 --- a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_list.py +++ b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_list.py @@ -13,6 +13,7 @@ @register_command( "adp account data-pool list", + is_experimental=True, ) class List(AAZCommand): """List the data pools under the ADP account diff --git a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_show.py b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_show.py index 4da91364bb4..879f20bb3cc 100644 --- a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_show.py +++ b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_show.py @@ -13,6 +13,7 @@ @register_command( "adp account data-pool show", + is_experimental=True, ) class Show(AAZCommand): """Get the properties of a Data Pool diff --git a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_update.py b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_update.py index 6208c782cd6..a16613e04fd 100644 --- a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_update.py +++ b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_update.py @@ -13,6 +13,7 @@ @register_command( "adp account data-pool update", + is_experimental=True, ) class Update(AAZCommand): """Update a Data Pool diff --git a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_wait.py b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_wait.py index 100306837d5..43172baf1dd 100644 --- a/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_wait.py +++ b/src/adp/azext_adp/aaz/latest/adp/account/data_pool/_wait.py @@ -155,107 +155,130 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() + _build_schema_data_pool_read(cls._schema_on_200) - _schema_on_200 = cls._schema_on_200 - _schema_on_200.id = AAZStrType( - flags={"read_only": True}, - ) - _schema_on_200.name = AAZStrType( - flags={"read_only": True}, - ) - _schema_on_200.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - _schema_on_200.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - _schema_on_200.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = cls._schema_on_200.properties - properties.data_pool_id = AAZStrType( - serialized_name="dataPoolId", - flags={"read_only": True}, - ) - properties.locations = AAZListType( - flags={"required": True}, - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, - ) - properties.tags = AAZDictType() - - locations = cls._schema_on_200.properties.locations - locations.Element = AAZObjectType() - - _element = cls._schema_on_200.properties.locations.Element - _element.encryption = AAZObjectType() - _element.name = AAZStrType( - flags={"required": True}, - ) - _element.storage_account_count = AAZIntType( - serialized_name="storageAccountCount", - ) - _element.storage_sku = AAZObjectType( - serialized_name="storageSku", - nullable=True, - ) - - encryption = cls._schema_on_200.properties.locations.Element.encryption - encryption.key_name = AAZStrType( - serialized_name="keyName", - flags={"required": True}, - ) - encryption.key_vault_uri = AAZStrType( - serialized_name="keyVaultUri", - flags={"required": True}, - ) - encryption.key_version = AAZStrType( - serialized_name="keyVersion", - ) - encryption.user_assigned_identity = AAZStrType( - serialized_name="userAssignedIdentity", - flags={"required": True}, - ) - - storage_sku = cls._schema_on_200.properties.locations.Element.storage_sku - storage_sku.name = AAZStrType( - flags={"required": True}, - ) + return cls._schema_on_200 - tags = cls._schema_on_200.properties.tags - tags.Element = AAZStrType() - system_data = cls._schema_on_200.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - flags={"read_only": True}, - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - flags={"read_only": True}, - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - flags={"read_only": True}, - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - flags={"read_only": True}, - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - flags={"read_only": True}, - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - flags={"read_only": True}, - ) - - return cls._schema_on_200 +_schema_data_pool_read = None + + +def _build_schema_data_pool_read(_schema): + global _schema_data_pool_read + if _schema_data_pool_read is not None: + _schema.id = _schema_data_pool_read.id + _schema.name = _schema_data_pool_read.name + _schema.properties = _schema_data_pool_read.properties + _schema.system_data = _schema_data_pool_read.system_data + _schema.type = _schema_data_pool_read.type + return + + _schema_data_pool_read = AAZObjectType() + + data_pool_read = _schema_data_pool_read + data_pool_read.id = AAZStrType( + flags={"read_only": True}, + ) + data_pool_read.name = AAZStrType( + flags={"read_only": True}, + ) + data_pool_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + data_pool_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + data_pool_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_data_pool_read.properties + properties.data_pool_id = AAZStrType( + serialized_name="dataPoolId", + flags={"read_only": True}, + ) + properties.locations = AAZListType( + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.tags = AAZDictType() + + locations = _schema_data_pool_read.properties.locations + locations.Element = AAZObjectType() + + _element = _schema_data_pool_read.properties.locations.Element + _element.encryption = AAZObjectType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.storage_account_count = AAZIntType( + serialized_name="storageAccountCount", + ) + _element.storage_sku = AAZObjectType( + serialized_name="storageSku", + nullable=True, + ) + + encryption = _schema_data_pool_read.properties.locations.Element.encryption + encryption.key_name = AAZStrType( + serialized_name="keyName", + flags={"required": True}, + ) + encryption.key_vault_uri = AAZStrType( + serialized_name="keyVaultUri", + flags={"required": True}, + ) + encryption.key_version = AAZStrType( + serialized_name="keyVersion", + ) + encryption.user_assigned_identity = AAZStrType( + serialized_name="userAssignedIdentity", + flags={"required": True}, + ) + + storage_sku = _schema_data_pool_read.properties.locations.Element.storage_sku + storage_sku.name = AAZStrType( + flags={"required": True}, + ) + + tags = _schema_data_pool_read.properties.tags + tags.Element = AAZStrType() + + system_data = _schema_data_pool_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + _schema.id = _schema_data_pool_read.id + _schema.name = _schema_data_pool_read.name + _schema.properties = _schema_data_pool_read.properties + _schema.system_data = _schema_data_pool_read.system_data + _schema.type = _schema_data_pool_read.type __all__ = ["Wait"] From d724a53915913c592bcc2842bc0596b8e734932b Mon Sep 17 00:00:00 2001 From: kareemshibli <63514061+kareemshibli@users.noreply.github.com> Date: Wed, 30 Nov 2022 19:40:22 +0200 Subject: [PATCH 14/14] fix --- src/adp/README.md | 39 ++++++++++++++++++- .../aaz/latest/adp/workspace/_create.py | 2 +- 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/src/adp/README.md b/src/adp/README.md index acaef79b02e..e1f924efd64 100644 --- a/src/adp/README.md +++ b/src/adp/README.md @@ -2,4 +2,41 @@ This is an extension to Azure CLI to manage Adp resources. ## How to use ## -Please add commands usage here. \ No newline at end of file + +## manage workspaces ## +Create a workspace with 3 storage accounts with LRS sku. +``` +az adp workspace create \ + --name sample-ws + --location westus3 \ + --storage-account-count 3 \ + --storage-sku name=Standard_LRS \ + --resource-group sample-rg +``` + +delete a workspace. +``` +az adp workspace delete \ + --location westus3 \ + --subscription sample-subscription \ + --resource-group sample-rg \ + --name sample-ws +``` + +list workspaces. +``` +az adp workspace list \ + --subscription sample-subscription \ + --resource-group sample-rg \ +``` + + +update workspace to have 3 storage account +``` +az adp workspace update \ + --location westus3 \ + --subscription sample-subscription \ + --resource-group sample-rg \ + --name sample-ws \ + --set properties.StorageAccountCount=3 +``` \ No newline at end of file diff --git a/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py b/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py index 7f9e82855ea..91393bf2e09 100644 --- a/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py +++ b/src/adp/azext_adp/aaz/latest/adp/workspace/_create.py @@ -18,7 +18,7 @@ class Create(AAZCommand): """Create a Workspace :example: create workspace with 3 storage accounts with LRS sku - az adp workspaces create --subscription sample-subscription --resource-group sample-rg --location westus3 --storage-account-count 3 --storage-sku name=Standard_LRS + az adp workspaces create --name sample-ws --subscription sample-subscription --resource-group sample-rg --location westus3 --storage-account-count 3 --storage-sku name=Standard_LRS :example: create workspace with encryption az adp workspace create --name sample-ws --resource-group sample-rg --location westus3 --encryption key-encryption-key-url=https://contosovault.vault.azure.net/keys/contosokek user-assigned-identity-resource-id=/subscriptions//resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId