From b3007650374acc4aeaebf53fbbb261e92b7645b2 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Thu, 29 Sep 2022 13:26:54 +0800 Subject: [PATCH 01/31] automanage init --- src/automanage/HISTORY.rst | 8 + src/automanage/README.md | 5 + src/automanage/azext_automanage/__init__.py | 42 + src/automanage/azext_automanage/_help.py | 11 + src/automanage/azext_automanage/_params.py | 13 + .../azext_automanage/aaz/__init__.py | 6 + .../azext_automanage/aaz/latest/__init__.py | 6 + .../aaz/latest/automanage/__cmd_group.py | 23 + .../aaz/latest/automanage/__init__.py | 11 + .../automanage/best_practice/__cmd_group.py | 23 + .../automanage/best_practice/__init__.py | 13 + .../latest/automanage/best_practice/_list.py | 162 ++++ .../latest/automanage/best_practice/_show.py | 184 ++++ .../best_practice/version/__cmd_group.py | 23 + .../best_practice/version/__init__.py | 13 + .../automanage/best_practice/version/_list.py | 190 ++++ .../automanage/best_practice/version/_show.py | 193 +++++ .../configuration_profile/__cmd_group.py | 23 + .../configuration_profile/__init__.py | 16 + .../configuration_profile/_create.py | 242 ++++++ .../configuration_profile/_delete.py | 132 +++ .../automanage/configuration_profile/_list.py | 331 +++++++ .../automanage/configuration_profile/_show.py | 203 +++++ .../configuration_profile/_update.py | 380 ++++++++ .../version/__cmd_group.py | 23 + .../configuration_profile/version/__init__.py | 16 + .../configuration_profile/version/_create.py | 252 ++++++ .../configuration_profile/version/_delete.py | 142 +++ .../configuration_profile/version/_list.py | 208 +++++ .../configuration_profile/version/_show.py | 213 +++++ .../configuration_profile/version/_update.py | 394 +++++++++ .../__cmd_group.py | 23 + .../__init__.py | 12 + .../configuration_profile_assignment/_list.py | 813 ++++++++++++++++++ .../arc/__cmd_group.py | 23 + .../arc/__init__.py | 15 + .../arc/_create.py | 250 ++++++ .../arc/_delete.py | 142 +++ .../arc/_show.py | 223 +++++ .../arc/_update.py | 399 +++++++++ .../cluster/__cmd_group.py | 23 + .../cluster/__init__.py | 15 + .../cluster/_create.py | 250 ++++++ .../cluster/_delete.py | 142 +++ .../cluster/_show.py | 223 +++++ .../cluster/_update.py | 399 +++++++++ .../report/__cmd_group.py | 23 + .../report/__init__.py | 15 + .../report/_list_for_arc.py | 330 +++++++ .../report/_list_for_cluster_and_vm.py | 534 ++++++++++++ .../report/_show_for_arc.py | 336 ++++++++ .../report/_show_for_cluster_and_vm.py | 539 ++++++++++++ .../vm/__cmd_group.py | 23 + .../vm/__init__.py | 15 + .../vm/_create.py | 250 ++++++ .../vm/_delete.py | 142 +++ .../vm/_show.py | 223 +++++ .../vm/_update.py | 399 +++++++++ .../service_principal/__cmd_group.py | 23 + .../automanage/service_principal/__init__.py | 13 + .../automanage/service_principal/_list.py | 196 +++++ .../service_principal/_show_default.py | 190 ++++ .../azext_automanage/azext_metadata.json | 4 + src/automanage/azext_automanage/commands.py | 15 + src/automanage/azext_automanage/custom.py | 14 + .../azext_automanage/tests/__init__.py | 6 + .../azext_automanage/tests/latest/__init__.py | 6 + .../tests/latest/test_automanage.py | 13 + src/automanage/setup.cfg | 1 + src/automanage/setup.py | 49 ++ 70 files changed, 9812 insertions(+) create mode 100644 src/automanage/HISTORY.rst create mode 100644 src/automanage/README.md create mode 100644 src/automanage/azext_automanage/__init__.py create mode 100644 src/automanage/azext_automanage/_help.py create mode 100644 src/automanage/azext_automanage/_params.py create mode 100644 src/automanage/azext_automanage/aaz/__init__.py create mode 100644 src/automanage/azext_automanage/aaz/latest/__init__.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/__cmd_group.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/__init__.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/best_practice/__cmd_group.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/best_practice/__init__.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__init__.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/__cmd_group.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/__init__.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__cmd_group.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__init__.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/__cmd_group.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/__init__.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/__cmd_group.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/__init__.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/__cmd_group.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/__init__.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__cmd_group.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__init__.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_arc.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_cluster_and_vm.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_arc.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_cluster_and_vm.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/__cmd_group.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/__init__.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/service_principal/__cmd_group.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/service_principal/__init__.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py create mode 100644 src/automanage/azext_automanage/azext_metadata.json create mode 100644 src/automanage/azext_automanage/commands.py create mode 100644 src/automanage/azext_automanage/custom.py create mode 100644 src/automanage/azext_automanage/tests/__init__.py create mode 100644 src/automanage/azext_automanage/tests/latest/__init__.py create mode 100644 src/automanage/azext_automanage/tests/latest/test_automanage.py create mode 100644 src/automanage/setup.cfg create mode 100644 src/automanage/setup.py diff --git a/src/automanage/HISTORY.rst b/src/automanage/HISTORY.rst new file mode 100644 index 00000000000..8c34bccfff8 --- /dev/null +++ b/src/automanage/HISTORY.rst @@ -0,0 +1,8 @@ +.. :changelog: + +Release History +=============== + +0.1.0 +++++++ +* Initial release. \ No newline at end of file diff --git a/src/automanage/README.md b/src/automanage/README.md new file mode 100644 index 00000000000..94fdb12e4dc --- /dev/null +++ b/src/automanage/README.md @@ -0,0 +1,5 @@ +# Azure CLI Automanage Extension # +This is an extension to Azure CLI to manage Automanage resources. + +## How to use ## +Please add commands usage here. \ No newline at end of file diff --git a/src/automanage/azext_automanage/__init__.py b/src/automanage/azext_automanage/__init__.py new file mode 100644 index 00000000000..9b48da13837 --- /dev/null +++ b/src/automanage/azext_automanage/__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_automanage._help import helps # pylint: disable=unused-import + + +class AutomanageCommandsLoader(AzCommandsLoader): + + def __init__(self, cli_ctx=None): + from azure.cli.core.commands import CliCommandType + custom_command_type = CliCommandType( + operations_tmpl='azext_automanage.custom#{}') + super().__init__(cli_ctx=cli_ctx, + custom_command_type=custom_command_type) + + def load_command_table(self, args): + from azext_automanage.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_automanage._params import load_arguments + load_arguments(self, command) + + +COMMAND_LOADER_CLS = AutomanageCommandsLoader diff --git a/src/automanage/azext_automanage/_help.py b/src/automanage/azext_automanage/_help.py new file mode 100644 index 00000000000..126d5d00714 --- /dev/null +++ b/src/automanage/azext_automanage/_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/automanage/azext_automanage/_params.py b/src/automanage/azext_automanage/_params.py new file mode 100644 index 00000000000..cfcec717c9c --- /dev/null +++ b/src/automanage/azext_automanage/_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/automanage/azext_automanage/aaz/__init__.py b/src/automanage/azext_automanage/aaz/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/automanage/azext_automanage/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/automanage/azext_automanage/aaz/latest/__init__.py b/src/automanage/azext_automanage/aaz/latest/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/automanage/azext_automanage/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/automanage/azext_automanage/aaz/latest/automanage/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/__cmd_group.py new file mode 100644 index 00000000000..d578704b52c --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/__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( + "automanage", +) +class __CMDGroup(AAZCommandGroup): + """Manage Automanage + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/__init__.py b/src/automanage/azext_automanage/aaz/latest/automanage/__init__.py new file mode 100644 index 00000000000..5a9d61963d6 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/__init__.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: skip-file +# flake8: noqa + +from .__cmd_group import * diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/__cmd_group.py new file mode 100644 index 00000000000..3f67f002f5d --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/__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( + "automanage best-practice", +) +class __CMDGroup(AAZCommandGroup): + """Manage Automanage best practice + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/__init__.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/__init__.py new file mode 100644 index 00000000000..2df85698253 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/__init__.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: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._list import * +from ._show import * diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py new file mode 100644 index 00000000000..5ceae7309ac --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py @@ -0,0 +1,162 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage best-practice list", +) +class List(AAZCommand): + """List a list of Automanage best practices + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/providers/microsoft.automanage/bestpractices", "2022-05-04"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + def _execute_operations(self): + self.pre_operations() + self.BestPracticesListByTenant(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + return result + + class BestPracticesListByTenant(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( + "/providers/Microsoft.Automanage/bestPractices", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.type = 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/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py new file mode 100644 index 00000000000..826da4d5d1e --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py @@ -0,0 +1,184 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage best-practice show", +) +class Show(AAZCommand): + """Get information about a Automanage best practice + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/providers/microsoft.automanage/bestpractices/{}", "2022-05-04"], + ] + } + + 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.best_practice_name = AAZStrArg( + options=["--best-practice-name"], + help="The Automanage best practice name.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.BestPracticesGet(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class BestPracticesGet(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( + "/providers/Microsoft.Automanage/bestPractices/{bestPracticeName}", + **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( + "bestPracticeName", self.ctx.args.best_practice_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + 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}, + ) + + return cls._schema_on_200 + + +__all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py new file mode 100644 index 00000000000..903321f1080 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__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( + "automanage best-practice version", +) +class __CMDGroup(AAZCommandGroup): + """Manage Automanage best practice version + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__init__.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__init__.py new file mode 100644 index 00000000000..2df85698253 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__init__.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: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._list import * +from ._show import * diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py new file mode 100644 index 00000000000..6f00420aa47 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py @@ -0,0 +1,190 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage best-practice version list", +) +class List(AAZCommand): + """List a list of Automanage best practices versions + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/providers/microsoft.automanage/bestpractices/{}/versions", "2022-05-04"], + ] + } + + 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.best_practice_name = AAZStrArg( + options=["--best-practice-name"], + help="The Automanage best practice name.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.BestPracticesVersionsListByTenant(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + return result + + class BestPracticesVersionsListByTenant(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( + "/providers/Microsoft.Automanage/bestPractices/{bestPracticeName}/versions", + **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( + "bestPracticeName", self.ctx.args.best_practice_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.type = 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/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py new file mode 100644 index 00000000000..c8861705541 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py @@ -0,0 +1,193 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage best-practice version show", +) +class Show(AAZCommand): + """Get information about a Automanage best practice version + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/providers/microsoft.automanage/bestpractices/{}/versions/{}", "2022-05-04"], + ] + } + + 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.best_practice_name = AAZStrArg( + options=["--best-practice-name"], + help="The Automanage best practice name.", + required=True, + ) + _args_schema.version_name = AAZStrArg( + options=["--version-name"], + help="The Automanage best practice version name.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.BestPracticesVersionsGet(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class BestPracticesVersionsGet(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( + "/providers/Microsoft.Automanage/bestPractices/{bestPracticeName}/versions/{versionName}", + **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( + "bestPracticeName", self.ctx.args.best_practice_name, + required=True, + ), + **self.serialize_url_param( + "versionName", self.ctx.args.version_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + 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}, + ) + + return cls._schema_on_200 + + +__all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/__cmd_group.py new file mode 100644 index 00000000000..f9e2dc5fc77 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/__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( + "automanage configuration-profile", +) +class __CMDGroup(AAZCommandGroup): + """Manage configuration profile + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/__init__.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/__init__.py new file mode 100644 index 00000000000..c401f439385 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/__init__.py @@ -0,0 +1,16 @@ +# -------------------------------------------------------------------------------------------- +# 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 * diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py new file mode 100644 index 00000000000..04542e4dbf5 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py @@ -0,0 +1,242 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile create", +) +class Create(AAZCommand): + """Create a configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automanage/configurationprofiles/{}", "2022-05-04"], + ] + } + + 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.configuration_profile_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-name"], + help="Name of the configuration profile.", + required=True, + id_part="name", + ) + _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", + required=True, + 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): + self.pre_operations() + self.ConfigurationProfilesCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ConfigurationProfilesCreateOrUpdate(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, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}", + **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( + "configurationProfileName", self.ctx.args.configuration_profile_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-05-04", + 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("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.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}, + ) + + 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/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py new file mode 100644 index 00000000000..a0e1c012262 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py @@ -0,0 +1,132 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automanage/configurationprofiles/{}", "2022-05-04"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return 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.configuration_profile_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-name"], + help="Name of the configuration profile", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfilesDelete(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + class ConfigurationProfilesDelete(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) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}", + **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( + "configurationProfileName", self.ctx.args.configuration_profile_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-05-04", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +__all__ = ["Delete"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py new file mode 100644 index 00000000000..244dd9a302a --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py @@ -0,0 +1,331 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile list", +) +class List(AAZCommand): + """List a list of configuration profile within a subscription + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.automanage/configurationprofiles", "2022-05-04"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automanage/configurationprofiles", "2022-05-04"], + ] + } + + 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() + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + 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.ConfigurationProfilesListByResourceGroup(ctx=self.ctx)() + if condition_1: + self.ConfigurationProfilesListBySubscription(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + return result + + class ConfigurationProfilesListByResourceGroup(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.Automanage/configurationProfiles", + **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-05-04", + 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.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.tags = AAZDictType() + _element.type = 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}, + ) + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + class ConfigurationProfilesListBySubscription(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.Automanage/configurationProfiles", + **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-05-04", + 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.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.tags = AAZDictType() + _element.type = 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}, + ) + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["List"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py new file mode 100644 index 00000000000..f92b349ef10 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py @@ -0,0 +1,203 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile show", +) +class Show(AAZCommand): + """Get information about a configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automanage/configurationprofiles/{}", "2022-05-04"], + ] + } + + 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.configuration_profile_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-name"], + help="The configuration profile name.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfilesGet(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ConfigurationProfilesGet(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.Automanage/configurationProfiles/{configurationProfileName}", + **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( + "configurationProfileName", self.ctx.args.configuration_profile_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-05-04", + 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.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + 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/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py new file mode 100644 index 00000000000..a7cb8ecada3 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py @@ -0,0 +1,380 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile update", +) +class Update(AAZCommand): + """Update a configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automanage/configurationprofiles/{}", "2022-05-04"], + ] + } + + AZ_SUPPORT_GENERIC_UPDATE = True + + 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.configuration_profile_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-name"], + help="The configuration profile name.", + required=True, + id_part="name", + ) + _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.pre_operations() + self.ConfigurationProfilesGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.ConfigurationProfilesCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + # @register_callback + def pre_instance_update(self, instance): + pass + + # @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ConfigurationProfilesGet(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.Automanage/configurationProfiles/{configurationProfileName}", + **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( + "configurationProfileName", self.ctx.args.configuration_profile_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-05-04", + 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_configuration_profile_read(cls._schema_on_200) + + return cls._schema_on_200 + + class ConfigurationProfilesCreateOrUpdate(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, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}", + **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( + "configurationProfileName", self.ctx.args.configuration_profile_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-05-04", + 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_configuration_profile_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_configuration_profile_read = None + + +def _build_schema_configuration_profile_read(_schema): + global _schema_configuration_profile_read + if _schema_configuration_profile_read is not None: + _schema.id = _schema_configuration_profile_read.id + _schema.location = _schema_configuration_profile_read.location + _schema.name = _schema_configuration_profile_read.name + _schema.system_data = _schema_configuration_profile_read.system_data + _schema.tags = _schema_configuration_profile_read.tags + _schema.type = _schema_configuration_profile_read.type + return + + _schema_configuration_profile_read = AAZObjectType() + + configuration_profile_read = _schema_configuration_profile_read + configuration_profile_read.id = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_read.location = AAZStrType( + flags={"required": True}, + ) + configuration_profile_read.name = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + configuration_profile_read.tags = AAZDictType() + configuration_profile_read.type = AAZStrType( + flags={"read_only": True}, + ) + + system_data = _schema_configuration_profile_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_configuration_profile_read.tags + tags.Element = AAZStrType() + + _schema.id = _schema_configuration_profile_read.id + _schema.location = _schema_configuration_profile_read.location + _schema.name = _schema_configuration_profile_read.name + _schema.system_data = _schema_configuration_profile_read.system_data + _schema.tags = _schema_configuration_profile_read.tags + _schema.type = _schema_configuration_profile_read.type + + +__all__ = ["Update"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__cmd_group.py new file mode 100644 index 00000000000..19ff961f87e --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__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( + "automanage configuration-profile version", +) +class __CMDGroup(AAZCommandGroup): + """Manage configuration profile version + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__init__.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__init__.py new file mode 100644 index 00000000000..c401f439385 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__init__.py @@ -0,0 +1,16 @@ +# -------------------------------------------------------------------------------------------- +# 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 * diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py new file mode 100644 index 00000000000..7ae58992cf4 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py @@ -0,0 +1,252 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile version create", +) +class Create(AAZCommand): + """Create a configuration profile version + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automanage/configurationprofiles/{}/versions/{}", "2022-05-04"], + ] + } + + 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.configuration_profile_name = AAZStrArg( + options=["--configuration-profile-name"], + help="Name of the configuration profile.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.version_name = AAZStrArg( + options=["-n", "--name", "--version-name"], + help="The configuration profile version name.", + required=True, + id_part="child_name_1", + ) + + # define Arg Group "Parameters" + + _args_schema = cls._args_schema + _args_schema.location = AAZResourceLocationArg( + arg_group="Parameters", + 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="Parameters", + help="Resource tags.", + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg() + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfilesVersionsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ConfigurationProfilesVersionsCreateOrUpdate(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, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}", + **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( + "configurationProfileName", self.ctx.args.configuration_profile_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, + ), + **self.serialize_url_param( + "versionName", self.ctx.args.version_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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("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.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}, + ) + + 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/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py new file mode 100644 index 00000000000..9927694fcce --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py @@ -0,0 +1,142 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile version delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a configuration profile version + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automanage/configurationprofiles/{}/versions/{}", "2022-05-04"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return 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.configuration_profile_name = AAZStrArg( + options=["--configuration-profile-name"], + help="Name of the configuration profile", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.version_name = AAZStrArg( + options=["-n", "--name", "--version-name"], + help="The configuration profile version name.", + required=True, + id_part="child_name_1", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfilesVersionsDelete(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + class ConfigurationProfilesVersionsDelete(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) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}", + **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( + "configurationProfileName", self.ctx.args.configuration_profile_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, + ), + **self.serialize_url_param( + "versionName", self.ctx.args.version_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +__all__ = ["Delete"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py new file mode 100644 index 00000000000..6b19b390ae1 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py @@ -0,0 +1,208 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile version list", +) +class List(AAZCommand): + """List a list of configuration profile version for a configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automanage/configurationprofiles/{}/versions", "2022-05-04"], + ] + } + + 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.configuration_profile_name = AAZStrArg( + options=["--configuration-profile-name"], + help="Name of the configuration profile.", + required=True, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfilesVersionsListChildResources(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + return result + + class ConfigurationProfilesVersionsListChildResources(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.Automanage/configurationProfiles/{configurationProfileName}/versions", + **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( + "configurationProfileName", self.ctx.args.configuration_profile_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-05-04", + 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.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.tags = AAZDictType() + _element.type = 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}, + ) + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["List"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py new file mode 100644 index 00000000000..288524671d5 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py @@ -0,0 +1,213 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile version show", +) +class Show(AAZCommand): + """Get information about a configuration profile version + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automanage/configurationprofiles/{}/versions/{}", "2022-05-04"], + ] + } + + 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.configuration_profile_name = AAZStrArg( + options=["--configuration-profile-name"], + help="The configuration profile name.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.version_name = AAZStrArg( + options=["-n", "--name", "--version-name"], + help="The configuration profile version name.", + required=True, + id_part="child_name_1", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfilesVersionsGet(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ConfigurationProfilesVersionsGet(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.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}", + **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( + "configurationProfileName", self.ctx.args.configuration_profile_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, + ), + **self.serialize_url_param( + "versionName", self.ctx.args.version_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + 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/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py new file mode 100644 index 00000000000..3f934c313e6 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py @@ -0,0 +1,394 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile version update", +) +class Update(AAZCommand): + """Update a configuration profile version + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automanage/configurationprofiles/{}/versions/{}", "2022-05-04"], + ] + } + + AZ_SUPPORT_GENERIC_UPDATE = True + + 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.configuration_profile_name = AAZStrArg( + options=["--configuration-profile-name"], + help="The configuration profile name.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.version_name = AAZStrArg( + options=["-n", "--name", "--version-name"], + help="The configuration profile version name.", + required=True, + id_part="child_name_1", + ) + + # 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.pre_operations() + self.ConfigurationProfilesVersionsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.ConfigurationProfilesVersionsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + # @register_callback + def pre_instance_update(self, instance): + pass + + # @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ConfigurationProfilesVersionsGet(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.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}", + **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( + "configurationProfileName", self.ctx.args.configuration_profile_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, + ), + **self.serialize_url_param( + "versionName", self.ctx.args.version_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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_configuration_profile_read(cls._schema_on_200) + + return cls._schema_on_200 + + class ConfigurationProfilesVersionsCreateOrUpdate(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, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}", + **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( + "configurationProfileName", self.ctx.args.configuration_profile_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, + ), + **self.serialize_url_param( + "versionName", self.ctx.args.version_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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_configuration_profile_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_configuration_profile_read = None + + +def _build_schema_configuration_profile_read(_schema): + global _schema_configuration_profile_read + if _schema_configuration_profile_read is not None: + _schema.id = _schema_configuration_profile_read.id + _schema.location = _schema_configuration_profile_read.location + _schema.name = _schema_configuration_profile_read.name + _schema.system_data = _schema_configuration_profile_read.system_data + _schema.tags = _schema_configuration_profile_read.tags + _schema.type = _schema_configuration_profile_read.type + return + + _schema_configuration_profile_read = AAZObjectType() + + configuration_profile_read = _schema_configuration_profile_read + configuration_profile_read.id = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_read.location = AAZStrType( + flags={"required": True}, + ) + configuration_profile_read.name = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + configuration_profile_read.tags = AAZDictType() + configuration_profile_read.type = AAZStrType( + flags={"read_only": True}, + ) + + system_data = _schema_configuration_profile_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_configuration_profile_read.tags + tags.Element = AAZStrType() + + _schema.id = _schema_configuration_profile_read.id + _schema.location = _schema_configuration_profile_read.location + _schema.name = _schema_configuration_profile_read.name + _schema.system_data = _schema_configuration_profile_read.system_data + _schema.tags = _schema_configuration_profile_read.tags + _schema.type = _schema_configuration_profile_read.type + + +__all__ = ["Update"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/__cmd_group.py new file mode 100644 index 00000000000..c0d69f38103 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/__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( + "automanage configuration-profile-assignment", +) +class __CMDGroup(AAZCommandGroup): + """Manage configuration profile assignment + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/__init__.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/__init__.py new file mode 100644 index 00000000000..d63ae5a6fc9 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/__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 ._list import * diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py new file mode 100644 index 00000000000..57461ae89c6 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py @@ -0,0 +1,813 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment list", +) +class List(AAZCommand): + """List list of configuration profile assignments under a given subscription + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.automanage/configurationprofileassignments", "2022-05-04"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automanage/configurationprofileassignments", "2022-05-04"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurestackhci/clusters/{}/providers/microsoft.automanage/configurationprofileassignments", "2022-05-04"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/providers/microsoft.automanage/configurationprofileassignments", "2022-05-04"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hybridcompute/machines/{}/providers/microsoft.automanage/configurationprofileassignments", "2022-05-04"], + ] + } + + 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.cluster_name = AAZStrArg( + options=["--cluster-name"], + help="The name of the Arc machine.", + ) + _args_schema.machine_name = AAZStrArg( + options=["--machine-name"], + help="The name of the Arc machine.", + ) + _args_schema.resource_group = AAZResourceGroupNameArg() + _args_schema.vm_name = AAZStrArg( + options=["--vm-name"], + help="The name of the virtual machine.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + condition_0 = has_value(self.ctx.args.machine_name) and has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) + condition_1 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) and has_value(self.ctx.args.vm_name) + condition_2 = has_value(self.ctx.args.cluster_name) and has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) + condition_3 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) and has_value(self.ctx.args.cluster_name) is not True and has_value(self.ctx.args.machine_name) is not True and has_value(self.ctx.args.vm_name) is not True + condition_4 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.cluster_name) is not True and has_value(self.ctx.args.machine_name) is not True and has_value(self.ctx.args.resource_group) is not True and has_value(self.ctx.args.vm_name) is not True + if condition_0: + self.ConfigurationProfileAssignmentsListByMachineName(ctx=self.ctx)() + if condition_1: + self.ConfigurationProfileAssignmentsListByVirtualMachines(ctx=self.ctx)() + if condition_2: + self.ConfigurationProfileAssignmentsListByClusterName(ctx=self.ctx)() + if condition_3: + self.ConfigurationProfileAssignmentsList(ctx=self.ctx)() + if condition_4: + self.ConfigurationProfileAssignmentsListBySubscription(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + return result + + class ConfigurationProfileAssignmentsListByMachineName(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.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments", + **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( + "machineName", self.ctx.args.machine_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-05-04", + 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.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.managed_by = AAZStrType( + serialized_name="managedBy", + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + 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 + + class ConfigurationProfileAssignmentsListByVirtualMachines(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.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments", + **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( + "vmName", self.ctx.args.vm_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.managed_by = AAZStrType( + serialized_name="managedBy", + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + 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 + + class ConfigurationProfileAssignmentsListByClusterName(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.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments", + **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( + "clusterName", self.ctx.args.cluster_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-05-04", + 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.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.managed_by = AAZStrType( + serialized_name="managedBy", + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + 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 + + class ConfigurationProfileAssignmentsList(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.Automanage/configurationProfileAssignments", + **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-05-04", + 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.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.managed_by = AAZStrType( + serialized_name="managedBy", + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + 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 + + class ConfigurationProfileAssignmentsListBySubscription(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.Automanage/configurationProfileAssignments", + **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-05-04", + 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.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.managed_by = AAZStrType( + serialized_name="managedBy", + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + 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/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/__cmd_group.py new file mode 100644 index 00000000000..66b39075fb4 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/__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( + "automanage configuration-profile-assignment arc", +) +class __CMDGroup(AAZCommandGroup): + """Manage association between an ARC machine and Automanage configuration profile + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/__init__.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/__init__.py new file mode 100644 index 00000000000..a3db3e36481 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/__init__.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: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._show import * +from ._update import * diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py new file mode 100644 index 00000000000..f623278dcd0 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py @@ -0,0 +1,250 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment arc create", +) +class Create(AAZCommand): + """Create an association between an ARC machine and Automanage configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hybridcompute/machines/{}/providers/microsoft.automanage/configurationprofileassignments/{}", "2022-05-04"], + ] + } + + 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.configuration_profile_assignment_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-assignment-name"], + help="Name of the configuration profile assignment. Only default is supported.", + required=True, + id_part="child_name_1", + ) + _args_schema.machine_name = AAZStrArg( + options=["--machine-name"], + help="The name of the Arc machine.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.configuration_profile = AAZStrArg( + options=["--configuration-profile"], + arg_group="Properties", + help="The Automanage configurationProfile ARM Resource URI.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfileHCRPAssignmentsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ConfigurationProfileHCRPAssignmentsCreateOrUpdate(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, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_name, + required=True, + ), + **self.serialize_url_param( + "machineName", self.ctx.args.machine_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-05-04", + 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("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("configurationProfile", AAZStrType, ".configuration_profile") + + 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.managed_by = AAZStrType( + serialized_name="managedBy", + flags={"read_only": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType() + _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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + 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}, + ) + + return cls._schema_on_200_201 + + +__all__ = ["Create"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py new file mode 100644 index 00000000000..94cf883966f --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py @@ -0,0 +1,142 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment arc delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete an association between an ARC machine and Automanage configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hybridcompute/machines/{}/providers/microsoft.automanage/configurationprofileassignments/{}", "2022-05-04"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return 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.configuration_profile_assignment_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-assignment-name"], + help="Name of the configuration profile assignment", + required=True, + id_part="child_name_1", + ) + _args_schema.machine_name = AAZStrArg( + options=["--machine-name"], + help="The name of the Arc machine.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfileHCRPAssignmentsDelete(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + class ConfigurationProfileHCRPAssignmentsDelete(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) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_name, + required=True, + ), + **self.serialize_url_param( + "machineName", self.ctx.args.machine_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-05-04", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +__all__ = ["Delete"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py new file mode 100644 index 00000000000..e26cccac0ab --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py @@ -0,0 +1,223 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment arc show", +) +class Show(AAZCommand): + """Get information about an association between an ARC machine and Automanage configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hybridcompute/machines/{}/providers/microsoft.automanage/configurationprofileassignments/{}", "2022-05-04"], + ] + } + + 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.configuration_profile_assignment_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-assignment-name"], + help="The configuration profile assignment name.", + required=True, + id_part="child_name_1", + ) + _args_schema.machine_name = AAZStrArg( + options=["--machine-name"], + help="The name of the Arc machine.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfileHCRPAssignmentsGet(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ConfigurationProfileHCRPAssignmentsGet(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.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_name, + required=True, + ), + **self.serialize_url_param( + "machineName", self.ctx.args.machine_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-05-04", + 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.managed_by = AAZStrType( + serialized_name="managedBy", + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + 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}, + ) + + return cls._schema_on_200 + + +__all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py new file mode 100644 index 00000000000..d198a7c7c38 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py @@ -0,0 +1,399 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment arc update", +) +class Update(AAZCommand): + """Update an association between a ARC machine and Automanage configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hybridcompute/machines/{}/providers/microsoft.automanage/configurationprofileassignments/{}", "2022-05-04"], + ] + } + + AZ_SUPPORT_GENERIC_UPDATE = True + + 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.configuration_profile_assignment_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-assignment-name"], + help="The configuration profile assignment name.", + required=True, + id_part="child_name_1", + ) + _args_schema.machine_name = AAZStrArg( + options=["--machine-name"], + help="The name of the Arc machine.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.configuration_profile = AAZStrArg( + options=["--configuration-profile"], + arg_group="Properties", + help="The Automanage configurationProfile ARM Resource URI.", + nullable=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfileHCRPAssignmentsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.ConfigurationProfileHCRPAssignmentsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + # @register_callback + def pre_instance_update(self, instance): + pass + + # @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ConfigurationProfileHCRPAssignmentsGet(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.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_name, + required=True, + ), + **self.serialize_url_param( + "machineName", self.ctx.args.machine_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-05-04", + 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_configuration_profile_assignment_read(cls._schema_on_200) + + return cls._schema_on_200 + + class ConfigurationProfileHCRPAssignmentsCreateOrUpdate(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, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_name, + required=True, + ), + **self.serialize_url_param( + "machineName", self.ctx.args.machine_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-05-04", + 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_configuration_profile_assignment_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) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("configurationProfile", AAZStrType, ".configuration_profile") + + 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_configuration_profile_assignment_read = None + + +def _build_schema_configuration_profile_assignment_read(_schema): + global _schema_configuration_profile_assignment_read + if _schema_configuration_profile_assignment_read is not None: + _schema.id = _schema_configuration_profile_assignment_read.id + _schema.managed_by = _schema_configuration_profile_assignment_read.managed_by + _schema.name = _schema_configuration_profile_assignment_read.name + _schema.properties = _schema_configuration_profile_assignment_read.properties + _schema.system_data = _schema_configuration_profile_assignment_read.system_data + _schema.type = _schema_configuration_profile_assignment_read.type + return + + _schema_configuration_profile_assignment_read = AAZObjectType() + + configuration_profile_assignment_read = _schema_configuration_profile_assignment_read + configuration_profile_assignment_read.id = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_assignment_read.managed_by = AAZStrType( + serialized_name="managedBy", + flags={"read_only": True}, + ) + configuration_profile_assignment_read.name = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_assignment_read.properties = AAZObjectType() + configuration_profile_assignment_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + configuration_profile_assignment_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_configuration_profile_assignment_read.properties + properties.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + flags={"read_only": True}, + ) + + system_data = _schema_configuration_profile_assignment_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_configuration_profile_assignment_read.id + _schema.managed_by = _schema_configuration_profile_assignment_read.managed_by + _schema.name = _schema_configuration_profile_assignment_read.name + _schema.properties = _schema_configuration_profile_assignment_read.properties + _schema.system_data = _schema_configuration_profile_assignment_read.system_data + _schema.type = _schema_configuration_profile_assignment_read.type + + +__all__ = ["Update"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/__cmd_group.py new file mode 100644 index 00000000000..2b8aab8552f --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/__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( + "automanage configuration-profile-assignment cluster", +) +class __CMDGroup(AAZCommandGroup): + """Manage association between an AzureStackHCI cluster and Automanage configuration profile + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/__init__.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/__init__.py new file mode 100644 index 00000000000..a3db3e36481 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/__init__.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: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._show import * +from ._update import * diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py new file mode 100644 index 00000000000..38a0a162024 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py @@ -0,0 +1,250 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment cluster create", +) +class Create(AAZCommand): + """Create an association between an AzureStackHCI cluster and Automanage configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurestackhci/clusters/{}/providers/microsoft.automanage/configurationprofileassignments/{}", "2022-05-04"], + ] + } + + 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.cluster_name = AAZStrArg( + options=["--cluster-name"], + help="The name of the Arc machine.", + required=True, + id_part="name", + ) + _args_schema.configuration_profile_assignment_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-assignment-name"], + help="Name of the configuration profile assignment. Only default is supported.", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.configuration_profile = AAZStrArg( + options=["--configuration-profile"], + arg_group="Properties", + help="The Automanage configurationProfile ARM Resource URI.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfileHCIAssignmentsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ConfigurationProfileHCIAssignmentsCreateOrUpdate(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, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + **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( + "clusterName", self.ctx.args.cluster_name, + required=True, + ), + **self.serialize_url_param( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_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-05-04", + 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("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("configurationProfile", AAZStrType, ".configuration_profile") + + 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.managed_by = AAZStrType( + serialized_name="managedBy", + flags={"read_only": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType() + _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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + 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}, + ) + + return cls._schema_on_200_201 + + +__all__ = ["Create"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py new file mode 100644 index 00000000000..2f0258a7cc2 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py @@ -0,0 +1,142 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment cluster delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete an association between an AzureStackHCI cluster and Automanage configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurestackhci/clusters/{}/providers/microsoft.automanage/configurationprofileassignments/{}", "2022-05-04"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return 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.cluster_name = AAZStrArg( + options=["--cluster-name"], + help="The name of the Arc machine.", + required=True, + id_part="name", + ) + _args_schema.configuration_profile_assignment_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-assignment-name"], + help="Name of the configuration profile assignment", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfileHCIAssignmentsDelete(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + class ConfigurationProfileHCIAssignmentsDelete(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) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + **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( + "clusterName", self.ctx.args.cluster_name, + required=True, + ), + **self.serialize_url_param( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_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-05-04", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +__all__ = ["Delete"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py new file mode 100644 index 00000000000..9cc2d25fab5 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py @@ -0,0 +1,223 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment cluster show", +) +class Show(AAZCommand): + """Get information about an association between an AzureStackHCI cluster and Automanage configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurestackhci/clusters/{}/providers/microsoft.automanage/configurationprofileassignments/{}", "2022-05-04"], + ] + } + + 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.cluster_name = AAZStrArg( + options=["--cluster-name"], + help="The name of the Arc machine.", + required=True, + id_part="name", + ) + _args_schema.configuration_profile_assignment_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-assignment-name"], + help="The configuration profile assignment name.", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfileHCIAssignmentsGet(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ConfigurationProfileHCIAssignmentsGet(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.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + **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( + "clusterName", self.ctx.args.cluster_name, + required=True, + ), + **self.serialize_url_param( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_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-05-04", + 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.managed_by = AAZStrType( + serialized_name="managedBy", + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + 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}, + ) + + return cls._schema_on_200 + + +__all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py new file mode 100644 index 00000000000..4ab187f4f74 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py @@ -0,0 +1,399 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment cluster update", +) +class Update(AAZCommand): + """Update an association between a AzureStackHCI cluster and Automanage configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurestackhci/clusters/{}/providers/microsoft.automanage/configurationprofileassignments/{}", "2022-05-04"], + ] + } + + AZ_SUPPORT_GENERIC_UPDATE = True + + 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.cluster_name = AAZStrArg( + options=["--cluster-name"], + help="The name of the Arc machine.", + required=True, + id_part="name", + ) + _args_schema.configuration_profile_assignment_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-assignment-name"], + help="The configuration profile assignment name.", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.configuration_profile = AAZStrArg( + options=["--configuration-profile"], + arg_group="Properties", + help="The Automanage configurationProfile ARM Resource URI.", + nullable=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfileHCIAssignmentsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.ConfigurationProfileHCIAssignmentsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + # @register_callback + def pre_instance_update(self, instance): + pass + + # @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ConfigurationProfileHCIAssignmentsGet(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.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + **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( + "clusterName", self.ctx.args.cluster_name, + required=True, + ), + **self.serialize_url_param( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_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-05-04", + 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_configuration_profile_assignment_read(cls._schema_on_200) + + return cls._schema_on_200 + + class ConfigurationProfileHCIAssignmentsCreateOrUpdate(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, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + **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( + "clusterName", self.ctx.args.cluster_name, + required=True, + ), + **self.serialize_url_param( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_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-05-04", + 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_configuration_profile_assignment_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) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("configurationProfile", AAZStrType, ".configuration_profile") + + 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_configuration_profile_assignment_read = None + + +def _build_schema_configuration_profile_assignment_read(_schema): + global _schema_configuration_profile_assignment_read + if _schema_configuration_profile_assignment_read is not None: + _schema.id = _schema_configuration_profile_assignment_read.id + _schema.managed_by = _schema_configuration_profile_assignment_read.managed_by + _schema.name = _schema_configuration_profile_assignment_read.name + _schema.properties = _schema_configuration_profile_assignment_read.properties + _schema.system_data = _schema_configuration_profile_assignment_read.system_data + _schema.type = _schema_configuration_profile_assignment_read.type + return + + _schema_configuration_profile_assignment_read = AAZObjectType() + + configuration_profile_assignment_read = _schema_configuration_profile_assignment_read + configuration_profile_assignment_read.id = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_assignment_read.managed_by = AAZStrType( + serialized_name="managedBy", + flags={"read_only": True}, + ) + configuration_profile_assignment_read.name = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_assignment_read.properties = AAZObjectType() + configuration_profile_assignment_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + configuration_profile_assignment_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_configuration_profile_assignment_read.properties + properties.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + flags={"read_only": True}, + ) + + system_data = _schema_configuration_profile_assignment_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_configuration_profile_assignment_read.id + _schema.managed_by = _schema_configuration_profile_assignment_read.managed_by + _schema.name = _schema_configuration_profile_assignment_read.name + _schema.properties = _schema_configuration_profile_assignment_read.properties + _schema.system_data = _schema_configuration_profile_assignment_read.system_data + _schema.type = _schema_configuration_profile_assignment_read.type + + +__all__ = ["Update"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__cmd_group.py new file mode 100644 index 00000000000..d161a84894b --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__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( + "automanage configuration-profile-assignment report", +) +class __CMDGroup(AAZCommandGroup): + """Manage report within a given configuration profile assignment + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__init__.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__init__.py new file mode 100644 index 00000000000..df1b0365a69 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__init__.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: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._list_for_arc import * +from ._list_for_cluster_and_vm import * +from ._show_for_arc import * +from ._show_for_cluster_and_vm import * diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_arc.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_arc.py new file mode 100644 index 00000000000..a4df86169d4 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_arc.py @@ -0,0 +1,330 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment report list-for-arc", +) +class ListForArc(AAZCommand): + """List a list of reports within a given configuration profile assignment + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hybridcompute/machines/{}/providers/microsoft.automanage/configurationprofileassignments/{}/reports", "2022-05-04"], + ] + } + + 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.configuration_profile_assignment_name = AAZStrArg( + options=["--configuration-profile-assignment-name"], + help="The configuration profile assignment name.", + required=True, + ) + _args_schema.machine_name = AAZStrArg( + options=["--machine-name"], + help="The name of the Arc machine.", + required=True, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.HCRPReportsListByConfigurationProfileAssignments(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + return result + + class HCRPReportsListByConfigurationProfileAssignments(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.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_name, + required=True, + ), + **self.serialize_url_param( + "machineName", self.ctx.args.machine_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-05-04", + 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.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _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}, + ) + _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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + flags={"read_only": True}, + ) + properties.duration = AAZStrType( + flags={"read_only": True}, + ) + properties.end_time = AAZStrType( + serialized_name="endTime", + ) + properties.error = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(properties.error) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + flags={"read_only": True}, + ) + properties.report_format_version = AAZStrType( + serialized_name="reportFormatVersion", + flags={"read_only": True}, + ) + properties.resources = AAZListType( + flags={"read_only": True}, + ) + properties.start_time = AAZStrType( + serialized_name="startTime", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.type = AAZStrType( + flags={"read_only": True}, + ) + + resources = cls._schema_on_200.value.Element.properties.resources + resources.Element = AAZObjectType( + flags={"read_only": True}, + ) + + _element = cls._schema_on_200.value.Element.properties.resources.Element + _element.error = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(_element.error) + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + _element.type = 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 + + +_schema_error_detail_read = None + + +def _build_schema_error_detail_read(_schema): + global _schema_error_detail_read + if _schema_error_detail_read is not None: + _schema.additional_info = _schema_error_detail_read.additional_info + _schema.code = _schema_error_detail_read.code + _schema.details = _schema_error_detail_read.details + _schema.message = _schema_error_detail_read.message + _schema.target = _schema_error_detail_read.target + return + + _schema_error_detail_read = AAZObjectType( + flags={"read_only": True} + ) + + error_detail_read = _schema_error_detail_read + error_detail_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + error_detail_read.code = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.details = AAZListType( + flags={"read_only": True}, + ) + error_detail_read.message = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.target = AAZStrType( + flags={"read_only": True}, + ) + + additional_info = _schema_error_detail_read.additional_info + additional_info.Element = AAZObjectType( + flags={"read_only": True}, + ) + + _element = _schema_error_detail_read.additional_info.Element + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + details = _schema_error_detail_read.details + details.Element = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(details.Element) + + _schema.additional_info = _schema_error_detail_read.additional_info + _schema.code = _schema_error_detail_read.code + _schema.details = _schema_error_detail_read.details + _schema.message = _schema_error_detail_read.message + _schema.target = _schema_error_detail_read.target + + +__all__ = ["ListForArc"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_cluster_and_vm.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_cluster_and_vm.py new file mode 100644 index 00000000000..cd1b8b8b868 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_cluster_and_vm.py @@ -0,0 +1,534 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment report list-for-cluster-and-vm", +) +class ListForClusterAndVm(AAZCommand): + """List a list of reports within a given configuration profile assignment + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurestackhci/clusters/{}/providers/microsoft.automanage/configurationprofileassignments/{}/reports", "2022-05-04"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/providers/microsoft.automanage/configurationprofileassignments/{}/reports", "2022-05-04"], + ] + } + + 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.cluster_name = AAZStrArg( + options=["--cluster-name"], + help="The name of the Arc machine.", + ) + _args_schema.configuration_profile_assignment_name = AAZStrArg( + options=["--configuration-profile-assignment-name"], + help="The configuration profile assignment name.", + required=True, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.vm_name = AAZStrArg( + options=["--vm-name"], + help="The name of the virtual machine.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + condition_0 = has_value(self.ctx.args.configuration_profile_assignment_name) and has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) and has_value(self.ctx.args.vm_name) + condition_1 = has_value(self.ctx.args.cluster_name) and has_value(self.ctx.args.configuration_profile_assignment_name) and has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) + if condition_0: + self.ReportsListByConfigurationProfileAssignments(ctx=self.ctx)() + if condition_1: + self.HCIReportsListByConfigurationProfileAssignments(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + return result + + class ReportsListByConfigurationProfileAssignments(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.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_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, + ), + **self.serialize_url_param( + "vmName", self.ctx.args.vm_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _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}, + ) + _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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + flags={"read_only": True}, + ) + properties.duration = AAZStrType( + flags={"read_only": True}, + ) + properties.end_time = AAZStrType( + serialized_name="endTime", + ) + properties.error = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(properties.error) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + flags={"read_only": True}, + ) + properties.report_format_version = AAZStrType( + serialized_name="reportFormatVersion", + flags={"read_only": True}, + ) + properties.resources = AAZListType( + flags={"read_only": True}, + ) + properties.start_time = AAZStrType( + serialized_name="startTime", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.type = AAZStrType( + flags={"read_only": True}, + ) + + resources = cls._schema_on_200.value.Element.properties.resources + resources.Element = AAZObjectType( + flags={"read_only": True}, + ) + + _element = cls._schema_on_200.value.Element.properties.resources.Element + _element.error = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(_element.error) + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + _element.type = 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 + + class HCIReportsListByConfigurationProfileAssignments(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.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports", + **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( + "clusterName", self.ctx.args.cluster_name, + required=True, + ), + **self.serialize_url_param( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_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-05-04", + 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.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _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}, + ) + _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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + flags={"read_only": True}, + ) + properties.duration = AAZStrType( + flags={"read_only": True}, + ) + properties.end_time = AAZStrType( + serialized_name="endTime", + ) + properties.error = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(properties.error) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + flags={"read_only": True}, + ) + properties.report_format_version = AAZStrType( + serialized_name="reportFormatVersion", + flags={"read_only": True}, + ) + properties.resources = AAZListType( + flags={"read_only": True}, + ) + properties.start_time = AAZStrType( + serialized_name="startTime", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.type = AAZStrType( + flags={"read_only": True}, + ) + + resources = cls._schema_on_200.value.Element.properties.resources + resources.Element = AAZObjectType( + flags={"read_only": True}, + ) + + _element = cls._schema_on_200.value.Element.properties.resources.Element + _element.error = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(_element.error) + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + _element.type = 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 + + +_schema_error_detail_read = None + + +def _build_schema_error_detail_read(_schema): + global _schema_error_detail_read + if _schema_error_detail_read is not None: + _schema.additional_info = _schema_error_detail_read.additional_info + _schema.code = _schema_error_detail_read.code + _schema.details = _schema_error_detail_read.details + _schema.message = _schema_error_detail_read.message + _schema.target = _schema_error_detail_read.target + return + + _schema_error_detail_read = AAZObjectType( + flags={"read_only": True} + ) + + error_detail_read = _schema_error_detail_read + error_detail_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + error_detail_read.code = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.details = AAZListType( + flags={"read_only": True}, + ) + error_detail_read.message = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.target = AAZStrType( + flags={"read_only": True}, + ) + + additional_info = _schema_error_detail_read.additional_info + additional_info.Element = AAZObjectType( + flags={"read_only": True}, + ) + + _element = _schema_error_detail_read.additional_info.Element + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + details = _schema_error_detail_read.details + details.Element = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(details.Element) + + _schema.additional_info = _schema_error_detail_read.additional_info + _schema.code = _schema_error_detail_read.code + _schema.details = _schema_error_detail_read.details + _schema.message = _schema_error_detail_read.message + _schema.target = _schema_error_detail_read.target + + +__all__ = ["ListForClusterAndVm"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_arc.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_arc.py new file mode 100644 index 00000000000..2d2ca682b05 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_arc.py @@ -0,0 +1,336 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment report show-for-arc", +) +class ShowForArc(AAZCommand): + """Get information about a report associated with a configuration profile assignment run + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hybridcompute/machines/{}/providers/microsoft.automanage/configurationprofileassignments/{}/reports/{}", "2022-05-04"], + ] + } + + 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.configuration_profile_assignment_name = AAZStrArg( + options=["--configuration-profile-assignment-name"], + help="The configuration profile assignment name.", + required=True, + id_part="child_name_1", + ) + _args_schema.machine_name = AAZStrArg( + options=["--machine-name"], + help="The name of the Arc machine.", + required=True, + id_part="name", + ) + _args_schema.report_name = AAZStrArg( + options=["-n", "--name", "--report-name"], + help="The report name.", + required=True, + id_part="child_name_2", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.HCRPReportsGet(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class HCRPReportsGet(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.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_name, + required=True, + ), + **self.serialize_url_param( + "machineName", self.ctx.args.machine_name, + required=True, + ), + **self.serialize_url_param( + "reportName", self.ctx.args.report_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-05-04", + 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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + flags={"read_only": True}, + ) + properties.duration = AAZStrType( + flags={"read_only": True}, + ) + properties.end_time = AAZStrType( + serialized_name="endTime", + ) + properties.error = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(properties.error) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + flags={"read_only": True}, + ) + properties.report_format_version = AAZStrType( + serialized_name="reportFormatVersion", + flags={"read_only": True}, + ) + properties.resources = AAZListType( + flags={"read_only": True}, + ) + properties.start_time = AAZStrType( + serialized_name="startTime", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.type = AAZStrType( + flags={"read_only": True}, + ) + + resources = cls._schema_on_200.properties.resources + resources.Element = AAZObjectType( + flags={"read_only": True}, + ) + + _element = cls._schema_on_200.properties.resources.Element + _element.error = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(_element.error) + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + 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}, + ) + + return cls._schema_on_200 + + +_schema_error_detail_read = None + + +def _build_schema_error_detail_read(_schema): + global _schema_error_detail_read + if _schema_error_detail_read is not None: + _schema.additional_info = _schema_error_detail_read.additional_info + _schema.code = _schema_error_detail_read.code + _schema.details = _schema_error_detail_read.details + _schema.message = _schema_error_detail_read.message + _schema.target = _schema_error_detail_read.target + return + + _schema_error_detail_read = AAZObjectType( + flags={"read_only": True} + ) + + error_detail_read = _schema_error_detail_read + error_detail_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + error_detail_read.code = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.details = AAZListType( + flags={"read_only": True}, + ) + error_detail_read.message = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.target = AAZStrType( + flags={"read_only": True}, + ) + + additional_info = _schema_error_detail_read.additional_info + additional_info.Element = AAZObjectType( + flags={"read_only": True}, + ) + + _element = _schema_error_detail_read.additional_info.Element + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + details = _schema_error_detail_read.details + details.Element = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(details.Element) + + _schema.additional_info = _schema_error_detail_read.additional_info + _schema.code = _schema_error_detail_read.code + _schema.details = _schema_error_detail_read.details + _schema.message = _schema_error_detail_read.message + _schema.target = _schema_error_detail_read.target + + +__all__ = ["ShowForArc"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_cluster_and_vm.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_cluster_and_vm.py new file mode 100644 index 00000000000..357c12b92bb --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_cluster_and_vm.py @@ -0,0 +1,539 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment report show-for-cluster-and-vm", +) +class ShowForClusterAndVm(AAZCommand): + """Get information about a report associated with a configuration profile assignment run + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurestackhci/clusters/{}/providers/microsoft.automanage/configurationprofileassignments/{}/reports/{}", "2022-05-04"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/providers/microsoft.automanage/configurationprofileassignments/{}/reports/{}", "2022-05-04"], + ] + } + + 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.cluster_name = AAZStrArg( + options=["--cluster-name"], + help="The name of the Arc machine.", + id_part="name", + ) + _args_schema.configuration_profile_assignment_name = AAZStrArg( + options=["--configuration-profile-assignment-name"], + help="The configuration profile assignment name.", + required=True, + id_part="child_name_1", + ) + _args_schema.report_name = AAZStrArg( + options=["-n", "--name", "--report-name"], + help="The report name.", + required=True, + id_part="child_name_2", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.vm_name = AAZStrArg( + options=["--vm-name"], + help="The name of the virtual machine.", + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + condition_0 = has_value(self.ctx.args.configuration_profile_assignment_name) and has_value(self.ctx.args.report_name) and has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) and has_value(self.ctx.args.vm_name) + condition_1 = has_value(self.ctx.args.cluster_name) and has_value(self.ctx.args.configuration_profile_assignment_name) and has_value(self.ctx.args.report_name) and has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) + if condition_0: + self.ReportsGet(ctx=self.ctx)() + if condition_1: + self.HCIReportsGet(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ReportsGet(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.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_name, + required=True, + ), + **self.serialize_url_param( + "reportName", self.ctx.args.report_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, + ), + **self.serialize_url_param( + "vmName", self.ctx.args.vm_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + flags={"read_only": True}, + ) + properties.duration = AAZStrType( + flags={"read_only": True}, + ) + properties.end_time = AAZStrType( + serialized_name="endTime", + ) + properties.error = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(properties.error) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + flags={"read_only": True}, + ) + properties.report_format_version = AAZStrType( + serialized_name="reportFormatVersion", + flags={"read_only": True}, + ) + properties.resources = AAZListType( + flags={"read_only": True}, + ) + properties.start_time = AAZStrType( + serialized_name="startTime", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.type = AAZStrType( + flags={"read_only": True}, + ) + + resources = cls._schema_on_200.properties.resources + resources.Element = AAZObjectType( + flags={"read_only": True}, + ) + + _element = cls._schema_on_200.properties.resources.Element + _element.error = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(_element.error) + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + 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}, + ) + + return cls._schema_on_200 + + class HCIReportsGet(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.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}", + **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( + "clusterName", self.ctx.args.cluster_name, + required=True, + ), + **self.serialize_url_param( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_name, + required=True, + ), + **self.serialize_url_param( + "reportName", self.ctx.args.report_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-05-04", + 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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + flags={"read_only": True}, + ) + properties.duration = AAZStrType( + flags={"read_only": True}, + ) + properties.end_time = AAZStrType( + serialized_name="endTime", + ) + properties.error = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(properties.error) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + flags={"read_only": True}, + ) + properties.report_format_version = AAZStrType( + serialized_name="reportFormatVersion", + flags={"read_only": True}, + ) + properties.resources = AAZListType( + flags={"read_only": True}, + ) + properties.start_time = AAZStrType( + serialized_name="startTime", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.type = AAZStrType( + flags={"read_only": True}, + ) + + resources = cls._schema_on_200.properties.resources + resources.Element = AAZObjectType( + flags={"read_only": True}, + ) + + _element = cls._schema_on_200.properties.resources.Element + _element.error = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(_element.error) + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + 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}, + ) + + return cls._schema_on_200 + + +_schema_error_detail_read = None + + +def _build_schema_error_detail_read(_schema): + global _schema_error_detail_read + if _schema_error_detail_read is not None: + _schema.additional_info = _schema_error_detail_read.additional_info + _schema.code = _schema_error_detail_read.code + _schema.details = _schema_error_detail_read.details + _schema.message = _schema_error_detail_read.message + _schema.target = _schema_error_detail_read.target + return + + _schema_error_detail_read = AAZObjectType( + flags={"read_only": True} + ) + + error_detail_read = _schema_error_detail_read + error_detail_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + error_detail_read.code = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.details = AAZListType( + flags={"read_only": True}, + ) + error_detail_read.message = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.target = AAZStrType( + flags={"read_only": True}, + ) + + additional_info = _schema_error_detail_read.additional_info + additional_info.Element = AAZObjectType( + flags={"read_only": True}, + ) + + _element = _schema_error_detail_read.additional_info.Element + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + details = _schema_error_detail_read.details + details.Element = AAZObjectType( + flags={"read_only": True}, + ) + _build_schema_error_detail_read(details.Element) + + _schema.additional_info = _schema_error_detail_read.additional_info + _schema.code = _schema_error_detail_read.code + _schema.details = _schema_error_detail_read.details + _schema.message = _schema_error_detail_read.message + _schema.target = _schema_error_detail_read.target + + +__all__ = ["ShowForClusterAndVm"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/__cmd_group.py new file mode 100644 index 00000000000..04d7d0fca87 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/__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( + "automanage configuration-profile-assignment vm", +) +class __CMDGroup(AAZCommandGroup): + """Manage association between a VM and Automanage configuration profile + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/__init__.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/__init__.py new file mode 100644 index 00000000000..a3db3e36481 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/__init__.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: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._show import * +from ._update import * diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py new file mode 100644 index 00000000000..f77b4bf5698 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py @@ -0,0 +1,250 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment vm create", +) +class Create(AAZCommand): + """Create an association between a VM and Automanage configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/providers/microsoft.automanage/configurationprofileassignments/{}", "2022-05-04"], + ] + } + + 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.configuration_profile_assignment_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-assignment-name"], + help="Name of the configuration profile assignment. Only default is supported.", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.vm_name = AAZStrArg( + options=["--vm-name"], + help="The name of the virtual machine.", + required=True, + id_part="name", + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.configuration_profile = AAZStrArg( + options=["--configuration-profile"], + arg_group="Properties", + help="The Automanage configurationProfile ARM Resource URI.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfileAssignmentsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ConfigurationProfileAssignmentsCreateOrUpdate(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, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_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, + ), + **self.serialize_url_param( + "vmName", self.ctx.args.vm_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("configurationProfile", AAZStrType, ".configuration_profile") + + 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.managed_by = AAZStrType( + serialized_name="managedBy", + flags={"read_only": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType() + _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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + 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}, + ) + + return cls._schema_on_200_201 + + +__all__ = ["Create"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py new file mode 100644 index 00000000000..d76a83ac453 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py @@ -0,0 +1,142 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment vm delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete an association between a VM and Automanage configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/providers/microsoft.automanage/configurationprofileassignments/{}", "2022-05-04"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return 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.configuration_profile_assignment_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-assignment-name"], + help="Name of the configuration profile assignment", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.vm_name = AAZStrArg( + options=["--vm-name"], + help="The name of the virtual machine.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfileAssignmentsDelete(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + class ConfigurationProfileAssignmentsDelete(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) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_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, + ), + **self.serialize_url_param( + "vmName", self.ctx.args.vm_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +__all__ = ["Delete"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py new file mode 100644 index 00000000000..5a757d2ab71 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py @@ -0,0 +1,223 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment vm show", +) +class Show(AAZCommand): + """Get information about an association between a VM and Automanage configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/providers/microsoft.automanage/configurationprofileassignments/{}", "2022-05-04"], + ] + } + + 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.configuration_profile_assignment_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-assignment-name"], + help="The configuration profile assignment name.", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.vm_name = AAZStrArg( + options=["--vm-name"], + help="The name of the virtual machine.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfileAssignmentsGet(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ConfigurationProfileAssignmentsGet(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.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_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, + ), + **self.serialize_url_param( + "vmName", self.ctx.args.vm_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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.managed_by = AAZStrType( + serialized_name="managedBy", + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + 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}, + ) + + return cls._schema_on_200 + + +__all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py new file mode 100644 index 00000000000..bdb55d107ad --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py @@ -0,0 +1,399 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment vm update", +) +class Update(AAZCommand): + """Update an association between a VM and Automanage configuration profile + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/providers/microsoft.automanage/configurationprofileassignments/{}", "2022-05-04"], + ] + } + + AZ_SUPPORT_GENERIC_UPDATE = True + + 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.configuration_profile_assignment_name = AAZStrArg( + options=["-n", "--name", "--configuration-profile-assignment-name"], + help="The configuration profile assignment name.", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.vm_name = AAZStrArg( + options=["--vm-name"], + help="The name of the virtual machine.", + required=True, + id_part="name", + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.configuration_profile = AAZStrArg( + options=["--configuration-profile"], + arg_group="Properties", + help="The Automanage configurationProfile ARM Resource URI.", + nullable=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ConfigurationProfileAssignmentsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.ConfigurationProfileAssignmentsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + # @register_callback + def pre_instance_update(self, instance): + pass + + # @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ConfigurationProfileAssignmentsGet(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.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_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, + ), + **self.serialize_url_param( + "vmName", self.ctx.args.vm_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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_configuration_profile_assignment_read(cls._schema_on_200) + + return cls._schema_on_200 + + class ConfigurationProfileAssignmentsCreateOrUpdate(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, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_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, + ), + **self.serialize_url_param( + "vmName", self.ctx.args.vm_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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_configuration_profile_assignment_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) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("configurationProfile", AAZStrType, ".configuration_profile") + + 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_configuration_profile_assignment_read = None + + +def _build_schema_configuration_profile_assignment_read(_schema): + global _schema_configuration_profile_assignment_read + if _schema_configuration_profile_assignment_read is not None: + _schema.id = _schema_configuration_profile_assignment_read.id + _schema.managed_by = _schema_configuration_profile_assignment_read.managed_by + _schema.name = _schema_configuration_profile_assignment_read.name + _schema.properties = _schema_configuration_profile_assignment_read.properties + _schema.system_data = _schema_configuration_profile_assignment_read.system_data + _schema.type = _schema_configuration_profile_assignment_read.type + return + + _schema_configuration_profile_assignment_read = AAZObjectType() + + configuration_profile_assignment_read = _schema_configuration_profile_assignment_read + configuration_profile_assignment_read.id = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_assignment_read.managed_by = AAZStrType( + serialized_name="managedBy", + flags={"read_only": True}, + ) + configuration_profile_assignment_read.name = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_assignment_read.properties = AAZObjectType() + configuration_profile_assignment_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + configuration_profile_assignment_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_configuration_profile_assignment_read.properties + properties.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + flags={"read_only": True}, + ) + + system_data = _schema_configuration_profile_assignment_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_configuration_profile_assignment_read.id + _schema.managed_by = _schema_configuration_profile_assignment_read.managed_by + _schema.name = _schema_configuration_profile_assignment_read.name + _schema.properties = _schema_configuration_profile_assignment_read.properties + _schema.system_data = _schema_configuration_profile_assignment_read.system_data + _schema.type = _schema_configuration_profile_assignment_read.type + + +__all__ = ["Update"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/__cmd_group.py new file mode 100644 index 00000000000..c9dc763e075 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/__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( + "automanage service-principal", +) +class __CMDGroup(AAZCommandGroup): + """Manage Automanage AAD first party Application Service Principal + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/__init__.py b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/__init__.py new file mode 100644 index 00000000000..26439c0091c --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/__init__.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: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._list import * +from ._show_default import * diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py new file mode 100644 index 00000000000..093aa0ce7cb --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py @@ -0,0 +1,196 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage service-principal list", +) +class List(AAZCommand): + """List the Automanage AAD first party Application Service Principal details for the subscription id. + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.automanage/serviceprincipals", "2022-05-04"], + ] + } + + 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 "" + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ServicePrincipalsListBySubscription(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + return result + + class ServicePrincipalsListBySubscription(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.Automanage/servicePrincipals", + **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-05-04", + 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.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _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}, + ) + _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.authorization_set = AAZBoolType( + serialized_name="authorizationSet", + flags={"read_only": True}, + ) + properties.service_principal_id = AAZStrType( + serialized_name="servicePrincipalId", + 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/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py new file mode 100644 index 00000000000..d0df96a493d --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py @@ -0,0 +1,190 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage service-principal show-default", +) +class ShowDefault(AAZCommand): + """Get the Automanage AAD first party Application Service Principal details for the subscription id. + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.automanage/serviceprincipals/default", "2022-05-04"], + ] + } + + 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 "" + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ServicePrincipalsGet(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ServicePrincipalsGet(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.Automanage/servicePrincipals/default", + **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-05-04", + 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.authorization_set = AAZBoolType( + serialized_name="authorizationSet", + flags={"read_only": True}, + ) + properties.service_principal_id = AAZStrType( + serialized_name="servicePrincipalId", + 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}, + ) + + return cls._schema_on_200 + + +__all__ = ["ShowDefault"] diff --git a/src/automanage/azext_automanage/azext_metadata.json b/src/automanage/azext_automanage/azext_metadata.json new file mode 100644 index 00000000000..8d0d021acd8 --- /dev/null +++ b/src/automanage/azext_automanage/azext_metadata.json @@ -0,0 +1,4 @@ +{ + "azext.isPreview": true, + "azext.minCliCoreVersion": "2.40.0" +} \ No newline at end of file diff --git a/src/automanage/azext_automanage/commands.py b/src/automanage/azext_automanage/commands.py new file mode 100644 index 00000000000..b0d842e4993 --- /dev/null +++ b/src/automanage/azext_automanage/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/automanage/azext_automanage/custom.py b/src/automanage/azext_automanage/custom.py new file mode 100644 index 00000000000..86df1e48ef5 --- /dev/null +++ b/src/automanage/azext_automanage/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/automanage/azext_automanage/tests/__init__.py b/src/automanage/azext_automanage/tests/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/automanage/azext_automanage/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/automanage/azext_automanage/tests/latest/__init__.py b/src/automanage/azext_automanage/tests/latest/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/automanage/azext_automanage/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/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py new file mode 100644 index 00000000000..34efaa51e6c --- /dev/null +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.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 AutomanageScenario(ScenarioTest): + # TODO: add tests here + pass diff --git a/src/automanage/setup.cfg b/src/automanage/setup.cfg new file mode 100644 index 00000000000..2fdd96e5d39 --- /dev/null +++ b/src/automanage/setup.cfg @@ -0,0 +1 @@ +#setup.cfg \ No newline at end of file diff --git a/src/automanage/setup.py b/src/automanage/setup.py new file mode 100644 index 00000000000..6545b51ca73 --- /dev/null +++ b/src/automanage/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='automanage', + version=VERSION, + description='Microsoft Azure Command-Line Tools Automanage 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/automanage', + classifiers=CLASSIFIERS, + packages=find_packages(exclude=["tests"]), + package_data={'azext_automanage': ['azext_metadata.json']}, + install_requires=DEPENDENCIES +) From 9000d277aa210d32ab6a9a74bd429b9c2b8220a4 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Thu, 29 Sep 2022 16:05:22 +0800 Subject: [PATCH 02/31] start tests --- .../recordings/test_automanage_scenarios.yaml | 96 +++++++++++++++++++ .../tests/latest/test_automanage.py | 10 +- 2 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml new file mode 100644 index 00000000000..8d5a2e4e02d --- /dev/null +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml @@ -0,0 +1,96 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage best-practice list + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices?api-version=2022-05-04 + response: + body: + string: '{"value":[{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction","name":"AzureBestPracticesProduction","type":"Microsoft.Automanage/bestPractices","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"true","Backup/PolicyName":"dailyBackupPolicy","Backup/TimeZone":"UTC","Backup/InstantRpRetentionRangeInDays":"2","Backup/SchedulePolicy/ScheduleRunFrequency":"Daily","Backup/SchedulePolicy/ScheduleRunTimes":["2017-01-26T00:00:00Z"],"Backup/SchedulePolicy/SchedulePolicyType":"SimpleSchedulePolicy","Backup/RetentionPolicy/RetentionPolicyType":"LongTermRetentionPolicy","Backup/RetentionPolicy/DailySchedule/RetentionTimes":["2017-01-26T00:00:00Z"],"Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count":"180","Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType":"Days","VMInsights/Enable":"true","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2021-06-30T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}},{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest","name":"AzureBestPracticesDevTest","type":"Microsoft.Automanage/bestPractices","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"false","VMInsights/Enable":"false","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2021-06-30T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '2319' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 29 Sep 2022 07:51:46 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage best-practice show + Connection: + - keep-alive + ParameterSetName: + - --best-practice-name + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction?api-version=2022-05-04 + response: + body: + string: '{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction","name":"AzureBestPracticesProduction","type":"Microsoft.Automanage/bestPractices","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"true","Backup/PolicyName":"dailyBackupPolicy","Backup/TimeZone":"UTC","Backup/InstantRpRetentionRangeInDays":"2","Backup/SchedulePolicy/ScheduleRunFrequency":"Daily","Backup/SchedulePolicy/ScheduleRunTimes":["2017-01-26T00:00:00Z"],"Backup/SchedulePolicy/SchedulePolicyType":"SimpleSchedulePolicy","Backup/RetentionPolicy/RetentionPolicyType":"LongTermRetentionPolicy","Backup/RetentionPolicy/DailySchedule/RetentionTimes":["2017-01-26T00:00:00Z"],"Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count":"180","Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType":"Days","VMInsights/Enable":"true","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2021-06-30T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '1449' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 29 Sep 2022 07:51:47 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index 34efaa51e6c..bd90f8d0534 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -9,5 +9,11 @@ class AutomanageScenario(ScenarioTest): - # TODO: add tests here - pass + @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage') + def test_automanage_scenarios(self, resource_group): + # self.kwargs.update({ + # "san_name": self.create_random_name('elastic-san', 24) + # }) + + best_practice_name = self.cmd('az automanage best-practice list').get_output_in_json()[0]["name"] + self.cmd('az automanage best-practice show --best-practice-name {}'.format(best_practice_name)) From bab92cd67b3582d36f96c098eb704a304d6ee846 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Fri, 30 Sep 2022 16:20:18 +0800 Subject: [PATCH 03/31] test --- .../tests/latest/test_automanage.py | 32 +++++++++++++++---- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index bd90f8d0534..22812e8d5ff 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -9,11 +9,29 @@ class AutomanageScenario(ScenarioTest): - @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage') - def test_automanage_scenarios(self, resource_group): - # self.kwargs.update({ - # "san_name": self.create_random_name('elastic-san', 24) - # }) + @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.') + def test_automanage_scenarios(self): + # best-practice + best_practice_name = self.cmd('az automanage best-practice list').get_output_in_json() + if best_practice_name and len(best_practice_name)>=2: + best_practice_name = best_practice_name[1]["name"] + self.cmd('az automanage best-practice show --best-practice-name {}'.format(best_practice_name)) + version_name = self.cmd('az automanage best-practice version list ' + '--best-practice-name {}'.format(best_practice_name)).get_output_in_json() + if version_name and len(version_name)>=1: + version_name = version_name[0]["name"] + #TODO no permission + # self.cmd('az automanage best-practice version show --best-practice-name {} --version-name ' + # '{}'.format(best_practice_name, version_name)) - best_practice_name = self.cmd('az automanage best-practice list').get_output_in_json()[0]["name"] - self.cmd('az automanage best-practice show --best-practice-name {}'.format(best_practice_name)) + # service-principal + self.cmd('az automanage service-principal list') + self.cmd('az automanage service-principal show-default') + + + @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.configurationprofile.') + def test_automanage_configuration_profile_scenarios(self): + self.kwargs.update({ + 'profile_name': self.create_random_name(prefix='profile', length=24), + }) + self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg}') From d3638c5b22770bcee1742a3ff1b0118650b953b1 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Tue, 4 Oct 2022 20:59:16 +0800 Subject: [PATCH 04/31] add empty --configuration to automanage configuration-profile create --- src/automanage/azext_automanage/_params.py | 11 +++++- .../latest/automanage/best_practice/_list.py | 17 +++++++-- .../latest/automanage/best_practice/_show.py | 11 ++++++ .../automanage/best_practice/version/_list.py | 11 ++++++ .../automanage/best_practice/version/_show.py | 11 ++++++ .../configuration_profile/_create.py | 38 +++++++++++++++++-- .../automanage/configuration_profile/_list.py | 18 +++++++++ .../automanage/configuration_profile/_show.py | 9 +++++ .../configuration_profile/_update.py | 36 ++++++++++++++++++ .../configuration_profile/version/_create.py | 32 ++++++++++++++++ .../configuration_profile/version/_list.py | 9 +++++ .../configuration_profile/version/_show.py | 9 +++++ .../configuration_profile/version/_update.py | 36 ++++++++++++++++++ src/automanage/azext_automanage/commands.py | 7 +++- src/automanage/azext_automanage/custom.py | 22 ++++++++++- 15 files changed, 268 insertions(+), 9 deletions(-) diff --git a/src/automanage/azext_automanage/_params.py b/src/automanage/azext_automanage/_params.py index cfcec717c9c..308364d9daf 100644 --- a/src/automanage/azext_automanage/_params.py +++ b/src/automanage/azext_automanage/_params.py @@ -10,4 +10,13 @@ def load_arguments(self, _): # pylint: disable=unused-argument - pass + + with self.argument_context('automanage configuration-profile create') as c: + c.argument('configuration_profile_name', + options_list=('--configuration-profile-name', '--name', '-n'), required=True, + help='Name of the configuration profile.') + c.argument('resource_group', options_list=('--resource-group', '-g'), required=True, + help='Name of resource group. You can configure the default group using ' + '`az configure --defaults group=`.') + c.extra('configuration', + help='configuration dictionary of the configuration profile.') diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py index 5ceae7309ac..5f7258a5b1c 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py @@ -11,9 +11,9 @@ from azure.cli.core.aaz import * -@register_command( - "automanage best-practice list", -) +# @register_command( +# "automanage best-practice list", +# ) class List(AAZCommand): """List a list of Automanage best practices """ @@ -122,6 +122,9 @@ def _build_schema_on_200(cls): _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}, @@ -130,6 +133,14 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + properties = cls._schema_on_200.value.Element.properties + properties.configuration = AAZObjectType() + + configuration = cls._schema_on_200.value.Element.properties.configuration + configuration.antimalware__enable = AAZBoolType( + serialized_name="Antimalware-Enable", + ) + system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py index 826da4d5d1e..b0999dc5736 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py @@ -144,6 +144,9 @@ def _build_schema_on_200(cls): _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}, @@ -152,6 +155,14 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + properties = cls._schema_on_200.properties + properties.configuration = AAZObjectType() + + configuration = cls._schema_on_200.properties.configuration + configuration.antimalware__enable = AAZBoolType( + serialized_name="Antimalware-Enable", + ) + system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py index 6f00420aa47..4747e602dce 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py @@ -150,6 +150,9 @@ def _build_schema_on_200(cls): _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}, @@ -158,6 +161,14 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + properties = cls._schema_on_200.value.Element.properties + properties.configuration = AAZObjectType() + + configuration = cls._schema_on_200.value.Element.properties.configuration + configuration.antimalware__enable = AAZBoolType( + serialized_name="Antimalware-Enable", + ) + system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py index c8861705541..b54204bff48 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py @@ -153,6 +153,9 @@ def _build_schema_on_200(cls): _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}, @@ -161,6 +164,14 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + properties = cls._schema_on_200.properties + properties.configuration = AAZObjectType() + + configuration = cls._schema_on_200.properties.configuration + configuration.antimalware__enable = AAZBoolType( + serialized_name="Antimalware-Enable", + ) + system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py index 04542e4dbf5..72e3c64cdb7 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py @@ -11,9 +11,9 @@ from azure.cli.core.aaz import * -@register_command( - "automanage configuration-profile create", -) +# @register_command( +# "automanage configuration-profile create", +# ) class Create(AAZCommand): """Create a configuration profile """ @@ -70,6 +70,20 @@ def _build_arguments_schema(cls, *args, **kwargs): tags = cls._args_schema.tags tags.Element = AAZStrArg() + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.configuration = AAZObjectArg( + options=["--configuration"], + arg_group="Properties", + help="configuration dictionary of the configuration profile.", + ) + + configuration = cls._args_schema.configuration + configuration.antimalware_enable = AAZBoolArg( + options=["antimalware-enable"], + ) return cls._args_schema def _execute_operations(self): @@ -163,8 +177,17 @@ def content(self): typ_kwargs={"flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("properties", AAZObjectType) _builder.set_prop("tags", AAZDictType, ".tags") + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("configuration", AAZObjectType, ".configuration") + + configuration = _builder.get(".properties.configuration") + if configuration is not None: + configuration.set_prop("Antimalware-Enable", AAZBoolType, ".antimalware_enable") + tags = _builder.get(".tags") if tags is not None: tags.set_elements(AAZStrType, ".") @@ -198,6 +221,7 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, ) + _schema_on_200_201.properties = AAZObjectType() _schema_on_200_201.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, @@ -207,6 +231,14 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) + properties = cls._schema_on_200_201.properties + properties.configuration = AAZObjectType() + + configuration = cls._schema_on_200_201.properties.configuration + configuration.antimalware__enable = AAZBoolType( + serialized_name="Antimalware-Enable", + ) + system_data = cls._schema_on_200_201.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py index 244dd9a302a..42f523a504e 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py @@ -159,6 +159,7 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"read_only": True}, ) + _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, @@ -168,6 +169,14 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + properties = cls._schema_on_200.value.Element.properties + properties.configuration = AAZObjectType() + + configuration = cls._schema_on_200.value.Element.properties.configuration + configuration.antimalware__enable = AAZBoolType( + serialized_name="Antimalware-Enable", + ) + system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", @@ -287,6 +296,7 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"read_only": True}, ) + _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, @@ -296,6 +306,14 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + properties = cls._schema_on_200.value.Element.properties + properties.configuration = AAZObjectType() + + configuration = cls._schema_on_200.value.Element.properties.configuration + configuration.antimalware__enable = AAZBoolType( + serialized_name="Antimalware-Enable", + ) + system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py index f92b349ef10..7a9e3245fa7 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py @@ -159,6 +159,7 @@ def _build_schema_on_200(cls): _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) + _schema_on_200.properties = AAZObjectType() _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, @@ -168,6 +169,14 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + properties = cls._schema_on_200.properties + properties.configuration = AAZObjectType() + + configuration = cls._schema_on_200.properties.configuration + configuration.antimalware__enable = AAZBoolType( + serialized_name="Antimalware-Enable", + ) + system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py index a7cb8ecada3..632be5a97fd 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py @@ -67,6 +67,22 @@ def _build_arguments_schema(cls, *args, **kwargs): tags.Element = AAZStrArg( nullable=True, ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.configuration = AAZObjectArg( + options=["--configuration"], + arg_group="Properties", + help="configuration dictionary of the configuration profile.", + nullable=True, + ) + + configuration = cls._args_schema.configuration + configuration.antimalware_enable = AAZBoolArg( + options=["antimalware-enable"], + nullable=True, + ) return cls._args_schema def _execute_operations(self): @@ -288,8 +304,17 @@ def _update_instance(self, instance): value=instance, typ=AAZObjectType ) + _builder.set_prop("properties", AAZObjectType) _builder.set_prop("tags", AAZDictType, ".tags") + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("configuration", AAZObjectType, ".configuration") + + configuration = _builder.get(".properties.configuration") + if configuration is not None: + configuration.set_prop("Antimalware-Enable", AAZBoolType, ".antimalware_enable") + tags = _builder.get(".tags") if tags is not None: tags.set_elements(AAZStrType, ".") @@ -314,6 +339,7 @@ def _build_schema_configuration_profile_read(_schema): _schema.id = _schema_configuration_profile_read.id _schema.location = _schema_configuration_profile_read.location _schema.name = _schema_configuration_profile_read.name + _schema.properties = _schema_configuration_profile_read.properties _schema.system_data = _schema_configuration_profile_read.system_data _schema.tags = _schema_configuration_profile_read.tags _schema.type = _schema_configuration_profile_read.type @@ -331,6 +357,7 @@ def _build_schema_configuration_profile_read(_schema): configuration_profile_read.name = AAZStrType( flags={"read_only": True}, ) + configuration_profile_read.properties = AAZObjectType() configuration_profile_read.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, @@ -340,6 +367,14 @@ def _build_schema_configuration_profile_read(_schema): flags={"read_only": True}, ) + properties = _schema_configuration_profile_read.properties + properties.configuration = AAZObjectType() + + configuration = _schema_configuration_profile_read.properties.configuration + configuration.antimalware__enable = AAZBoolType( + serialized_name="Antimalware-Enable", + ) + system_data = _schema_configuration_profile_read.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", @@ -372,6 +407,7 @@ def _build_schema_configuration_profile_read(_schema): _schema.id = _schema_configuration_profile_read.id _schema.location = _schema_configuration_profile_read.location _schema.name = _schema_configuration_profile_read.name + _schema.properties = _schema_configuration_profile_read.properties _schema.system_data = _schema_configuration_profile_read.system_data _schema.tags = _schema_configuration_profile_read.tags _schema.type = _schema_configuration_profile_read.type diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py index 7ae58992cf4..e307c088568 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py @@ -76,6 +76,20 @@ def _build_arguments_schema(cls, *args, **kwargs): tags = cls._args_schema.tags tags.Element = AAZStrArg() + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.configuration = AAZObjectArg( + options=["--configuration"], + arg_group="Properties", + help="configuration dictionary of the configuration profile.", + ) + + configuration = cls._args_schema.configuration + configuration.antimalware_enable = AAZBoolArg( + options=["antimalware-enable"], + ) return cls._args_schema def _execute_operations(self): @@ -173,8 +187,17 @@ def content(self): typ_kwargs={"flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("properties", AAZObjectType) _builder.set_prop("tags", AAZDictType, ".tags") + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("configuration", AAZObjectType, ".configuration") + + configuration = _builder.get(".properties.configuration") + if configuration is not None: + configuration.set_prop("Antimalware-Enable", AAZBoolType, ".antimalware_enable") + tags = _builder.get(".tags") if tags is not None: tags.set_elements(AAZStrType, ".") @@ -208,6 +231,7 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, ) + _schema_on_200_201.properties = AAZObjectType() _schema_on_200_201.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, @@ -217,6 +241,14 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) + properties = cls._schema_on_200_201.properties + properties.configuration = AAZObjectType() + + configuration = cls._schema_on_200_201.properties.configuration + configuration.antimalware__enable = AAZBoolType( + serialized_name="Antimalware-Enable", + ) + system_data = cls._schema_on_200_201.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py index 6b19b390ae1..fcd02d12db6 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py @@ -164,6 +164,7 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"read_only": True}, ) + _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, @@ -173,6 +174,14 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + properties = cls._schema_on_200.value.Element.properties + properties.configuration = AAZObjectType() + + configuration = cls._schema_on_200.value.Element.properties.configuration + configuration.antimalware__enable = AAZBoolType( + serialized_name="Antimalware-Enable", + ) + system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py index 288524671d5..a8735648573 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py @@ -169,6 +169,7 @@ def _build_schema_on_200(cls): _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) + _schema_on_200.properties = AAZObjectType() _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, @@ -178,6 +179,14 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + properties = cls._schema_on_200.properties + properties.configuration = AAZObjectType() + + configuration = cls._schema_on_200.properties.configuration + configuration.antimalware__enable = AAZBoolType( + serialized_name="Antimalware-Enable", + ) + system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py index 3f934c313e6..b65241a1750 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py @@ -73,6 +73,22 @@ def _build_arguments_schema(cls, *args, **kwargs): tags.Element = AAZStrArg( nullable=True, ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.configuration = AAZObjectArg( + options=["--configuration"], + arg_group="Properties", + help="configuration dictionary of the configuration profile.", + nullable=True, + ) + + configuration = cls._args_schema.configuration + configuration.antimalware_enable = AAZBoolArg( + options=["antimalware-enable"], + nullable=True, + ) return cls._args_schema def _execute_operations(self): @@ -302,8 +318,17 @@ def _update_instance(self, instance): value=instance, typ=AAZObjectType ) + _builder.set_prop("properties", AAZObjectType) _builder.set_prop("tags", AAZDictType, ".tags") + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("configuration", AAZObjectType, ".configuration") + + configuration = _builder.get(".properties.configuration") + if configuration is not None: + configuration.set_prop("Antimalware-Enable", AAZBoolType, ".antimalware_enable") + tags = _builder.get(".tags") if tags is not None: tags.set_elements(AAZStrType, ".") @@ -328,6 +353,7 @@ def _build_schema_configuration_profile_read(_schema): _schema.id = _schema_configuration_profile_read.id _schema.location = _schema_configuration_profile_read.location _schema.name = _schema_configuration_profile_read.name + _schema.properties = _schema_configuration_profile_read.properties _schema.system_data = _schema_configuration_profile_read.system_data _schema.tags = _schema_configuration_profile_read.tags _schema.type = _schema_configuration_profile_read.type @@ -345,6 +371,7 @@ def _build_schema_configuration_profile_read(_schema): configuration_profile_read.name = AAZStrType( flags={"read_only": True}, ) + configuration_profile_read.properties = AAZObjectType() configuration_profile_read.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, @@ -354,6 +381,14 @@ def _build_schema_configuration_profile_read(_schema): flags={"read_only": True}, ) + properties = _schema_configuration_profile_read.properties + properties.configuration = AAZObjectType() + + configuration = _schema_configuration_profile_read.properties.configuration + configuration.antimalware__enable = AAZBoolType( + serialized_name="Antimalware-Enable", + ) + system_data = _schema_configuration_profile_read.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", @@ -386,6 +421,7 @@ def _build_schema_configuration_profile_read(_schema): _schema.id = _schema_configuration_profile_read.id _schema.location = _schema_configuration_profile_read.location _schema.name = _schema_configuration_profile_read.name + _schema.properties = _schema_configuration_profile_read.properties _schema.system_data = _schema_configuration_profile_read.system_data _schema.tags = _schema_configuration_profile_read.tags _schema.type = _schema_configuration_profile_read.type diff --git a/src/automanage/azext_automanage/commands.py b/src/automanage/azext_automanage/commands.py index b0d842e4993..c69b2d5b563 100644 --- a/src/automanage/azext_automanage/commands.py +++ b/src/automanage/azext_automanage/commands.py @@ -12,4 +12,9 @@ def load_command_table(self, _): # pylint: disable=unused-argument - pass + + with self.command_group('automanage configuration-profile') as g: + g.custom_command('create', 'create_configuration_profile') + + with self.command_group('automanage best-practice') as g: + g.custom_command('list', 'list_best_practice') diff --git a/src/automanage/azext_automanage/custom.py b/src/automanage/azext_automanage/custom.py index 86df1e48ef5..5544e46671f 100644 --- a/src/automanage/azext_automanage/custom.py +++ b/src/automanage/azext_automanage/custom.py @@ -9,6 +9,26 @@ # pylint: disable=too-many-statements from knack.log import get_logger - +import json logger = get_logger(__name__) + +from .aaz.latest.automanage.configuration_profile import Create, Update +from .aaz.latest.automanage.best_practice import List + + +def list_best_practice(cmd): + List_Best_Practice = List(cmd.loader) + args = {} + result = List_Best_Practice(args) + return result + +def create_configuration_profile(cmd, configuration_profile_name, resource_group, configuration=None): + Create_Confguration_Profile = Create(cmd.loader) + args = { + "configuration_profile_name": configuration_profile_name, + "resource_group": resource_group, + "configuration": json.loads(configuration) if configuration else {} + } + result = Create_Confguration_Profile(args) + return result From 41bd09a07428bc9da782a007f3530fbaf06ba540 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Tue, 4 Oct 2022 21:23:10 +0800 Subject: [PATCH 05/31] add configuration-profile tests, test for version is N/A because of server issue --- ...anage_configuration_profile_scenarios.yaml | 383 ++++++++++++++++++ .../recordings/test_automanage_scenarios.yaml | 158 +++++++- .../tests/latest/test_automanage.py | 10 +- 3 files changed, 541 insertions(+), 10 deletions(-) create mode 100644 src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml new file mode 100644 index 00000000000..ab9c5e954ed --- /dev/null +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml @@ -0,0 +1,383 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-04T13:22:26Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '381' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Oct 2022 13:22:27 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "properties": {"configuration": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + Content-Length: + - '64' + Content-Type: + - application/json + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-04T13:22:33.2828165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-04T13:22:33.2828165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '576' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Oct 2022 13:22:35 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002 + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - automanage configuration-profile show + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-04T13:22:33.2828165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-04T13:22:33.2828165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '576' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Oct 2022 13:22:36 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-04T13:22:33.2828165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-04T13:22:33.2828165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '588' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Oct 2022 13:22:38 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile update + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-04T13:22:33.2828165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-04T13:22:33.2828165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '576' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Oct 2022 13:22:42 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: '{"location": "eastus2euap", "properties": {"configuration": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile update + Connection: + - keep-alive + Content-Length: + - '64' + Content-Type: + - application/json + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-04T13:22:33.2828165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-04T13:22:42.9674907+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '576' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Oct 2022 13:22:43 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g -y + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 04 Oct 2022 13:22:48 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Oct 2022 13:22:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml index 8d5a2e4e02d..93bb31a8eaf 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml @@ -11,21 +11,21 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.40.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction","name":"AzureBestPracticesProduction","type":"Microsoft.Automanage/bestPractices","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"true","Backup/PolicyName":"dailyBackupPolicy","Backup/TimeZone":"UTC","Backup/InstantRpRetentionRangeInDays":"2","Backup/SchedulePolicy/ScheduleRunFrequency":"Daily","Backup/SchedulePolicy/ScheduleRunTimes":["2017-01-26T00:00:00Z"],"Backup/SchedulePolicy/SchedulePolicyType":"SimpleSchedulePolicy","Backup/RetentionPolicy/RetentionPolicyType":"LongTermRetentionPolicy","Backup/RetentionPolicy/DailySchedule/RetentionTimes":["2017-01-26T00:00:00Z"],"Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count":"180","Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType":"Days","VMInsights/Enable":"true","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2021-06-30T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}},{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest","name":"AzureBestPracticesDevTest","type":"Microsoft.Automanage/bestPractices","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"false","VMInsights/Enable":"false","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2021-06-30T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction","name":"AzureBestPracticesProduction","type":"Microsoft.Automanage/bestPractices","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"true","Backup/PolicyName":"dailyBackupPolicy","Backup/TimeZone":"UTC","Backup/InstantRpRetentionRangeInDays":"2","Backup/SchedulePolicy/ScheduleRunFrequency":"Daily","Backup/SchedulePolicy/ScheduleRunTimes":["2017-01-26T00:00:00Z"],"Backup/SchedulePolicy/SchedulePolicyType":"SimpleSchedulePolicy","Backup/RetentionPolicy/RetentionPolicyType":"LongTermRetentionPolicy","Backup/RetentionPolicy/DailySchedule/RetentionTimes":["2017-01-26T00:00:00Z"],"Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count":"180","Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType":"Days","VMInsights/Enable":"true","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2022-10-03T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}},{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest","name":"AzureBestPracticesDevTest","type":"Microsoft.Automanage/bestPractices","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"false","VMInsights/Enable":"false","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true","WindowsAdminCenter/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2022-10-03T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '2319' + - '2354' content-type: - application/json; charset=utf-8 date: - - Thu, 29 Sep 2022 07:51:46 GMT + - Tue, 04 Oct 2022 12:39:00 GMT expires: - '-1' pragma: @@ -59,21 +59,161 @@ interactions: ParameterSetName: - --best-practice-name User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.40.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction?api-version=2022-05-04 + uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest?api-version=2022-05-04 response: body: - string: '{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction","name":"AzureBestPracticesProduction","type":"Microsoft.Automanage/bestPractices","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"true","Backup/PolicyName":"dailyBackupPolicy","Backup/TimeZone":"UTC","Backup/InstantRpRetentionRangeInDays":"2","Backup/SchedulePolicy/ScheduleRunFrequency":"Daily","Backup/SchedulePolicy/ScheduleRunTimes":["2017-01-26T00:00:00Z"],"Backup/SchedulePolicy/SchedulePolicyType":"SimpleSchedulePolicy","Backup/RetentionPolicy/RetentionPolicyType":"LongTermRetentionPolicy","Backup/RetentionPolicy/DailySchedule/RetentionTimes":["2017-01-26T00:00:00Z"],"Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count":"180","Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType":"Days","VMInsights/Enable":"true","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2021-06-30T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}' + string: '{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest","name":"AzureBestPracticesDevTest","type":"Microsoft.Automanage/bestPractices","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"false","VMInsights/Enable":"false","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true","WindowsAdminCenter/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2022-10-03T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1449' + - '892' content-type: - application/json; charset=utf-8 date: - - Thu, 29 Sep 2022 07:51:47 GMT + - Tue, 04 Oct 2022 12:39:01 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage best-practice version list + Connection: + - keep-alive + ParameterSetName: + - --best-practice-name + User-Agent: + - AZURECLI/2.40.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions?api-version=2022-05-04 + response: + body: + string: '{"value":[{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions/2021-06-30","name":"AzureBestPracticesDevTest/2021-06-30","type":"Microsoft.Automanage/bestPractices/versions","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"false","VMInsights/Enable":"false","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2021-06-30T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '909' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Oct 2022 12:39:01 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage service-principal list + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.40.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals?api-version=2022-05-04 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Oct 2022 12:39:02 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage service-principal show-default + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.40.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals/default?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals/default","name":"default","type":"Microsoft.Automanage/servicePrincipals","properties":{"authorizationSet":false,"servicePrincipalId":"9c649736-fc13-44c4-a4af-9947c6a203e4"}}' + headers: + cache-control: + - no-cache + content-length: + - '282' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Oct 2022 12:39:12 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index 22812e8d5ff..220c3d19be5 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -20,7 +20,7 @@ def test_automanage_scenarios(self): '--best-practice-name {}'.format(best_practice_name)).get_output_in_json() if version_name and len(version_name)>=1: version_name = version_name[0]["name"] - #TODO no permission + #TODO server error # self.cmd('az automanage best-practice version show --best-practice-name {} --version-name ' # '{}'.format(best_practice_name, version_name)) @@ -35,3 +35,11 @@ def test_automanage_configuration_profile_scenarios(self): 'profile_name': self.create_random_name(prefix='profile', length=24), }) self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg}') + self.cmd('az automanage configuration-profile show -n {profile_name} -g {rg}') + self.cmd('az automanage configuration-profile list -g {rg}', checks=[JMESPathCheck('length(@)', 1)]) + self.cmd('az automanage configuration-profile update -n {profile_name} -g {rg}') + self.cmd('az automanage configuration-profile delete -n {profile_name} -g {rg} -y') + self.cmd('az automanage configuration-profile list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) + + # TODO server error + # self.cmd('az automanage configuration-profile version create') From 718a24e41f1f9bad0766048051b9b037182982d7 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Thu, 6 Oct 2022 15:04:00 +0800 Subject: [PATCH 06/31] rerun tests --- ...anage_configuration_profile_scenarios.yaml | 30 +++++++++---------- .../recordings/test_automanage_scenarios.yaml | 20 ++++++------- .../tests/latest/test_automanage.py | 22 +++++++++++--- 3 files changed, 43 insertions(+), 29 deletions(-) diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml index ab9c5e954ed..84e93425153 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-04T13:22:26Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-06T06:51:30Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 04 Oct 2022 13:22:27 GMT + - Thu, 06 Oct 2022 06:51:37 GMT expires: - '-1' pragma: @@ -65,7 +65,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-04T13:22:33.2828165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-04T13:22:33.2828165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-06T06:51:44.5697154+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-06T06:51:44.5697154+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -74,7 +74,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 04 Oct 2022 13:22:35 GMT + - Thu, 06 Oct 2022 06:51:46 GMT expires: - '-1' location: @@ -90,7 +90,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -113,7 +113,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-04T13:22:33.2828165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-04T13:22:33.2828165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-06T06:51:44.5697154+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-06T06:51:44.5697154+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -122,7 +122,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 04 Oct 2022 13:22:36 GMT + - Thu, 06 Oct 2022 06:51:47 GMT expires: - '-1' pragma: @@ -161,7 +161,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-04T13:22:33.2828165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-04T13:22:33.2828165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-06T06:51:44.5697154+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-06T06:51:44.5697154+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache @@ -170,7 +170,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 04 Oct 2022 13:22:38 GMT + - Thu, 06 Oct 2022 06:51:49 GMT expires: - '-1' pragma: @@ -209,7 +209,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-04T13:22:33.2828165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-04T13:22:33.2828165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-06T06:51:44.5697154+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-06T06:51:44.5697154+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -218,7 +218,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 04 Oct 2022 13:22:42 GMT + - Thu, 06 Oct 2022 06:51:50 GMT expires: - '-1' pragma: @@ -261,7 +261,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-04T13:22:33.2828165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-04T13:22:42.9674907+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-06T06:51:44.5697154+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-06T06:51:51.7686827+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -270,7 +270,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 04 Oct 2022 13:22:43 GMT + - Thu, 06 Oct 2022 06:51:51 GMT expires: - '-1' pragma: @@ -320,7 +320,7 @@ interactions: content-length: - '0' date: - - Tue, 04 Oct 2022 13:22:48 GMT + - Thu, 06 Oct 2022 06:51:58 GMT expires: - '-1' pragma: @@ -366,7 +366,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 04 Oct 2022 13:22:49 GMT + - Thu, 06 Oct 2022 06:51:59 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml index 93bb31a8eaf..217361a62e2 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml @@ -11,7 +11,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.40.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices?api-version=2022-05-04 response: @@ -25,7 +25,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 04 Oct 2022 12:39:00 GMT + - Thu, 06 Oct 2022 06:51:37 GMT expires: - '-1' pragma: @@ -59,7 +59,7 @@ interactions: ParameterSetName: - --best-practice-name User-Agent: - - AZURECLI/2.40.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest?api-version=2022-05-04 response: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 04 Oct 2022 12:39:01 GMT + - Thu, 06 Oct 2022 06:51:37 GMT expires: - '-1' pragma: @@ -107,7 +107,7 @@ interactions: ParameterSetName: - --best-practice-name User-Agent: - - AZURECLI/2.40.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions?api-version=2022-05-04 response: @@ -121,7 +121,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 04 Oct 2022 12:39:01 GMT + - Thu, 06 Oct 2022 06:51:38 GMT expires: - '-1' pragma: @@ -153,7 +153,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.40.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals?api-version=2022-05-04 response: @@ -167,7 +167,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 04 Oct 2022 12:39:02 GMT + - Thu, 06 Oct 2022 06:51:38 GMT expires: - '-1' pragma: @@ -199,7 +199,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.40.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals/default?api-version=2022-05-04 response: @@ -213,7 +213,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 04 Oct 2022 12:39:12 GMT + - Thu, 06 Oct 2022 06:51:49 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index 220c3d19be5..8f2ab24db53 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -13,14 +13,14 @@ class AutomanageScenario(ScenarioTest): def test_automanage_scenarios(self): # best-practice best_practice_name = self.cmd('az automanage best-practice list').get_output_in_json() - if best_practice_name and len(best_practice_name)>=2: + if best_practice_name and len(best_practice_name) >= 2: best_practice_name = best_practice_name[1]["name"] self.cmd('az automanage best-practice show --best-practice-name {}'.format(best_practice_name)) version_name = self.cmd('az automanage best-practice version list ' '--best-practice-name {}'.format(best_practice_name)).get_output_in_json() - if version_name and len(version_name)>=1: + if version_name and len(version_name) >= 1: version_name = version_name[0]["name"] - #TODO server error + # TODO server error # self.cmd('az automanage best-practice version show --best-practice-name {} --version-name ' # '{}'.format(best_practice_name, version_name)) @@ -28,7 +28,6 @@ def test_automanage_scenarios(self): self.cmd('az automanage service-principal list') self.cmd('az automanage service-principal show-default') - @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.configurationprofile.') def test_automanage_configuration_profile_scenarios(self): self.kwargs.update({ @@ -43,3 +42,18 @@ def test_automanage_configuration_profile_scenarios(self): # TODO server error # self.cmd('az automanage configuration-profile version create') + + # @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.configurationprofileassignment.') + # def test_automanage_configuration_profile_assignment_scenarios(self): + # self.kwargs.update({ + # 'profile_name': self.create_random_name(prefix='profile', length=24), + # 'arc_assignment_name': self.create_random_name(prefix='arc_assignment', length=24), + # }) + # profile_id = self.cmd('az automanage configuration-profile create -n {profile_name} ' + # '-g {rg}').get_output_in_json()["id"] + # self.cmd('az automanage configuration-profile-assignment arc create -n {arc_assignment_name} -g {rg}') + # self.cmd('az automanage configuration-profile show -n {profile_name} -g {rg}') + # self.cmd('az automanage configuration-profile list -g {rg}', checks=[JMESPathCheck('length(@)', 1)]) + # self.cmd('az automanage configuration-profile update -n {profile_name} -g {rg}') + # self.cmd('az automanage configuration-profile delete -n {profile_name} -g {rg} -y') + # self.cmd('az automanage configuration-profile list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) From b5a86b065d6ba3645df9a84dea167bf23941b05d Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Sat, 8 Oct 2022 16:36:33 +0800 Subject: [PATCH 07/31] configuration as dict of strings --- src/automanage/azext_automanage/_params.py | 20 +-- .../latest/automanage/best_practice/_list.py | 12 +- .../latest/automanage/best_practice/_show.py | 6 +- .../best_practice/version/__cmd_group.py | 3 - .../automanage/best_practice/version/_list.py | 9 +- .../automanage/best_practice/version/_show.py | 9 +- .../configuration_profile/_create.py | 22 ++- .../automanage/configuration_profile/_list.py | 12 +- .../automanage/configuration_profile/_show.py | 6 +- .../configuration_profile/_update.py | 15 +- .../version/__cmd_group.py | 3 - .../configuration_profile/version/_create.py | 19 +-- .../configuration_profile/version/_delete.py | 4 - .../configuration_profile/version/_list.py | 9 +- .../configuration_profile/version/_show.py | 9 +- .../configuration_profile/version/_update.py | 18 +-- src/automanage/azext_automanage/commands.py | 10 +- src/automanage/azext_automanage/custom.py | 1 + ...anage_configuration_profile_scenarios.yaml | 61 ++++---- .../recordings/test_automanage_scenarios.yaml | 146 +----------------- .../tests/latest/test_automanage.py | 45 ++++-- 21 files changed, 130 insertions(+), 309 deletions(-) diff --git a/src/automanage/azext_automanage/_params.py b/src/automanage/azext_automanage/_params.py index 308364d9daf..48159032e6e 100644 --- a/src/automanage/azext_automanage/_params.py +++ b/src/automanage/azext_automanage/_params.py @@ -10,13 +10,13 @@ def load_arguments(self, _): # pylint: disable=unused-argument - - with self.argument_context('automanage configuration-profile create') as c: - c.argument('configuration_profile_name', - options_list=('--configuration-profile-name', '--name', '-n'), required=True, - help='Name of the configuration profile.') - c.argument('resource_group', options_list=('--resource-group', '-g'), required=True, - help='Name of resource group. You can configure the default group using ' - '`az configure --defaults group=`.') - c.extra('configuration', - help='configuration dictionary of the configuration profile.') + pass + # with self.argument_context('automanage configuration-profile create') as c: + # c.argument('configuration_profile_name', + # options_list=('--configuration-profile-name', '--name', '-n'), required=True, + # help='Name of the configuration profile.') + # c.argument('resource_group', options_list=('--resource-group', '-g'), required=True, + # help='Name of resource group. You can configure the default group using ' + # '`az configure --defaults group=`.') + # c.extra('configuration', + # help='configuration dictionary of the configuration profile.') diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py index 5f7258a5b1c..63a31819c3d 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py @@ -11,9 +11,9 @@ from azure.cli.core.aaz import * -# @register_command( -# "automanage best-practice list", -# ) +@register_command( + "automanage best-practice list", +) class List(AAZCommand): """List a list of Automanage best practices """ @@ -134,12 +134,10 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.value.Element.properties - properties.configuration = AAZObjectType() + properties.configuration = AAZDictType() configuration = cls._schema_on_200.value.Element.properties.configuration - configuration.antimalware__enable = AAZBoolType( - serialized_name="Antimalware-Enable", - ) + configuration.Element = AAZStrType() system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py index b0999dc5736..01835dc41d3 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py @@ -156,12 +156,10 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.properties - properties.configuration = AAZObjectType() + properties.configuration = AAZDictType() configuration = cls._schema_on_200.properties.configuration - configuration.antimalware__enable = AAZBoolType( - serialized_name="Antimalware-Enable", - ) + configuration.Element = AAZStrType() system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py index 903321f1080..cb75619b0af 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py @@ -11,9 +11,6 @@ from azure.cli.core.aaz import * -@register_command_group( - "automanage best-practice version", -) class __CMDGroup(AAZCommandGroup): """Manage Automanage best practice version """ diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py index 4747e602dce..4df657f5842 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py @@ -11,9 +11,6 @@ from azure.cli.core.aaz import * -@register_command( - "automanage best-practice version list", -) class List(AAZCommand): """List a list of Automanage best practices versions """ @@ -162,12 +159,10 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.value.Element.properties - properties.configuration = AAZObjectType() + properties.configuration = AAZDictType() configuration = cls._schema_on_200.value.Element.properties.configuration - configuration.antimalware__enable = AAZBoolType( - serialized_name="Antimalware-Enable", - ) + configuration.Element = AAZStrType() system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py index b54204bff48..38c8768995f 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py @@ -11,9 +11,6 @@ from azure.cli.core.aaz import * -@register_command( - "automanage best-practice version show", -) class Show(AAZCommand): """Get information about a Automanage best practice version """ @@ -165,12 +162,10 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.properties - properties.configuration = AAZObjectType() + properties.configuration = AAZDictType() configuration = cls._schema_on_200.properties.configuration - configuration.antimalware__enable = AAZBoolType( - serialized_name="Antimalware-Enable", - ) + configuration.Element = AAZStrType() system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py index 72e3c64cdb7..7cac6328705 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py @@ -11,9 +11,9 @@ from azure.cli.core.aaz import * -# @register_command( -# "automanage configuration-profile create", -# ) +@register_command( + "automanage configuration-profile create", +) class Create(AAZCommand): """Create a configuration profile """ @@ -74,16 +74,14 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema - _args_schema.configuration = AAZObjectArg( + _args_schema.configuration = AAZDictArg( options=["--configuration"], arg_group="Properties", help="configuration dictionary of the configuration profile.", ) configuration = cls._args_schema.configuration - configuration.antimalware_enable = AAZBoolArg( - options=["antimalware-enable"], - ) + configuration.Element = AAZStrArg() return cls._args_schema def _execute_operations(self): @@ -182,11 +180,11 @@ def content(self): properties = _builder.get(".properties") if properties is not None: - properties.set_prop("configuration", AAZObjectType, ".configuration") + properties.set_prop("configuration", AAZDictType, ".configuration") configuration = _builder.get(".properties.configuration") if configuration is not None: - configuration.set_prop("Antimalware-Enable", AAZBoolType, ".antimalware_enable") + configuration.set_elements(AAZStrType, ".") tags = _builder.get(".tags") if tags is not None: @@ -232,12 +230,10 @@ def _build_schema_on_200_201(cls): ) properties = cls._schema_on_200_201.properties - properties.configuration = AAZObjectType() + properties.configuration = AAZDictType() configuration = cls._schema_on_200_201.properties.configuration - configuration.antimalware__enable = AAZBoolType( - serialized_name="Antimalware-Enable", - ) + configuration.Element = AAZStrType() system_data = cls._schema_on_200_201.system_data system_data.created_at = AAZStrType( diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py index 42f523a504e..eb065084455 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py @@ -170,12 +170,10 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.value.Element.properties - properties.configuration = AAZObjectType() + properties.configuration = AAZDictType() configuration = cls._schema_on_200.value.Element.properties.configuration - configuration.antimalware__enable = AAZBoolType( - serialized_name="Antimalware-Enable", - ) + configuration.Element = AAZStrType() system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( @@ -307,12 +305,10 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.value.Element.properties - properties.configuration = AAZObjectType() + properties.configuration = AAZDictType() configuration = cls._schema_on_200.value.Element.properties.configuration - configuration.antimalware__enable = AAZBoolType( - serialized_name="Antimalware-Enable", - ) + configuration.Element = AAZStrType() system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py index 7a9e3245fa7..905fa0df41f 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py @@ -170,12 +170,10 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.properties - properties.configuration = AAZObjectType() + properties.configuration = AAZDictType() configuration = cls._schema_on_200.properties.configuration - configuration.antimalware__enable = AAZBoolType( - serialized_name="Antimalware-Enable", - ) + configuration.Element = AAZStrType() system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py index 632be5a97fd..005331a621a 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py @@ -71,7 +71,7 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema - _args_schema.configuration = AAZObjectArg( + _args_schema.configuration = AAZDictArg( options=["--configuration"], arg_group="Properties", help="configuration dictionary of the configuration profile.", @@ -79,8 +79,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) configuration = cls._args_schema.configuration - configuration.antimalware_enable = AAZBoolArg( - options=["antimalware-enable"], + configuration.Element = AAZStrArg( nullable=True, ) return cls._args_schema @@ -309,11 +308,11 @@ def _update_instance(self, instance): properties = _builder.get(".properties") if properties is not None: - properties.set_prop("configuration", AAZObjectType, ".configuration") + properties.set_prop("configuration", AAZDictType, ".configuration") configuration = _builder.get(".properties.configuration") if configuration is not None: - configuration.set_prop("Antimalware-Enable", AAZBoolType, ".antimalware_enable") + configuration.set_elements(AAZStrType, ".") tags = _builder.get(".tags") if tags is not None: @@ -368,12 +367,10 @@ def _build_schema_configuration_profile_read(_schema): ) properties = _schema_configuration_profile_read.properties - properties.configuration = AAZObjectType() + properties.configuration = AAZDictType() configuration = _schema_configuration_profile_read.properties.configuration - configuration.antimalware__enable = AAZBoolType( - serialized_name="Antimalware-Enable", - ) + configuration.Element = AAZStrType() system_data = _schema_configuration_profile_read.system_data system_data.created_at = AAZStrType( diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__cmd_group.py index 19ff961f87e..34547c08e46 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__cmd_group.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__cmd_group.py @@ -11,9 +11,6 @@ from azure.cli.core.aaz import * -@register_command_group( - "automanage configuration-profile version", -) class __CMDGroup(AAZCommandGroup): """Manage configuration profile version """ diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py index e307c088568..db2d4a9672e 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py @@ -11,9 +11,6 @@ from azure.cli.core.aaz import * -@register_command( - "automanage configuration-profile version create", -) class Create(AAZCommand): """Create a configuration profile version """ @@ -80,16 +77,14 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema - _args_schema.configuration = AAZObjectArg( + _args_schema.configuration = AAZDictArg( options=["--configuration"], arg_group="Properties", help="configuration dictionary of the configuration profile.", ) configuration = cls._args_schema.configuration - configuration.antimalware_enable = AAZBoolArg( - options=["antimalware-enable"], - ) + configuration.Element = AAZStrArg() return cls._args_schema def _execute_operations(self): @@ -192,11 +187,11 @@ def content(self): properties = _builder.get(".properties") if properties is not None: - properties.set_prop("configuration", AAZObjectType, ".configuration") + properties.set_prop("configuration", AAZDictType, ".configuration") configuration = _builder.get(".properties.configuration") if configuration is not None: - configuration.set_prop("Antimalware-Enable", AAZBoolType, ".antimalware_enable") + configuration.set_elements(AAZStrType, ".") tags = _builder.get(".tags") if tags is not None: @@ -242,12 +237,10 @@ def _build_schema_on_200_201(cls): ) properties = cls._schema_on_200_201.properties - properties.configuration = AAZObjectType() + properties.configuration = AAZDictType() configuration = cls._schema_on_200_201.properties.configuration - configuration.antimalware__enable = AAZBoolType( - serialized_name="Antimalware-Enable", - ) + configuration.Element = AAZStrType() system_data = cls._schema_on_200_201.system_data system_data.created_at = AAZStrType( diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py index 9927694fcce..82f1dc1b6db 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py @@ -11,10 +11,6 @@ from azure.cli.core.aaz import * -@register_command( - "automanage configuration-profile version delete", - confirmation="Are you sure you want to perform this operation?", -) class Delete(AAZCommand): """Delete a configuration profile version """ diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py index fcd02d12db6..af4c1a19bf3 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py @@ -11,9 +11,6 @@ from azure.cli.core.aaz import * -@register_command( - "automanage configuration-profile version list", -) class List(AAZCommand): """List a list of configuration profile version for a configuration profile """ @@ -175,12 +172,10 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.value.Element.properties - properties.configuration = AAZObjectType() + properties.configuration = AAZDictType() configuration = cls._schema_on_200.value.Element.properties.configuration - configuration.antimalware__enable = AAZBoolType( - serialized_name="Antimalware-Enable", - ) + configuration.Element = AAZStrType() system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py index a8735648573..2644394f7db 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py @@ -11,9 +11,6 @@ from azure.cli.core.aaz import * -@register_command( - "automanage configuration-profile version show", -) class Show(AAZCommand): """Get information about a configuration profile version """ @@ -180,12 +177,10 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.properties - properties.configuration = AAZObjectType() + properties.configuration = AAZDictType() configuration = cls._schema_on_200.properties.configuration - configuration.antimalware__enable = AAZBoolType( - serialized_name="Antimalware-Enable", - ) + configuration.Element = AAZStrType() system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py index b65241a1750..e70581e6995 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py @@ -11,9 +11,6 @@ from azure.cli.core.aaz import * -@register_command( - "automanage configuration-profile version update", -) class Update(AAZCommand): """Update a configuration profile version """ @@ -77,7 +74,7 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema - _args_schema.configuration = AAZObjectArg( + _args_schema.configuration = AAZDictArg( options=["--configuration"], arg_group="Properties", help="configuration dictionary of the configuration profile.", @@ -85,8 +82,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) configuration = cls._args_schema.configuration - configuration.antimalware_enable = AAZBoolArg( - options=["antimalware-enable"], + configuration.Element = AAZStrArg( nullable=True, ) return cls._args_schema @@ -323,11 +319,11 @@ def _update_instance(self, instance): properties = _builder.get(".properties") if properties is not None: - properties.set_prop("configuration", AAZObjectType, ".configuration") + properties.set_prop("configuration", AAZDictType, ".configuration") configuration = _builder.get(".properties.configuration") if configuration is not None: - configuration.set_prop("Antimalware-Enable", AAZBoolType, ".antimalware_enable") + configuration.set_elements(AAZStrType, ".") tags = _builder.get(".tags") if tags is not None: @@ -382,12 +378,10 @@ def _build_schema_configuration_profile_read(_schema): ) properties = _schema_configuration_profile_read.properties - properties.configuration = AAZObjectType() + properties.configuration = AAZDictType() configuration = _schema_configuration_profile_read.properties.configuration - configuration.antimalware__enable = AAZBoolType( - serialized_name="Antimalware-Enable", - ) + configuration.Element = AAZStrType() system_data = _schema_configuration_profile_read.system_data system_data.created_at = AAZStrType( diff --git a/src/automanage/azext_automanage/commands.py b/src/automanage/azext_automanage/commands.py index c69b2d5b563..9562e5c7b85 100644 --- a/src/automanage/azext_automanage/commands.py +++ b/src/automanage/azext_automanage/commands.py @@ -12,9 +12,9 @@ def load_command_table(self, _): # pylint: disable=unused-argument + pass + # with self.command_group('automanage configuration-profile') as g: + # g.custom_command('create', 'create_configuration_profile') - with self.command_group('automanage configuration-profile') as g: - g.custom_command('create', 'create_configuration_profile') - - with self.command_group('automanage best-practice') as g: - g.custom_command('list', 'list_best_practice') + # with self.command_group('automanage best-practice') as g: + # g.custom_command('list', 'list_best_practice') diff --git a/src/automanage/azext_automanage/custom.py b/src/automanage/azext_automanage/custom.py index 5544e46671f..0b5ac1e30eb 100644 --- a/src/automanage/azext_automanage/custom.py +++ b/src/automanage/azext_automanage/custom.py @@ -28,6 +28,7 @@ def create_configuration_profile(cmd, configuration_profile_name, resource_group args = { "configuration_profile_name": configuration_profile_name, "resource_group": resource_group, + # "configuration": configuration "configuration": json.loads(configuration) if configuration else {} } result = Create_Confguration_Profile(args) diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml index 84e93425153..2e2fb5b24e3 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml @@ -11,7 +11,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g + - -n -g --configuration User-Agent: - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-06T06:51:30Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-08T08:35:01Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Oct 2022 06:51:37 GMT + - Sat, 08 Oct 2022 08:35:04 GMT expires: - '-1' pragma: @@ -43,7 +43,11 @@ interactions: code: 200 message: OK - request: - body: '{"location": "eastus2euap", "properties": {"configuration": {}}}' + body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": + "false", "Backup/Enable": "false", "VMInsights/Enable": "true", "AzureSecurityCenter/Enable": + "true", "UpdateManagement/Enable": "true", "ChangeTrackingAndInventory/Enable": + "true", "GuestConfiguration/Enable": "true", "LogAnalytics/Enable": "true", + "BootDiagnostics/Enable": "true"}}}' headers: Accept: - application/json @@ -54,27 +58,27 @@ interactions: Connection: - keep-alive Content-Length: - - '64' + - '368' Content-Type: - application/json ParameterSetName: - - -n -g + - -n -g --configuration User-Agent: - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-06T06:51:44.5697154+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-06T06:51:44.5697154+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":"false","Backup/Enable":"false","VMInsights/Enable":"true","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2022-10-08T08:35:11.4166168+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-08T08:35:11.4166168+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '576' + - '863' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Oct 2022 06:51:46 GMT + - Sat, 08 Oct 2022 08:35:13 GMT expires: - '-1' location: @@ -113,16 +117,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-06T06:51:44.5697154+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-06T06:51:44.5697154+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":"false","Backup/Enable":"false","VMInsights/Enable":"true","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2022-10-08T08:35:11.4166168+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-08T08:35:11.4166168+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '576' + - '863' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Oct 2022 06:51:47 GMT + - Sat, 08 Oct 2022 08:35:14 GMT expires: - '-1' pragma: @@ -161,16 +165,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-06T06:51:44.5697154+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-06T06:51:44.5697154+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":"false","Backup/Enable":"false","VMInsights/Enable":"true","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2022-10-08T08:35:11.4166168+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-08T08:35:11.4166168+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '588' + - '875' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Oct 2022 06:51:49 GMT + - Sat, 08 Oct 2022 08:35:16 GMT expires: - '-1' pragma: @@ -202,23 +206,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g + - -n -g --configuration User-Agent: - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-06T06:51:44.5697154+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-06T06:51:44.5697154+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":"false","Backup/Enable":"false","VMInsights/Enable":"true","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2022-10-08T08:35:11.4166168+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-08T08:35:11.4166168+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '576' + - '863' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Oct 2022 06:51:50 GMT + - Sat, 08 Oct 2022 08:35:17 GMT expires: - '-1' pragma: @@ -239,7 +243,8 @@ interactions: code: 200 message: OK - request: - body: '{"location": "eastus2euap", "properties": {"configuration": {}}}' + body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": + "true", "VMInsights/Enable": "false"}}}' headers: Accept: - application/json @@ -250,27 +255,27 @@ interactions: Connection: - keep-alive Content-Length: - - '64' + - '122' Content-Type: - application/json ParameterSetName: - - -n -g + - -n -g --configuration User-Agent: - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{}},"systemData":{"createdAt":"2022-10-06T06:51:44.5697154+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-06T06:51:51.7686827+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":"true","VMInsights/Enable":"false"}},"systemData":{"createdAt":"2022-10-08T08:35:11.4166168+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-08T08:35:18.6806948+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '576' + - '631' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Oct 2022 06:51:51 GMT + - Sat, 08 Oct 2022 08:35:18 GMT expires: - '-1' pragma: @@ -288,7 +293,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK @@ -320,7 +325,7 @@ interactions: content-length: - '0' date: - - Thu, 06 Oct 2022 06:51:58 GMT + - Sat, 08 Oct 2022 08:35:24 GMT expires: - '-1' pragma: @@ -366,7 +371,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Oct 2022 06:51:59 GMT + - Sat, 08 Oct 2022 08:35:25 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml index 217361a62e2..0c4d3c8863e 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml @@ -1,146 +1,4 @@ interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automanage best-practice list - Connection: - - keep-alive - User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices?api-version=2022-05-04 - response: - body: - string: '{"value":[{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction","name":"AzureBestPracticesProduction","type":"Microsoft.Automanage/bestPractices","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"true","Backup/PolicyName":"dailyBackupPolicy","Backup/TimeZone":"UTC","Backup/InstantRpRetentionRangeInDays":"2","Backup/SchedulePolicy/ScheduleRunFrequency":"Daily","Backup/SchedulePolicy/ScheduleRunTimes":["2017-01-26T00:00:00Z"],"Backup/SchedulePolicy/SchedulePolicyType":"SimpleSchedulePolicy","Backup/RetentionPolicy/RetentionPolicyType":"LongTermRetentionPolicy","Backup/RetentionPolicy/DailySchedule/RetentionTimes":["2017-01-26T00:00:00Z"],"Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count":"180","Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType":"Days","VMInsights/Enable":"true","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2022-10-03T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}},{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest","name":"AzureBestPracticesDevTest","type":"Microsoft.Automanage/bestPractices","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"false","VMInsights/Enable":"false","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true","WindowsAdminCenter/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2022-10-03T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '2354' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 06 Oct 2022 06:51:37 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d - server: - - Kestrel - 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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automanage best-practice show - Connection: - - keep-alive - ParameterSetName: - - --best-practice-name - User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest?api-version=2022-05-04 - response: - body: - string: '{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest","name":"AzureBestPracticesDevTest","type":"Microsoft.Automanage/bestPractices","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"false","VMInsights/Enable":"false","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true","WindowsAdminCenter/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2022-10-03T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}' - headers: - cache-control: - - no-cache - content-length: - - '892' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 06 Oct 2022 06:51:37 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d - server: - - Kestrel - 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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automanage best-practice version list - Connection: - - keep-alive - ParameterSetName: - - --best-practice-name - User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions?api-version=2022-05-04 - response: - body: - string: '{"value":[{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions/2021-06-30","name":"AzureBestPracticesDevTest/2021-06-30","type":"Microsoft.Automanage/bestPractices/versions","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"false","VMInsights/Enable":"false","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2021-06-30T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '909' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 06 Oct 2022 06:51:38 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d - server: - - Kestrel - 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: @@ -167,7 +25,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Oct 2022 06:51:38 GMT + - Sat, 08 Oct 2022 08:26:47 GMT expires: - '-1' pragma: @@ -213,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Oct 2022 06:51:49 GMT + - Sat, 08 Oct 2022 08:26:50 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index 8f2ab24db53..03bb27a2d76 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -12,17 +12,17 @@ class AutomanageScenario(ScenarioTest): @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.') def test_automanage_scenarios(self): # best-practice - best_practice_name = self.cmd('az automanage best-practice list').get_output_in_json() - if best_practice_name and len(best_practice_name) >= 2: - best_practice_name = best_practice_name[1]["name"] - self.cmd('az automanage best-practice show --best-practice-name {}'.format(best_practice_name)) - version_name = self.cmd('az automanage best-practice version list ' - '--best-practice-name {}'.format(best_practice_name)).get_output_in_json() - if version_name and len(version_name) >= 1: - version_name = version_name[0]["name"] - # TODO server error - # self.cmd('az automanage best-practice version show --best-practice-name {} --version-name ' - # '{}'.format(best_practice_name, version_name)) + # best_practice_name = self.cmd('az automanage best-practice list').get_output_in_json() + # if best_practice_name and len(best_practice_name) >= 2: + # best_practice_name = best_practice_name[1]["name"] + # self.cmd('az automanage best-practice show --best-practice-name {}'.format(best_practice_name)) + # version_name = self.cmd('az automanage best-practice version list ' + # '--best-practice-name {}'.format(best_practice_name)).get_output_in_json() + # if version_name and len(version_name) >= 1: + # version_name = version_name[0]["name"] + # # TODO server error + # # self.cmd('az automanage best-practice version show --best-practice-name {} --version-name ' + # # '{}'.format(best_practice_name, version_name)) # service-principal self.cmd('az automanage service-principal list') @@ -33,10 +33,27 @@ def test_automanage_configuration_profile_scenarios(self): self.kwargs.update({ 'profile_name': self.create_random_name(prefix='profile', length=24), }) - self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg}') - self.cmd('az automanage configuration-profile show -n {profile_name} -g {rg}') + self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg} --configuration ' + '{{Antimalware/Enable:false,Backup/Enable:false,VMInsights/Enable:true,' + 'AzureSecurityCenter/Enable:true,UpdateManagement/Enable:true,' + 'ChangeTrackingAndInventory/Enable:true,GuestConfiguration/Enable:true,' + 'LogAnalytics/Enable:true,BootDiagnostics/Enable:true}}') + self.cmd('az automanage configuration-profile show -n {profile_name} -g {rg}', + checks=[JMESPathCheck('name', self.kwargs.get('profile_name', '')), + JMESPathCheck('properties.configuration', {"Antimalware/Enable": "false", + "AzureSecurityCenter/Enable": "true", + "Backup/Enable": "false", + "BootDiagnostics/Enable": "true", + "ChangeTrackingAndInventory/Enable": "true", + "GuestConfiguration/Enable": "true", + "LogAnalytics/Enable": "true", + "UpdateManagement/Enable": "true", + "VMInsights/Enable": "true"})]) self.cmd('az automanage configuration-profile list -g {rg}', checks=[JMESPathCheck('length(@)', 1)]) - self.cmd('az automanage configuration-profile update -n {profile_name} -g {rg}') + self.cmd('az automanage configuration-profile update -n {profile_name} -g {rg} --configuration ' + '{{Antimalware/Enable:true,VMInsights/Enable:false}}', + checks=[JMESPathCheck('properties.configuration', {"Antimalware/Enable": "true", + "VMInsights/Enable": "false"})]) self.cmd('az automanage configuration-profile delete -n {profile_name} -g {rg} -y') self.cmd('az automanage configuration-profile list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) From ae693ccba7125dc800c333637e996dcf8f2ff1d6 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Sun, 9 Oct 2022 14:46:45 +0800 Subject: [PATCH 08/31] configuration profile assignment for vm --- ...ation_profile_assignment_vm_scenarios.yaml | 1294 +++++++++++++++++ .../tests/latest/test_automanage.py | 42 +- 2 files changed, 1322 insertions(+), 14 deletions(-) create mode 100644 src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml new file mode 100644 index 00000000000..34a083b3f0d --- /dev/null +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml @@ -0,0 +1,1294 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-09T06:35:23Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '381' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:35:29 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": + "true"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + Content-Length: + - '92' + Content-Type: + - application/json + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":"true"}},"systemData":{"createdAt":"2022-10-09T06:35:37.5911257+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-09T06:35:37.5911257+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '603' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:35:39 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002 + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image + User-Agent: + - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-09T06:35:23Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '381' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:35:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.26.0 + method: GET + uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/arm-compute/quickstart-templates/aliases.json + response: + body: + string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\",\n + \ \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\": + {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"type\": + \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\": + {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n + \ \"sku\": \"7.5\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Debian\": {\n \"publisher\": + \"Debian\",\n \"offer\": \"debian-10\",\n \"sku\": \"10\",\n + \ \"version\": \"latest\",\n \"architecture\": \"x64\"\n + \ },\n \"Flatcar\": {\n \"publisher\": \"kinvolk\",\n + \ \"offer\": \"flatcar-container-linux-free\",\n \"sku\": + \"stable\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"openSUSE-Leap\": {\n \"publisher\": + \"SUSE\",\n \"offer\": \"opensuse-leap-15-3\",\n \"sku\": + \"gen2\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"RHEL\": {\n \"publisher\": \"RedHat\",\n + \ \"offer\": \"RHEL\",\n \"sku\": \"7-LVM\",\n \"version\": + \"latest\",\n \"architecture\": \"x64\"\n },\n \"SLES\": + {\n \"publisher\": \"SUSE\",\n \"offer\": \"sles-15-sp3\",\n + \ \"sku\": \"gen2\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"UbuntuLTS\": {\n \"publisher\": + \"Canonical\",\n \"offer\": \"UbuntuServer\",\n \"sku\": + \"18.04-LTS\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n }\n },\n \"Windows\": {\n \"Win2022Datacenter\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2022-Datacenter\",\n \"version\": + \"latest\",\n \"architecture\": \"x64\"\n },\n \"Win2022AzureEditionCore\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2022-datacenter-azure-edition-core\",\n + \ \"version\": \"latest\",\n \"architecture\": \"x64\"\n + \ },\n \"Win2019Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2019-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2016Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2016-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2012R2Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-R2-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2012Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2008R2SP1\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2008-R2-SP1\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n }\n }\n }\n }\n }\n}" + headers: + accept-ranges: + - bytes + access-control-allow-origin: + - '*' + cache-control: + - max-age=300 + connection: + - keep-alive + content-length: + - '3463' + content-security-policy: + - default-src 'none'; style-src 'unsafe-inline'; sandbox + content-type: + - text/plain; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:35:42 GMT + etag: + - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" + expires: + - Sun, 09 Oct 2022 06:40:42 GMT + source-age: + - '0' + strict-transport-security: + - max-age=31536000 + vary: + - Authorization,Accept-Encoding,Origin + via: + - 1.1 varnish + x-cache: + - HIT + x-cache-hits: + - '1' + x-content-type-options: + - nosniff + x-fastly-request-id: + - 25f9785f1c2970598ba249532d045a9148fece28 + x-frame-options: + - deny + x-github-request-id: + - 09DA:7DD5:18A3DF:20FAAE:63400B5F + x-served-by: + - cache-qpg1243-QPG + x-timer: + - S1665297342.824427,VS0,VE307 + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image + User-Agent: + - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-compute/28.0.0 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-08-01 + response: + body: + string: "[\r\n {\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202209210\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202209210\"\r\n + \ }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '296' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:35:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43994 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image + User-Agent: + - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-compute/28.0.0 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202209210?api-version=2022-08-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": + \"x64\",\r\n \"replicaType\": \"Unmanaged\",\r\n \"disallowed\": {\r\n + \ \"vmDiskType\": \"None\"\r\n },\r\n \"automaticOSUpgradeProperties\": + {\r\n \"automaticOSUpgradeSupported\": true\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"features\": [\r\n + \ {\r\n \"name\": \"IsAcceleratedNetworkSupported\",\r\n \"value\": + \"True\"\r\n },\r\n {\r\n \"name\": \"DiskControllerTypes\",\r\n + \ \"value\": \"SCSI, NVMe\"\r\n },\r\n {\r\n \"name\": + \"IsHibernateSupported\",\r\n \"value\": \"True\"\r\n }\r\n ],\r\n + \ \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": + 31,\r\n \"sizeInBytes\": 32213303808\r\n },\r\n \"dataDiskImages\": + []\r\n },\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202209210\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202209210\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1058' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:35:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73995 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image + User-Agent: + - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks?api-version=2022-01-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:35:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": + [{"name": "vm000003VNET", "type": "Microsoft.Network/virtualNetworks", "location": + "eastus2euap", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties": + {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name": + "vm000003Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"type": + "Microsoft.Network/networkSecurityGroups", "name": "vm000003NSG", "apiVersion": + "2015-06-15", "location": "eastus2euap", "tags": {}, "dependsOn": [], "properties": + {"securityRules": [{"name": "default-allow-ssh", "properties": {"protocol": + "Tcp", "sourcePortRange": "*", "destinationPortRange": "22", "sourceAddressPrefix": + "*", "destinationAddressPrefix": "*", "access": "Allow", "priority": 1000, "direction": + "Inbound"}}]}}, {"apiVersion": "2022-01-01", "type": "Microsoft.Network/publicIPAddresses", + "name": "vm000003PublicIP", "location": "eastus2euap", "tags": {}, "dependsOn": + [], "properties": {"publicIPAllocationMethod": null}}, {"apiVersion": "2015-06-15", + "type": "Microsoft.Network/networkInterfaces", "name": "vm000003VMNic", "location": + "eastus2euap", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/vm000003VNET", + "Microsoft.Network/networkSecurityGroups/vm000003NSG", "Microsoft.Network/publicIpAddresses/vm000003PublicIP"], + "properties": {"ipConfigurations": [{"name": "ipconfigvm000003", "properties": + {"privateIPAllocationMethod": "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET/subnets/vm000003Subnet"}, + "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"}}}], + "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"}}}, + {"apiVersion": "2022-08-01", "type": "Microsoft.Compute/virtualMachines", "name": + "vm000003", "location": "eastus2euap", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/vm000003VMNic"], + "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": + {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic", + "properties": {"deleteOption": null}}]}, "storageProfile": {"osDisk": {"createOption": + "fromImage", "name": null, "caching": "ReadWrite", "managedDisk": {"storageAccountType": + null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", + "sku": "18.04-LTS", "version": "latest"}}, "osProfile": {"computerName": "vm000003", + "adminUsername": "zhiyihuang", "linuxConfiguration": {"disablePasswordAuthentication": + true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDy4KT6QZuyFbmWDdF/Vdc7B8PzU/TrgtnZNHofoVGpHUY9emsn6t3OhrT8y+he9stKP+CfcOEhR38Rn8gCJXdeo6VX3OyeCrkPMw+PZEj+TJi3Yp+N/BXritww+I8HFF+vihoKBPFP3DQSeq7VMQWGfFmf67Dm0r2F8CLvnqWPcrBx14GelF4vg3P3dDltHh9ZedEcNYA1b0+BcupL8249JVsv38oSMw3bTxTVzFzLY0KCgQno2HOt0VsZSvIp76UO4io4msPdmJm1NLIJ4s5YK6lHdnp8w+kuZi/pZyQx8GKbKjEqaxQaPDy5tHE5ohvIxqwZcewN7rlUJ3ZVYibd", + "path": "/home/zhiyihuang/.ssh/authorized_keys"}]}}}}}], "outputs": {}}, "parameters": + {}, "mode": "incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + Content-Length: + - '3705' + Content-Type: + - application/json + ParameterSetName: + - -n -g --image + User-Agent: + - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_SiCW4xRa41swPCKg1w2yhkw2xoJJzg3y","name":"vm_deploy_SiCW4xRa41swPCKg1w2yhkw2xoJJzg3y","type":"Microsoft.Resources/deployments","properties":{"templateHash":"2510314828152878068","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-09T06:35:54.2444314Z","duration":"PT0.0008017S","correlationId":"29d947eb-dc0d-44bb-bc52-eac028235fdc","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_SiCW4xRa41swPCKg1w2yhkw2xoJJzg3y/operationStatuses/08585363095342664209?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '2645' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:35:55 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image + User-Agent: + - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585363095342664209?api-version=2021-04-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:36:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image + User-Agent: + - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585363095342664209?api-version=2021-04-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:36:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image + User-Agent: + - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_SiCW4xRa41swPCKg1w2yhkw2xoJJzg3y","name":"vm_deploy_SiCW4xRa41swPCKg1w2yhkw2xoJJzg3y","type":"Microsoft.Resources/deployments","properties":{"templateHash":"2510314828152878068","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-09T06:36:49.086896Z","duration":"PT54.8432663S","correlationId":"29d947eb-dc0d-44bb-bc52-eac028235fdc","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '3604' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:36:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image + User-Agent: + - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-compute/28.0.0 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003?$expand=instanceView&api-version=2022-08-01 + response: + body: + string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"159e416f-1412-4c73-89f4-05b7ea3dcd13\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202209210\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000003_disk1_253a406235fc4caa8adb6d433f27c5c7\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_253a406235fc4caa8adb6d433f27c5c7\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"zhiyihuang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/zhiyihuang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDy4KT6QZuyFbmWDdF/Vdc7B8PzU/TrgtnZNHofoVGpHUY9emsn6t3OhrT8y+he9stKP+CfcOEhR38Rn8gCJXdeo6VX3OyeCrkPMw+PZEj+TJi3Yp+N/BXritww+I8HFF+vihoKBPFP3DQSeq7VMQWGfFmf67Dm0r2F8CLvnqWPcrBx14GelF4vg3P3dDltHh9ZedEcNYA1b0+BcupL8249JVsv38oSMw3bTxTVzFzLY0KCgQno2HOt0VsZSvIp76UO4io4msPdmJm1NLIJ4s5YK6lHdnp8w+kuZi/pZyQx8GKbKjEqaxQaPDy5tHE5ohvIxqwZcewN7rlUJ3ZVYibd\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"computerName\": + \"vm000003\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.9.0.1\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n + \ \"message\": \"Guest Agent is running\",\r\n \"time\": + \"2022-10-09T06:36:53+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_253a406235fc4caa8adb6d433f27c5c7\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2022-10-09T06:36:31.9173567+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": + \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2022-10-09T06:36:42.3393613+00:00\"\r\n + \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-10-09T06:36:24.5422648+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3977' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:36:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31976 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image + User-Agent: + - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic?api-version=2022-01-01 + response: + body: + string: "{\r\n \"name\": \"vm000003VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\",\r\n + \ \"etag\": \"W/\\\"4c054fe5-daea-423a-a8d8-b46d69d9e6d6\\\"\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"1528f03f-4761-4245-80ee-3d2938c2d72a\",\r\n \"ipConfigurations\": + [\r\n {\r\n \"name\": \"ipconfigvm000003\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\",\r\n + \ \"etag\": \"W/\\\"4c054fe5-daea-423a-a8d8-b46d69d9e6d6\\\"\",\r\n + \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": + \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP\"\r\n + \ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET/subnets/vm000003Subnet\"\r\n + \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": + \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": + [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": + \"jdlku2yl1ske5c3g2tpeiehvpb.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-22-48-03-73-43\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": + false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG\"\r\n + \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\"\r\n + \ },\r\n \"hostedWorkloads\": [],\r\n \"tapConfigurations\": [],\r\n + \ \"nicType\": \"Standard\",\r\n \"allowPort25Out\": true\r\n },\r\n + \ \"type\": \"Microsoft.Network/networkInterfaces\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"kind\": \"Regular\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2602' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:36:59 GMT + etag: + - W/"4c054fe5-daea-423a-a8d8-b46d69d9e6d6" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - f8ee021a-c8d7-4e0a-9fa0-87bd1bf316a0 + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image + User-Agent: + - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP?api-version=2022-01-01 + response: + body: + string: "{\r\n \"name\": \"vm000003PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP\",\r\n + \ \"etag\": \"W/\\\"f9768dca-b357-4432-a4d7-6fc657a1ed93\\\"\",\r\n \"location\": + \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"resourceGuid\": \"a85a37e1-0eb4-4e65-971d-394a26387b5a\",\r\n + \ \"ipAddress\": \"20.102.173.35\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": + 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\"\r\n + \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n + \ \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '995' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:36:59 GMT + etag: + - W/"f9768dca-b357-4432-a4d7-6fc657a1ed93" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 8b7ef91a-4d0d-4c81-8c55-a6e224ffb05b + status: + code: 200 + message: '' +- request: + body: '{"properties": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment vm create + Connection: + - keep-alive + Content-Length: + - '227' + Content-Type: + - application/json + ParameterSetName: + - -n -g --vm-name --configuration-profile + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-09T06:37:00.9023645+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-09T06:37:00.9023645+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '1000' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:37:02 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment vm show + Connection: + - keep-alive + ParameterSetName: + - -n -g --vm-name + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-09T06:37:00.9023645+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-09T06:37:00.9023645+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '1000' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:37:03 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Unknown"},"systemData":{"createdAt":"2022-10-09T06:37:05.1302427+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-09T06:37:05.1302427+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1054' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:37:04 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: + - '' + - '' + - '' + - '' + - '' + - '' + - '' + - '' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-09T06:35:23Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '381' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:37:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": + "false"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + Content-Length: + - '93' + Content-Type: + - application/json + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":"false"}},"systemData":{"createdAt":"2022-10-09T06:37:11.1183052+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-09T06:37:11.1183052+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '604' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:37:13 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004 + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment vm update + Connection: + - keep-alive + ParameterSetName: + - --n -g --vm-name --configuration-profile + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Unknown"},"systemData":{"createdAt":"2022-10-09T06:37:05.1302427+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-09T06:37:05.1302427+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + headers: + cache-control: + - no-cache + content-length: + - '1042' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:37:14 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment vm update + Connection: + - keep-alive + Content-Length: + - '227' + Content-Type: + - application/json + ParameterSetName: + - --n -g --vm-name --configuration-profile + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"Unknown"},"systemData":{"createdAt":"2022-10-09T06:37:15.6702479+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-09T06:37:15.6702479+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '1004' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:37:15 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment vm delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g --vm-name -y + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Sun, 09 Oct 2022 06:37:16 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 09 Oct 2022 06:37:19 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: + - '' + - '' + - '' + - '' + - '' + - '' + - '' + - '' + status: + code: 200 + message: OK +version: 1 diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index 03bb27a2d76..a199a555423 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -60,17 +60,31 @@ def test_automanage_configuration_profile_scenarios(self): # TODO server error # self.cmd('az automanage configuration-profile version create') - # @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.configurationprofileassignment.') - # def test_automanage_configuration_profile_assignment_scenarios(self): - # self.kwargs.update({ - # 'profile_name': self.create_random_name(prefix='profile', length=24), - # 'arc_assignment_name': self.create_random_name(prefix='arc_assignment', length=24), - # }) - # profile_id = self.cmd('az automanage configuration-profile create -n {profile_name} ' - # '-g {rg}').get_output_in_json()["id"] - # self.cmd('az automanage configuration-profile-assignment arc create -n {arc_assignment_name} -g {rg}') - # self.cmd('az automanage configuration-profile show -n {profile_name} -g {rg}') - # self.cmd('az automanage configuration-profile list -g {rg}', checks=[JMESPathCheck('length(@)', 1)]) - # self.cmd('az automanage configuration-profile update -n {profile_name} -g {rg}') - # self.cmd('az automanage configuration-profile delete -n {profile_name} -g {rg} -y') - # self.cmd('az automanage configuration-profile list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) + @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.profileassignment.vm.') + def test_automanage_configuration_profile_assignment_vm_scenarios(self): + self.kwargs.update({ + 'profile_name': self.create_random_name(prefix='profile', length=24), + 'vm_name': self.create_random_name(prefix='vm', length=24), + 'profile_name_2': self.create_random_name(prefix='profile', length=24), + }) + profile_id = self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg} ' + '--configuration {{Antimalware/Enable:true}}').get_output_in_json()["id"] + self.kwargs.update({'profile_id': profile_id}) + vm_id = self.cmd('az vm create -n {vm_name} -g {rg} --image UbuntuLTS').get_output_in_json()["id"] + self.cmd('az automanage configuration-profile-assignment vm create -n default -g {rg} ' + '--vm-name {vm_name} --configuration-profile {profile_id}') + self.cmd('az automanage configuration-profile-assignment vm show -n default -g {rg} --vm-name {vm_name}', + checks=[JMESPathCheck('name', 'default'), + JMESPathCheck('properties.configurationProfile', profile_id), + JMESPathCheck('properties.targetId', vm_id)]) + self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 1)]) + + profile_id_2 = self.cmd('az automanage configuration-profile create -n {profile_name_2} -g {rg} ' + '--configuration {{Antimalware/Enable:false}}').get_output_in_json()["id"] + self.kwargs.update({'profile_id_2': profile_id_2}) + self.cmd('az automanage configuration-profile-assignment vm update --n default -g {rg} ' + '--vm-name {vm_name} --configuration-profile {profile_id_2}', + checks=[JMESPathCheck('properties.configurationProfile', profile_id_2), + JMESPathCheck('properties.targetId', vm_id)]) + self.cmd('az automanage configuration-profile-assignment vm delete -n default -g {rg} --vm-name {vm_name} -y') + self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) From e15dee4f500f4428ebb800486fc48b54da1a3615 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Thu, 13 Oct 2022 16:18:30 +0800 Subject: [PATCH 09/31] configuration profile assignment for arc, test failing --- .../tests/latest/test_automanage.py | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index a199a555423..9522dd50c3d 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -88,3 +88,36 @@ def test_automanage_configuration_profile_assignment_vm_scenarios(self): JMESPathCheck('properties.targetId', vm_id)]) self.cmd('az automanage configuration-profile-assignment vm delete -n default -g {rg} --vm-name {vm_name} -y') self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) + + # @record_only + def test_automanage_configuration_profile_assignment_arc_scenarios(self): + self.kwargs.update({ + 'profile_name': self.create_random_name(prefix='profile', length=24), + 'rg': 'rgtestautomanage', + 'arc_name': 'arc1', + 'profile_name_2': self.create_random_name(prefix='profile', length=24), + }) + arc_id = '/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgtestautomanage/providers/' \ + 'Microsoft.HybridCompute/machines/arc1' + profile_id = self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg} ' + '--configuration {{Antimalware/Enable:true}}').get_output_in_json()["id"] + self.kwargs.update({'profile_id': profile_id}) + + self.cmd('az automanage configuration-profile-assignment arc create -n default -g {rg} ' + '--machine-name {arc_name} --configuration-profile {profile_id}') + self.cmd('az automanage configuration-profile-assignment arc show -n default -g {rg} --machine-name {arc_name}', + checks=[JMESPathCheck('name', 'default'), + JMESPathCheck('properties.configurationProfile', profile_id), + JMESPathCheck('properties.targetId', arc_id)]) + self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 1)]) + + profile_id_2 = self.cmd('az automanage configuration-profile create -n {profile_name_2} -g {rg} ' + '--configuration {{Antimalware/Enable:false}}').get_output_in_json()["id"] + self.kwargs.update({'profile_id_2': profile_id_2}) + self.cmd('az automanage configuration-profile-assignment arc update --n default -g {rg} ' + '--machine-name {arc_name} --configuration-profile {profile_id_2}', + checks=[JMESPathCheck('properties.configurationProfile', profile_id_2), + JMESPathCheck('properties.targetId', arc_id)]) + self.cmd('az automanage configuration-profile-assignment arc delete -n default -g {rg} --machine-name ' + '{arc_name} -y') + self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) From 88647c841374937e220b1bab391e7acb7020c772 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Tue, 18 Oct 2022 15:14:55 +0800 Subject: [PATCH 10/31] freeformdict for configuration --- .../latest/automanage/best_practice/_list.py | 15 +- .../latest/automanage/best_practice/_show.py | 15 +- .../automanage/best_practice/version/_list.py | 15 +- .../automanage/best_practice/version/_show.py | 15 +- .../configuration_profile/_create.py | 24 +- .../configuration_profile/_delete.py | 4 +- .../automanage/configuration_profile/_list.py | 26 +- .../automanage/configuration_profile/_show.py | 15 +- .../configuration_profile/_update.py | 30 +-- .../configuration_profile/version/_create.py | 24 +- .../configuration_profile/version/_delete.py | 4 +- .../configuration_profile/version/_list.py | 15 +- .../configuration_profile/version/_show.py | 15 +- .../configuration_profile/version/_update.py | 30 +-- .../configuration_profile_assignment/_list.py | 39 +-- .../arc/_create.py | 11 +- .../arc/_delete.py | 4 +- .../arc/_show.py | 11 +- .../arc/_update.py | 15 +- .../cluster/_create.py | 11 +- .../cluster/_delete.py | 4 +- .../cluster/_show.py | 11 +- .../cluster/_update.py | 15 +- .../report/_list_for_arc.py | 34 +-- .../report/_list_for_cluster_and_vm.py | 52 +--- .../report/_show_for_arc.py | 34 +-- .../report/_show_for_cluster_and_vm.py | 52 +--- .../vm/_create.py | 11 +- .../vm/_delete.py | 4 +- .../vm/_show.py | 11 +- .../vm/_update.py | 15 +- .../automanage/service_principal/_list.py | 10 +- .../service_principal/_show_default.py | 10 +- .../azext_automanage/azext_metadata.json | 2 +- ...ation_profile_assignment_vm_scenarios.yaml | 222 +++++++++--------- ...anage_configuration_profile_scenarios.yaml | 127 +++++++--- .../recordings/test_automanage_scenarios.yaml | 102 +++++++- .../tests/latest/test_automanage.py | 120 +++++----- 38 files changed, 490 insertions(+), 684 deletions(-) diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py index 63a31819c3d..6f2047aff55 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py @@ -35,11 +35,11 @@ def _execute_operations(self): self.BestPracticesListByTenant(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -134,35 +134,26 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.value.Element.properties - properties.configuration = AAZDictType() - - configuration = cls._schema_on_200.value.Element.properties.configuration - configuration.Element = AAZStrType() + properties.configuration = AAZFreeFormDictType() 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py index 01835dc41d3..dd0b76662b5 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py @@ -53,11 +53,11 @@ def _execute_operations(self): self.BestPracticesGet(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -156,35 +156,26 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.properties - properties.configuration = AAZDictType() - - configuration = cls._schema_on_200.properties.configuration - configuration.Element = AAZStrType() + properties.configuration = AAZFreeFormDictType() 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py index 4df657f5842..8dead763d52 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py @@ -50,11 +50,11 @@ def _execute_operations(self): self.BestPracticesVersionsListByTenant(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -159,35 +159,26 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.value.Element.properties - properties.configuration = AAZDictType() - - configuration = cls._schema_on_200.value.Element.properties.configuration - configuration.Element = AAZStrType() + properties.configuration = AAZFreeFormDictType() 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py index 38c8768995f..92aa0e5cbf1 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py @@ -55,11 +55,11 @@ def _execute_operations(self): self.BestPracticesVersionsGet(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -162,35 +162,26 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.properties - properties.configuration = AAZDictType() - - configuration = cls._schema_on_200.properties.configuration - configuration.Element = AAZStrType() + properties.configuration = AAZFreeFormDictType() 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py index 7cac6328705..0a1624dc345 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py @@ -74,14 +74,11 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema - _args_schema.configuration = AAZDictArg( + _args_schema.configuration = AAZFreeFormDictArg( options=["--configuration"], arg_group="Properties", help="configuration dictionary of the configuration profile.", ) - - configuration = cls._args_schema.configuration - configuration.Element = AAZStrArg() return cls._args_schema def _execute_operations(self): @@ -89,11 +86,11 @@ def _execute_operations(self): self.ConfigurationProfilesCreateOrUpdate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -180,11 +177,11 @@ def content(self): properties = _builder.get(".properties") if properties is not None: - properties.set_prop("configuration", AAZDictType, ".configuration") + properties.set_prop("configuration", AAZFreeFormDictType, ".configuration") configuration = _builder.get(".properties.configuration") if configuration is not None: - configuration.set_elements(AAZStrType, ".") + configuration.set_anytype_elements(".") tags = _builder.get(".tags") if tags is not None: @@ -230,35 +227,26 @@ def _build_schema_on_200_201(cls): ) properties = cls._schema_on_200_201.properties - properties.configuration = AAZDictType() - - configuration = cls._schema_on_200_201.properties.configuration - configuration.Element = AAZStrType() + properties.configuration = AAZFreeFormDictType() 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py index a0e1c012262..d19ad871957 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py @@ -58,11 +58,11 @@ def _execute_operations(self): self.ConfigurationProfilesDelete(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py index eb065084455..b611a8618a6 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py @@ -55,11 +55,11 @@ def _execute_operations(self): self.ConfigurationProfilesListBySubscription(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -170,35 +170,26 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.value.Element.properties - properties.configuration = AAZDictType() - - configuration = cls._schema_on_200.value.Element.properties.configuration - configuration.Element = AAZStrType() + properties.configuration = AAZFreeFormDictType() 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 @@ -305,35 +296,26 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.value.Element.properties - properties.configuration = AAZDictType() - - configuration = cls._schema_on_200.value.Element.properties.configuration - configuration.Element = AAZStrType() + properties.configuration = AAZFreeFormDictType() 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py index 905fa0df41f..84c71d1649a 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py @@ -57,11 +57,11 @@ def _execute_operations(self): self.ConfigurationProfilesGet(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -170,35 +170,26 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.properties - properties.configuration = AAZDictType() - - configuration = cls._schema_on_200.properties.configuration - configuration.Element = AAZStrType() + properties.configuration = AAZFreeFormDictType() 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py index 005331a621a..1d74d3c61dd 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py @@ -71,17 +71,12 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema - _args_schema.configuration = AAZDictArg( + _args_schema.configuration = AAZFreeFormDictArg( options=["--configuration"], arg_group="Properties", help="configuration dictionary of the configuration profile.", nullable=True, ) - - configuration = cls._args_schema.configuration - configuration.Element = AAZStrArg( - nullable=True, - ) return cls._args_schema def _execute_operations(self): @@ -94,19 +89,19 @@ def _execute_operations(self): self.ConfigurationProfilesCreateOrUpdate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass - # @register_callback + @register_callback def pre_instance_update(self, instance): pass - # @register_callback + @register_callback def post_instance_update(self, instance): pass @@ -308,11 +303,11 @@ def _update_instance(self, instance): properties = _builder.get(".properties") if properties is not None: - properties.set_prop("configuration", AAZDictType, ".configuration") + properties.set_prop("configuration", AAZFreeFormDictType, ".configuration") configuration = _builder.get(".properties.configuration") if configuration is not None: - configuration.set_elements(AAZStrType, ".") + configuration.set_anytype_elements(".") tags = _builder.get(".tags") if tags is not None: @@ -367,35 +362,26 @@ def _build_schema_configuration_profile_read(_schema): ) properties = _schema_configuration_profile_read.properties - properties.configuration = AAZDictType() - - configuration = _schema_configuration_profile_read.properties.configuration - configuration.Element = AAZStrType() + properties.configuration = AAZFreeFormDictType() system_data = _schema_configuration_profile_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_configuration_profile_read.tags diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py index db2d4a9672e..d19e8a5c59a 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py @@ -77,14 +77,11 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema - _args_schema.configuration = AAZDictArg( + _args_schema.configuration = AAZFreeFormDictArg( options=["--configuration"], arg_group="Properties", help="configuration dictionary of the configuration profile.", ) - - configuration = cls._args_schema.configuration - configuration.Element = AAZStrArg() return cls._args_schema def _execute_operations(self): @@ -92,11 +89,11 @@ def _execute_operations(self): self.ConfigurationProfilesVersionsCreateOrUpdate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -187,11 +184,11 @@ def content(self): properties = _builder.get(".properties") if properties is not None: - properties.set_prop("configuration", AAZDictType, ".configuration") + properties.set_prop("configuration", AAZFreeFormDictType, ".configuration") configuration = _builder.get(".properties.configuration") if configuration is not None: - configuration.set_elements(AAZStrType, ".") + configuration.set_anytype_elements(".") tags = _builder.get(".tags") if tags is not None: @@ -237,35 +234,26 @@ def _build_schema_on_200_201(cls): ) properties = cls._schema_on_200_201.properties - properties.configuration = AAZDictType() - - configuration = cls._schema_on_200_201.properties.configuration - configuration.Element = AAZStrType() + properties.configuration = AAZFreeFormDictType() 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py index 82f1dc1b6db..34c76aadb22 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py @@ -60,11 +60,11 @@ def _execute_operations(self): self.ConfigurationProfilesVersionsDelete(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py index af4c1a19bf3..0e8ce4b78fb 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py @@ -53,11 +53,11 @@ def _execute_operations(self): self.ConfigurationProfilesVersionsListChildResources(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -172,35 +172,26 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.value.Element.properties - properties.configuration = AAZDictType() - - configuration = cls._schema_on_200.value.Element.properties.configuration - configuration.Element = AAZStrType() + properties.configuration = AAZFreeFormDictType() 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py index 2644394f7db..23b14011b54 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py @@ -60,11 +60,11 @@ def _execute_operations(self): self.ConfigurationProfilesVersionsGet(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -177,35 +177,26 @@ def _build_schema_on_200(cls): ) properties = cls._schema_on_200.properties - properties.configuration = AAZDictType() - - configuration = cls._schema_on_200.properties.configuration - configuration.Element = AAZStrType() + properties.configuration = AAZFreeFormDictType() 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py index e70581e6995..1ecf6df0349 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py @@ -74,17 +74,12 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema - _args_schema.configuration = AAZDictArg( + _args_schema.configuration = AAZFreeFormDictArg( options=["--configuration"], arg_group="Properties", help="configuration dictionary of the configuration profile.", nullable=True, ) - - configuration = cls._args_schema.configuration - configuration.Element = AAZStrArg( - nullable=True, - ) return cls._args_schema def _execute_operations(self): @@ -97,19 +92,19 @@ def _execute_operations(self): self.ConfigurationProfilesVersionsCreateOrUpdate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass - # @register_callback + @register_callback def pre_instance_update(self, instance): pass - # @register_callback + @register_callback def post_instance_update(self, instance): pass @@ -319,11 +314,11 @@ def _update_instance(self, instance): properties = _builder.get(".properties") if properties is not None: - properties.set_prop("configuration", AAZDictType, ".configuration") + properties.set_prop("configuration", AAZFreeFormDictType, ".configuration") configuration = _builder.get(".properties.configuration") if configuration is not None: - configuration.set_elements(AAZStrType, ".") + configuration.set_anytype_elements(".") tags = _builder.get(".tags") if tags is not None: @@ -378,35 +373,26 @@ def _build_schema_configuration_profile_read(_schema): ) properties = _schema_configuration_profile_read.properties - properties.configuration = AAZDictType() - - configuration = _schema_configuration_profile_read.properties.configuration - configuration.Element = AAZStrType() + properties.configuration = AAZFreeFormDictType() system_data = _schema_configuration_profile_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_configuration_profile_read.tags diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py index 57461ae89c6..f8890d1205b 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py @@ -79,11 +79,11 @@ def _execute_operations(self): self.ConfigurationProfileAssignmentsListBySubscription(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -183,7 +183,6 @@ def _build_schema_on_200(cls): ) _element.managed_by = AAZStrType( serialized_name="managedBy", - flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, @@ -212,27 +211,21 @@ def _build_schema_on_200(cls): 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 @@ -329,7 +322,6 @@ def _build_schema_on_200(cls): ) _element.managed_by = AAZStrType( serialized_name="managedBy", - flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, @@ -358,27 +350,21 @@ def _build_schema_on_200(cls): 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 @@ -475,7 +461,6 @@ def _build_schema_on_200(cls): ) _element.managed_by = AAZStrType( serialized_name="managedBy", - flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, @@ -504,27 +489,21 @@ def _build_schema_on_200(cls): 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 @@ -617,7 +596,6 @@ def _build_schema_on_200(cls): ) _element.managed_by = AAZStrType( serialized_name="managedBy", - flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, @@ -646,27 +624,21 @@ def _build_schema_on_200(cls): 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 @@ -755,7 +727,6 @@ def _build_schema_on_200(cls): ) _element.managed_by = AAZStrType( serialized_name="managedBy", - flags={"read_only": True}, ) _element.name = AAZStrType( flags={"read_only": True}, @@ -784,27 +755,21 @@ def _build_schema_on_200(cls): 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py index f623278dcd0..8b598e5e9b2 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py @@ -72,11 +72,11 @@ def _execute_operations(self): self.ConfigurationProfileHCRPAssignmentsCreateOrUpdate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -192,7 +192,6 @@ def _build_schema_on_200_201(cls): ) _schema_on_200_201.managed_by = AAZStrType( serialized_name="managedBy", - flags={"read_only": True}, ) _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, @@ -221,27 +220,21 @@ def _build_schema_on_200_201(cls): 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py index 94cf883966f..719a67f075f 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py @@ -64,11 +64,11 @@ def _execute_operations(self): self.ConfigurationProfileHCRPAssignmentsDelete(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py index e26cccac0ab..78505219d8e 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py @@ -63,11 +63,11 @@ def _execute_operations(self): self.ConfigurationProfileHCRPAssignmentsGet(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -165,7 +165,6 @@ def _build_schema_on_200(cls): ) _schema_on_200.managed_by = AAZStrType( serialized_name="managedBy", - flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, @@ -194,27 +193,21 @@ def _build_schema_on_200(cls): 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py index d198a7c7c38..ff08ea8a5ba 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py @@ -80,19 +80,19 @@ def _execute_operations(self): self.ConfigurationProfileHCRPAssignmentsCreateOrUpdate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass - # @register_callback + @register_callback def pre_instance_update(self, instance): pass - # @register_callback + @register_callback def post_instance_update(self, instance): pass @@ -336,7 +336,6 @@ def _build_schema_configuration_profile_assignment_read(_schema): ) configuration_profile_assignment_read.managed_by = AAZStrType( serialized_name="managedBy", - flags={"read_only": True}, ) configuration_profile_assignment_read.name = AAZStrType( flags={"read_only": True}, @@ -365,27 +364,21 @@ def _build_schema_configuration_profile_assignment_read(_schema): system_data = _schema_configuration_profile_assignment_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_configuration_profile_assignment_read.id diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py index 38a0a162024..3e390a67c06 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py @@ -72,11 +72,11 @@ def _execute_operations(self): self.ConfigurationProfileHCIAssignmentsCreateOrUpdate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -192,7 +192,6 @@ def _build_schema_on_200_201(cls): ) _schema_on_200_201.managed_by = AAZStrType( serialized_name="managedBy", - flags={"read_only": True}, ) _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, @@ -221,27 +220,21 @@ def _build_schema_on_200_201(cls): 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py index 2f0258a7cc2..feeed997adf 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py @@ -64,11 +64,11 @@ def _execute_operations(self): self.ConfigurationProfileHCIAssignmentsDelete(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py index 9cc2d25fab5..457c79b5df4 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py @@ -63,11 +63,11 @@ def _execute_operations(self): self.ConfigurationProfileHCIAssignmentsGet(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -165,7 +165,6 @@ def _build_schema_on_200(cls): ) _schema_on_200.managed_by = AAZStrType( serialized_name="managedBy", - flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, @@ -194,27 +193,21 @@ def _build_schema_on_200(cls): 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py index 4ab187f4f74..741f3ddb156 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py @@ -80,19 +80,19 @@ def _execute_operations(self): self.ConfigurationProfileHCIAssignmentsCreateOrUpdate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass - # @register_callback + @register_callback def pre_instance_update(self, instance): pass - # @register_callback + @register_callback def post_instance_update(self, instance): pass @@ -336,7 +336,6 @@ def _build_schema_configuration_profile_assignment_read(_schema): ) configuration_profile_assignment_read.managed_by = AAZStrType( serialized_name="managedBy", - flags={"read_only": True}, ) configuration_profile_assignment_read.name = AAZStrType( flags={"read_only": True}, @@ -365,27 +364,21 @@ def _build_schema_configuration_profile_assignment_read(_schema): system_data = _schema_configuration_profile_assignment_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_configuration_profile_assignment_read.id diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_arc.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_arc.py index a4df86169d4..3f37dfabe1c 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_arc.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_arc.py @@ -61,11 +61,11 @@ def _execute_operations(self): self.HCRPReportsListByConfigurationProfileAssignments(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -192,9 +192,7 @@ def _build_schema_on_200(cls): properties.end_time = AAZStrType( serialized_name="endTime", ) - properties.error = AAZObjectType( - flags={"read_only": True}, - ) + properties.error = AAZObjectType() _build_schema_error_detail_read(properties.error) properties.last_modified_time = AAZStrType( serialized_name="lastModifiedTime", @@ -218,14 +216,10 @@ def _build_schema_on_200(cls): ) resources = cls._schema_on_200.value.Element.properties.resources - resources.Element = AAZObjectType( - flags={"read_only": True}, - ) + resources.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.resources.Element - _element.error = AAZObjectType( - flags={"read_only": True}, - ) + _element.error = AAZObjectType() _build_schema_error_detail_read(_element.error) _element.id = AAZStrType( flags={"read_only": True}, @@ -243,27 +237,21 @@ def _build_schema_on_200(cls): 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 @@ -282,9 +270,7 @@ def _build_schema_error_detail_read(_schema): _schema.target = _schema_error_detail_read.target return - _schema_error_detail_read = AAZObjectType( - flags={"read_only": True} - ) + _schema_error_detail_read = AAZObjectType() error_detail_read = _schema_error_detail_read error_detail_read.additional_info = AAZListType( @@ -305,9 +291,7 @@ def _build_schema_error_detail_read(_schema): ) additional_info = _schema_error_detail_read.additional_info - additional_info.Element = AAZObjectType( - flags={"read_only": True}, - ) + additional_info.Element = AAZObjectType() _element = _schema_error_detail_read.additional_info.Element _element.type = AAZStrType( @@ -315,9 +299,7 @@ def _build_schema_error_detail_read(_schema): ) details = _schema_error_detail_read.details - details.Element = AAZObjectType( - flags={"read_only": True}, - ) + details.Element = AAZObjectType() _build_schema_error_detail_read(details.Element) _schema.additional_info = _schema_error_detail_read.additional_info diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_cluster_and_vm.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_cluster_and_vm.py index cd1b8b8b868..a76d2fd1fa1 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_cluster_and_vm.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_cluster_and_vm.py @@ -70,11 +70,11 @@ def _execute_operations(self): self.HCIReportsListByConfigurationProfileAssignments(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -201,9 +201,7 @@ def _build_schema_on_200(cls): properties.end_time = AAZStrType( serialized_name="endTime", ) - properties.error = AAZObjectType( - flags={"read_only": True}, - ) + properties.error = AAZObjectType() _build_schema_error_detail_read(properties.error) properties.last_modified_time = AAZStrType( serialized_name="lastModifiedTime", @@ -227,14 +225,10 @@ def _build_schema_on_200(cls): ) resources = cls._schema_on_200.value.Element.properties.resources - resources.Element = AAZObjectType( - flags={"read_only": True}, - ) + resources.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.resources.Element - _element.error = AAZObjectType( - flags={"read_only": True}, - ) + _element.error = AAZObjectType() _build_schema_error_detail_read(_element.error) _element.id = AAZStrType( flags={"read_only": True}, @@ -252,27 +246,21 @@ def _build_schema_on_200(cls): 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 @@ -396,9 +384,7 @@ def _build_schema_on_200(cls): properties.end_time = AAZStrType( serialized_name="endTime", ) - properties.error = AAZObjectType( - flags={"read_only": True}, - ) + properties.error = AAZObjectType() _build_schema_error_detail_read(properties.error) properties.last_modified_time = AAZStrType( serialized_name="lastModifiedTime", @@ -422,14 +408,10 @@ def _build_schema_on_200(cls): ) resources = cls._schema_on_200.value.Element.properties.resources - resources.Element = AAZObjectType( - flags={"read_only": True}, - ) + resources.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.resources.Element - _element.error = AAZObjectType( - flags={"read_only": True}, - ) + _element.error = AAZObjectType() _build_schema_error_detail_read(_element.error) _element.id = AAZStrType( flags={"read_only": True}, @@ -447,27 +429,21 @@ def _build_schema_on_200(cls): 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 @@ -486,9 +462,7 @@ def _build_schema_error_detail_read(_schema): _schema.target = _schema_error_detail_read.target return - _schema_error_detail_read = AAZObjectType( - flags={"read_only": True} - ) + _schema_error_detail_read = AAZObjectType() error_detail_read = _schema_error_detail_read error_detail_read.additional_info = AAZListType( @@ -509,9 +483,7 @@ def _build_schema_error_detail_read(_schema): ) additional_info = _schema_error_detail_read.additional_info - additional_info.Element = AAZObjectType( - flags={"read_only": True}, - ) + additional_info.Element = AAZObjectType() _element = _schema_error_detail_read.additional_info.Element _element.type = AAZStrType( @@ -519,9 +491,7 @@ def _build_schema_error_detail_read(_schema): ) details = _schema_error_detail_read.details - details.Element = AAZObjectType( - flags={"read_only": True}, - ) + details.Element = AAZObjectType() _build_schema_error_detail_read(details.Element) _schema.additional_info = _schema_error_detail_read.additional_info diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_arc.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_arc.py index 2d2ca682b05..451d6fe7ed8 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_arc.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_arc.py @@ -69,11 +69,11 @@ def _execute_operations(self): self.HCRPReportsGet(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -198,9 +198,7 @@ def _build_schema_on_200(cls): properties.end_time = AAZStrType( serialized_name="endTime", ) - properties.error = AAZObjectType( - flags={"read_only": True}, - ) + properties.error = AAZObjectType() _build_schema_error_detail_read(properties.error) properties.last_modified_time = AAZStrType( serialized_name="lastModifiedTime", @@ -224,14 +222,10 @@ def _build_schema_on_200(cls): ) resources = cls._schema_on_200.properties.resources - resources.Element = AAZObjectType( - flags={"read_only": True}, - ) + resources.Element = AAZObjectType() _element = cls._schema_on_200.properties.resources.Element - _element.error = AAZObjectType( - flags={"read_only": True}, - ) + _element.error = AAZObjectType() _build_schema_error_detail_read(_element.error) _element.id = AAZStrType( flags={"read_only": True}, @@ -249,27 +243,21 @@ def _build_schema_on_200(cls): 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 @@ -288,9 +276,7 @@ def _build_schema_error_detail_read(_schema): _schema.target = _schema_error_detail_read.target return - _schema_error_detail_read = AAZObjectType( - flags={"read_only": True} - ) + _schema_error_detail_read = AAZObjectType() error_detail_read = _schema_error_detail_read error_detail_read.additional_info = AAZListType( @@ -311,9 +297,7 @@ def _build_schema_error_detail_read(_schema): ) additional_info = _schema_error_detail_read.additional_info - additional_info.Element = AAZObjectType( - flags={"read_only": True}, - ) + additional_info.Element = AAZObjectType() _element = _schema_error_detail_read.additional_info.Element _element.type = AAZStrType( @@ -321,9 +305,7 @@ def _build_schema_error_detail_read(_schema): ) details = _schema_error_detail_read.details - details.Element = AAZObjectType( - flags={"read_only": True}, - ) + details.Element = AAZObjectType() _build_schema_error_detail_read(details.Element) _schema.additional_info = _schema_error_detail_read.additional_info diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_cluster_and_vm.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_cluster_and_vm.py index 357c12b92bb..daf24370a57 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_cluster_and_vm.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_cluster_and_vm.py @@ -79,11 +79,11 @@ def _execute_operations(self): self.HCIReportsGet(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -208,9 +208,7 @@ def _build_schema_on_200(cls): properties.end_time = AAZStrType( serialized_name="endTime", ) - properties.error = AAZObjectType( - flags={"read_only": True}, - ) + properties.error = AAZObjectType() _build_schema_error_detail_read(properties.error) properties.last_modified_time = AAZStrType( serialized_name="lastModifiedTime", @@ -234,14 +232,10 @@ def _build_schema_on_200(cls): ) resources = cls._schema_on_200.properties.resources - resources.Element = AAZObjectType( - flags={"read_only": True}, - ) + resources.Element = AAZObjectType() _element = cls._schema_on_200.properties.resources.Element - _element.error = AAZObjectType( - flags={"read_only": True}, - ) + _element.error = AAZObjectType() _build_schema_error_detail_read(_element.error) _element.id = AAZStrType( flags={"read_only": True}, @@ -259,27 +253,21 @@ def _build_schema_on_200(cls): 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 @@ -401,9 +389,7 @@ def _build_schema_on_200(cls): properties.end_time = AAZStrType( serialized_name="endTime", ) - properties.error = AAZObjectType( - flags={"read_only": True}, - ) + properties.error = AAZObjectType() _build_schema_error_detail_read(properties.error) properties.last_modified_time = AAZStrType( serialized_name="lastModifiedTime", @@ -427,14 +413,10 @@ def _build_schema_on_200(cls): ) resources = cls._schema_on_200.properties.resources - resources.Element = AAZObjectType( - flags={"read_only": True}, - ) + resources.Element = AAZObjectType() _element = cls._schema_on_200.properties.resources.Element - _element.error = AAZObjectType( - flags={"read_only": True}, - ) + _element.error = AAZObjectType() _build_schema_error_detail_read(_element.error) _element.id = AAZStrType( flags={"read_only": True}, @@ -452,27 +434,21 @@ def _build_schema_on_200(cls): 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 @@ -491,9 +467,7 @@ def _build_schema_error_detail_read(_schema): _schema.target = _schema_error_detail_read.target return - _schema_error_detail_read = AAZObjectType( - flags={"read_only": True} - ) + _schema_error_detail_read = AAZObjectType() error_detail_read = _schema_error_detail_read error_detail_read.additional_info = AAZListType( @@ -514,9 +488,7 @@ def _build_schema_error_detail_read(_schema): ) additional_info = _schema_error_detail_read.additional_info - additional_info.Element = AAZObjectType( - flags={"read_only": True}, - ) + additional_info.Element = AAZObjectType() _element = _schema_error_detail_read.additional_info.Element _element.type = AAZStrType( @@ -524,9 +496,7 @@ def _build_schema_error_detail_read(_schema): ) details = _schema_error_detail_read.details - details.Element = AAZObjectType( - flags={"read_only": True}, - ) + details.Element = AAZObjectType() _build_schema_error_detail_read(details.Element) _schema.additional_info = _schema_error_detail_read.additional_info diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py index f77b4bf5698..f84e68f6a3d 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py @@ -72,11 +72,11 @@ def _execute_operations(self): self.ConfigurationProfileAssignmentsCreateOrUpdate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -192,7 +192,6 @@ def _build_schema_on_200_201(cls): ) _schema_on_200_201.managed_by = AAZStrType( serialized_name="managedBy", - flags={"read_only": True}, ) _schema_on_200_201.name = AAZStrType( flags={"read_only": True}, @@ -221,27 +220,21 @@ def _build_schema_on_200_201(cls): 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py index d76a83ac453..c494e397c6c 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py @@ -64,11 +64,11 @@ def _execute_operations(self): self.ConfigurationProfileAssignmentsDelete(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py index 5a757d2ab71..fda34446fe3 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py @@ -63,11 +63,11 @@ def _execute_operations(self): self.ConfigurationProfileAssignmentsGet(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -165,7 +165,6 @@ def _build_schema_on_200(cls): ) _schema_on_200.managed_by = AAZStrType( serialized_name="managedBy", - flags={"read_only": True}, ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, @@ -194,27 +193,21 @@ def _build_schema_on_200(cls): 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py index bdb55d107ad..d42221f0d58 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py @@ -80,19 +80,19 @@ def _execute_operations(self): self.ConfigurationProfileAssignmentsCreateOrUpdate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass - # @register_callback + @register_callback def pre_instance_update(self, instance): pass - # @register_callback + @register_callback def post_instance_update(self, instance): pass @@ -336,7 +336,6 @@ def _build_schema_configuration_profile_assignment_read(_schema): ) configuration_profile_assignment_read.managed_by = AAZStrType( serialized_name="managedBy", - flags={"read_only": True}, ) configuration_profile_assignment_read.name = AAZStrType( flags={"read_only": True}, @@ -365,27 +364,21 @@ def _build_schema_configuration_profile_assignment_read(_schema): system_data = _schema_configuration_profile_assignment_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_configuration_profile_assignment_read.id diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py index 093aa0ce7cb..11ef53fb6d2 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py @@ -46,11 +46,11 @@ def _execute_operations(self): self.ServicePrincipalsListBySubscription(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -167,27 +167,21 @@ def _build_schema_on_200(cls): 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 diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py index d0df96a493d..1765ff23805 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py @@ -46,11 +46,11 @@ def _execute_operations(self): self.ServicePrincipalsGet(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -161,27 +161,21 @@ def _build_schema_on_200(cls): 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 diff --git a/src/automanage/azext_automanage/azext_metadata.json b/src/automanage/azext_automanage/azext_metadata.json index 8d0d021acd8..0a5db3c35db 100644 --- a/src/automanage/azext_automanage/azext_metadata.json +++ b/src/automanage/azext_automanage/azext_metadata.json @@ -1,4 +1,4 @@ { "azext.isPreview": true, - "azext.minCliCoreVersion": "2.40.0" + "azext.minCliCoreVersion": "2.41.0" } \ No newline at end of file diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml index 34a083b3f0d..06341794b69 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml @@ -13,13 +13,13 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-09T06:35:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:12:28Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:35:29 GMT + - Tue, 18 Oct 2022 07:12:31 GMT expires: - '-1' pragma: @@ -44,7 +44,7 @@ interactions: message: OK - request: body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": - "true"}}}' + true}}}' headers: Accept: - application/json @@ -55,27 +55,27 @@ interactions: Connection: - keep-alive Content-Length: - - '92' + - '90' Content-Type: - application/json ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":"true"}},"systemData":{"createdAt":"2022-10-09T06:35:37.5911257+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-09T06:35:37.5911257+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-18T07:12:35.849261+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:12:35.849261+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '603' + - '599' content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:35:39 GMT + - Tue, 18 Oct 2022 07:12:37 GMT expires: - '-1' location: @@ -91,7 +91,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -109,13 +109,13 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-09T06:35:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:12:28Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:35:41 GMT + - Tue, 18 Oct 2022 07:12:38 GMT expires: - '-1' pragma: @@ -215,13 +215,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Sun, 09 Oct 2022 06:35:42 GMT + - Tue, 18 Oct 2022 07:12:39 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Sun, 09 Oct 2022 06:40:42 GMT + - Tue, 18 Oct 2022 07:17:39 GMT source-age: - - '0' + - '78' strict-transport-security: - max-age=31536000 vary: @@ -235,15 +235,15 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - 25f9785f1c2970598ba249532d045a9148fece28 + - 2e6e60eb5dc639edd77b349058d7057a79b0140f x-frame-options: - deny x-github-request-id: - - 09DA:7DD5:18A3DF:20FAAE:63400B5F + - 0947:0AEE:16AA8A:2AABAC:634E403A x-served-by: - - cache-qpg1243-QPG + - cache-qpg1232-QPG x-timer: - - S1665297342.824427,VS0,VE307 + - S1666077159.217166,VS0,VE1 x-xss-protection: - 1; mode=block status: @@ -263,14 +263,14 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-compute/28.0.0 Python/3.9.6 + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-compute/28.0.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-08-01 response: body: - string: "[\r\n {\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202209210\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202209210\"\r\n + string: "[\r\n {\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202210140\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202210140\"\r\n \ }\r\n]" headers: cache-control: @@ -280,7 +280,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:35:44 GMT + - Tue, 18 Oct 2022 07:12:43 GMT expires: - '-1' pragma: @@ -297,7 +297,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43994 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43996 status: code: 200 message: OK @@ -315,10 +315,10 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-compute/28.0.0 Python/3.9.6 + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-compute/28.0.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202209210?api-version=2022-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202210140?api-version=2022-08-01 response: body: string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": @@ -332,8 +332,8 @@ interactions: \"IsHibernateSupported\",\r\n \"value\": \"True\"\r\n }\r\n ],\r\n \ \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": 31,\r\n \"sizeInBytes\": 32213303808\r\n },\r\n \"dataDiskImages\": - []\r\n },\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202209210\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202209210\"\r\n}" + []\r\n },\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202210140\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202210140\"\r\n}" headers: cache-control: - no-cache @@ -342,7 +342,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:35:46 GMT + - Tue, 18 Oct 2022 07:12:44 GMT expires: - '-1' pragma: @@ -359,7 +359,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73995 + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73997 status: code: 200 message: OK @@ -377,7 +377,7 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks?api-version=2022-01-01 @@ -392,7 +392,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:35:46 GMT + - Tue, 18 Oct 2022 07:12:44 GMT expires: - '-1' pragma: @@ -456,16 +456,16 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_SiCW4xRa41swPCKg1w2yhkw2xoJJzg3y","name":"vm_deploy_SiCW4xRa41swPCKg1w2yhkw2xoJJzg3y","type":"Microsoft.Resources/deployments","properties":{"templateHash":"2510314828152878068","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-09T06:35:54.2444314Z","duration":"PT0.0008017S","correlationId":"29d947eb-dc0d-44bb-bc52-eac028235fdc","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_sh6iIR4FsHRXZW7qI4bbE6LiX7M6DOa8","name":"vm_deploy_sh6iIR4FsHRXZW7qI4bbE6LiX7M6DOa8","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6073955212073129203","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-18T07:12:50.8344822Z","duration":"PT0.0006213S","correlationId":"c2b41b95-c3a7-49d4-acc5-5f0995fa124d","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_SiCW4xRa41swPCKg1w2yhkw2xoJJzg3y/operationStatuses/08585363095342664209?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_sh6iIR4FsHRXZW7qI4bbE6LiX7M6DOa8/operationStatuses/08585355297176672723?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -473,7 +473,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:35:55 GMT + - Tue, 18 Oct 2022 07:12:52 GMT expires: - '-1' pragma: @@ -483,7 +483,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 201 message: Created @@ -501,10 +501,10 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585363095342664209?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585355297176672723?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -516,7 +516,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:36:26 GMT + - Tue, 18 Oct 2022 07:13:22 GMT expires: - '-1' pragma: @@ -544,10 +544,10 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585363095342664209?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585355297176672723?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -559,7 +559,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:36:56 GMT + - Tue, 18 Oct 2022 07:13:52 GMT expires: - '-1' pragma: @@ -587,22 +587,22 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_SiCW4xRa41swPCKg1w2yhkw2xoJJzg3y","name":"vm_deploy_SiCW4xRa41swPCKg1w2yhkw2xoJJzg3y","type":"Microsoft.Resources/deployments","properties":{"templateHash":"2510314828152878068","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-09T06:36:49.086896Z","duration":"PT54.8432663S","correlationId":"29d947eb-dc0d-44bb-bc52-eac028235fdc","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_sh6iIR4FsHRXZW7qI4bbE6LiX7M6DOa8","name":"vm_deploy_sh6iIR4FsHRXZW7qI4bbE6LiX7M6DOa8","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6073955212073129203","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-18T07:13:45.4420883Z","duration":"PT54.6082274S","correlationId":"c2b41b95-c3a7-49d4-acc5-5f0995fa124d","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3604' + - '3605' content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:36:57 GMT + - Tue, 18 Oct 2022 07:13:53 GMT expires: - '-1' pragma: @@ -630,7 +630,7 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-compute/28.0.0 Python/3.9.6 + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-compute/28.0.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003?$expand=instanceView&api-version=2022-08-01 @@ -638,16 +638,16 @@ interactions: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus2euap\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"159e416f-1412-4c73-89f4-05b7ea3dcd13\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"e69d69a0-ffb6-4d80-bdcc-bb465c5bc397\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"18.04.202209210\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm000003_disk1_253a406235fc4caa8adb6d433f27c5c7\",\r\n + \"18.04.202210140\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000003_disk1_7ec487a317374cf8b1790d5922974bdc\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_253a406235fc4caa8adb6d433f27c5c7\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_7ec487a317374cf8b1790d5922974bdc\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"zhiyihuang\",\r\n @@ -667,28 +667,28 @@ interactions: [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2022-10-09T06:36:53+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_253a406235fc4caa8adb6d433f27c5c7\",\r\n + \"2022-10-18T07:13:50+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_7ec487a317374cf8b1790d5922974bdc\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-10-09T06:36:31.9173567+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-10-18T07:13:29.5814384+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-10-09T06:36:42.3393613+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-10-18T07:13:38.84732+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n - \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-10-09T06:36:24.5422648+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-10-18T07:13:26.3157001+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '3977' + - '3975' content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:36:58 GMT + - Tue, 18 Oct 2022 07:13:56 GMT expires: - '-1' pragma: @@ -705,7 +705,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31976 + - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31991 status: code: 200 message: OK @@ -723,19 +723,19 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"vm000003VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\",\r\n - \ \"etag\": \"W/\\\"4c054fe5-daea-423a-a8d8-b46d69d9e6d6\\\"\",\r\n \"tags\": + \ \"etag\": \"W/\\\"d4183f29-eea5-4744-adee-c0ef21b48391\\\"\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"1528f03f-4761-4245-80ee-3d2938c2d72a\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"017c42ea-f412-47c2-9c91-8491ee721ac5\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\",\r\n - \ \"etag\": \"W/\\\"4c054fe5-daea-423a-a8d8-b46d69d9e6d6\\\"\",\r\n + \ \"etag\": \"W/\\\"d4183f29-eea5-4744-adee-c0ef21b48391\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -744,8 +744,8 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"jdlku2yl1ske5c3g2tpeiehvpb.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-22-48-03-73-43\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": + \"lx2a0v3n2g1edh4rzj33rrrtgh.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"60-45-BD-A5-F4-E8\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\"\r\n @@ -761,9 +761,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:36:59 GMT + - Tue, 18 Oct 2022 07:14:00 GMT etag: - - W/"4c054fe5-daea-423a-a8d8-b46d69d9e6d6" + - W/"d4183f29-eea5-4744-adee-c0ef21b48391" expires: - '-1' pragma: @@ -780,7 +780,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - f8ee021a-c8d7-4e0a-9fa0-87bd1bf316a0 + - f10b63a6-16cc-49fe-98a6-a009c6b6c006 status: code: 200 message: '' @@ -798,17 +798,17 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"vm000003PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP\",\r\n - \ \"etag\": \"W/\\\"f9768dca-b357-4432-a4d7-6fc657a1ed93\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"ab4e2f39-ca26-461e-a77e-7f11507e9a67\\\"\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"a85a37e1-0eb4-4e65-971d-394a26387b5a\",\r\n - \ \"ipAddress\": \"20.102.173.35\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"7dbc5764-051b-4f94-8ef3-7a0e7a90a310\",\r\n + \ \"ipAddress\": \"20.102.145.17\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -822,9 +822,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:36:59 GMT + - Tue, 18 Oct 2022 07:14:01 GMT etag: - - W/"f9768dca-b357-4432-a4d7-6fc657a1ed93" + - W/"ab4e2f39-ca26-461e-a77e-7f11507e9a67" expires: - '-1' pragma: @@ -841,7 +841,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 8b7ef91a-4d0d-4c81-8c55-a6e224ffb05b + - 633cd264-08e5-4501-ad55-7513c6959b76 status: code: 200 message: '' @@ -863,12 +863,12 @@ interactions: ParameterSetName: - -n -g --vm-name --configuration-profile User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-09T06:37:00.9023645+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-09T06:37:00.9023645+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-18T07:13:59.5319982+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:13:59.5319982+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -877,7 +877,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:37:02 GMT + - Tue, 18 Oct 2022 07:14:02 GMT expires: - '-1' location: @@ -893,7 +893,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -911,12 +911,12 @@ interactions: ParameterSetName: - -n -g --vm-name User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-09T06:37:00.9023645+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-09T06:37:00.9023645+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-18T07:13:59.5319982+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:13:59.5319982+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -925,7 +925,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:37:03 GMT + - Tue, 18 Oct 2022 07:14:04 GMT expires: - '-1' pragma: @@ -959,21 +959,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Unknown"},"systemData":{"createdAt":"2022-10-09T06:37:05.1302427+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-09T06:37:05.1302427+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-18T07:13:59.5319982+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:13:59.5319982+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '1054' + - '1012' content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:37:04 GMT + - Tue, 18 Oct 2022 07:14:05 GMT expires: - '-1' pragma: @@ -1010,13 +1010,13 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-09T06:35:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:12:28Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1025,7 +1025,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:37:05 GMT + - Tue, 18 Oct 2022 07:14:06 GMT expires: - '-1' pragma: @@ -1041,7 +1041,7 @@ interactions: message: OK - request: body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": - "false"}}}' + false}}}' headers: Accept: - application/json @@ -1052,27 +1052,27 @@ interactions: Connection: - keep-alive Content-Length: - - '93' + - '91' Content-Type: - application/json ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":"false"}},"systemData":{"createdAt":"2022-10-09T06:37:11.1183052+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-09T06:37:11.1183052+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-18T07:14:19.064825+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:14:19.064825+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '604' + - '600' content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:37:13 GMT + - Tue, 18 Oct 2022 07:14:20 GMT expires: - '-1' location: @@ -1106,21 +1106,21 @@ interactions: ParameterSetName: - --n -g --vm-name --configuration-profile User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Unknown"},"systemData":{"createdAt":"2022-10-09T06:37:05.1302427+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-09T06:37:05.1302427+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-18T07:13:59.5319982+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:13:59.5319982+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1042' + - '1000' content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:37:14 GMT + - Tue, 18 Oct 2022 07:14:16 GMT expires: - '-1' pragma: @@ -1158,21 +1158,21 @@ interactions: ParameterSetName: - --n -g --vm-name --configuration-profile User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"Unknown"},"systemData":{"createdAt":"2022-10-09T06:37:15.6702479+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-09T06:37:15.6702479+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"New"},"systemData":{"createdAt":"2022-10-18T07:14:17.3344081+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:14:17.3344081+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1004' + - '1000' content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:37:15 GMT + - Tue, 18 Oct 2022 07:14:18 GMT expires: - '-1' pragma: @@ -1210,7 +1210,7 @@ interactions: ParameterSetName: - -n -g --vm-name -y User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: @@ -1222,7 +1222,7 @@ interactions: content-length: - '0' date: - - Sun, 09 Oct 2022 06:37:16 GMT + - Tue, 18 Oct 2022 07:14:23 GMT expires: - '-1' pragma: @@ -1236,7 +1236,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14997' status: code: 200 message: OK @@ -1254,7 +1254,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: @@ -1268,15 +1268,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 09 Oct 2022 06:37:19 GMT + - Tue, 18 Oct 2022 07:14: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: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml index 2e2fb5b24e3..81570f2d856 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml @@ -13,13 +13,13 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.40.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-08T08:35:01Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:12:28Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 08 Oct 2022 08:35:04 GMT + - Tue, 18 Oct 2022 07:12:32 GMT expires: - '-1' pragma: @@ -44,10 +44,10 @@ interactions: message: OK - request: body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": - "false", "Backup/Enable": "false", "VMInsights/Enable": "true", "AzureSecurityCenter/Enable": - "true", "UpdateManagement/Enable": "true", "ChangeTrackingAndInventory/Enable": - "true", "GuestConfiguration/Enable": "true", "LogAnalytics/Enable": "true", - "BootDiagnostics/Enable": "true"}}}' + false, "Backup/Enable": false, "VMInsights/Enable": true, "AzureSecurityCenter/Enable": + true, "UpdateManagement/Enable": true, "ChangeTrackingAndInventory/Enable": + true, "GuestConfiguration/Enable": true, "LogAnalytics/Enable": true, "BootDiagnostics/Enable": + true}}}' headers: Accept: - application/json @@ -58,27 +58,80 @@ interactions: Connection: - keep-alive Content-Length: - - '368' + - '350' Content-Type: - application/json ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":"false","Backup/Enable":"false","VMInsights/Enable":"true","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2022-10-08T08:35:11.4166168+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-08T08:35:11.4166168+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"error":{"code":"SubscriptionRequestsThrottled","message":"Number + of requests for subscription ''0b1f6471-1bf0-4dda-aec3-cb9272f09590'' and + operation ''PUT/SUBSCRIPTIONS/RESOURCEGROUPS/PROVIDERS/MICROSOFT.AUTOMANAGE/CONFIGURATIONPROFILES/'' + exceeded the backend storage limit. Please try again after ''6'' seconds."}}' headers: cache-control: - no-cache + connection: + - close content-length: - - '863' + - '312' content-type: - application/json; charset=utf-8 date: - - Sat, 08 Oct 2022 08:35:13 GMT + - Tue, 18 Oct 2022 07:12:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 429 + message: '' +- request: + body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": + false, "Backup/Enable": false, "VMInsights/Enable": true, "AzureSecurityCenter/Enable": + true, "UpdateManagement/Enable": true, "ChangeTrackingAndInventory/Enable": + true, "GuestConfiguration/Enable": true, "LogAnalytics/Enable": true, "BootDiagnostics/Enable": + true}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + Content-Length: + - '350' + Content-Type: + - application/json + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-18T07:12:48.8130169+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:12:48.8130169+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '845' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:12:49 GMT expires: - '-1' location: @@ -94,7 +147,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -112,21 +165,21 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":"false","Backup/Enable":"false","VMInsights/Enable":"true","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2022-10-08T08:35:11.4166168+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-08T08:35:11.4166168+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-18T07:12:48.8130169+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:12:48.8130169+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '863' + - '845' content-type: - application/json; charset=utf-8 date: - - Sat, 08 Oct 2022 08:35:14 GMT + - Tue, 18 Oct 2022 07:12:52 GMT expires: - '-1' pragma: @@ -160,21 +213,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":"false","Backup/Enable":"false","VMInsights/Enable":"true","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2022-10-08T08:35:11.4166168+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-08T08:35:11.4166168+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-18T07:12:48.8130169+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:12:48.8130169+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '875' + - '857' content-type: - application/json; charset=utf-8 date: - - Sat, 08 Oct 2022 08:35:16 GMT + - Tue, 18 Oct 2022 07:12:54 GMT expires: - '-1' pragma: @@ -208,21 +261,21 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":"false","Backup/Enable":"false","VMInsights/Enable":"true","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2022-10-08T08:35:11.4166168+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-08T08:35:11.4166168+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-18T07:12:48.8130169+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:12:48.8130169+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '863' + - '845' content-type: - application/json; charset=utf-8 date: - - Sat, 08 Oct 2022 08:35:17 GMT + - Tue, 18 Oct 2022 07:12:56 GMT expires: - '-1' pragma: @@ -244,7 +297,7 @@ interactions: message: OK - request: body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": - "true", "VMInsights/Enable": "false"}}}' + true, "VMInsights/Enable": false}}}' headers: Accept: - application/json @@ -255,27 +308,27 @@ interactions: Connection: - keep-alive Content-Length: - - '122' + - '118' Content-Type: - application/json ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":"true","VMInsights/Enable":"false"}},"systemData":{"createdAt":"2022-10-08T08:35:11.4166168+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-08T08:35:18.6806948+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2022-10-18T07:12:48.8130169+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:12:57.3187887+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '631' + - '627' content-type: - application/json; charset=utf-8 date: - - Sat, 08 Oct 2022 08:35:18 GMT + - Tue, 18 Oct 2022 07:12:57 GMT expires: - '-1' pragma: @@ -293,7 +346,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -313,7 +366,7 @@ interactions: ParameterSetName: - -n -g -y User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: @@ -325,7 +378,7 @@ interactions: content-length: - '0' date: - - Sat, 08 Oct 2022 08:35:24 GMT + - Tue, 18 Oct 2022 07:13:04 GMT expires: - '-1' pragma: @@ -339,7 +392,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 200 message: OK @@ -357,7 +410,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: @@ -371,7 +424,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 08 Oct 2022 08:35:25 GMT + - Tue, 18 Oct 2022 07:13:04 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml index 0c4d3c8863e..7e0035fef90 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml @@ -1,4 +1,98 @@ interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage best-practice list + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices?api-version=2022-05-04 + response: + body: + string: '{"value":[{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction","name":"AzureBestPracticesProduction","type":"Microsoft.Automanage/bestPractices","properties":{"configuration":{"Antimalware/Enable":true,"Antimalware/EnableRealTimeProtection":true,"Antimalware/RunScheduledScan":true,"Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":true,"Backup/PolicyName":"dailyBackupPolicy","Backup/TimeZone":"UTC","Backup/InstantRpRetentionRangeInDays":"2","Backup/SchedulePolicy/ScheduleRunFrequency":"Daily","Backup/SchedulePolicy/ScheduleRunTimes":["2017-01-26T00:00:00Z"],"Backup/SchedulePolicy/SchedulePolicyType":"SimpleSchedulePolicy","Backup/RetentionPolicy/RetentionPolicyType":"LongTermRetentionPolicy","Backup/RetentionPolicy/DailySchedule/RetentionTimes":["2017-01-26T00:00:00Z"],"Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count":"180","Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType":"Days","VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true,"WindowsAdminCenter/Enable":false}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2022-10-07T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}},{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest","name":"AzureBestPracticesDevTest","type":"Microsoft.Automanage/bestPractices","properties":{"configuration":{"Antimalware/Enable":true,"Antimalware/EnableRealTimeProtection":true,"Antimalware/RunScheduledScan":true,"Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":false,"VMInsights/Enable":false,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true,"WindowsAdminCenter/Enable":true}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2022-10-07T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '2342' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:12:29 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage best-practice show + Connection: + - keep-alive + ParameterSetName: + - --best-practice-name + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest?api-version=2022-05-04 + response: + body: + string: '{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest","name":"AzureBestPracticesDevTest","type":"Microsoft.Automanage/bestPractices","properties":{"configuration":{"Antimalware/Enable":true,"Antimalware/EnableRealTimeProtection":true,"Antimalware/RunScheduledScan":true,"Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":false,"VMInsights/Enable":false,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true,"WindowsAdminCenter/Enable":true}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2022-10-07T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '868' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:12:29 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: @@ -11,7 +105,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals?api-version=2022-05-04 response: @@ -25,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 08 Oct 2022 08:26:47 GMT + - Tue, 18 Oct 2022 07:12:30 GMT expires: - '-1' pragma: @@ -57,7 +151,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals/default?api-version=2022-05-04 response: @@ -71,7 +165,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 08 Oct 2022 08:26:50 GMT + - Tue, 18 Oct 2022 07:12:33 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index 9522dd50c3d..7a484078bfe 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -12,17 +12,17 @@ class AutomanageScenario(ScenarioTest): @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.') def test_automanage_scenarios(self): # best-practice - # best_practice_name = self.cmd('az automanage best-practice list').get_output_in_json() - # if best_practice_name and len(best_practice_name) >= 2: - # best_practice_name = best_practice_name[1]["name"] - # self.cmd('az automanage best-practice show --best-practice-name {}'.format(best_practice_name)) - # version_name = self.cmd('az automanage best-practice version list ' - # '--best-practice-name {}'.format(best_practice_name)).get_output_in_json() - # if version_name and len(version_name) >= 1: - # version_name = version_name[0]["name"] - # # TODO server error - # # self.cmd('az automanage best-practice version show --best-practice-name {} --version-name ' - # # '{}'.format(best_practice_name, version_name)) + best_practice_name = self.cmd('az automanage best-practice list').get_output_in_json() + if best_practice_name and len(best_practice_name) >= 2: + best_practice_name = best_practice_name[1]["name"] + self.cmd('az automanage best-practice show --best-practice-name {}'.format(best_practice_name)) + # version_name = self.cmd('az automanage best-practice version list ' + # '--best-practice-name {}'.format(best_practice_name)).get_output_in_json() + # if version_name and len(version_name) >= 1: + # version_name = version_name[0]["name"] + # ## TODO server error + # self.cmd('az automanage best-practice version show --best-practice-name {} --version-name ' + # '{}'.format(best_practice_name, version_name)) # service-principal self.cmd('az automanage service-principal list') @@ -34,26 +34,26 @@ def test_automanage_configuration_profile_scenarios(self): 'profile_name': self.create_random_name(prefix='profile', length=24), }) self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg} --configuration ' - '{{Antimalware/Enable:false,Backup/Enable:false,VMInsights/Enable:true,' - 'AzureSecurityCenter/Enable:true,UpdateManagement/Enable:true,' - 'ChangeTrackingAndInventory/Enable:true,GuestConfiguration/Enable:true,' - 'LogAnalytics/Enable:true,BootDiagnostics/Enable:true}}') + '{{\\\"Antimalware/Enable\\\":false,\\\"Backup/Enable\\\":false,\\\"VMInsights/Enable\\\":true,' + '\\\"AzureSecurityCenter/Enable\\\":true,\\\"UpdateManagement/Enable\\\":true,' + '\\\"ChangeTrackingAndInventory/Enable\\\":true,\\\"GuestConfiguration/Enable\\\":true,' + '\\\"LogAnalytics/Enable\\\":true,\\\"BootDiagnostics/Enable\\\":true}}') self.cmd('az automanage configuration-profile show -n {profile_name} -g {rg}', checks=[JMESPathCheck('name', self.kwargs.get('profile_name', '')), - JMESPathCheck('properties.configuration', {"Antimalware/Enable": "false", - "AzureSecurityCenter/Enable": "true", - "Backup/Enable": "false", - "BootDiagnostics/Enable": "true", - "ChangeTrackingAndInventory/Enable": "true", - "GuestConfiguration/Enable": "true", - "LogAnalytics/Enable": "true", - "UpdateManagement/Enable": "true", - "VMInsights/Enable": "true"})]) + JMESPathCheck('properties.configuration', {"Antimalware/Enable": False, + "AzureSecurityCenter/Enable": True, + "Backup/Enable": False, + "BootDiagnostics/Enable": True, + "ChangeTrackingAndInventory/Enable": True, + "GuestConfiguration/Enable": True, + "LogAnalytics/Enable": True, + "UpdateManagement/Enable": True, + "VMInsights/Enable": True})]) self.cmd('az automanage configuration-profile list -g {rg}', checks=[JMESPathCheck('length(@)', 1)]) self.cmd('az automanage configuration-profile update -n {profile_name} -g {rg} --configuration ' - '{{Antimalware/Enable:true,VMInsights/Enable:false}}', - checks=[JMESPathCheck('properties.configuration', {"Antimalware/Enable": "true", - "VMInsights/Enable": "false"})]) + '{{\\\"Antimalware/Enable\\\":true,\\\"VMInsights/Enable\\\":false}}', + checks=[JMESPathCheck('properties.configuration', {"Antimalware/Enable": True, + "VMInsights/Enable": False})]) self.cmd('az automanage configuration-profile delete -n {profile_name} -g {rg} -y') self.cmd('az automanage configuration-profile list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) @@ -68,7 +68,7 @@ def test_automanage_configuration_profile_assignment_vm_scenarios(self): 'profile_name_2': self.create_random_name(prefix='profile', length=24), }) profile_id = self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg} ' - '--configuration {{Antimalware/Enable:true}}').get_output_in_json()["id"] + '--configuration {{\\\"Antimalware/Enable\\\":true}}').get_output_in_json()["id"] self.kwargs.update({'profile_id': profile_id}) vm_id = self.cmd('az vm create -n {vm_name} -g {rg} --image UbuntuLTS').get_output_in_json()["id"] self.cmd('az automanage configuration-profile-assignment vm create -n default -g {rg} ' @@ -80,7 +80,7 @@ def test_automanage_configuration_profile_assignment_vm_scenarios(self): self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 1)]) profile_id_2 = self.cmd('az automanage configuration-profile create -n {profile_name_2} -g {rg} ' - '--configuration {{Antimalware/Enable:false}}').get_output_in_json()["id"] + '--configuration {{\\\"Antimalware/Enable\\\":false}}').get_output_in_json()["id"] self.kwargs.update({'profile_id_2': profile_id_2}) self.cmd('az automanage configuration-profile-assignment vm update --n default -g {rg} ' '--vm-name {vm_name} --configuration-profile {profile_id_2}', @@ -90,34 +90,34 @@ def test_automanage_configuration_profile_assignment_vm_scenarios(self): self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) # @record_only - def test_automanage_configuration_profile_assignment_arc_scenarios(self): - self.kwargs.update({ - 'profile_name': self.create_random_name(prefix='profile', length=24), - 'rg': 'rgtestautomanage', - 'arc_name': 'arc1', - 'profile_name_2': self.create_random_name(prefix='profile', length=24), - }) - arc_id = '/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgtestautomanage/providers/' \ - 'Microsoft.HybridCompute/machines/arc1' - profile_id = self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg} ' - '--configuration {{Antimalware/Enable:true}}').get_output_in_json()["id"] - self.kwargs.update({'profile_id': profile_id}) - - self.cmd('az automanage configuration-profile-assignment arc create -n default -g {rg} ' - '--machine-name {arc_name} --configuration-profile {profile_id}') - self.cmd('az automanage configuration-profile-assignment arc show -n default -g {rg} --machine-name {arc_name}', - checks=[JMESPathCheck('name', 'default'), - JMESPathCheck('properties.configurationProfile', profile_id), - JMESPathCheck('properties.targetId', arc_id)]) - self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 1)]) - - profile_id_2 = self.cmd('az automanage configuration-profile create -n {profile_name_2} -g {rg} ' - '--configuration {{Antimalware/Enable:false}}').get_output_in_json()["id"] - self.kwargs.update({'profile_id_2': profile_id_2}) - self.cmd('az automanage configuration-profile-assignment arc update --n default -g {rg} ' - '--machine-name {arc_name} --configuration-profile {profile_id_2}', - checks=[JMESPathCheck('properties.configurationProfile', profile_id_2), - JMESPathCheck('properties.targetId', arc_id)]) - self.cmd('az automanage configuration-profile-assignment arc delete -n default -g {rg} --machine-name ' - '{arc_name} -y') - self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) + # def test_automanage_configuration_profile_assignment_arc_scenarios(self): + # self.kwargs.update({ + # 'profile_name': self.create_random_name(prefix='profile', length=24), + # 'rg': 'rgtestautomanage', + # 'arc_name': 'arc1', + # 'profile_name_2': self.create_random_name(prefix='profile', length=24), + # }) + # arc_id = '/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgtestautomanage/providers/' \ + # 'Microsoft.HybridCompute/machines/arc1' + # profile_id = self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg} ' + # '--configuration {{Antimalware/Enable:true}}').get_output_in_json()["id"] + # self.kwargs.update({'profile_id': profile_id}) + # + # self.cmd('az automanage configuration-profile-assignment arc create -n default -g {rg} ' + # '--machine-name {arc_name} --configuration-profile {profile_id}') + # self.cmd('az automanage configuration-profile-assignment arc show -n default -g {rg} --machine-name {arc_name}', + # checks=[JMESPathCheck('name', 'default'), + # JMESPathCheck('properties.configurationProfile', profile_id), + # JMESPathCheck('properties.targetId', arc_id)]) + # self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 1)]) + # + # profile_id_2 = self.cmd('az automanage configuration-profile create -n {profile_name_2} -g {rg} ' + # '--configuration {{Antimalware/Enable:false}}').get_output_in_json()["id"] + # self.kwargs.update({'profile_id_2': profile_id_2}) + # self.cmd('az automanage configuration-profile-assignment arc update --n default -g {rg} ' + # '--machine-name {arc_name} --configuration-profile {profile_id_2}', + # checks=[JMESPathCheck('properties.configurationProfile', profile_id_2), + # JMESPathCheck('properties.targetId', arc_id)]) + # self.cmd('az automanage configuration-profile-assignment arc delete -n default -g {rg} --machine-name ' + # '{arc_name} -y') + # self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) From 712a1bdc6481a9735d6581c8139bbe357a922400 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Tue, 25 Oct 2022 15:00:52 +0800 Subject: [PATCH 11/31] lint --- src/automanage/azext_automanage/_params.py | 10 +- .../report/_list_for_arc.py | 2 +- .../report/_list_for_cluster_and_vm.py | 2 +- .../report/_show_for_arc.py | 2 +- .../report/_show_for_cluster_and_vm.py | 2 +- src/automanage/azext_automanage/commands.py | 5 - src/automanage/azext_automanage/custom.py | 23 +- ...ation_profile_assignment_vm_scenarios.yaml | 231 ++++++++---------- ...anage_configuration_profile_scenarios.yaml | 100 ++------ .../recordings/test_automanage_scenarios.yaml | 16 +- 10 files changed, 144 insertions(+), 249 deletions(-) diff --git a/src/automanage/azext_automanage/_params.py b/src/automanage/azext_automanage/_params.py index 48159032e6e..713e5d40278 100644 --- a/src/automanage/azext_automanage/_params.py +++ b/src/automanage/azext_automanage/_params.py @@ -11,12 +11,4 @@ def load_arguments(self, _): # pylint: disable=unused-argument pass - # with self.argument_context('automanage configuration-profile create') as c: - # c.argument('configuration_profile_name', - # options_list=('--configuration-profile-name', '--name', '-n'), required=True, - # help='Name of the configuration profile.') - # c.argument('resource_group', options_list=('--resource-group', '-g'), required=True, - # help='Name of resource group. You can configure the default group using ' - # '`az configure --defaults group=`.') - # c.extra('configuration', - # help='configuration dictionary of the configuration profile.') + diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_arc.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_arc.py index 3f37dfabe1c..47287a02e43 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_arc.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_arc.py @@ -42,7 +42,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.configuration_profile_assignment_name = AAZStrArg( - options=["--configuration-profile-assignment-name"], + options=["--assignment-name", "--configuration-profile-assignment-name"], help="The configuration profile assignment name.", required=True, ) diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_cluster_and_vm.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_cluster_and_vm.py index a76d2fd1fa1..e43748e278c 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_cluster_and_vm.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_cluster_and_vm.py @@ -47,7 +47,7 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The name of the Arc machine.", ) _args_schema.configuration_profile_assignment_name = AAZStrArg( - options=["--configuration-profile-assignment-name"], + options=["--assignment-name", "--configuration-profile-assignment-name"], help="The configuration profile assignment name.", required=True, ) diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_arc.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_arc.py index 451d6fe7ed8..f53610e57c4 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_arc.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_arc.py @@ -42,7 +42,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.configuration_profile_assignment_name = AAZStrArg( - options=["--configuration-profile-assignment-name"], + options=["--assignment-name", "--configuration-profile-assignment-name"], help="The configuration profile assignment name.", required=True, id_part="child_name_1", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_cluster_and_vm.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_cluster_and_vm.py index daf24370a57..8260b07f459 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_cluster_and_vm.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_cluster_and_vm.py @@ -48,7 +48,7 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.configuration_profile_assignment_name = AAZStrArg( - options=["--configuration-profile-assignment-name"], + options=["--assignment-name", "--configuration-profile-assignment-name"], help="The configuration profile assignment name.", required=True, id_part="child_name_1", diff --git a/src/automanage/azext_automanage/commands.py b/src/automanage/azext_automanage/commands.py index 9562e5c7b85..b0d842e4993 100644 --- a/src/automanage/azext_automanage/commands.py +++ b/src/automanage/azext_automanage/commands.py @@ -13,8 +13,3 @@ def load_command_table(self, _): # pylint: disable=unused-argument pass - # with self.command_group('automanage configuration-profile') as g: - # g.custom_command('create', 'create_configuration_profile') - - # with self.command_group('automanage best-practice') as g: - # g.custom_command('list', 'list_best_practice') diff --git a/src/automanage/azext_automanage/custom.py b/src/automanage/azext_automanage/custom.py index 0b5ac1e30eb..86df1e48ef5 100644 --- a/src/automanage/azext_automanage/custom.py +++ b/src/automanage/azext_automanage/custom.py @@ -9,27 +9,6 @@ # pylint: disable=too-many-statements from knack.log import get_logger -import json - -logger = get_logger(__name__) - -from .aaz.latest.automanage.configuration_profile import Create, Update -from .aaz.latest.automanage.best_practice import List -def list_best_practice(cmd): - List_Best_Practice = List(cmd.loader) - args = {} - result = List_Best_Practice(args) - return result - -def create_configuration_profile(cmd, configuration_profile_name, resource_group, configuration=None): - Create_Confguration_Profile = Create(cmd.loader) - args = { - "configuration_profile_name": configuration_profile_name, - "resource_group": resource_group, - # "configuration": configuration - "configuration": json.loads(configuration) if configuration else {} - } - result = Create_Confguration_Profile(args) - return result +logger = get_logger(__name__) diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml index 06341794b69..325ffd1fd27 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml @@ -13,13 +13,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:12:28Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-25T06:46:58Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:31 GMT + - Tue, 25 Oct 2022 06:47:03 GMT expires: - '-1' pragma: @@ -61,21 +60,21 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-18T07:12:35.849261+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:12:35.849261+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-25T06:47:08.2898448+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:47:08.2898448+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '599' + - '601' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:37 GMT + - Tue, 25 Oct 2022 06:47:10 GMT expires: - '-1' location: @@ -109,13 +108,12 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:12:28Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-25T06:46:58Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -124,7 +122,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:38 GMT + - Tue, 25 Oct 2022 06:47:11 GMT expires: - '-1' pragma: @@ -215,13 +213,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:39 GMT + - Tue, 25 Oct 2022 06:47:12 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Tue, 18 Oct 2022 07:17:39 GMT + - Tue, 25 Oct 2022 06:52:12 GMT source-age: - - '78' + - '59' strict-transport-security: - max-age=31536000 vary: @@ -235,15 +233,15 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - 2e6e60eb5dc639edd77b349058d7057a79b0140f + - b0ebf077657f0d8e79ae2f6f9f0ce01b236ee411 x-frame-options: - deny x-github-request-id: - - 0947:0AEE:16AA8A:2AABAC:634E403A + - 08DF:7594:1D33F:26B4F:63574FA3 x-served-by: - - cache-qpg1232-QPG + - cache-qpg1257-QPG x-timer: - - S1666077159.217166,VS0,VE1 + - S1666680432.128302,VS0,VE1 x-xss-protection: - 1; mode=block status: @@ -263,14 +261,13 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-compute/28.0.0 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-08-01 response: body: - string: "[\r\n {\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202210140\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202210140\"\r\n + string: "[\r\n {\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202210180\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202210180\"\r\n \ }\r\n]" headers: cache-control: @@ -280,7 +277,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:43 GMT + - Tue, 25 Oct 2022 06:47:14 GMT expires: - '-1' pragma: @@ -297,7 +294,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43996 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43994 status: code: 200 message: OK @@ -315,10 +312,9 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-compute/28.0.0 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202210140?api-version=2022-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202210180?api-version=2022-08-01 response: body: string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": @@ -332,8 +328,8 @@ interactions: \"IsHibernateSupported\",\r\n \"value\": \"True\"\r\n }\r\n ],\r\n \ \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": 31,\r\n \"sizeInBytes\": 32213303808\r\n },\r\n \"dataDiskImages\": - []\r\n },\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202210140\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202210140\"\r\n}" + []\r\n },\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202210180\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202210180\"\r\n}" headers: cache-control: - no-cache @@ -342,7 +338,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:44 GMT + - Tue, 25 Oct 2022 06:47:15 GMT expires: - '-1' pragma: @@ -359,7 +355,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73997 + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73996 status: code: 200 message: OK @@ -377,8 +373,7 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks?api-version=2022-01-01 response: @@ -392,7 +387,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:44 GMT + - Tue, 25 Oct 2022 06:47:16 GMT expires: - '-1' pragma: @@ -456,16 +451,15 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_sh6iIR4FsHRXZW7qI4bbE6LiX7M6DOa8","name":"vm_deploy_sh6iIR4FsHRXZW7qI4bbE6LiX7M6DOa8","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6073955212073129203","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-18T07:12:50.8344822Z","duration":"PT0.0006213S","correlationId":"c2b41b95-c3a7-49d4-acc5-5f0995fa124d","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_mGhRDYDm93a421hJdi3Q6FIaKhaHEMLc","name":"vm_deploy_mGhRDYDm93a421hJdi3Q6FIaKhaHEMLc","type":"Microsoft.Resources/deployments","properties":{"templateHash":"8168230074521553673","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-25T06:47:24.2680269Z","duration":"PT0.0006204S","correlationId":"5f0a7286-291b-49bf-8e7f-e39189f0c4aa","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_sh6iIR4FsHRXZW7qI4bbE6LiX7M6DOa8/operationStatuses/08585355297176672723?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_mGhRDYDm93a421hJdi3Q6FIaKhaHEMLc/operationStatuses/08585349264450009983?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -473,7 +467,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:52 GMT + - Tue, 25 Oct 2022 06:47:29 GMT expires: - '-1' pragma: @@ -483,7 +477,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 201 message: Created @@ -501,10 +495,9 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585355297176672723?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585349264450009983?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -516,15 +509,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:13:22 GMT + - Tue, 25 Oct 2022 06:48:00 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding x-content-type-options: - nosniff status: @@ -544,10 +535,9 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585355297176672723?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585349264450009983?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -559,15 +549,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:13:52 GMT + - Tue, 25 Oct 2022 06:48:31 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding x-content-type-options: - nosniff status: @@ -587,30 +575,27 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_sh6iIR4FsHRXZW7qI4bbE6LiX7M6DOa8","name":"vm_deploy_sh6iIR4FsHRXZW7qI4bbE6LiX7M6DOa8","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6073955212073129203","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-18T07:13:45.4420883Z","duration":"PT54.6082274S","correlationId":"c2b41b95-c3a7-49d4-acc5-5f0995fa124d","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_mGhRDYDm93a421hJdi3Q6FIaKhaHEMLc","name":"vm_deploy_mGhRDYDm93a421hJdi3Q6FIaKhaHEMLc","type":"Microsoft.Resources/deployments","properties":{"templateHash":"8168230074521553673","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-25T06:48:21.308466Z","duration":"PT57.0410595S","correlationId":"5f0a7286-291b-49bf-8e7f-e39189f0c4aa","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3605' + - '3604' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:13:53 GMT + - Tue, 25 Oct 2022 06:48:31 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding x-content-type-options: - nosniff status: @@ -630,24 +615,23 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-compute/28.0.0 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003?$expand=instanceView&api-version=2022-08-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus2euap\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"e69d69a0-ffb6-4d80-bdcc-bb465c5bc397\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"0da4d1b7-b890-45e3-991b-052ac7f6e7c8\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"18.04.202210140\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm000003_disk1_7ec487a317374cf8b1790d5922974bdc\",\r\n + \"18.04.202210180\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000003_disk1_1b9cae7d644c406983d23d98c3d07d92\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_7ec487a317374cf8b1790d5922974bdc\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_1b9cae7d644c406983d23d98c3d07d92\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"zhiyihuang\",\r\n @@ -663,32 +647,32 @@ interactions: {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\"}]},\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"computerName\": \"vm000003\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n - \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.9.0.1\",\r\n \"statuses\": + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.9.0.2\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2022-10-18T07:13:50+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_7ec487a317374cf8b1790d5922974bdc\",\r\n + \"2022-10-25T06:48:26+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_1b9cae7d644c406983d23d98c3d07d92\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-10-18T07:13:29.5814384+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-10-25T06:48:07.0545651+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-10-18T07:13:38.84732+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-10-25T06:48:14.7268081+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n - \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-10-18T07:13:26.3157001+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-10-25T06:48:03.8357503+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '3975' + - '3977' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:13:56 GMT + - Tue, 25 Oct 2022 06:48:33 GMT expires: - '-1' pragma: @@ -705,7 +689,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31991 + - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31995 status: code: 200 message: OK @@ -723,19 +707,18 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"vm000003VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\",\r\n - \ \"etag\": \"W/\\\"d4183f29-eea5-4744-adee-c0ef21b48391\\\"\",\r\n \"tags\": + \ \"etag\": \"W/\\\"70b45f8d-ac9f-45a7-b2c4-9af536797ee1\\\"\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"017c42ea-f412-47c2-9c91-8491ee721ac5\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"a42660e8-68c0-4160-9c3e-6d166570c252\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\",\r\n - \ \"etag\": \"W/\\\"d4183f29-eea5-4744-adee-c0ef21b48391\\\"\",\r\n + \ \"etag\": \"W/\\\"70b45f8d-ac9f-45a7-b2c4-9af536797ee1\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -744,8 +727,8 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"lx2a0v3n2g1edh4rzj33rrrtgh.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"60-45-BD-A5-F4-E8\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": + \"lpoueafvoosu1lorz4d3adhjea.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-22-48-03-85-36\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\"\r\n @@ -761,9 +744,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:14:00 GMT + - Tue, 25 Oct 2022 06:48:35 GMT etag: - - W/"d4183f29-eea5-4744-adee-c0ef21b48391" + - W/"70b45f8d-ac9f-45a7-b2c4-9af536797ee1" expires: - '-1' pragma: @@ -780,7 +763,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - f10b63a6-16cc-49fe-98a6-a009c6b6c006 + - fda21fec-6f6b-44d9-816c-333d8dfb3c9e status: code: 200 message: '' @@ -798,17 +781,16 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"vm000003PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP\",\r\n - \ \"etag\": \"W/\\\"ab4e2f39-ca26-461e-a77e-7f11507e9a67\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"c10936cf-c6eb-426f-b10a-a05e8dbfaf7b\\\"\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"7dbc5764-051b-4f94-8ef3-7a0e7a90a310\",\r\n - \ \"ipAddress\": \"20.102.145.17\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"ef17bc50-367e-4a3d-bd5b-f1a03264c1d7\",\r\n + \ \"ipAddress\": \"20.47.243.24\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -818,13 +800,13 @@ interactions: cache-control: - no-cache content-length: - - '995' + - '994' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:14:01 GMT + - Tue, 25 Oct 2022 06:48:36 GMT etag: - - W/"ab4e2f39-ca26-461e-a77e-7f11507e9a67" + - W/"c10936cf-c6eb-426f-b10a-a05e8dbfaf7b" expires: - '-1' pragma: @@ -841,7 +823,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 633cd264-08e5-4501-ad55-7513c6959b76 + - 5153c617-7751-4574-9464-a39f811a163c status: code: 200 message: '' @@ -863,12 +845,12 @@ interactions: ParameterSetName: - -n -g --vm-name --configuration-profile User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-18T07:13:59.5319982+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:13:59.5319982+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-25T06:48:37.0880321+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:48:37.0880321+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -877,7 +859,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:14:02 GMT + - Tue, 25 Oct 2022 06:48:38 GMT expires: - '-1' location: @@ -893,7 +875,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -911,12 +893,12 @@ interactions: ParameterSetName: - -n -g --vm-name User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-18T07:13:59.5319982+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:13:59.5319982+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-25T06:48:37.0880321+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:48:37.0880321+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -925,7 +907,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:14:04 GMT + - Tue, 25 Oct 2022 06:48:41 GMT expires: - '-1' pragma: @@ -959,12 +941,12 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-18T07:13:59.5319982+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:13:59.5319982+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-25T06:48:37.0880321+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:48:37.0880321+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache @@ -973,7 +955,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:14:05 GMT + - Tue, 25 Oct 2022 06:48:42 GMT expires: - '-1' pragma: @@ -1010,13 +992,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:12:28Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-25T06:46:58Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1025,7 +1006,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:14:06 GMT + - Tue, 25 Oct 2022 06:48:43 GMT expires: - '-1' pragma: @@ -1058,21 +1039,21 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-18T07:14:19.064825+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:14:19.064825+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-25T06:48:47.7893902+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:48:47.7893902+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '600' + - '602' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:14:20 GMT + - Tue, 25 Oct 2022 06:48:49 GMT expires: - '-1' location: @@ -1106,12 +1087,12 @@ interactions: ParameterSetName: - --n -g --vm-name --configuration-profile User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-18T07:13:59.5319982+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:13:59.5319982+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-25T06:48:37.0880321+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:48:37.0880321+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1120,7 +1101,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:14:16 GMT + - Tue, 25 Oct 2022 06:48:51 GMT expires: - '-1' pragma: @@ -1158,12 +1139,12 @@ interactions: ParameterSetName: - --n -g --vm-name --configuration-profile User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"New"},"systemData":{"createdAt":"2022-10-18T07:14:17.3344081+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:14:17.3344081+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"New"},"systemData":{"createdAt":"2022-10-25T06:48:51.8212003+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:48:51.8212003+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1172,7 +1153,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:14:18 GMT + - Tue, 25 Oct 2022 06:48:52 GMT expires: - '-1' pragma: @@ -1190,7 +1171,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 200 message: OK @@ -1210,7 +1191,7 @@ interactions: ParameterSetName: - -n -g --vm-name -y User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: @@ -1222,7 +1203,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 07:14:23 GMT + - Tue, 25 Oct 2022 06:48:55 GMT expires: - '-1' pragma: @@ -1236,7 +1217,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14997' + - '14999' status: code: 200 message: OK @@ -1254,7 +1235,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: @@ -1268,13 +1249,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:14:22 GMT + - Tue, 25 Oct 2022 06:48:57 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: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml index 81570f2d856..5cd85dea0b9 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml @@ -13,13 +13,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:12:28Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-25T06:46:58Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:32 GMT + - Tue, 25 Oct 2022 06:47:01 GMT expires: - '-1' pragma: @@ -64,65 +63,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"error":{"code":"SubscriptionRequestsThrottled","message":"Number - of requests for subscription ''0b1f6471-1bf0-4dda-aec3-cb9272f09590'' and - operation ''PUT/SUBSCRIPTIONS/RESOURCEGROUPS/PROVIDERS/MICROSOFT.AUTOMANAGE/CONFIGURATIONPROFILES/'' - exceeded the backend storage limit. Please try again after ''6'' seconds."}}' - headers: - cache-control: - - no-cache - connection: - - close - content-length: - - '312' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 18 Oct 2022 07:12:37 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 429 - message: '' -- request: - body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": - false, "Backup/Enable": false, "VMInsights/Enable": true, "AzureSecurityCenter/Enable": - true, "UpdateManagement/Enable": true, "ChangeTrackingAndInventory/Enable": - true, "GuestConfiguration/Enable": true, "LogAnalytics/Enable": true, "BootDiagnostics/Enable": - true}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automanage configuration-profile create - Connection: - - keep-alive - Content-Length: - - '350' - Content-Type: - - application/json - ParameterSetName: - - -n -g --configuration - User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-18T07:12:48.8130169+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:12:48.8130169+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-25T06:47:06.5658414+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:47:06.5658414+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -131,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:49 GMT + - Tue, 25 Oct 2022 06:47:08 GMT expires: - '-1' location: @@ -165,12 +111,12 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-18T07:12:48.8130169+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:12:48.8130169+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-25T06:47:06.5658414+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:47:06.5658414+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -179,7 +125,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:52 GMT + - Tue, 25 Oct 2022 06:47:10 GMT expires: - '-1' pragma: @@ -213,12 +159,12 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-18T07:12:48.8130169+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:12:48.8130169+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-25T06:47:06.5658414+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:47:06.5658414+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache @@ -227,7 +173,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:54 GMT + - Tue, 25 Oct 2022 06:47:12 GMT expires: - '-1' pragma: @@ -261,12 +207,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-18T07:12:48.8130169+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:12:48.8130169+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-25T06:47:06.5658414+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:47:06.5658414+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -275,7 +221,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:56 GMT + - Tue, 25 Oct 2022 06:47:14 GMT expires: - '-1' pragma: @@ -314,12 +260,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2022-10-18T07:12:48.8130169+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-18T07:12:57.3187887+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2022-10-25T06:47:06.5658414+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:47:15.4845895+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -328,7 +274,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:57 GMT + - Tue, 25 Oct 2022 06:47:15 GMT expires: - '-1' pragma: @@ -366,7 +312,7 @@ interactions: ParameterSetName: - -n -g -y User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: @@ -378,7 +324,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 07:13:04 GMT + - Tue, 25 Oct 2022 06:47:21 GMT expires: - '-1' pragma: @@ -392,7 +338,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14999' status: code: 200 message: OK @@ -410,7 +356,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: @@ -424,7 +370,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:13:04 GMT + - Tue, 25 Oct 2022 06:47:21 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml index 7e0035fef90..3f676724e51 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml @@ -11,7 +11,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices?api-version=2022-05-04 response: @@ -25,7 +25,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:29 GMT + - Tue, 25 Oct 2022 06:47:02 GMT expires: - '-1' pragma: @@ -59,7 +59,7 @@ interactions: ParameterSetName: - --best-practice-name User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest?api-version=2022-05-04 response: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:29 GMT + - Tue, 25 Oct 2022 06:47:03 GMT expires: - '-1' pragma: @@ -105,7 +105,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals?api-version=2022-05-04 response: @@ -119,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:30 GMT + - Tue, 25 Oct 2022 06:47:03 GMT expires: - '-1' pragma: @@ -151,7 +151,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals/default?api-version=2022-05-04 response: @@ -165,7 +165,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:12:33 GMT + - Tue, 25 Oct 2022 06:47:05 GMT expires: - '-1' pragma: From 466f173b057bd504d3d1e29734a24920b22afd57 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Tue, 25 Oct 2022 16:34:53 +0800 Subject: [PATCH 12/31] run arc test(needed role assignment) --- ...tion_profile_assignment_arc_scenarios.yaml | 544 ++++++++++++++++++ .../tests/latest/test_automanage.py | 60 +- 2 files changed, 572 insertions(+), 32 deletions(-) create mode 100644 src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml new file mode 100644 index 00000000000..83c202618ea --- /dev/null +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml @@ -0,0 +1,544 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgtestautomanage?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage","name":"rgtestautomanage","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '234' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 07:50:50 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": + true}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + Content-Length: + - '90' + Content-Type: + - application/json + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","name":"profile000001","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-25T07:50:55.8231353+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T07:50:55.8231353+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '568' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 07:50:57 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001 + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: '{"properties": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment arc create + Connection: + - keep-alive + Content-Length: + - '194' + Content-Type: + - application/json + ParameterSetName: + - -n -g --machine-name --configuration-profile + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-10-25T07:50:58.8332281+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T07:50:58.8332281+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '891' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 07:51:01 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment arc show + Connection: + - keep-alive + ParameterSetName: + - -n -g --machine-name + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-10-25T07:50:58.8332281+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T07:50:58.8332281+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '891' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 07:51:02 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-10-25T07:50:58.8332281+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T07:50:58.8332281+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '903' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 07:51:03 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: + - '' + - '' + - '' + - '' + - '' + - '' + - '' + - '' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgtestautomanage?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage","name":"rgtestautomanage","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '234' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 07:51:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": + false}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + Content-Length: + - '91' + Content-Type: + - application/json + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-25T07:51:09.7941386+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T07:51:09.7941386+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '569' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 07:51:11 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002 + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment arc update + Connection: + - keep-alive + ParameterSetName: + - --n -g --machine-name --configuration-profile + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-10-25T07:51:12.0330367+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-25T07:51:12.0330367+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + headers: + cache-control: + - no-cache + content-length: + - '939' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 07:51:13 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment arc update + Connection: + - keep-alive + Content-Length: + - '194' + Content-Type: + - application/json + ParameterSetName: + - --n -g --machine-name --configuration-profile + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"NonConformant"},"systemData":{"createdAt":"2022-10-25T07:51:13.7449031+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T07:51:13.7449031+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '901' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 07:51:14 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment arc delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g --machine-name -y + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 25 Oct 2022 07:51:16 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 07:51:18 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: + - '' + - '' + - '' + - '' + - '' + - '' + - '' + - '' + status: + code: 200 + message: OK +version: 1 diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index 7a484078bfe..0ac3b1dd42b 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -89,35 +89,31 @@ def test_automanage_configuration_profile_assignment_vm_scenarios(self): self.cmd('az automanage configuration-profile-assignment vm delete -n default -g {rg} --vm-name {vm_name} -y') self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) - # @record_only - # def test_automanage_configuration_profile_assignment_arc_scenarios(self): - # self.kwargs.update({ - # 'profile_name': self.create_random_name(prefix='profile', length=24), - # 'rg': 'rgtestautomanage', - # 'arc_name': 'arc1', - # 'profile_name_2': self.create_random_name(prefix='profile', length=24), - # }) - # arc_id = '/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgtestautomanage/providers/' \ - # 'Microsoft.HybridCompute/machines/arc1' - # profile_id = self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg} ' - # '--configuration {{Antimalware/Enable:true}}').get_output_in_json()["id"] - # self.kwargs.update({'profile_id': profile_id}) - # - # self.cmd('az automanage configuration-profile-assignment arc create -n default -g {rg} ' - # '--machine-name {arc_name} --configuration-profile {profile_id}') - # self.cmd('az automanage configuration-profile-assignment arc show -n default -g {rg} --machine-name {arc_name}', - # checks=[JMESPathCheck('name', 'default'), - # JMESPathCheck('properties.configurationProfile', profile_id), - # JMESPathCheck('properties.targetId', arc_id)]) - # self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 1)]) - # - # profile_id_2 = self.cmd('az automanage configuration-profile create -n {profile_name_2} -g {rg} ' - # '--configuration {{Antimalware/Enable:false}}').get_output_in_json()["id"] - # self.kwargs.update({'profile_id_2': profile_id_2}) - # self.cmd('az automanage configuration-profile-assignment arc update --n default -g {rg} ' - # '--machine-name {arc_name} --configuration-profile {profile_id_2}', - # checks=[JMESPathCheck('properties.configurationProfile', profile_id_2), - # JMESPathCheck('properties.targetId', arc_id)]) - # self.cmd('az automanage configuration-profile-assignment arc delete -n default -g {rg} --machine-name ' - # '{arc_name} -y') - # self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) + @record_only() + def test_automanage_configuration_profile_assignment_arc_scenarios(self): + self.kwargs.update({ + 'profile_name': self.create_random_name(prefix='profile', length=24), + 'rg': 'rgtestautomanage', + 'arc_name': 'arc1', + 'profile_name_2': self.create_random_name(prefix='profile', length=24), + }) + profile_id = self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg} ' + '--configuration {{\\\"Antimalware/Enable\\\":true}}').get_output_in_json()["id"] + self.kwargs.update({'profile_id': profile_id}) + + self.cmd('az automanage configuration-profile-assignment arc create -n default -g {rg} ' + '--machine-name {arc_name} --configuration-profile {profile_id}') + self.cmd('az automanage configuration-profile-assignment arc show -n default -g {rg} --machine-name {arc_name}', + checks=[JMESPathCheck('name', 'default'), + JMESPathCheck('properties.configurationProfile', profile_id)]) + self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 1)]) + + profile_id_2 = self.cmd('az automanage configuration-profile create -n {profile_name_2} -g {rg} ' + '--configuration {{\\\"Antimalware/Enable\\\":false}}').get_output_in_json()["id"] + self.kwargs.update({'profile_id_2': profile_id_2}) + self.cmd('az automanage configuration-profile-assignment arc update --n default -g {rg} ' + '--machine-name {arc_name} --configuration-profile {profile_id_2}', + checks=[JMESPathCheck('properties.configurationProfile', profile_id_2)]) + self.cmd('az automanage configuration-profile-assignment arc delete -n default -g {rg} --machine-name ' + '{arc_name} -y') + self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) From f90624c9178d1aa68a6dfb416cc509000b6f0094 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Tue, 25 Oct 2022 17:05:04 +0800 Subject: [PATCH 13/31] add cluster test --- ..._profile_assignment_cluster_scenarios.yaml | 646 ++++++++++++++++++ .../tests/latest/test_automanage.py | 30 + 2 files changed, 676 insertions(+) create mode 100644 src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml new file mode 100644 index 00000000000..f14cc845f77 --- /dev/null +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml @@ -0,0 +1,646 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-25T08:59:55Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '391' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 08:59:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": + true}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + Content-Length: + - '90' + Content-Type: + - application/json + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-25T09:00:01.825498+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T09:00:01.825498+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '604' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 09:00:03 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002 + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - stack-hci cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name -g + User-Agent: + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-25T08:59:55Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '391' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 09:00: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": "eastus2euap"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - stack-hci cluster create + Connection: + - keep-alive + Content-Length: + - '27' + Content-Type: + - application/json + ParameterSetName: + - --cluster-name -g + User-Agent: + - AZURECLI/2.41.0 (PIP) azsdk-python-mgmt-azurestackhci/1.0.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1?api-version=2022-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1","name":"cluster1","type":"microsoft.azurestackhci/clusters","location":"eastus2euap","systemData":{"createdBy":"zhiyihuang@microsoft.com","createdByType":"User","createdAt":"2022-10-25T09:00:09.7150052Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-10-25T09:00:09.7150052Z"},"properties":{"provisioningState":"Succeeded","status":"NotYetRegistered","cloudId":"9efaf45c-32a7-4f1e-ae85-4b8c57d77ba1","desiredProperties":{"windowsServerSubscription":"Disabled","diagnosticLevel":"Basic"},"trialDaysRemaining":60,"billingModel":"Trial","serviceEndpoint":"https://dp.stackhci.azure.com/eastus2euap/"}}' + headers: + cache-control: + - no-cache + content-length: + - '828' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 09:00:13 GMT + etag: + - '"0000bbd6-0000-3400-0000-6357a59b0000"' + expires: + - '-1' + mise-correlation-id: + - 124e9dac-5113-41ca-b1c0-cc909fd50722 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment cluster create + Connection: + - keep-alive + Content-Length: + - '232' + Content-Type: + - application/json + ParameterSetName: + - -n -g --cluster-name --configuration-profile + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-25T09:00:14.1761942+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T09:00:14.1761942+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '1013' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 09:00:16 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment cluster show + Connection: + - keep-alive + ParameterSetName: + - -n -g --cluster-name + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-25T09:00:14.1761942+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T09:00:14.1761942+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '1013' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 09:00:18 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-25T09:00:14.1761942+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T09:00:14.1761942+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1025' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 09:00:19 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: + - '' + - '' + - '' + - '' + - '' + - '' + - '' + - '' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-25T08:59:55Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '391' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 09:00:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": + false}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + Content-Length: + - '91' + Content-Type: + - application/json + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","name":"profile000003","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-25T09:00:26.6937079+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T09:00:26.6937079+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '607' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 09:00:28 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003 + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - automanage configuration-profile-assignment cluster update + Connection: + - keep-alive + ParameterSetName: + - --n -g --cluster-name --configuration-profile + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2022-10-25T09:00:26.3116729+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-25T09:00:26.3116729+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + headers: + cache-control: + - no-cache + content-length: + - '1053' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 09:00:31 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment cluster update + Connection: + - keep-alive + Content-Length: + - '232' + Content-Type: + - application/json + ParameterSetName: + - --n -g --cluster-name --configuration-profile + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","status":"Error"},"systemData":{"createdAt":"2022-10-25T09:00:31.6642841+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T09:00:31.6642841+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '1015' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 09:00:32 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment cluster delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g --cluster-name -y + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 25 Oct 2022 09:00:34 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Oct 2022 09:00:37 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: + - '' + - '' + - '' + - '' + - '' + - '' + - '' + - '' + status: + code: 200 + message: OK +version: 1 diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index 0ac3b1dd42b..2396044532e 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -117,3 +117,33 @@ def test_automanage_configuration_profile_assignment_arc_scenarios(self): self.cmd('az automanage configuration-profile-assignment arc delete -n default -g {rg} --machine-name ' '{arc_name} -y') self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) + + @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.profileassignment.cluster.') + def test_automanage_configuration_profile_assignment_cluster_scenarios(self): + self.kwargs.update({ + 'profile_name': self.create_random_name(prefix='profile', length=24), + 'cluster_name': 'cluster1', + 'profile_name_2': self.create_random_name(prefix='profile', length=24), + }) + profile_id = self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg} ' + '--configuration {{\\\"Antimalware/Enable\\\":true}}').get_output_in_json()["id"] + self.kwargs.update({'profile_id': profile_id}) + + self.cmd('az stack-hci cluster create --cluster-name {cluster_name} -g {rg}') + self.cmd('az automanage configuration-profile-assignment cluster create -n default -g {rg} ' + '--cluster-name {cluster_name} --configuration-profile {profile_id}') + self.cmd('az automanage configuration-profile-assignment cluster show -n default -g {rg} ' + '--cluster-name {cluster_name}', + checks=[JMESPathCheck('name', 'default'), + JMESPathCheck('properties.configurationProfile', profile_id)]) + self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 1)]) + + profile_id_2 = self.cmd('az automanage configuration-profile create -n {profile_name_2} -g {rg} ' + '--configuration {{\\\"Antimalware/Enable\\\":false}}').get_output_in_json()["id"] + self.kwargs.update({'profile_id_2': profile_id_2}) + self.cmd('az automanage configuration-profile-assignment cluster update --n default -g {rg} ' + '--cluster-name {cluster_name} --configuration-profile {profile_id_2}', + checks=[JMESPathCheck('properties.configurationProfile', profile_id_2)]) + self.cmd('az automanage configuration-profile-assignment cluster delete -n default -g {rg} --cluster-name ' + '{cluster_name} -y') + self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) From 5ed68210afd82d7682954f36f1d1a5f5e846ce8f Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Thu, 27 Oct 2022 13:31:47 +0800 Subject: [PATCH 14/31] split up assignment reports --- .../version/__cmd_group.py | 3 + .../configuration_profile/version/_create.py | 3 + .../configuration_profile/version/_delete.py | 4 + .../configuration_profile/version/_list.py | 3 + .../configuration_profile/version/_show.py | 3 + .../configuration_profile/version/_update.py | 3 + .../report/__init__.py | 10 +- .../report/{_list_for_arc.py => _list_arc.py} | 7 +- ...for_cluster_and_vm.py => _list_cluster.py} | 207 +----------- .../report/_list_vm.py | 313 +++++++++++++++++ .../report/{_show_for_arc.py => _show_arc.py} | 7 +- ...for_cluster_and_vm.py => _show_cluster.py} | 206 +---------- .../report/_show_vm.py | 319 ++++++++++++++++++ 13 files changed, 681 insertions(+), 407 deletions(-) rename src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/{_list_for_arc.py => _list_arc.py} (98%) rename src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/{_list_for_cluster_and_vm.py => _list_cluster.py} (57%) create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_vm.py rename src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/{_show_for_arc.py => _show_arc.py} (98%) rename src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/{_show_for_cluster_and_vm.py => _show_cluster.py} (57%) create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_vm.py diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__cmd_group.py index 34547c08e46..19ff961f87e 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__cmd_group.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/__cmd_group.py @@ -11,6 +11,9 @@ from azure.cli.core.aaz import * +@register_command_group( + "automanage configuration-profile version", +) class __CMDGroup(AAZCommandGroup): """Manage configuration profile version """ diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py index d19e8a5c59a..1070d482832 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py @@ -11,6 +11,9 @@ from azure.cli.core.aaz import * +@register_command( + "automanage configuration-profile version create", +) class Create(AAZCommand): """Create a configuration profile version """ diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py index 34c76aadb22..d10a3750fd4 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py @@ -11,6 +11,10 @@ from azure.cli.core.aaz import * +@register_command( + "automanage configuration-profile version delete", + confirmation="Are you sure you want to perform this operation?", +) class Delete(AAZCommand): """Delete a configuration profile version """ diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py index 0e8ce4b78fb..9c9a274a998 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py @@ -11,6 +11,9 @@ from azure.cli.core.aaz import * +@register_command( + "automanage configuration-profile version list", +) class List(AAZCommand): """List a list of configuration profile version for a configuration profile """ diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py index 23b14011b54..2f9ca6f3db2 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py @@ -11,6 +11,9 @@ from azure.cli.core.aaz import * +@register_command( + "automanage configuration-profile version show", +) class Show(AAZCommand): """Get information about a configuration profile version """ diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py index 1ecf6df0349..a004dcef518 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py @@ -11,6 +11,9 @@ from azure.cli.core.aaz import * +@register_command( + "automanage configuration-profile version update", +) class Update(AAZCommand): """Update a configuration profile version """ diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__init__.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__init__.py index df1b0365a69..491a4e1616d 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__init__.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__init__.py @@ -9,7 +9,9 @@ # flake8: noqa from .__cmd_group import * -from ._list_for_arc import * -from ._list_for_cluster_and_vm import * -from ._show_for_arc import * -from ._show_for_cluster_and_vm import * +from ._list_arc import * +from ._list_cluster import * +from ._list_vm import * +from ._show_arc import * +from ._show_cluster import * +from ._show_vm import * diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_arc.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_arc.py similarity index 98% rename from src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_arc.py rename to src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_arc.py index 47287a02e43..e698077e3ac 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_arc.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_arc.py @@ -12,9 +12,10 @@ @register_command( - "automanage configuration-profile-assignment report list-for-arc", + "automanage configuration-profile-assignment report list-arc", + confirmation="", ) -class ListForArc(AAZCommand): +class ListArc(AAZCommand): """List a list of reports within a given configuration profile assignment """ @@ -309,4 +310,4 @@ def _build_schema_error_detail_read(_schema): _schema.target = _schema_error_detail_read.target -__all__ = ["ListForArc"] +__all__ = ["ListArc"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_cluster_and_vm.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_cluster.py similarity index 57% rename from src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_cluster_and_vm.py rename to src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_cluster.py index e43748e278c..0fe6b232a38 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_for_cluster_and_vm.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_cluster.py @@ -12,17 +12,17 @@ @register_command( - "automanage configuration-profile-assignment report list-for-cluster-and-vm", + "automanage configuration-profile-assignment report list-cluster", + confirmation="", ) -class ListForClusterAndVm(AAZCommand): - """List a list of reports within a given configuration profile assignment +class ListCluster(AAZCommand): + """List a list of HCI reports within a given configuration profile assignment """ _aaz_info = { "version": "2022-05-04", "resources": [ ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurestackhci/clusters/{}/providers/microsoft.automanage/configurationprofileassignments/{}/reports", "2022-05-04"], - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/providers/microsoft.automanage/configurationprofileassignments/{}/reports", "2022-05-04"], ] } @@ -45,29 +45,21 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.cluster_name = AAZStrArg( options=["--cluster-name"], help="The name of the Arc machine.", + required=True, ) _args_schema.configuration_profile_assignment_name = AAZStrArg( - options=["--assignment-name", "--configuration-profile-assignment-name"], + options=["--configuration-profile-assignment-name"], help="The configuration profile assignment name.", required=True, ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, ) - _args_schema.vm_name = AAZStrArg( - options=["--vm-name"], - help="The name of the virtual machine.", - ) return cls._args_schema def _execute_operations(self): self.pre_operations() - condition_0 = has_value(self.ctx.args.configuration_profile_assignment_name) and has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) and has_value(self.ctx.args.vm_name) - condition_1 = has_value(self.ctx.args.cluster_name) and has_value(self.ctx.args.configuration_profile_assignment_name) and has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) - if condition_0: - self.ReportsListByConfigurationProfileAssignments(ctx=self.ctx)() - if condition_1: - self.HCIReportsListByConfigurationProfileAssignments(ctx=self.ctx)() + self.HCIReportsListByConfigurationProfileAssignments(ctx=self.ctx)() self.post_operations() @register_callback @@ -82,189 +74,6 @@ def _output(self, *args, **kwargs): result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) return result - class ReportsListByConfigurationProfileAssignments(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.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports", - **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( - "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_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, - ), - **self.serialize_url_param( - "vmName", self.ctx.args.vm_name, - required=True, - ), - } - return parameters - - @property - def query_parameters(self): - parameters = { - **self.serialize_query_param( - "api-version", "2022-05-04", - 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.value = AAZListType() - - value = cls._schema_on_200.value - value.Element = AAZObjectType() - - _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}, - ) - _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.configuration_profile = AAZStrType( - serialized_name="configurationProfile", - flags={"read_only": True}, - ) - properties.duration = AAZStrType( - flags={"read_only": True}, - ) - properties.end_time = AAZStrType( - serialized_name="endTime", - ) - properties.error = AAZObjectType() - _build_schema_error_detail_read(properties.error) - properties.last_modified_time = AAZStrType( - serialized_name="lastModifiedTime", - flags={"read_only": True}, - ) - properties.report_format_version = AAZStrType( - serialized_name="reportFormatVersion", - flags={"read_only": True}, - ) - properties.resources = AAZListType( - flags={"read_only": True}, - ) - properties.start_time = AAZStrType( - serialized_name="startTime", - ) - properties.status = AAZStrType( - flags={"read_only": True}, - ) - properties.type = AAZStrType( - flags={"read_only": True}, - ) - - resources = cls._schema_on_200.value.Element.properties.resources - resources.Element = AAZObjectType() - - _element = cls._schema_on_200.value.Element.properties.resources.Element - _element.error = AAZObjectType() - _build_schema_error_detail_read(_element.error) - _element.id = AAZStrType( - flags={"read_only": True}, - ) - _element.name = AAZStrType( - flags={"read_only": True}, - ) - _element.status = AAZStrType( - flags={"read_only": True}, - ) - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - system_data = cls._schema_on_200.value.Element.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - ) - - return cls._schema_on_200 - class HCIReportsListByConfigurationProfileAssignments(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" @@ -501,4 +310,4 @@ def _build_schema_error_detail_read(_schema): _schema.target = _schema_error_detail_read.target -__all__ = ["ListForClusterAndVm"] +__all__ = ["ListCluster"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_vm.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_vm.py new file mode 100644 index 00000000000..e38610c72f3 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_vm.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( + "automanage configuration-profile-assignment report list-vm", + confirmation="", +) +class ListVm(AAZCommand): + """List a list of VM reports within a given configuration profile assignment + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/providers/microsoft.automanage/configurationprofileassignments/{}/reports", "2022-05-04"], + ] + } + + 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.configuration_profile_assignment_name = AAZStrArg( + options=["--configuration-profile-assignment-name"], + help="The configuration profile assignment name.", + required=True, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.vm_name = AAZStrArg( + options=["--vm-name"], + help="The name of the virtual machine.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.VMreportsListByConfigurationProfileAssignments(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + return result + + class VMreportsListByConfigurationProfileAssignments(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.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_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, + ), + **self.serialize_url_param( + "vmName", self.ctx.args.vm_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _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}, + ) + _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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + flags={"read_only": True}, + ) + properties.duration = AAZStrType( + flags={"read_only": True}, + ) + properties.end_time = AAZStrType( + serialized_name="endTime", + ) + properties.error = AAZObjectType() + _build_schema_error_detail_read(properties.error) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + flags={"read_only": True}, + ) + properties.report_format_version = AAZStrType( + serialized_name="reportFormatVersion", + flags={"read_only": True}, + ) + properties.resources = AAZListType( + flags={"read_only": True}, + ) + properties.start_time = AAZStrType( + serialized_name="startTime", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.type = AAZStrType( + flags={"read_only": True}, + ) + + resources = cls._schema_on_200.value.Element.properties.resources + resources.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.resources.Element + _element.error = AAZObjectType() + _build_schema_error_detail_read(_element.error) + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +_schema_error_detail_read = None + + +def _build_schema_error_detail_read(_schema): + global _schema_error_detail_read + if _schema_error_detail_read is not None: + _schema.additional_info = _schema_error_detail_read.additional_info + _schema.code = _schema_error_detail_read.code + _schema.details = _schema_error_detail_read.details + _schema.message = _schema_error_detail_read.message + _schema.target = _schema_error_detail_read.target + return + + _schema_error_detail_read = AAZObjectType() + + error_detail_read = _schema_error_detail_read + error_detail_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + error_detail_read.code = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.details = AAZListType( + flags={"read_only": True}, + ) + error_detail_read.message = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.target = AAZStrType( + flags={"read_only": True}, + ) + + additional_info = _schema_error_detail_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_error_detail_read.additional_info.Element + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + details = _schema_error_detail_read.details + details.Element = AAZObjectType() + _build_schema_error_detail_read(details.Element) + + _schema.additional_info = _schema_error_detail_read.additional_info + _schema.code = _schema_error_detail_read.code + _schema.details = _schema_error_detail_read.details + _schema.message = _schema_error_detail_read.message + _schema.target = _schema_error_detail_read.target + + +__all__ = ["ListVm"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_arc.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_arc.py similarity index 98% rename from src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_arc.py rename to src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_arc.py index f53610e57c4..223362413f2 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_arc.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_arc.py @@ -12,9 +12,10 @@ @register_command( - "automanage configuration-profile-assignment report show-for-arc", + "automanage configuration-profile-assignment report show-arc", + confirmation="", ) -class ShowForArc(AAZCommand): +class ShowArc(AAZCommand): """Get information about a report associated with a configuration profile assignment run """ @@ -315,4 +316,4 @@ def _build_schema_error_detail_read(_schema): _schema.target = _schema_error_detail_read.target -__all__ = ["ShowForArc"] +__all__ = ["ShowArc"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_cluster_and_vm.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_cluster.py similarity index 57% rename from src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_cluster_and_vm.py rename to src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_cluster.py index 8260b07f459..2bbf16867ac 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_for_cluster_and_vm.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_cluster.py @@ -12,17 +12,17 @@ @register_command( - "automanage configuration-profile-assignment report show-for-cluster-and-vm", + "automanage configuration-profile-assignment report show-cluster", + confirmation="", ) -class ShowForClusterAndVm(AAZCommand): - """Get information about a report associated with a configuration profile assignment run +class ShowCluster(AAZCommand): + """Get information about a HCI report associated with a configuration profile assignment run """ _aaz_info = { "version": "2022-05-04", "resources": [ ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurestackhci/clusters/{}/providers/microsoft.automanage/configurationprofileassignments/{}/reports/{}", "2022-05-04"], - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/providers/microsoft.automanage/configurationprofileassignments/{}/reports/{}", "2022-05-04"], ] } @@ -45,10 +45,11 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.cluster_name = AAZStrArg( options=["--cluster-name"], help="The name of the Arc machine.", + required=True, id_part="name", ) _args_schema.configuration_profile_assignment_name = AAZStrArg( - options=["--assignment-name", "--configuration-profile-assignment-name"], + options=["--configuration-profile-assignment-name"], help="The configuration profile assignment name.", required=True, id_part="child_name_1", @@ -62,21 +63,11 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.resource_group = AAZResourceGroupNameArg( required=True, ) - _args_schema.vm_name = AAZStrArg( - options=["--vm-name"], - help="The name of the virtual machine.", - id_part="name", - ) return cls._args_schema def _execute_operations(self): self.pre_operations() - condition_0 = has_value(self.ctx.args.configuration_profile_assignment_name) and has_value(self.ctx.args.report_name) and has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) and has_value(self.ctx.args.vm_name) - condition_1 = has_value(self.ctx.args.cluster_name) and has_value(self.ctx.args.configuration_profile_assignment_name) and has_value(self.ctx.args.report_name) and has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) - if condition_0: - self.ReportsGet(ctx=self.ctx)() - if condition_1: - self.HCIReportsGet(ctx=self.ctx)() + self.HCIReportsGet(ctx=self.ctx)() self.post_operations() @register_callback @@ -91,187 +82,6 @@ def _output(self, *args, **kwargs): result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) return result - class ReportsGet(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.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}", - **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( - "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_name, - required=True, - ), - **self.serialize_url_param( - "reportName", self.ctx.args.report_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, - ), - **self.serialize_url_param( - "vmName", self.ctx.args.vm_name, - required=True, - ), - } - return parameters - - @property - def query_parameters(self): - parameters = { - **self.serialize_query_param( - "api-version", "2022-05-04", - 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.configuration_profile = AAZStrType( - serialized_name="configurationProfile", - flags={"read_only": True}, - ) - properties.duration = AAZStrType( - flags={"read_only": True}, - ) - properties.end_time = AAZStrType( - serialized_name="endTime", - ) - properties.error = AAZObjectType() - _build_schema_error_detail_read(properties.error) - properties.last_modified_time = AAZStrType( - serialized_name="lastModifiedTime", - flags={"read_only": True}, - ) - properties.report_format_version = AAZStrType( - serialized_name="reportFormatVersion", - flags={"read_only": True}, - ) - properties.resources = AAZListType( - flags={"read_only": True}, - ) - properties.start_time = AAZStrType( - serialized_name="startTime", - ) - properties.status = AAZStrType( - flags={"read_only": True}, - ) - properties.type = AAZStrType( - flags={"read_only": True}, - ) - - resources = cls._schema_on_200.properties.resources - resources.Element = AAZObjectType() - - _element = cls._schema_on_200.properties.resources.Element - _element.error = AAZObjectType() - _build_schema_error_detail_read(_element.error) - _element.id = AAZStrType( - flags={"read_only": True}, - ) - _element.name = AAZStrType( - flags={"read_only": True}, - ) - _element.status = AAZStrType( - flags={"read_only": True}, - ) - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - system_data = cls._schema_on_200.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - ) - - return cls._schema_on_200 - class HCIReportsGet(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" @@ -506,4 +316,4 @@ def _build_schema_error_detail_read(_schema): _schema.target = _schema_error_detail_read.target -__all__ = ["ShowForClusterAndVm"] +__all__ = ["ShowCluster"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_vm.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_vm.py new file mode 100644 index 00000000000..605d4b3c389 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_vm.py @@ -0,0 +1,319 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automanage configuration-profile-assignment report show-vm", + confirmation="", +) +class ShowVm(AAZCommand): + """Get information about a VM report associated with a configuration profile assignment run + """ + + _aaz_info = { + "version": "2022-05-04", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}/providers/microsoft.automanage/configurationprofileassignments/{}/reports/{}", "2022-05-04"], + ] + } + + 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.configuration_profile_assignment_name = AAZStrArg( + options=["--configuration-profile-assignment-name"], + help="The configuration profile assignment name.", + required=True, + id_part="child_name_1", + ) + _args_schema.report_name = AAZStrArg( + options=["-n", "--name", "--report-name"], + help="The report name.", + required=True, + id_part="child_name_2", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.vm_name = AAZStrArg( + options=["--vm-name"], + help="The name of the virtual machine.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.VMreportsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class VMreportsGet(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.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}", + **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( + "configurationProfileAssignmentName", self.ctx.args.configuration_profile_assignment_name, + required=True, + ), + **self.serialize_url_param( + "reportName", self.ctx.args.report_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, + ), + **self.serialize_url_param( + "vmName", self.ctx.args.vm_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-05-04", + 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.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + flags={"read_only": True}, + ) + properties.duration = AAZStrType( + flags={"read_only": True}, + ) + properties.end_time = AAZStrType( + serialized_name="endTime", + ) + properties.error = AAZObjectType() + _build_schema_error_detail_read(properties.error) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + flags={"read_only": True}, + ) + properties.report_format_version = AAZStrType( + serialized_name="reportFormatVersion", + flags={"read_only": True}, + ) + properties.resources = AAZListType( + flags={"read_only": True}, + ) + properties.start_time = AAZStrType( + serialized_name="startTime", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.type = AAZStrType( + flags={"read_only": True}, + ) + + resources = cls._schema_on_200.properties.resources + resources.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.resources.Element + _element.error = AAZObjectType() + _build_schema_error_detail_read(_element.error) + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +_schema_error_detail_read = None + + +def _build_schema_error_detail_read(_schema): + global _schema_error_detail_read + if _schema_error_detail_read is not None: + _schema.additional_info = _schema_error_detail_read.additional_info + _schema.code = _schema_error_detail_read.code + _schema.details = _schema_error_detail_read.details + _schema.message = _schema_error_detail_read.message + _schema.target = _schema_error_detail_read.target + return + + _schema_error_detail_read = AAZObjectType() + + error_detail_read = _schema_error_detail_read + error_detail_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + error_detail_read.code = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.details = AAZListType( + flags={"read_only": True}, + ) + error_detail_read.message = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.target = AAZStrType( + flags={"read_only": True}, + ) + + additional_info = _schema_error_detail_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_error_detail_read.additional_info.Element + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + details = _schema_error_detail_read.details + details.Element = AAZObjectType() + _build_schema_error_detail_read(details.Element) + + _schema.additional_info = _schema_error_detail_read.additional_info + _schema.code = _schema_error_detail_read.code + _schema.details = _schema_error_detail_read.details + _schema.message = _schema_error_detail_read.message + _schema.target = _schema_error_detail_read.target + + +__all__ = ["ShowVm"] From e3a444b4bc58f5b6f0abe9544b4bd6e7d1b688f5 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Fri, 28 Oct 2022 11:32:11 +0800 Subject: [PATCH 15/31] no longer flatten report response --- .../configuration_profile_assignment/report/_list_arc.py | 4 +--- .../configuration_profile_assignment/report/_list_cluster.py | 4 +--- .../configuration_profile_assignment/report/_list_vm.py | 4 +--- .../configuration_profile_assignment/report/_show_arc.py | 4 +--- .../configuration_profile_assignment/report/_show_cluster.py | 4 +--- .../configuration_profile_assignment/report/_show_vm.py | 4 +--- 6 files changed, 6 insertions(+), 18 deletions(-) diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_arc.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_arc.py index e698077e3ac..853987b7141 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_arc.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_arc.py @@ -171,9 +171,7 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"read_only": True}, ) - _element.properties = AAZObjectType( - flags={"client_flatten": True}, - ) + _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_cluster.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_cluster.py index 0fe6b232a38..5017295470e 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_cluster.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_cluster.py @@ -171,9 +171,7 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"read_only": True}, ) - _element.properties = AAZObjectType( - flags={"client_flatten": True}, - ) + _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_vm.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_vm.py index e38610c72f3..2f8cc48428d 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_vm.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_vm.py @@ -171,9 +171,7 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"read_only": True}, ) - _element.properties = AAZObjectType( - flags={"client_flatten": True}, - ) + _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_arc.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_arc.py index 223362413f2..166a89d6b7c 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_arc.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_arc.py @@ -177,9 +177,7 @@ def _build_schema_on_200(cls): _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) - _schema_on_200.properties = AAZObjectType( - flags={"client_flatten": True}, - ) + _schema_on_200.properties = AAZObjectType() _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_cluster.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_cluster.py index 2bbf16867ac..d3e2b53e21e 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_cluster.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_cluster.py @@ -177,9 +177,7 @@ def _build_schema_on_200(cls): _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) - _schema_on_200.properties = AAZObjectType( - flags={"client_flatten": True}, - ) + _schema_on_200.properties = AAZObjectType() _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_vm.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_vm.py index 605d4b3c389..58816ebd905 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_vm.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_vm.py @@ -177,9 +177,7 @@ def _build_schema_on_200(cls): _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) - _schema_on_200.properties = AAZObjectType( - flags={"client_flatten": True}, - ) + _schema_on_200.properties = AAZObjectType() _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, From dd304e177426caf9bc31f4acdefb0476d450934a Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Fri, 28 Oct 2022 11:33:13 +0800 Subject: [PATCH 16/31] move report into each type of assignment --- .../arc/report/__cmd_group.py | 23 +++++++++++++++++++ .../{ => arc}/report/__init__.py | 8 ++----- .../_list_arc.py => arc/report/_list.py} | 8 +++---- .../_show_arc.py => arc/report/_show.py} | 8 +++---- .../cluster/report/__cmd_group.py | 23 +++++++++++++++++++ .../cluster/report/__init__.py | 13 +++++++++++ .../report/_list.py} | 10 ++++---- .../report/_show.py} | 10 ++++---- .../{ => vm}/report/__cmd_group.py | 4 ++-- .../vm/report/__init__.py | 13 +++++++++++ .../_list_vm.py => vm/report/_list.py} | 8 +++---- .../_show_vm.py => vm/report/_show.py} | 8 +++---- 12 files changed, 102 insertions(+), 34 deletions(-) create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/__cmd_group.py rename src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/{ => arc}/report/__init__.py (74%) rename src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/{report/_list_arc.py => arc/report/_list.py} (98%) rename src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/{report/_show_arc.py => arc/report/_show.py} (98%) create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/__cmd_group.py create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/__init__.py rename src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/{report/_list_cluster.py => cluster/report/_list.py} (97%) rename src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/{report/_show_cluster.py => cluster/report/_show.py} (97%) rename src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/{ => vm}/report/__cmd_group.py (80%) create mode 100644 src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/__init__.py rename src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/{report/_list_vm.py => vm/report/_list.py} (98%) rename src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/{report/_show_vm.py => vm/report/_show.py} (98%) diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/__cmd_group.py new file mode 100644 index 00000000000..7b822596db4 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/__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( + "automanage configuration-profile-assignment arc report", +) +class __CMDGroup(AAZCommandGroup): + """Manage report within a given ARC machine configuration profile assignment + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__init__.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/__init__.py similarity index 74% rename from src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__init__.py rename to src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/__init__.py index 491a4e1616d..2df85698253 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__init__.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/__init__.py @@ -9,9 +9,5 @@ # flake8: noqa from .__cmd_group import * -from ._list_arc import * -from ._list_cluster import * -from ._list_vm import * -from ._show_arc import * -from ._show_cluster import * -from ._show_vm import * +from ._list import * +from ._show import * diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_arc.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_list.py similarity index 98% rename from src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_arc.py rename to src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_list.py index 853987b7141..5264420211d 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_arc.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_list.py @@ -12,11 +12,11 @@ @register_command( - "automanage configuration-profile-assignment report list-arc", + "automanage configuration-profile-assignment arc report list", confirmation="", ) -class ListArc(AAZCommand): - """List a list of reports within a given configuration profile assignment +class List(AAZCommand): + """List a list of reports within a given ARC machine configuration profile assignment """ _aaz_info = { @@ -308,4 +308,4 @@ def _build_schema_error_detail_read(_schema): _schema.target = _schema_error_detail_read.target -__all__ = ["ListArc"] +__all__ = ["List"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_arc.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_show.py similarity index 98% rename from src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_arc.py rename to src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_show.py index 166a89d6b7c..7bd062e5b8f 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_arc.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_show.py @@ -12,11 +12,11 @@ @register_command( - "automanage configuration-profile-assignment report show-arc", + "automanage configuration-profile-assignment arc report show", confirmation="", ) -class ShowArc(AAZCommand): - """Get information about a report associated with a configuration profile assignment run +class Show(AAZCommand): + """Get information about a report associated with an ARC machine configuration profile assignment run """ _aaz_info = { @@ -314,4 +314,4 @@ def _build_schema_error_detail_read(_schema): _schema.target = _schema_error_detail_read.target -__all__ = ["ShowArc"] +__all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/__cmd_group.py new file mode 100644 index 00000000000..2b1c5341a15 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/__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( + "automanage configuration-profile-assignment cluster report", +) +class __CMDGroup(AAZCommandGroup): + """Manage report within a given AzureStackHCI cluster configuration profile assignment + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/__init__.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/__init__.py new file mode 100644 index 00000000000..2df85698253 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/__init__.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: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._list import * +from ._show import * diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_cluster.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py similarity index 97% rename from src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_cluster.py rename to src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py index 5017295470e..1cd2758f766 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_cluster.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py @@ -12,11 +12,11 @@ @register_command( - "automanage configuration-profile-assignment report list-cluster", + "automanage configuration-profile-assignment cluster report list", confirmation="", ) -class ListCluster(AAZCommand): - """List a list of HCI reports within a given configuration profile assignment +class List(AAZCommand): + """List a list of reports within a given AzureStackHCI cluster configuration profile assignment """ _aaz_info = { @@ -44,7 +44,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.cluster_name = AAZStrArg( options=["--cluster-name"], - help="The name of the Arc machine.", + help="The name of the HCI cluster.", required=True, ) _args_schema.configuration_profile_assignment_name = AAZStrArg( @@ -308,4 +308,4 @@ def _build_schema_error_detail_read(_schema): _schema.target = _schema_error_detail_read.target -__all__ = ["ListCluster"] +__all__ = ["List"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_cluster.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py similarity index 97% rename from src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_cluster.py rename to src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py index d3e2b53e21e..41fe99b0b84 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_cluster.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py @@ -12,11 +12,11 @@ @register_command( - "automanage configuration-profile-assignment report show-cluster", + "automanage configuration-profile-assignment cluster report show", confirmation="", ) -class ShowCluster(AAZCommand): - """Get information about a HCI report associated with a configuration profile assignment run +class Show(AAZCommand): + """Get information about a report associated with a AzureStackHCI cluster configuration profile assignment run """ _aaz_info = { @@ -44,7 +44,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.cluster_name = AAZStrArg( options=["--cluster-name"], - help="The name of the Arc machine.", + help="The name of the HCI cluster.", required=True, id_part="name", ) @@ -314,4 +314,4 @@ def _build_schema_error_detail_read(_schema): _schema.target = _schema_error_detail_read.target -__all__ = ["ShowCluster"] +__all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/__cmd_group.py similarity index 80% rename from src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__cmd_group.py rename to src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/__cmd_group.py index d161a84894b..245b13512d9 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/__cmd_group.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/__cmd_group.py @@ -12,10 +12,10 @@ @register_command_group( - "automanage configuration-profile-assignment report", + "automanage configuration-profile-assignment vm report", ) class __CMDGroup(AAZCommandGroup): - """Manage report within a given configuration profile assignment + """Manage report within a given VM configuration profile assignment """ pass diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/__init__.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/__init__.py new file mode 100644 index 00000000000..2df85698253 --- /dev/null +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/__init__.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: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._list import * +from ._show import * diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_vm.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py similarity index 98% rename from src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_vm.py rename to src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py index 2f8cc48428d..15453522a8c 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_list_vm.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py @@ -12,11 +12,11 @@ @register_command( - "automanage configuration-profile-assignment report list-vm", + "automanage configuration-profile-assignment vm report list", confirmation="", ) -class ListVm(AAZCommand): - """List a list of VM reports within a given configuration profile assignment +class List(AAZCommand): + """List a list of reports within a given VM configuration profile assignment """ _aaz_info = { @@ -308,4 +308,4 @@ def _build_schema_error_detail_read(_schema): _schema.target = _schema_error_detail_read.target -__all__ = ["ListVm"] +__all__ = ["List"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_vm.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py similarity index 98% rename from src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_vm.py rename to src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py index 58816ebd905..f69e0a39fe0 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/report/_show_vm.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py @@ -12,11 +12,11 @@ @register_command( - "automanage configuration-profile-assignment report show-vm", + "automanage configuration-profile-assignment vm report show", confirmation="", ) -class ShowVm(AAZCommand): - """Get information about a VM report associated with a configuration profile assignment run +class Show(AAZCommand): + """Get information about a report associated with a VM configuration profile assignment run """ _aaz_info = { @@ -314,4 +314,4 @@ def _build_schema_error_detail_read(_schema): _schema.target = _schema_error_detail_read.target -__all__ = ["ShowVm"] +__all__ = ["Show"] From 3024856c45b5364da0ee1cde77e6b654eb2a559a Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Fri, 28 Oct 2022 14:35:33 +0800 Subject: [PATCH 17/31] fix arg len --- .../latest/automanage/configuration_profile/version/_create.py | 2 +- .../latest/automanage/configuration_profile/version/_delete.py | 2 +- .../latest/automanage/configuration_profile/version/_list.py | 2 +- .../latest/automanage/configuration_profile/version/_show.py | 2 +- .../latest/automanage/configuration_profile/version/_update.py | 2 +- .../configuration_profile_assignment/cluster/report/_list.py | 2 +- .../configuration_profile_assignment/cluster/report/_show.py | 2 +- .../configuration_profile_assignment/vm/report/_list.py | 2 +- .../configuration_profile_assignment/vm/report/_show.py | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py index 1070d482832..e668d863bf7 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py @@ -42,7 +42,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.configuration_profile_name = AAZStrArg( - options=["--configuration-profile-name"], + options=["--profile-name", "--configuration-profile-name"], help="Name of the configuration profile.", required=True, id_part="name", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py index d10a3750fd4..90c3bea6284 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py @@ -43,7 +43,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.configuration_profile_name = AAZStrArg( - options=["--configuration-profile-name"], + options=["--profile-name", "--configuration-profile-name"], help="Name of the configuration profile", required=True, id_part="name", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py index 9c9a274a998..0f0e5e491f7 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py @@ -42,7 +42,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.configuration_profile_name = AAZStrArg( - options=["--configuration-profile-name"], + options=["--profile-name", "--configuration-profile-name"], help="Name of the configuration profile.", required=True, ) diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py index 2f9ca6f3db2..7cfbe9a1598 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py @@ -42,7 +42,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.configuration_profile_name = AAZStrArg( - options=["--configuration-profile-name"], + options=["--profile-name", "--configuration-profile-name"], help="The configuration profile name.", required=True, id_part="name", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py index a004dcef518..1e3082ead36 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py @@ -44,7 +44,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.configuration_profile_name = AAZStrArg( - options=["--configuration-profile-name"], + options=["--profile-name", "--configuration-profile-name"], help="The configuration profile name.", required=True, id_part="name", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py index 1cd2758f766..1b85a7d5d33 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py @@ -48,7 +48,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.configuration_profile_assignment_name = AAZStrArg( - options=["--configuration-profile-assignment-name"], + options=["--assignment-name", "--configuration-profile-assignment-name"], help="The configuration profile assignment name.", required=True, ) diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py index 41fe99b0b84..438ac90ca11 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py @@ -49,7 +49,7 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.configuration_profile_assignment_name = AAZStrArg( - options=["--configuration-profile-assignment-name"], + options=["--assignment-name", "--configuration-profile-assignment-name"], help="The configuration profile assignment name.", required=True, id_part="child_name_1", diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py index 15453522a8c..ef2ae7ba85d 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py @@ -43,7 +43,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.configuration_profile_assignment_name = AAZStrArg( - options=["--configuration-profile-assignment-name"], + options=["--assignment-name", "--configuration-profile-assignment-name"], help="The configuration profile assignment name.", required=True, ) diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py index f69e0a39fe0..69932fdcff7 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py @@ -43,7 +43,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.configuration_profile_assignment_name = AAZStrArg( - options=["--configuration-profile-assignment-name"], + options=["--assignment-name", "--configuration-profile-assignment-name"], help="The configuration profile assignment name.", required=True, id_part="child_name_1", From 9c8b9402692b2b72ca027a03081d6f1ffa2c1cd1 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Mon, 31 Oct 2022 13:48:25 +0800 Subject: [PATCH 18/31] add test for assignment report --- ...tion_profile_assignment_arc_scenarios.yaml | 155 +++++++-- ..._profile_assignment_cluster_scenarios.yaml | 161 +++++++-- ...ation_profile_assignment_vm_scenarios.yaml | 309 ++++++++++++------ ...anage_configuration_profile_scenarios.yaml | 239 +++++++++++--- .../tests/latest/test_automanage.py | 52 ++- 5 files changed, 708 insertions(+), 208 deletions(-) diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml index 83c202618ea..97ac02c41d0 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 07:50:50 GMT + - Mon, 31 Oct 2022 05:46:28 GMT expires: - '-1' pragma: @@ -66,7 +66,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","name":"profile000001","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-25T07:50:55.8231353+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T07:50:55.8231353+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","name":"profile000001","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-31T05:46:34.4879831+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:46:34.4879831+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 07:50:57 GMT + - Mon, 31 Oct 2022 05:46:37 GMT expires: - '-1' location: @@ -118,20 +118,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-10-25T07:50:58.8332281+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T07:50:58.8332281+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-10-31T05:46:37.8891227+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:46:37.8891227+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '891' + - '901' content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 07:51:01 GMT + - Mon, 31 Oct 2022 05:46:40 GMT expires: - '-1' - location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default pragma: - no-cache request-context: @@ -140,13 +138,17 @@ interactions: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -166,16 +168,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-10-25T07:50:58.8332281+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T07:50:58.8332281+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-10-31T05:46:37.8891227+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:46:37.8891227+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '891' + - '901' content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 07:51:02 GMT + - Mon, 31 Oct 2022 05:46:42 GMT expires: - '-1' pragma: @@ -214,16 +216,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-10-25T07:50:58.8332281+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T07:50:58.8332281+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-10-31T05:46:37.8891227+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:46:37.8891227+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '903' + - '913' content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 07:51:03 GMT + - Mon, 31 Oct 2022 05:46:43 GMT expires: - '-1' pragma: @@ -275,7 +277,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 07:51:04 GMT + - Mon, 31 Oct 2022 05:46:44 GMT expires: - '-1' pragma: @@ -313,7 +315,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-25T07:51:09.7941386+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T07:51:09.7941386+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-31T05:46:49.9780917+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:46:49.9780917+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -322,7 +324,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 07:51:11 GMT + - Mon, 31 Oct 2022 05:46:51 GMT expires: - '-1' location: @@ -361,16 +363,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-10-25T07:51:12.0330367+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-25T07:51:12.0330367+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-10-31T05:46:37.8891227+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:46:37.8891227+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '939' + - '901' content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 07:51:13 GMT + - Mon, 31 Oct 2022 05:46:59 GMT expires: - '-1' pragma: @@ -413,7 +415,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"NonConformant"},"systemData":{"createdAt":"2022-10-25T07:51:13.7449031+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T07:51:13.7449031+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"NonConformant"},"systemData":{"createdAt":"2022-10-31T05:47:00.4890899+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:47:00.4890899+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -422,7 +424,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 07:51:14 GMT + - Mon, 31 Oct 2022 05:47:06 GMT expires: - '-1' pragma: @@ -444,6 +446,105 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment arc report list + Connection: + - keep-alive + ParameterSetName: + - --assignment-name -g --machine-name + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/98f44c6f-7f23-462a-8d34-d2bab63f5e6b","name":"98f44c6f-7f23-462a-8d34-d2bab63f5e6b","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:33:58.7029002Z","endTime":"2022-10-31T05:34:00.3371492Z","lastModifiedTime":"2022-10-31T05:34:00.3371489Z","duration":"PT1.634249S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilesvsvdm7d54mgjm76b","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:34:00.6554125+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:34:00.6554125+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/8499e391-c0a2-4dc6-8d14-977d91eb8e5c","name":"8499e391-c0a2-4dc6-8d14-977d91eb8e5c","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:47:03.0403012Z","endTime":"2022-10-31T05:47:04.3284924Z","lastModifiedTime":"2022-10-31T05:47:04.3284922Z","duration":"PT1.2881912S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:47:04.569804+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:47:04.569804+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '3217' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Oct 2022 05:47:19 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment arc report show + Connection: + - keep-alive + ParameterSetName: + - -n --assignment-name -g --machine-name + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/98f44c6f-7f23-462a-8d34-d2bab63f5e6b?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/98f44c6f-7f23-462a-8d34-d2bab63f5e6b","name":"98f44c6f-7f23-462a-8d34-d2bab63f5e6b","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:33:58.7029002Z","endTime":"2022-10-31T05:34:00.3371492Z","lastModifiedTime":"2022-10-31T05:34:00.3371489Z","duration":"PT1.634249S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilesvsvdm7d54mgjm76b","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:34:00.6554125+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:34:00.6554125+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + headers: + cache-control: + - no-cache + content-length: + - '1606' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Oct 2022 05:47:21 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: @@ -472,7 +573,7 @@ interactions: content-length: - '0' date: - - Tue, 25 Oct 2022 07:51:16 GMT + - Mon, 31 Oct 2022 05:47:24 GMT expires: - '-1' pragma: @@ -518,7 +619,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 07:51:18 GMT + - Mon, 31 Oct 2022 05:47:25 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml index f14cc845f77..6311c13a06e 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-25T08:59:55Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T05:24:28Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 08:59:56 GMT + - Mon, 31 Oct 2022 05:24:32 GMT expires: - '-1' pragma: @@ -66,16 +66,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-25T09:00:01.825498+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T09:00:01.825498+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-31T05:24:37.4078394+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:24:37.4078394+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '604' + - '606' content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 09:00:03 GMT + - Mon, 31 Oct 2022 05:24:38 GMT expires: - '-1' location: @@ -91,7 +91,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -115,7 +115,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-25T08:59:55Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T05:24:28Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 09:00:03 GMT + - Mon, 31 Oct 2022 05:24:39 GMT expires: - '-1' pragma: @@ -162,7 +162,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1?api-version=2022-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1","name":"cluster1","type":"microsoft.azurestackhci/clusters","location":"eastus2euap","systemData":{"createdBy":"zhiyihuang@microsoft.com","createdByType":"User","createdAt":"2022-10-25T09:00:09.7150052Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-10-25T09:00:09.7150052Z"},"properties":{"provisioningState":"Succeeded","status":"NotYetRegistered","cloudId":"9efaf45c-32a7-4f1e-ae85-4b8c57d77ba1","desiredProperties":{"windowsServerSubscription":"Disabled","diagnosticLevel":"Basic"},"trialDaysRemaining":60,"billingModel":"Trial","serviceEndpoint":"https://dp.stackhci.azure.com/eastus2euap/"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1","name":"cluster1","type":"microsoft.azurestackhci/clusters","location":"eastus2euap","systemData":{"createdBy":"zhiyihuang@microsoft.com","createdByType":"User","createdAt":"2022-10-31T05:24:45.0346165Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-10-31T05:24:45.0346165Z"},"properties":{"provisioningState":"Succeeded","status":"NotYetRegistered","cloudId":"98836e33-c21f-4dd2-875c-55f8de733b87","desiredProperties":{"windowsServerSubscription":"Disabled","diagnosticLevel":"Basic"},"trialDaysRemaining":60,"billingModel":"Trial","serviceEndpoint":"https://dp.stackhci.azure.com/eastus2euap/"}}' headers: cache-control: - no-cache @@ -171,13 +171,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 09:00:13 GMT + - Mon, 31 Oct 2022 05:24:47 GMT etag: - - '"0000bbd6-0000-3400-0000-6357a59b0000"' + - '"0100ea91-0000-3400-0000-635f5c1e0000"' expires: - '-1' mise-correlation-id: - - 124e9dac-5113-41ca-b1c0-cc909fd50722 + - c0b47c86-0c71-480d-b2a9-339123054718 pragma: - no-cache strict-transport-security: @@ -220,7 +220,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-25T09:00:14.1761942+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T09:00:14.1761942+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T05:24:48.8244582+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:24:48.8244582+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -229,7 +229,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 09:00:16 GMT + - Mon, 31 Oct 2022 05:24:50 GMT expires: - '-1' location: @@ -245,7 +245,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 201 message: Created @@ -268,7 +268,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-25T09:00:14.1761942+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T09:00:14.1761942+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T05:24:48.8244582+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:24:48.8244582+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -277,7 +277,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 09:00:18 GMT + - Mon, 31 Oct 2022 05:24:52 GMT expires: - '-1' pragma: @@ -316,7 +316,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-25T09:00:14.1761942+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T09:00:14.1761942+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T05:24:48.8244582+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:24:48.8244582+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache @@ -325,7 +325,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 09:00:19 GMT + - Mon, 31 Oct 2022 05:24:55 GMT expires: - '-1' pragma: @@ -368,7 +368,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-25T08:59:55Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T05:24:28Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -377,7 +377,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 09:00:21 GMT + - Mon, 31 Oct 2022 05:24:55 GMT expires: - '-1' pragma: @@ -415,7 +415,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","name":"profile000003","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-25T09:00:26.6937079+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T09:00:26.6937079+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","name":"profile000003","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-31T05:24:58.7287134+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:24:58.7287134+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -424,7 +424,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 09:00:28 GMT + - Mon, 31 Oct 2022 05:24:59 GMT expires: - '-1' location: @@ -440,7 +440,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -463,7 +463,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2022-10-25T09:00:26.3116729+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-25T09:00:26.3116729+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2022-10-31T05:25:02.7676418+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:25:02.7676418+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache @@ -472,7 +472,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 09:00:31 GMT + - Mon, 31 Oct 2022 05:25:02 GMT expires: - '-1' pragma: @@ -515,7 +515,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","status":"Error"},"systemData":{"createdAt":"2022-10-25T09:00:31.6642841+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T09:00:31.6642841+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","status":"Error"},"systemData":{"createdAt":"2022-10-31T05:25:03.3169716+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:25:03.3169716+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -524,7 +524,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 09:00:32 GMT + - Mon, 31 Oct 2022 05:25:04 GMT expires: - '-1' pragma: @@ -542,7 +542,106 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment cluster report list + Connection: + - keep-alive + ParameterSetName: + - --assignment-name -g --cluster-name + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5b292e9f-c206-4634-bd4f-4bd7d583c8a2","name":"5b292e9f-c206-4634-bd4f-4bd7d583c8a2","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:25:02.1334588Z","endTime":"2022-10-31T05:25:02.676194Z","lastModifiedTime":"2022-10-31T05:25:02.6761933Z","duration":"PT0.5427352S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:25:02.8770266+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:25:02.8770266+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/ed9a631b-a9e1-422d-b407-64980171499d","name":"ed9a631b-a9e1-422d-b407-64980171499d","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:25:05.5682878Z","endTime":"2022-10-31T05:25:06.0675593Z","lastModifiedTime":"2022-10-31T05:25:06.0675592Z","duration":"PT0.4992715S","type":"Consistency","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:25:06.3316772+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:25:06.3316772+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '2328' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Oct 2022 05:25:15 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment cluster report show + Connection: + - keep-alive + ParameterSetName: + - -n --assignment-name -g --cluster-name + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5b292e9f-c206-4634-bd4f-4bd7d583c8a2?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5b292e9f-c206-4634-bd4f-4bd7d583c8a2","name":"5b292e9f-c206-4634-bd4f-4bd7d583c8a2","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:25:02.1334588Z","endTime":"2022-10-31T05:25:02.676194Z","lastModifiedTime":"2022-10-31T05:25:02.6761933Z","duration":"PT0.5427352S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:25:02.8770266+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:25:02.8770266+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + headers: + cache-control: + - no-cache + content-length: + - '1155' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Oct 2022 05:25:17 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff status: code: 200 message: OK @@ -574,7 +673,7 @@ interactions: content-length: - '0' date: - - Tue, 25 Oct 2022 09:00:34 GMT + - Mon, 31 Oct 2022 05:25:20 GMT expires: - '-1' pragma: @@ -620,7 +719,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 09:00:37 GMT + - Mon, 31 Oct 2022 05:25:21 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml index 325ffd1fd27..6fb3ef3ac61 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml @@ -13,12 +13,13 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-25T06:46:58Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T05:24:28Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:03 GMT + - Mon, 31 Oct 2022 05:24:33 GMT expires: - '-1' pragma: @@ -60,12 +61,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-25T06:47:08.2898448+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:47:08.2898448+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-31T05:24:37.5561548+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:24:37.5561548+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -74,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:10 GMT + - Mon, 31 Oct 2022 05:24:39 GMT expires: - '-1' location: @@ -90,7 +91,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -108,12 +109,13 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-25T06:46:58Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T05:24:28Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -122,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:11 GMT + - Mon, 31 Oct 2022 05:24:41 GMT expires: - '-1' pragma: @@ -213,13 +215,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:12 GMT + - Mon, 31 Oct 2022 05:24:41 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Tue, 25 Oct 2022 06:52:12 GMT + - Mon, 31 Oct 2022 05:29:41 GMT source-age: - - '59' + - '30' strict-transport-security: - max-age=31536000 vary: @@ -233,15 +235,15 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - b0ebf077657f0d8e79ae2f6f9f0ce01b236ee411 + - 9746d0184b3a976cf4519c459e0d3ac82600e932 x-frame-options: - deny x-github-request-id: - - 08DF:7594:1D33F:26B4F:63574FA3 + - 0866:662F:A530D:1BBE13:635DA0E3 x-served-by: - - cache-qpg1257-QPG + - cache-qpg1276-QPG x-timer: - - S1666680432.128302,VS0,VE1 + - S1667193882.804695,VS0,VE1 x-xss-protection: - 1; mode=block status: @@ -261,7 +263,8 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-08-01 response: @@ -277,7 +280,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:14 GMT + - Mon, 31 Oct 2022 05:24:43 GMT expires: - '-1' pragma: @@ -294,7 +297,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43994 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43996 status: code: 200 message: OK @@ -312,7 +315,8 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202210180?api-version=2022-08-01 response: @@ -338,7 +342,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:15 GMT + - Mon, 31 Oct 2022 05:24:46 GMT expires: - '-1' pragma: @@ -355,7 +359,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73996 + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73997 status: code: 200 message: OK @@ -373,7 +377,8 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks?api-version=2022-01-01 response: @@ -387,7 +392,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:16 GMT + - Mon, 31 Oct 2022 05:24:46 GMT expires: - '-1' pragma: @@ -451,15 +456,16 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_mGhRDYDm93a421hJdi3Q6FIaKhaHEMLc","name":"vm_deploy_mGhRDYDm93a421hJdi3Q6FIaKhaHEMLc","type":"Microsoft.Resources/deployments","properties":{"templateHash":"8168230074521553673","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-25T06:47:24.2680269Z","duration":"PT0.0006204S","correlationId":"5f0a7286-291b-49bf-8e7f-e39189f0c4aa","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_onTftlkaquZYcxHmM5U8Xvz6w8slFBgA","name":"vm_deploy_onTftlkaquZYcxHmM5U8Xvz6w8slFBgA","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1075454318207940600","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-31T05:24:55.0883018Z","duration":"PT0.0009587S","correlationId":"9e04eb42-4d78-44cb-bd19-bfa0d7a24e72","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_mGhRDYDm93a421hJdi3Q6FIaKhaHEMLc/operationStatuses/08585349264450009983?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_onTftlkaquZYcxHmM5U8Xvz6w8slFBgA/operationStatuses/08585344129944135001?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -467,7 +473,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:29 GMT + - Mon, 31 Oct 2022 05:24:56 GMT expires: - '-1' pragma: @@ -477,7 +483,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -495,9 +501,10 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585349264450009983?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585344129944135001?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -509,13 +516,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:48:00 GMT + - Mon, 31 Oct 2022 05:25:27 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -535,9 +544,10 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585349264450009983?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585344129944135001?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -549,13 +559,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:48:31 GMT + - Mon, 31 Oct 2022 05:25:57 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -575,27 +587,30 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_mGhRDYDm93a421hJdi3Q6FIaKhaHEMLc","name":"vm_deploy_mGhRDYDm93a421hJdi3Q6FIaKhaHEMLc","type":"Microsoft.Resources/deployments","properties":{"templateHash":"8168230074521553673","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-25T06:48:21.308466Z","duration":"PT57.0410595S","correlationId":"5f0a7286-291b-49bf-8e7f-e39189f0c4aa","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_onTftlkaquZYcxHmM5U8Xvz6w8slFBgA","name":"vm_deploy_onTftlkaquZYcxHmM5U8Xvz6w8slFBgA","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1075454318207940600","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-31T05:25:48.8029966Z","duration":"PT53.7156535S","correlationId":"9e04eb42-4d78-44cb-bd19-bfa0d7a24e72","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3604' + - '3605' content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:48:31 GMT + - Mon, 31 Oct 2022 05:25:57 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -615,23 +630,24 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003?$expand=instanceView&api-version=2022-08-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus2euap\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"0da4d1b7-b890-45e3-991b-052ac7f6e7c8\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"2ff5ab5f-38c8-4c76-be73-ad230da2a00c\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": \"18.04.202210180\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm000003_disk1_1b9cae7d644c406983d23d98c3d07d92\",\r\n + \"Linux\",\r\n \"name\": \"vm000003_disk1_a9d3790b384a4ff2b8c2aef775f69a6c\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_1b9cae7d644c406983d23d98c3d07d92\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_a9d3790b384a4ff2b8c2aef775f69a6c\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"zhiyihuang\",\r\n @@ -651,18 +667,18 @@ interactions: [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2022-10-25T06:48:26+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_1b9cae7d644c406983d23d98c3d07d92\",\r\n + \"2022-10-31T05:25:48+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_a9d3790b384a4ff2b8c2aef775f69a6c\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-10-25T06:48:07.0545651+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-10-31T05:25:27.9447462+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-10-25T06:48:14.7268081+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-10-31T05:25:41.4444616+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n - \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-10-25T06:48:03.8357503+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-10-31T05:25:24.3029135+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -672,7 +688,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:48:33 GMT + - Mon, 31 Oct 2022 05:25:59 GMT expires: - '-1' pragma: @@ -689,7 +705,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31995 + - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31995 status: code: 200 message: OK @@ -707,18 +723,19 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"vm000003VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\",\r\n - \ \"etag\": \"W/\\\"70b45f8d-ac9f-45a7-b2c4-9af536797ee1\\\"\",\r\n \"tags\": + \ \"etag\": \"W/\\\"0ca16690-56af-4da9-a7fe-de5119ef40a4\\\"\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"a42660e8-68c0-4160-9c3e-6d166570c252\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"73736690-4ecd-4c4f-95c3-bb9134f25f4a\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\",\r\n - \ \"etag\": \"W/\\\"70b45f8d-ac9f-45a7-b2c4-9af536797ee1\\\"\",\r\n + \ \"etag\": \"W/\\\"0ca16690-56af-4da9-a7fe-de5119ef40a4\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -727,8 +744,8 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"lpoueafvoosu1lorz4d3adhjea.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-22-48-03-85-36\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": + \"3tfbpiaavh0uhnk0lez2r5po4h.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"60-45-BD-71-17-50\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\"\r\n @@ -744,9 +761,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:48:35 GMT + - Mon, 31 Oct 2022 05:26:00 GMT etag: - - W/"70b45f8d-ac9f-45a7-b2c4-9af536797ee1" + - W/"0ca16690-56af-4da9-a7fe-de5119ef40a4" expires: - '-1' pragma: @@ -763,7 +780,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - fda21fec-6f6b-44d9-816c-333d8dfb3c9e + - bb1651b4-39dc-4332-beff-44935f3d4fc4 status: code: 200 message: '' @@ -781,16 +798,17 @@ interactions: ParameterSetName: - -n -g --image User-Agent: - - AZURECLI/2.41.0 azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"vm000003PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP\",\r\n - \ \"etag\": \"W/\\\"c10936cf-c6eb-426f-b10a-a05e8dbfaf7b\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"b5f85529-044a-448a-beb2-7b0557cec853\\\"\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"ef17bc50-367e-4a3d-bd5b-f1a03264c1d7\",\r\n - \ \"ipAddress\": \"20.47.243.24\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"c7f284d1-55ed-48c2-9c26-47d0a48dd637\",\r\n + \ \"ipAddress\": \"20.102.149.82\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -800,13 +818,13 @@ interactions: cache-control: - no-cache content-length: - - '994' + - '995' content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:48:36 GMT + - Mon, 31 Oct 2022 05:26:01 GMT etag: - - W/"c10936cf-c6eb-426f-b10a-a05e8dbfaf7b" + - W/"b5f85529-044a-448a-beb2-7b0557cec853" expires: - '-1' pragma: @@ -823,7 +841,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 5153c617-7751-4574-9464-a39f811a163c + - 062e844e-7e87-48b1-b56a-3623a1de1f74 status: code: 200 message: '' @@ -845,12 +863,12 @@ interactions: ParameterSetName: - -n -g --vm-name --configuration-profile User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-25T06:48:37.0880321+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:48:37.0880321+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T05:26:02.5369794+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:26:02.5369794+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -859,7 +877,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:48:38 GMT + - Mon, 31 Oct 2022 05:26:04 GMT expires: - '-1' location: @@ -893,12 +911,12 @@ interactions: ParameterSetName: - -n -g --vm-name User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-25T06:48:37.0880321+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:48:37.0880321+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T05:26:02.5369794+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:26:02.5369794+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -907,7 +925,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:48:41 GMT + - Mon, 31 Oct 2022 05:26:06 GMT expires: - '-1' pragma: @@ -941,12 +959,12 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-25T06:48:37.0880321+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:48:37.0880321+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T05:26:02.5369794+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:26:02.5369794+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache @@ -955,7 +973,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:48:42 GMT + - Mon, 31 Oct 2022 05:26:08 GMT expires: - '-1' pragma: @@ -992,12 +1010,13 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-25T06:46:58Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T05:24:28Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1006,7 +1025,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:48:43 GMT + - Mon, 31 Oct 2022 05:26:09 GMT expires: - '-1' pragma: @@ -1039,12 +1058,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-25T06:48:47.7893902+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:48:47.7893902+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-31T05:26:13.3437858+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:26:13.3437858+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1053,7 +1072,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:48:49 GMT + - Mon, 31 Oct 2022 05:26:14 GMT expires: - '-1' location: @@ -1069,7 +1088,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -1087,21 +1106,21 @@ interactions: ParameterSetName: - --n -g --vm-name --configuration-profile User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-25T06:48:37.0880321+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:48:37.0880321+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Conformant"},"systemData":{"createdAt":"2022-10-31T05:26:14.2133536+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:26:14.2133536+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1000' + - '1045' content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:48:51 GMT + - Mon, 31 Oct 2022 05:26:17 GMT expires: - '-1' pragma: @@ -1139,21 +1158,21 @@ interactions: ParameterSetName: - --n -g --vm-name --configuration-profile User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"New"},"systemData":{"createdAt":"2022-10-25T06:48:51.8212003+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:48:51.8212003+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"Conformant"},"systemData":{"createdAt":"2022-10-31T05:26:18.1355338+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:26:18.1355338+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1000' + - '1007' content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:48:52 GMT + - Mon, 31 Oct 2022 05:26:18 GMT expires: - '-1' pragma: @@ -1171,7 +1190,103 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment vm report list + Connection: + - keep-alive + ParameterSetName: + - --assignment-name -g --vm-name + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/045cb4d9-b248-4632-9330-d5a85ea3f30b","name":"045cb4d9-b248-4632-9330-d5a85ea3f30b","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:26:12.6077306Z","endTime":"2022-10-31T05:26:14.0684831Z","lastModifiedTime":"2022-10-31T05:26:14.068483Z","duration":"PT1.4607525S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:26:14.3227284+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:26:14.3227284+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/23d5e971-89e0-4363-882d-ea96f6c26df6","name":"23d5e971-89e0-4363-882d-ea96f6c26df6","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:26:24.54815Z","endTime":"2022-10-31T05:26:28.2680414Z","lastModifiedTime":"2022-10-31T05:26:28.2680413Z","duration":"PT3.7198914S","type":"Consistency","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:26:28.7162304+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:26:28.7162304+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '2366' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Oct 2022 05:26:31 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile-assignment vm report show + Connection: + - keep-alive + ParameterSetName: + - -n --assignment-name -g --vm-name + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/045cb4d9-b248-4632-9330-d5a85ea3f30b?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/045cb4d9-b248-4632-9330-d5a85ea3f30b","name":"045cb4d9-b248-4632-9330-d5a85ea3f30b","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:26:12.6077306Z","endTime":"2022-10-31T05:26:14.0684831Z","lastModifiedTime":"2022-10-31T05:26:14.068483Z","duration":"PT1.4607525S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:26:14.3227284+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:26:14.3227284+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + headers: + cache-control: + - no-cache + content-length: + - '1175' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Oct 2022 05:26:34 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff status: code: 200 message: OK @@ -1191,7 +1306,7 @@ interactions: ParameterSetName: - -n -g --vm-name -y User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: @@ -1203,7 +1318,7 @@ interactions: content-length: - '0' date: - - Tue, 25 Oct 2022 06:48:55 GMT + - Mon, 31 Oct 2022 05:26:37 GMT expires: - '-1' pragma: @@ -1235,7 +1350,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: @@ -1249,7 +1364,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:48:57 GMT + - Mon, 31 Oct 2022 05:26:38 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml index 5cd85dea0b9..4384de0af7a 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml @@ -13,12 +13,13 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-25T06:46:58Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-28T08:04:03Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,15 +28,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:01 GMT + - Fri, 28 Oct 2022 08:04:07 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding x-content-type-options: - nosniff status: @@ -63,12 +62,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-25T06:47:06.5658414+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:47:06.5658414+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-28T08:04:12.0359952+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:12.0359952+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -77,7 +76,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:08 GMT + - Fri, 28 Oct 2022 08:04:14 GMT expires: - '-1' location: @@ -93,7 +92,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -111,12 +110,12 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-25T06:47:06.5658414+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:47:06.5658414+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-28T08:04:12.0359952+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:12.0359952+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -125,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:10 GMT + - Fri, 28 Oct 2022 08:04:16 GMT expires: - '-1' pragma: @@ -136,10 +135,6 @@ interactions: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff status: @@ -159,12 +154,12 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-25T06:47:06.5658414+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:47:06.5658414+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-28T08:04:12.0359952+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:12.0359952+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache @@ -173,7 +168,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:12 GMT + - Fri, 28 Oct 2022 08:04:17 GMT expires: - '-1' pragma: @@ -184,10 +179,6 @@ interactions: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff status: @@ -207,12 +198,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-25T06:47:06.5658414+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:47:06.5658414+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-28T08:04:12.0359952+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:12.0359952+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -221,7 +212,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:14 GMT + - Fri, 28 Oct 2022 08:04:19 GMT expires: - '-1' pragma: @@ -260,12 +251,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2022-10-25T06:47:06.5658414+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-25T06:47:15.4845895+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2022-10-28T08:04:12.0359952+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:20.9957925+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -274,7 +265,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:15 GMT + - Fri, 28 Oct 2022 08:04:20 GMT expires: - '-1' pragma: @@ -300,33 +291,83 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - automanage configuration-profile delete + - automanage configuration-profile version create + Connection: + - keep-alive + ParameterSetName: + - --profile-name -g -n --configuration + User-Agent: + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-28T08:04:03Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '381' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 28 Oct 2022 08:04:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": + false}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile version create Connection: - keep-alive Content-Length: - - '0' + - '91' + Content-Type: + - application/json ParameterSetName: - - -n -g -y + - --profile-name -g -n --configuration User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 response: body: - string: '' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-28T08:04:26.9057341+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:26.9057341+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '0' + - '609' + content-type: + - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:21 GMT + - Fri, 28 Oct 2022 08:04:29 GMT expires: - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003 pragma: - no-cache request-context: @@ -337,8 +378,56 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile version show + Connection: + - keep-alive + ParameterSetName: + - --profile-name -g -n + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-28T08:04:26.9057341+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:26.9057341+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '609' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 28 Oct 2022 08:04:29 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff status: code: 200 message: OK @@ -350,33 +439,87 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - automanage configuration-profile list + - automanage configuration-profile version list Connection: - keep-alive ParameterSetName: - - -g + - --profile-name -g User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions?api-version=2022-05-04 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-28T08:04:26.9057341+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:26.9057341+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '621' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 28 Oct 2022 08:04:32 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile version update + Connection: + - keep-alive + ParameterSetName: + - --profile-name -g -n --configuration + User-Agent: + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 response: body: - string: '{"value":[]}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-28T08:04:26.9057341+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:26.9057341+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '12' + - '609' content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:21 GMT + - Fri, 28 Oct 2022 08:04:34 GMT expires: - '-1' pragma: - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index 2396044532e..f15998bdca1 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -6,7 +6,7 @@ # -------------------------------------------------------------------------------------------- from azure.cli.testsdk import * - +from time import sleep class AutomanageScenario(ScenarioTest): @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.') @@ -16,11 +16,12 @@ def test_automanage_scenarios(self): if best_practice_name and len(best_practice_name) >= 2: best_practice_name = best_practice_name[1]["name"] self.cmd('az automanage best-practice show --best-practice-name {}'.format(best_practice_name)) + # TODO server error # version_name = self.cmd('az automanage best-practice version list ' # '--best-practice-name {}'.format(best_practice_name)).get_output_in_json() # if version_name and len(version_name) >= 1: # version_name = version_name[0]["name"] - # ## TODO server error + # # self.cmd('az automanage best-practice version show --best-practice-name {} --version-name ' # '{}'.format(best_practice_name, version_name)) @@ -32,6 +33,7 @@ def test_automanage_scenarios(self): def test_automanage_configuration_profile_scenarios(self): self.kwargs.update({ 'profile_name': self.create_random_name(prefix='profile', length=24), + 'version_name': self.create_random_name(prefix='version', length=24) }) self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg} --configuration ' '{{\\\"Antimalware/Enable\\\":false,\\\"Backup/Enable\\\":false,\\\"VMInsights/Enable\\\":true,' @@ -54,11 +56,27 @@ def test_automanage_configuration_profile_scenarios(self): '{{\\\"Antimalware/Enable\\\":true,\\\"VMInsights/Enable\\\":false}}', checks=[JMESPathCheck('properties.configuration', {"Antimalware/Enable": True, "VMInsights/Enable": False})]) - self.cmd('az automanage configuration-profile delete -n {profile_name} -g {rg} -y') - self.cmd('az automanage configuration-profile list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) # TODO server error - # self.cmd('az automanage configuration-profile version create') + # # version + # self.cmd('az automanage configuration-profile version create --profile-name {profile_name} -g {rg} ' + # '-n {version_name} --configuration {{\\\"Antimalware/Enable\\\":false}}') + # self.cmd('az automanage configuration-profile version show --profile-name {profile_name} -g {rg} ' + # '-n {version_name}', + # checks=[JMESPathCheck('name', self.kwargs.get('version_name', '')), + # JMESPathCheck('properties.configuration', {"Antimalware/Enable": False})]) + # self.cmd('az automanage configuration-profile version list --profile-name {profile_name} -g {rg}', + # checks=[JMESPathCheck('length(@)', 1)]) + # self.cmd('az automanage configuration-profile version update --profile-name {profile_name} -g {rg} ' + # '-n {version_name} --configuration {{\\\"Antimalware/Enable\\\":true}}', + # checks=[JMESPathCheck('properties.configuration', {"Antimalware/Enable": True})]) + # self.cmd('az automanage configuration-profile version delete --profile-name {profile_name} -g {rg} ' + # '-n {version_name}') + # self.cmd('az automanage configuration-profile version list --profile-name {profile_name} -g {rg}', + # checks=[JMESPathCheck('length(@)', 0)]) + + self.cmd('az automanage configuration-profile delete -n {profile_name} -g {rg} -y') + self.cmd('az automanage configuration-profile list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.profileassignment.vm.') def test_automanage_configuration_profile_assignment_vm_scenarios(self): @@ -86,6 +104,14 @@ def test_automanage_configuration_profile_assignment_vm_scenarios(self): '--vm-name {vm_name} --configuration-profile {profile_id_2}', checks=[JMESPathCheck('properties.configurationProfile', profile_id_2), JMESPathCheck('properties.targetId', vm_id)]) + + sleep(10) + report_name = self.cmd('az automanage configuration-profile-assignment vm report list --assignment-name default' + ' -g {rg} --vm-name {vm_name}').get_output_in_json()[0]["name"] + self.kwargs.update({'report_name': report_name}) + self.cmd('az automanage configuration-profile-assignment vm report show -n {report_name} ' + '--assignment-name default -g {rg} --vm-name {vm_name}') + self.cmd('az automanage configuration-profile-assignment vm delete -n default -g {rg} --vm-name {vm_name} -y') self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) @@ -114,6 +140,14 @@ def test_automanage_configuration_profile_assignment_arc_scenarios(self): self.cmd('az automanage configuration-profile-assignment arc update --n default -g {rg} ' '--machine-name {arc_name} --configuration-profile {profile_id_2}', checks=[JMESPathCheck('properties.configurationProfile', profile_id_2)]) + + sleep(10) + report_name = self.cmd('az automanage configuration-profile-assignment arc report list --assignment-name ' + 'default -g {rg} --machine-name {arc_name}').get_output_in_json()[0]["name"] + self.kwargs.update({'report_name': report_name}) + self.cmd('az automanage configuration-profile-assignment arc report show -n {report_name} ' + '--assignment-name default -g {rg} --machine-name {arc_name}') + self.cmd('az automanage configuration-profile-assignment arc delete -n default -g {rg} --machine-name ' '{arc_name} -y') self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) @@ -144,6 +178,14 @@ def test_automanage_configuration_profile_assignment_cluster_scenarios(self): self.cmd('az automanage configuration-profile-assignment cluster update --n default -g {rg} ' '--cluster-name {cluster_name} --configuration-profile {profile_id_2}', checks=[JMESPathCheck('properties.configurationProfile', profile_id_2)]) + + sleep(10) + report_name = self.cmd('az automanage configuration-profile-assignment cluster report list --assignment-name ' + 'default -g {rg} --cluster-name {cluster_name}').get_output_in_json()[0]["name"] + self.kwargs.update({'report_name': report_name}) + self.cmd('az automanage configuration-profile-assignment cluster report show -n {report_name} ' + '--assignment-name default -g {rg} --cluster-name {cluster_name}') + self.cmd('az automanage configuration-profile-assignment cluster delete -n default -g {rg} --cluster-name ' '{cluster_name} -y') self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) From a1aa49a1b920ee5f6e2534f3b9b68d866ac71932 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Mon, 31 Oct 2022 14:56:56 +0800 Subject: [PATCH 19/31] rerun tests, lint --- src/automanage/azext_automanage/_params.py | 1 - ...tion_profile_assignment_arc_scenarios.yaml | 70 +++--- ..._profile_assignment_cluster_scenarios.yaml | 79 +++--- ...ation_profile_assignment_vm_scenarios.yaml | 207 +++++++++------- ...anage_configuration_profile_scenarios.yaml | 230 ++++-------------- .../recordings/test_automanage_scenarios.yaml | 20 +- src/service_name.json | 5 + 7 files changed, 258 insertions(+), 354 deletions(-) diff --git a/src/automanage/azext_automanage/_params.py b/src/automanage/azext_automanage/_params.py index 713e5d40278..cfcec717c9c 100644 --- a/src/automanage/azext_automanage/_params.py +++ b/src/automanage/azext_automanage/_params.py @@ -11,4 +11,3 @@ def load_arguments(self, _): # pylint: disable=unused-argument pass - diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml index 97ac02c41d0..d457a12fab7 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:46:28 GMT + - Mon, 31 Oct 2022 06:54:38 GMT expires: - '-1' pragma: @@ -66,16 +66,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","name":"profile000001","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-31T05:46:34.4879831+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:46:34.4879831+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","name":"profile000001","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-31T06:54:42.486196+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:54:42.486196+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '568' + - '566' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:46:37 GMT + - Mon, 31 Oct 2022 06:54:44 GMT expires: - '-1' location: @@ -118,18 +118,20 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-10-31T05:46:37.8891227+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:46:37.8891227+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-10-31T06:54:45.0174341+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:54:45.0174341+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '901' + - '891' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:46:40 GMT + - Mon, 31 Oct 2022 06:54:46 GMT expires: - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default pragma: - no-cache request-context: @@ -138,17 +140,13 @@ interactions: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1198' status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null headers: @@ -168,16 +166,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-10-31T05:46:37.8891227+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:46:37.8891227+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-10-31T06:54:45.0174341+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:54:45.0174341+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '901' + - '891' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:46:42 GMT + - Mon, 31 Oct 2022 06:54:48 GMT expires: - '-1' pragma: @@ -216,16 +214,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-10-31T05:46:37.8891227+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:46:37.8891227+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"InProgress"},"systemData":{"createdAt":"2022-10-31T06:54:50.4346842+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:54:50.4346842+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '913' + - '948' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:46:43 GMT + - Mon, 31 Oct 2022 06:54:50 GMT expires: - '-1' pragma: @@ -277,7 +275,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:46:44 GMT + - Mon, 31 Oct 2022 06:54:50 GMT expires: - '-1' pragma: @@ -315,7 +313,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-31T05:46:49.9780917+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:46:49.9780917+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-31T06:55:00.6149205+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:55:00.6149205+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -324,7 +322,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:46:51 GMT + - Mon, 31 Oct 2022 06:55:01 GMT expires: - '-1' location: @@ -363,16 +361,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-10-31T05:46:37.8891227+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:46:37.8891227+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-10-31T06:54:51.9978766+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:54:51.9978766+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '901' + - '939' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:46:59 GMT + - Mon, 31 Oct 2022 06:55:05 GMT expires: - '-1' pragma: @@ -415,7 +413,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"NonConformant"},"systemData":{"createdAt":"2022-10-31T05:47:00.4890899+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:47:00.4890899+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"NonConformant"},"systemData":{"createdAt":"2022-10-31T06:55:06.0424209+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:55:06.0424209+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -424,7 +422,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:47:06 GMT + - Mon, 31 Oct 2022 06:55:07 GMT expires: - '-1' pragma: @@ -442,7 +440,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -466,17 +464,19 @@ interactions: response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/98f44c6f-7f23-462a-8d34-d2bab63f5e6b","name":"98f44c6f-7f23-462a-8d34-d2bab63f5e6b","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:33:58.7029002Z","endTime":"2022-10-31T05:34:00.3371492Z","lastModifiedTime":"2022-10-31T05:34:00.3371489Z","duration":"PT1.634249S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilesvsvdm7d54mgjm76b","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:34:00.6554125+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:34:00.6554125+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/8499e391-c0a2-4dc6-8d14-977d91eb8e5c","name":"8499e391-c0a2-4dc6-8d14-977d91eb8e5c","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:47:03.0403012Z","endTime":"2022-10-31T05:47:04.3284924Z","lastModifiedTime":"2022-10-31T05:47:04.3284922Z","duration":"PT1.2881912S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:47:04.569804+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:47:04.569804+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:34:00.6554125+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:34:00.6554125+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/8499e391-c0a2-4dc6-8d14-977d91eb8e5c","name":"8499e391-c0a2-4dc6-8d14-977d91eb8e5c","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:47:03.0403012Z","endTime":"2022-10-31T05:47:04.3284924Z","lastModifiedTime":"2022-10-31T05:47:04.3284922Z","duration":"PT1.2881912S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilej72ekba6eeus2b6an","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:47:04.569804+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:47:04.569804+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/79186299-dcb4-4349-8c7c-dfa9a3430ce6","name":"79186299-dcb4-4349-8c7c-dfa9a3430ce6","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T06:54:50.5353931Z","endTime":"2022-10-31T06:54:51.8792636Z","lastModifiedTime":"2022-10-31T06:54:51.8792635Z","duration":"PT1.3438705S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T06:54:52.1072526+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:54:52.1072526+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/e945ba3a-7b1c-43d4-8fdd-a987e2b5c913","name":"e945ba3a-7b1c-43d4-8fdd-a987e2b5c913","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T06:55:15.6311436Z","endTime":"2022-10-31T06:55:17.0178403Z","lastModifiedTime":"2022-10-31T06:55:17.0178402Z","duration":"PT1.3866967S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T06:55:17.2108198+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:55:17.2108198+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '3217' + - '6426' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:47:19 GMT + - Mon, 31 Oct 2022 06:55:19 GMT expires: - '-1' pragma: @@ -525,7 +525,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:47:21 GMT + - Mon, 31 Oct 2022 06:55:21 GMT expires: - '-1' pragma: @@ -573,7 +573,7 @@ interactions: content-length: - '0' date: - - Mon, 31 Oct 2022 05:47:24 GMT + - Mon, 31 Oct 2022 06:55:24 GMT expires: - '-1' pragma: @@ -619,7 +619,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:47:25 GMT + - Mon, 31 Oct 2022 06:55:25 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml index 6311c13a06e..bea7c8eb3d9 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T05:24:28Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T06:31:21Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:32 GMT + - Mon, 31 Oct 2022 06:31:26 GMT expires: - '-1' pragma: @@ -66,7 +66,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-31T05:24:37.4078394+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:24:37.4078394+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-31T06:31:31.4750528+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:31.4750528+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:38 GMT + - Mon, 31 Oct 2022 06:31:33 GMT expires: - '-1' location: @@ -115,7 +115,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T05:24:28Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T06:31:21Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:39 GMT + - Mon, 31 Oct 2022 06:31:34 GMT expires: - '-1' pragma: @@ -162,7 +162,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1?api-version=2022-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1","name":"cluster1","type":"microsoft.azurestackhci/clusters","location":"eastus2euap","systemData":{"createdBy":"zhiyihuang@microsoft.com","createdByType":"User","createdAt":"2022-10-31T05:24:45.0346165Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-10-31T05:24:45.0346165Z"},"properties":{"provisioningState":"Succeeded","status":"NotYetRegistered","cloudId":"98836e33-c21f-4dd2-875c-55f8de733b87","desiredProperties":{"windowsServerSubscription":"Disabled","diagnosticLevel":"Basic"},"trialDaysRemaining":60,"billingModel":"Trial","serviceEndpoint":"https://dp.stackhci.azure.com/eastus2euap/"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1","name":"cluster1","type":"microsoft.azurestackhci/clusters","location":"eastus2euap","systemData":{"createdBy":"zhiyihuang@microsoft.com","createdByType":"User","createdAt":"2022-10-31T06:31:37.7566045Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-10-31T06:31:37.7566045Z"},"properties":{"provisioningState":"Succeeded","status":"NotYetRegistered","cloudId":"615a345e-8ed1-422e-bd0b-e0ff80df917b","desiredProperties":{"windowsServerSubscription":"Disabled","diagnosticLevel":"Basic"},"trialDaysRemaining":60,"billingModel":"Trial","serviceEndpoint":"https://dp.stackhci.azure.com/eastus2euap/"}}' headers: cache-control: - no-cache @@ -171,13 +171,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:47 GMT + - Mon, 31 Oct 2022 06:31:40 GMT etag: - - '"0100ea91-0000-3400-0000-635f5c1e0000"' + - '"01007792-0000-3400-0000-635f6bcb0000"' expires: - '-1' mise-correlation-id: - - c0b47c86-0c71-480d-b2a9-339123054718 + - 428e258e-63fa-4881-9b8f-fdd220058191 pragma: - no-cache strict-transport-security: @@ -220,16 +220,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T05:24:48.8244582+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:24:48.8244582+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T06:31:41.534827+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:41.534827+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1013' + - '1011' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:50 GMT + - Mon, 31 Oct 2022 06:31:44 GMT expires: - '-1' location: @@ -268,16 +268,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T05:24:48.8244582+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:24:48.8244582+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"InProgress"},"systemData":{"createdAt":"2022-10-31T06:31:46.495453+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:31:46.495453+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1013' + - '1056' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:52 GMT + - Mon, 31 Oct 2022 06:31:46 GMT expires: - '-1' pragma: @@ -316,16 +316,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T05:24:48.8244582+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:24:48.8244582+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2022-10-31T06:31:48.230468+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:31:48.230468+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '1025' + - '1063' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:55 GMT + - Mon, 31 Oct 2022 06:31:47 GMT expires: - '-1' pragma: @@ -368,7 +368,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T05:24:28Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T06:31:21Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -377,7 +377,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:55 GMT + - Mon, 31 Oct 2022 06:31:48 GMT expires: - '-1' pragma: @@ -415,7 +415,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","name":"profile000003","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-31T05:24:58.7287134+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:24:58.7287134+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","name":"profile000003","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-31T06:31:53.9151252+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:53.9151252+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -424,7 +424,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:59 GMT + - Mon, 31 Oct 2022 06:31:55 GMT expires: - '-1' location: @@ -463,16 +463,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2022-10-31T05:25:02.7676418+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:25:02.7676418+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2022-10-31T06:31:48.230468+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:31:48.230468+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1053' + - '1051' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:25:02 GMT + - Mon, 31 Oct 2022 06:31:58 GMT expires: - '-1' pragma: @@ -515,7 +515,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","status":"Error"},"systemData":{"createdAt":"2022-10-31T05:25:03.3169716+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:25:03.3169716+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","status":"Error"},"systemData":{"createdAt":"2022-10-31T06:31:59.3172504+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:59.3172504+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -524,7 +524,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:25:04 GMT + - Mon, 31 Oct 2022 06:31:59 GMT expires: - '-1' pragma: @@ -542,7 +542,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -565,18 +565,17 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5b292e9f-c206-4634-bd4f-4bd7d583c8a2","name":"5b292e9f-c206-4634-bd4f-4bd7d583c8a2","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:25:02.1334588Z","endTime":"2022-10-31T05:25:02.676194Z","lastModifiedTime":"2022-10-31T05:25:02.6761933Z","duration":"PT0.5427352S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:25:02.8770266+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:25:02.8770266+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/ed9a631b-a9e1-422d-b407-64980171499d","name":"ed9a631b-a9e1-422d-b407-64980171499d","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:25:05.5682878Z","endTime":"2022-10-31T05:25:06.0675593Z","lastModifiedTime":"2022-10-31T05:25:06.0675592Z","duration":"PT0.4992715S","type":"Consistency","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:25:06.3316772+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:25:06.3316772+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/c78babe5-975b-43a7-8cc7-5c54f30c8630","name":"c78babe5-975b-43a7-8cc7-5c54f30c8630","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T06:31:46.6750077Z","endTime":"2022-10-31T06:31:47.962032Z","lastModifiedTime":"2022-10-31T06:31:47.9620318Z","duration":"PT1.2870243S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T06:31:48.4837804+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:31:48.4837804+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '2328' + - '1167' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:25:15 GMT + - Mon, 31 Oct 2022 06:32:11 GMT expires: - '-1' pragma: @@ -612,11 +611,11 @@ interactions: User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5b292e9f-c206-4634-bd4f-4bd7d583c8a2?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/c78babe5-975b-43a7-8cc7-5c54f30c8630?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5b292e9f-c206-4634-bd4f-4bd7d583c8a2","name":"5b292e9f-c206-4634-bd4f-4bd7d583c8a2","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:25:02.1334588Z","endTime":"2022-10-31T05:25:02.676194Z","lastModifiedTime":"2022-10-31T05:25:02.6761933Z","duration":"PT0.5427352S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:25:02.8770266+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:25:02.8770266+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/c78babe5-975b-43a7-8cc7-5c54f30c8630","name":"c78babe5-975b-43a7-8cc7-5c54f30c8630","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T06:31:46.6750077Z","endTime":"2022-10-31T06:31:47.962032Z","lastModifiedTime":"2022-10-31T06:31:47.9620318Z","duration":"PT1.2870243S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T06:31:48.4837804+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:31:48.4837804+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache @@ -625,7 +624,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:25:17 GMT + - Mon, 31 Oct 2022 06:32:14 GMT expires: - '-1' pragma: @@ -673,7 +672,7 @@ interactions: content-length: - '0' date: - - Mon, 31 Oct 2022 05:25:20 GMT + - Mon, 31 Oct 2022 06:32:15 GMT expires: - '-1' pragma: @@ -719,7 +718,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:25:21 GMT + - Mon, 31 Oct 2022 06:32:17 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml index 6fb3ef3ac61..419c423be1a 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T05:24:28Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T06:31:21Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:33 GMT + - Mon, 31 Oct 2022 06:31:28 GMT expires: - '-1' pragma: @@ -66,7 +66,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-31T05:24:37.5561548+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:24:37.5561548+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-31T06:31:32.8997014+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:32.8997014+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:39 GMT + - Mon, 31 Oct 2022 06:31:34 GMT expires: - '-1' location: @@ -91,7 +91,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -115,7 +115,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T05:24:28Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T06:31:21Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:41 GMT + - Mon, 31 Oct 2022 06:31:36 GMT expires: - '-1' pragma: @@ -215,13 +215,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:41 GMT + - Mon, 31 Oct 2022 06:31:36 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Mon, 31 Oct 2022 05:29:41 GMT + - Mon, 31 Oct 2022 06:36:36 GMT source-age: - - '30' + - '213' strict-transport-security: - max-age=31536000 vary: @@ -231,19 +231,19 @@ interactions: x-cache: - HIT x-cache-hits: - - '1' + - '20' x-content-type-options: - nosniff x-fastly-request-id: - - 9746d0184b3a976cf4519c459e0d3ac82600e932 + - 62f9cf0352981c85e21826a404b14674fc13e5c2 x-frame-options: - deny x-github-request-id: - 0866:662F:A530D:1BBE13:635DA0E3 x-served-by: - - cache-qpg1276-QPG + - cache-qpg1245-QPG x-timer: - - S1667193882.804695,VS0,VE1 + - S1667197897.592773,VS0,VE0 x-xss-protection: - 1; mode=block status: @@ -280,7 +280,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:43 GMT + - Mon, 31 Oct 2022 06:31:39 GMT expires: - '-1' pragma: @@ -297,7 +297,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43996 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43999 status: code: 200 message: OK @@ -342,7 +342,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:46 GMT + - Mon, 31 Oct 2022 06:31:41 GMT expires: - '-1' pragma: @@ -359,7 +359,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73997 + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73999 status: code: 200 message: OK @@ -392,7 +392,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:46 GMT + - Mon, 31 Oct 2022 06:31:42 GMT expires: - '-1' pragma: @@ -462,18 +462,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_onTftlkaquZYcxHmM5U8Xvz6w8slFBgA","name":"vm_deploy_onTftlkaquZYcxHmM5U8Xvz6w8slFBgA","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1075454318207940600","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-31T05:24:55.0883018Z","duration":"PT0.0009587S","correlationId":"9e04eb42-4d78-44cb-bd19-bfa0d7a24e72","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_eowwGYVOtpSp7dp9EV1ecRIAfx0r1mSG","name":"vm_deploy_eowwGYVOtpSp7dp9EV1ecRIAfx0r1mSG","type":"Microsoft.Resources/deployments","properties":{"templateHash":"10837077542440252570","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-31T06:31:52.2962757Z","duration":"PT0.0006386S","correlationId":"3d840f45-a3e8-480e-93be-007049e5daff","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_onTftlkaquZYcxHmM5U8Xvz6w8slFBgA/operationStatuses/08585344129944135001?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_eowwGYVOtpSp7dp9EV1ecRIAfx0r1mSG/operationStatuses/08585344089778815453?api-version=2021-04-01 cache-control: - no-cache content-length: - - '2645' + - '2646' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:24:56 GMT + - Mon, 31 Oct 2022 06:31:53 GMT expires: - '-1' pragma: @@ -504,7 +504,50 @@ interactions: - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585344129944135001?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585344089778815453?api-version=2021-04-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 31 Oct 2022 06:32:24 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image + User-Agent: + - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585344089778815453?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -516,7 +559,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:25:27 GMT + - Mon, 31 Oct 2022 06:32:54 GMT expires: - '-1' pragma: @@ -547,7 +590,7 @@ interactions: - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585344129944135001?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585344089778815453?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -559,7 +602,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:25:57 GMT + - Mon, 31 Oct 2022 06:33:24 GMT expires: - '-1' pragma: @@ -593,16 +636,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_onTftlkaquZYcxHmM5U8Xvz6w8slFBgA","name":"vm_deploy_onTftlkaquZYcxHmM5U8Xvz6w8slFBgA","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1075454318207940600","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-31T05:25:48.8029966Z","duration":"PT53.7156535S","correlationId":"9e04eb42-4d78-44cb-bd19-bfa0d7a24e72","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_eowwGYVOtpSp7dp9EV1ecRIAfx0r1mSG","name":"vm_deploy_eowwGYVOtpSp7dp9EV1ecRIAfx0r1mSG","type":"Microsoft.Resources/deployments","properties":{"templateHash":"10837077542440252570","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-31T06:32:56.0612422Z","duration":"PT1M3.7656051S","correlationId":"3d840f45-a3e8-480e-93be-007049e5daff","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3605' + - '3607' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:25:57 GMT + - Mon, 31 Oct 2022 06:33:25 GMT expires: - '-1' pragma: @@ -638,16 +681,16 @@ interactions: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus2euap\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"2ff5ab5f-38c8-4c76-be73-ad230da2a00c\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"788a4f52-a7d3-4146-9bd3-4b8ae5f7e359\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": \"18.04.202210180\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm000003_disk1_a9d3790b384a4ff2b8c2aef775f69a6c\",\r\n + \"Linux\",\r\n \"name\": \"vm000003_disk1_c57b08b7739a468f951960ba86cf9f0f\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_a9d3790b384a4ff2b8c2aef775f69a6c\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_c57b08b7739a468f951960ba86cf9f0f\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"zhiyihuang\",\r\n @@ -667,28 +710,28 @@ interactions: [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2022-10-31T05:25:48+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_a9d3790b384a4ff2b8c2aef775f69a6c\",\r\n + \"2022-10-31T06:32:54+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_c57b08b7739a468f951960ba86cf9f0f\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-10-31T05:25:27.9447462+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-10-31T06:32:31.305011+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-10-31T05:25:41.4444616+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-10-31T06:32:49.212316+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n - \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-10-31T05:25:24.3029135+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-10-31T06:32:27.4766233+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '3977' + - '3975' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:25:59 GMT + - Mon, 31 Oct 2022 06:33:28 GMT expires: - '-1' pragma: @@ -705,7 +748,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31995 + - Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31995 status: code: 200 message: OK @@ -730,12 +773,12 @@ interactions: response: body: string: "{\r\n \"name\": \"vm000003VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\",\r\n - \ \"etag\": \"W/\\\"0ca16690-56af-4da9-a7fe-de5119ef40a4\\\"\",\r\n \"tags\": + \ \"etag\": \"W/\\\"aa152743-b43c-4a49-87cb-89369a86a5d5\\\"\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"73736690-4ecd-4c4f-95c3-bb9134f25f4a\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"84086782-6b4c-4dc6-affd-0b39221c5c30\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\",\r\n - \ \"etag\": \"W/\\\"0ca16690-56af-4da9-a7fe-de5119ef40a4\\\"\",\r\n + \ \"etag\": \"W/\\\"aa152743-b43c-4a49-87cb-89369a86a5d5\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -744,8 +787,8 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"3tfbpiaavh0uhnk0lez2r5po4h.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"60-45-BD-71-17-50\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": + \"gjftcjgy5slupcm4wkwhnb1fob.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-22-48-6A-92-60\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\"\r\n @@ -761,9 +804,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:26:00 GMT + - Mon, 31 Oct 2022 06:33:30 GMT etag: - - W/"0ca16690-56af-4da9-a7fe-de5119ef40a4" + - W/"aa152743-b43c-4a49-87cb-89369a86a5d5" expires: - '-1' pragma: @@ -780,7 +823,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - bb1651b4-39dc-4332-beff-44935f3d4fc4 + - 0b2e49b5-df34-403b-8b82-1cc6bf16e9a0 status: code: 200 message: '' @@ -805,10 +848,10 @@ interactions: response: body: string: "{\r\n \"name\": \"vm000003PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP\",\r\n - \ \"etag\": \"W/\\\"b5f85529-044a-448a-beb2-7b0557cec853\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"b26973ab-70f0-4fb4-a636-795135e9fb0c\\\"\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"c7f284d1-55ed-48c2-9c26-47d0a48dd637\",\r\n - \ \"ipAddress\": \"20.102.149.82\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"7fcac07b-cba8-43ff-8214-9b2cb5163e92\",\r\n + \ \"ipAddress\": \"20.102.183.20\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -822,9 +865,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:26:01 GMT + - Mon, 31 Oct 2022 06:33:31 GMT etag: - - W/"b5f85529-044a-448a-beb2-7b0557cec853" + - W/"b26973ab-70f0-4fb4-a636-795135e9fb0c" expires: - '-1' pragma: @@ -841,7 +884,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 062e844e-7e87-48b1-b56a-3623a1de1f74 + - 80a77c33-7b53-48c1-a9c8-02051e0a62a9 status: code: 200 message: '' @@ -868,16 +911,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T05:26:02.5369794+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:26:02.5369794+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T06:33:32.373674+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:33:32.373674+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1000' + - '998' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:26:04 GMT + - Mon, 31 Oct 2022 06:33:33 GMT expires: - '-1' location: @@ -893,7 +936,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -916,16 +959,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T05:26:02.5369794+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:26:02.5369794+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T06:33:32.373674+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:33:32.373674+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1000' + - '998' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:26:06 GMT + - Mon, 31 Oct 2022 06:33:36 GMT expires: - '-1' pragma: @@ -964,16 +1007,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T05:26:02.5369794+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:26:02.5369794+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T06:33:32.373674+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:33:32.373674+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '1012' + - '1010' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:26:08 GMT + - Mon, 31 Oct 2022 06:33:38 GMT expires: - '-1' pragma: @@ -1016,7 +1059,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T05:24:28Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T06:31:21Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1025,7 +1068,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:26:09 GMT + - Mon, 31 Oct 2022 06:33:37 GMT expires: - '-1' pragma: @@ -1063,7 +1106,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-31T05:26:13.3437858+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:26:13.3437858+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-31T06:33:42.6602108+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:33:42.6602108+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1072,7 +1115,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:26:14 GMT + - Mon, 31 Oct 2022 06:33:48 GMT expires: - '-1' location: @@ -1088,7 +1131,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 201 message: Created @@ -1111,7 +1154,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Conformant"},"systemData":{"createdAt":"2022-10-31T05:26:14.2133536+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:26:14.2133536+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"InProgress"},"systemData":{"createdAt":"2022-10-31T06:33:47.9943946+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:33:47.9943946+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache @@ -1120,7 +1163,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:26:17 GMT + - Mon, 31 Oct 2022 06:33:51 GMT expires: - '-1' pragma: @@ -1163,7 +1206,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"Conformant"},"systemData":{"createdAt":"2022-10-31T05:26:18.1355338+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T05:26:18.1355338+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"Conformant"},"systemData":{"createdAt":"2022-10-31T06:33:52.1442718+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:33:52.1442718+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1172,7 +1215,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:26:18 GMT + - Mon, 31 Oct 2022 06:33:53 GMT expires: - '-1' pragma: @@ -1213,16 +1256,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/045cb4d9-b248-4632-9330-d5a85ea3f30b","name":"045cb4d9-b248-4632-9330-d5a85ea3f30b","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:26:12.6077306Z","endTime":"2022-10-31T05:26:14.0684831Z","lastModifiedTime":"2022-10-31T05:26:14.068483Z","duration":"PT1.4607525S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:26:14.3227284+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:26:14.3227284+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/23d5e971-89e0-4363-882d-ea96f6c26df6","name":"23d5e971-89e0-4363-882d-ea96f6c26df6","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:26:24.54815Z","endTime":"2022-10-31T05:26:28.2680414Z","lastModifiedTime":"2022-10-31T05:26:28.2680413Z","duration":"PT3.7198914S","type":"Consistency","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:26:28.7162304+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:26:28.7162304+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/e3faafc3-000c-457b-88fb-d142e95ae856","name":"e3faafc3-000c-457b-88fb-d142e95ae856","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T06:33:48.2120195Z","endTime":"2022-10-31T06:33:52.3303805Z","lastModifiedTime":"2022-10-31T06:33:52.3303804Z","duration":"PT4.118361S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T06:33:52.8398931+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:33:52.8398931+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/65dad083-13ef-4adb-9216-32b98c4dc0dd","name":"65dad083-13ef-4adb-9216-32b98c4dc0dd","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T06:34:00.9236535Z","endTime":"0001-01-01T00:00:00","lastModifiedTime":"2022-10-31T06:34:00.9236536Z","duration":null,"type":"Consistency","status":"InProgress","configurationProfile":null,"resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T06:34:00.9875308+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:34:00.9875308+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '2366' + - '2168' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:26:31 GMT + - Mon, 31 Oct 2022 06:34:05 GMT expires: - '-1' pragma: @@ -1258,10 +1301,10 @@ interactions: User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/045cb4d9-b248-4632-9330-d5a85ea3f30b?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/e3faafc3-000c-457b-88fb-d142e95ae856?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/045cb4d9-b248-4632-9330-d5a85ea3f30b","name":"045cb4d9-b248-4632-9330-d5a85ea3f30b","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:26:12.6077306Z","endTime":"2022-10-31T05:26:14.0684831Z","lastModifiedTime":"2022-10-31T05:26:14.068483Z","duration":"PT1.4607525S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:26:14.3227284+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:26:14.3227284+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/e3faafc3-000c-457b-88fb-d142e95ae856","name":"e3faafc3-000c-457b-88fb-d142e95ae856","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T06:33:48.2120195Z","endTime":"2022-10-31T06:33:52.3303805Z","lastModifiedTime":"2022-10-31T06:33:52.3303804Z","duration":"PT4.118361S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T06:33:52.8398931+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:33:52.8398931+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache @@ -1270,7 +1313,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:26:34 GMT + - Mon, 31 Oct 2022 06:34:08 GMT expires: - '-1' pragma: @@ -1318,7 +1361,7 @@ interactions: content-length: - '0' date: - - Mon, 31 Oct 2022 05:26:37 GMT + - Mon, 31 Oct 2022 06:34:11 GMT expires: - '-1' pragma: @@ -1364,7 +1407,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 05:26:38 GMT + - Mon, 31 Oct 2022 06:34:13 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml index 4384de0af7a..1028b5a68ee 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-28T08:04:03Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T06:31:21Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,13 +28,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 28 Oct 2022 08:04:07 GMT + - Mon, 31 Oct 2022 06:31:26 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -67,16 +69,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-28T08:04:12.0359952+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:12.0359952+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-31T06:31:31.477113+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:31.477113+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '845' + - '843' content-type: - application/json; charset=utf-8 date: - - Fri, 28 Oct 2022 08:04:14 GMT + - Mon, 31 Oct 2022 06:31:33 GMT expires: - '-1' location: @@ -115,16 +117,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-28T08:04:12.0359952+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:12.0359952+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-31T06:31:31.477113+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:31.477113+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '845' + - '843' content-type: - application/json; charset=utf-8 date: - - Fri, 28 Oct 2022 08:04:16 GMT + - Mon, 31 Oct 2022 06:31:35 GMT expires: - '-1' pragma: @@ -135,6 +137,10 @@ interactions: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -159,16 +165,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-28T08:04:12.0359952+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:12.0359952+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-31T06:31:31.477113+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:31.477113+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '857' + - '855' content-type: - application/json; charset=utf-8 date: - - Fri, 28 Oct 2022 08:04:17 GMT + - Mon, 31 Oct 2022 06:31:37 GMT expires: - '-1' pragma: @@ -179,6 +185,10 @@ interactions: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -203,16 +213,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-28T08:04:12.0359952+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:12.0359952+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-31T06:31:31.477113+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:31.477113+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '845' + - '843' content-type: - application/json; charset=utf-8 date: - - Fri, 28 Oct 2022 08:04:19 GMT + - Mon, 31 Oct 2022 06:31:39 GMT expires: - '-1' pragma: @@ -256,16 +266,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2022-10-28T08:04:12.0359952+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:20.9957925+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2022-10-31T06:31:31.477113+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:40.5613674+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '627' + - '626' content-type: - application/json; charset=utf-8 date: - - Fri, 28 Oct 2022 08:04:20 GMT + - Mon, 31 Oct 2022 06:31:40 GMT expires: - '-1' pragma: @@ -291,175 +301,31 @@ interactions: body: null headers: Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automanage configuration-profile version create - Connection: - - keep-alive - ParameterSetName: - - --profile-name -g -n --configuration - User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-28T08:04:03Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '381' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Oct 2022 08:04:21 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": - false}}}' - headers: - Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - automanage configuration-profile version create + - automanage configuration-profile delete Connection: - keep-alive Content-Length: - - '91' - Content-Type: - - application/json - ParameterSetName: - - --profile-name -g -n --configuration - User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-28T08:04:26.9057341+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:26.9057341+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' - headers: - cache-control: - - no-cache - content-length: - - '609' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Oct 2022 08:04:29 GMT - expires: - - '-1' - location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003 - pragma: - - no-cache - request-context: - - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d - server: - - Kestrel - 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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automanage configuration-profile version show - Connection: - - keep-alive - ParameterSetName: - - --profile-name -g -n - User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-28T08:04:26.9057341+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:26.9057341+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' - headers: - cache-control: - - no-cache - content-length: - - '609' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 28 Oct 2022 08:04:29 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d - server: - - Kestrel - 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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automanage configuration-profile version list - Connection: - - keep-alive + - '0' ParameterSetName: - - --profile-name -g + - -n -g -y User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions?api-version=2022-05-04 + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-28T08:04:26.9057341+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:26.9057341+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '' headers: cache-control: - no-cache content-length: - - '621' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Fri, 28 Oct 2022 08:04:32 GMT + - Mon, 31 Oct 2022 06:31:45 GMT expires: - '-1' pragma: @@ -470,12 +336,10 @@ interactions: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' status: code: 200 message: OK @@ -487,39 +351,33 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - automanage configuration-profile version update + - automanage configuration-profile list Connection: - keep-alive ParameterSetName: - - --profile-name -g -n --configuration + - -g User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-28T08:04:26.9057341+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-28T08:04:26.9057341+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"value":[]}' headers: cache-control: - no-cache content-length: - - '609' + - '12' content-type: - application/json; charset=utf-8 date: - - Fri, 28 Oct 2022 08:04:34 GMT + - Mon, 31 Oct 2022 06:31:45 GMT expires: - '-1' pragma: - no-cache - request-context: - - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - Accept-Encoding x-content-type-options: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml index 3f676724e51..23fa8363af3 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml @@ -11,7 +11,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices?api-version=2022-05-04 response: @@ -25,7 +25,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:02 GMT + - Mon, 31 Oct 2022 06:31:27 GMT expires: - '-1' pragma: @@ -59,7 +59,7 @@ interactions: ParameterSetName: - --best-practice-name User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest?api-version=2022-05-04 response: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:03 GMT + - Mon, 31 Oct 2022 06:31:27 GMT expires: - '-1' pragma: @@ -105,7 +105,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals?api-version=2022-05-04 response: @@ -119,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:03 GMT + - Mon, 31 Oct 2022 06:31:27 GMT expires: - '-1' pragma: @@ -151,21 +151,21 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals/default","name":"default","type":"Microsoft.Automanage/servicePrincipals","properties":{"authorizationSet":false,"servicePrincipalId":"9c649736-fc13-44c4-a4af-9947c6a203e4"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals/default","name":"default","type":"Microsoft.Automanage/servicePrincipals","properties":{"authorizationSet":true,"servicePrincipalId":"9c649736-fc13-44c4-a4af-9947c6a203e4"}}' headers: cache-control: - no-cache content-length: - - '282' + - '281' content-type: - application/json; charset=utf-8 date: - - Tue, 25 Oct 2022 06:47:05 GMT + - Mon, 31 Oct 2022 06:31:32 GMT expires: - '-1' pragma: diff --git a/src/service_name.json b/src/service_name.json index c55823a2011..2c72f846891 100644 --- a/src/service_name.json +++ b/src/service_name.json @@ -623,5 +623,10 @@ "Command": "az orbital", "AzureServiceName": "Azure Orbital", "URL": "https://docs.microsoft.com/en-us/azure/orbital/" + }, + { + "Command": "az automanage", + "AzureServiceName": "Azure Automanage", + "URL": "https://learn.microsoft.com/en-us/azure/automanage/" } ] From f5af4596cc351bb513d7b00eaaa48526017f7758 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Mon, 31 Oct 2022 15:28:58 +0800 Subject: [PATCH 20/31] vm create --generate-ssh-keys --- ...ation_profile_assignment_vm_scenarios.yaml | 235 +++++++----------- .../tests/latest/test_automanage.py | 2 +- 2 files changed, 95 insertions(+), 142 deletions(-) diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml index 419c423be1a..4b79678c59e 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T06:31:21Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T07:25:56Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:28 GMT + - Mon, 31 Oct 2022 07:25:59 GMT expires: - '-1' pragma: @@ -66,7 +66,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-31T06:31:32.8997014+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:32.8997014+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-31T07:26:06.2698159+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T07:26:06.2698159+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:34 GMT + - Mon, 31 Oct 2022 07:26:07 GMT expires: - '-1' location: @@ -91,7 +91,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 201 message: Created @@ -107,7 +107,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image + - -n -g --image --generate-ssh-keys User-Agent: - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) @@ -115,7 +115,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T06:31:21Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T07:25:56Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:36 GMT + - Mon, 31 Oct 2022 07:26:09 GMT expires: - '-1' pragma: @@ -215,13 +215,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:36 GMT + - Mon, 31 Oct 2022 07:26:09 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Mon, 31 Oct 2022 06:36:36 GMT + - Mon, 31 Oct 2022 07:31:09 GMT source-age: - - '213' + - '69' strict-transport-security: - max-age=31536000 vary: @@ -231,19 +231,19 @@ interactions: x-cache: - HIT x-cache-hits: - - '20' + - '1' x-content-type-options: - nosniff x-fastly-request-id: - - 62f9cf0352981c85e21826a404b14674fc13e5c2 + - de908ba4cad6aa3f2a65a12a90a872de4f6b95fe x-frame-options: - deny x-github-request-id: - 0866:662F:A530D:1BBE13:635DA0E3 x-served-by: - - cache-qpg1245-QPG + - cache-qpg1262-QPG x-timer: - - S1667197897.592773,VS0,VE0 + - S1667201170.966877,VS0,VE1 x-xss-protection: - 1; mode=block status: @@ -261,7 +261,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image + - -n -g --image --generate-ssh-keys User-Agent: - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) @@ -280,7 +280,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:39 GMT + - Mon, 31 Oct 2022 07:26:12 GMT expires: - '-1' pragma: @@ -313,7 +313,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image + - -n -g --image --generate-ssh-keys User-Agent: - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) @@ -342,7 +342,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:41 GMT + - Mon, 31 Oct 2022 07:26:14 GMT expires: - '-1' pragma: @@ -375,7 +375,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image + - -n -g --image --generate-ssh-keys User-Agent: - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19044-SP0) @@ -392,7 +392,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:42 GMT + - Mon, 31 Oct 2022 07:26:15 GMT expires: - '-1' pragma: @@ -454,7 +454,7 @@ interactions: Content-Type: - application/json ParameterSetName: - - -n -g --image + - -n -g --image --generate-ssh-keys User-Agent: - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) @@ -462,10 +462,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_eowwGYVOtpSp7dp9EV1ecRIAfx0r1mSG","name":"vm_deploy_eowwGYVOtpSp7dp9EV1ecRIAfx0r1mSG","type":"Microsoft.Resources/deployments","properties":{"templateHash":"10837077542440252570","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-31T06:31:52.2962757Z","duration":"PT0.0006386S","correlationId":"3d840f45-a3e8-480e-93be-007049e5daff","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_uMu52MlqjK3wwVq3snsX76ONU9n4AVSW","name":"vm_deploy_uMu52MlqjK3wwVq3snsX76ONU9n4AVSW","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16242899102269268678","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-31T07:26:22.1270519Z","duration":"PT0.0008964S","correlationId":"1c3a5f8f-f0f9-42df-8921-1c26e1b5302c","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_eowwGYVOtpSp7dp9EV1ecRIAfx0r1mSG/operationStatuses/08585344089778815453?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_uMu52MlqjK3wwVq3snsX76ONU9n4AVSW/operationStatuses/08585344057062992726?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -473,7 +473,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:53 GMT + - Mon, 31 Oct 2022 07:26:23 GMT expires: - '-1' pragma: @@ -483,7 +483,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -499,55 +499,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image - User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585344089778815453?api-version=2021-04-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 31 Oct 2022 06:32:24 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -n -g --image + - -n -g --image --generate-ssh-keys User-Agent: - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585344089778815453?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585344057062992726?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -559,7 +516,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:32:54 GMT + - Mon, 31 Oct 2022 07:26:54 GMT expires: - '-1' pragma: @@ -585,12 +542,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image + - -n -g --image --generate-ssh-keys User-Agent: - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585344089778815453?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585344057062992726?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -602,7 +559,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:33:24 GMT + - Mon, 31 Oct 2022 07:27:25 GMT expires: - '-1' pragma: @@ -628,7 +585,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image + - -n -g --image --generate-ssh-keys User-Agent: - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) @@ -636,16 +593,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_eowwGYVOtpSp7dp9EV1ecRIAfx0r1mSG","name":"vm_deploy_eowwGYVOtpSp7dp9EV1ecRIAfx0r1mSG","type":"Microsoft.Resources/deployments","properties":{"templateHash":"10837077542440252570","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-31T06:32:56.0612422Z","duration":"PT1M3.7656051S","correlationId":"3d840f45-a3e8-480e-93be-007049e5daff","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_uMu52MlqjK3wwVq3snsX76ONU9n4AVSW","name":"vm_deploy_uMu52MlqjK3wwVq3snsX76ONU9n4AVSW","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16242899102269268678","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-31T07:27:19.5355377Z","duration":"PT57.4093822S","correlationId":"1c3a5f8f-f0f9-42df-8921-1c26e1b5302c","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3607' + - '3606' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:33:25 GMT + - Mon, 31 Oct 2022 07:27:25 GMT expires: - '-1' pragma: @@ -671,7 +628,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image + - -n -g --image --generate-ssh-keys User-Agent: - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) @@ -681,16 +638,16 @@ interactions: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus2euap\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"788a4f52-a7d3-4146-9bd3-4b8ae5f7e359\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"b712566b-65f9-408c-bbb7-5544ec8a2c9c\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": \"18.04.202210180\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm000003_disk1_c57b08b7739a468f951960ba86cf9f0f\",\r\n + \"Linux\",\r\n \"name\": \"vm000003_disk1_0a5b857147b74291b51b32b52d4600a5\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_c57b08b7739a468f951960ba86cf9f0f\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_0a5b857147b74291b51b32b52d4600a5\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"zhiyihuang\",\r\n @@ -710,28 +667,28 @@ interactions: [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2022-10-31T06:32:54+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_c57b08b7739a468f951960ba86cf9f0f\",\r\n + \"2022-10-31T07:27:20+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_0a5b857147b74291b51b32b52d4600a5\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-10-31T06:32:31.305011+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-10-31T07:26:58.816137+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-10-31T06:32:49.212316+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-10-31T07:27:12.3948771+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n - \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-10-31T06:32:27.4766233+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-10-31T07:26:55.65974+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '3975' + - '3974' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:33:28 GMT + - Mon, 31 Oct 2022 07:27:27 GMT expires: - '-1' pragma: @@ -748,7 +705,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31995 + - Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31996 status: code: 200 message: OK @@ -764,7 +721,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image + - -n -g --image --generate-ssh-keys User-Agent: - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19044-SP0) @@ -773,12 +730,12 @@ interactions: response: body: string: "{\r\n \"name\": \"vm000003VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\",\r\n - \ \"etag\": \"W/\\\"aa152743-b43c-4a49-87cb-89369a86a5d5\\\"\",\r\n \"tags\": + \ \"etag\": \"W/\\\"3a6f86bb-5346-4bd8-9f95-a0187c75f1b4\\\"\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"84086782-6b4c-4dc6-affd-0b39221c5c30\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"e0a5bb49-5ff5-408a-afe0-0abe25486b34\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\",\r\n - \ \"etag\": \"W/\\\"aa152743-b43c-4a49-87cb-89369a86a5d5\\\"\",\r\n + \ \"etag\": \"W/\\\"3a6f86bb-5346-4bd8-9f95-a0187c75f1b4\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -787,8 +744,8 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"gjftcjgy5slupcm4wkwhnb1fob.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-22-48-6A-92-60\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": + \"d2o0bcxxa2aulls3dfytnv0led.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"60-45-BD-74-0F-2E\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\"\r\n @@ -804,9 +761,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:33:30 GMT + - Mon, 31 Oct 2022 07:27:28 GMT etag: - - W/"aa152743-b43c-4a49-87cb-89369a86a5d5" + - W/"3a6f86bb-5346-4bd8-9f95-a0187c75f1b4" expires: - '-1' pragma: @@ -823,7 +780,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 0b2e49b5-df34-403b-8b82-1cc6bf16e9a0 + - 20e7415c-63b1-4811-b025-3a59ae848212 status: code: 200 message: '' @@ -839,7 +796,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --image + - -n -g --image --generate-ssh-keys User-Agent: - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19044-SP0) @@ -848,11 +805,11 @@ interactions: response: body: string: "{\r\n \"name\": \"vm000003PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP\",\r\n - \ \"etag\": \"W/\\\"b26973ab-70f0-4fb4-a636-795135e9fb0c\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"27101d07-5e27-4c8e-8f45-c6002be41c7d\\\"\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"7fcac07b-cba8-43ff-8214-9b2cb5163e92\",\r\n - \ \"ipAddress\": \"20.102.183.20\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n - \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": + \"Succeeded\",\r\n \"resourceGuid\": \"539d1f39-b729-40d4-821b-00077e2f579f\",\r\n + \ \"ipAddress\": \"20.102.174.234\",\r\n \"publicIPAddressVersion\": + \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \ \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n @@ -861,13 +818,13 @@ interactions: cache-control: - no-cache content-length: - - '995' + - '996' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:33:31 GMT + - Mon, 31 Oct 2022 07:27:28 GMT etag: - - W/"b26973ab-70f0-4fb4-a636-795135e9fb0c" + - W/"27101d07-5e27-4c8e-8f45-c6002be41c7d" expires: - '-1' pragma: @@ -884,7 +841,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 80a77c33-7b53-48c1-a9c8-02051e0a62a9 + - a8954b3e-8ca2-4910-b9a2-193072ed2a22 status: code: 200 message: '' @@ -911,16 +868,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T06:33:32.373674+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:33:32.373674+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T07:27:29.6799042+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T07:27:29.6799042+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '998' + - '1000' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:33:33 GMT + - Mon, 31 Oct 2022 07:27:32 GMT expires: - '-1' location: @@ -959,16 +916,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T06:33:32.373674+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:33:32.373674+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T07:27:29.6799042+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T07:27:29.6799042+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '998' + - '1000' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:33:36 GMT + - Mon, 31 Oct 2022 07:27:34 GMT expires: - '-1' pragma: @@ -1007,16 +964,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T06:33:32.373674+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:33:32.373674+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T07:27:29.6799042+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T07:27:29.6799042+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '1010' + - '1012' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:33:38 GMT + - Mon, 31 Oct 2022 07:27:35 GMT expires: - '-1' pragma: @@ -1059,7 +1016,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T06:31:21Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T07:25:56Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1068,7 +1025,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:33:37 GMT + - Mon, 31 Oct 2022 07:27:35 GMT expires: - '-1' pragma: @@ -1106,7 +1063,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-31T06:33:42.6602108+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:33:42.6602108+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-31T07:27:41.5411699+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T07:27:41.5411699+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1115,7 +1072,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:33:48 GMT + - Mon, 31 Oct 2022 07:27:43 GMT expires: - '-1' location: @@ -1131,7 +1088,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -1154,7 +1111,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"InProgress"},"systemData":{"createdAt":"2022-10-31T06:33:47.9943946+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:33:47.9943946+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Conformant"},"systemData":{"createdAt":"2022-10-31T07:27:45.3757165+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T07:27:45.3757165+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache @@ -1163,7 +1120,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:33:51 GMT + - Mon, 31 Oct 2022 07:27:45 GMT expires: - '-1' pragma: @@ -1206,7 +1163,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"Conformant"},"systemData":{"createdAt":"2022-10-31T06:33:52.1442718+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:33:52.1442718+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"Conformant"},"systemData":{"createdAt":"2022-10-31T07:27:46.4230973+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T07:27:46.4230973+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1215,7 +1172,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:33:53 GMT + - Mon, 31 Oct 2022 07:27:47 GMT expires: - '-1' pragma: @@ -1233,7 +1190,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -1256,16 +1213,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/e3faafc3-000c-457b-88fb-d142e95ae856","name":"e3faafc3-000c-457b-88fb-d142e95ae856","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T06:33:48.2120195Z","endTime":"2022-10-31T06:33:52.3303805Z","lastModifiedTime":"2022-10-31T06:33:52.3303804Z","duration":"PT4.118361S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T06:33:52.8398931+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:33:52.8398931+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/65dad083-13ef-4adb-9216-32b98c4dc0dd","name":"65dad083-13ef-4adb-9216-32b98c4dc0dd","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T06:34:00.9236535Z","endTime":"0001-01-01T00:00:00","lastModifiedTime":"2022-10-31T06:34:00.9236536Z","duration":null,"type":"Consistency","status":"InProgress","configurationProfile":null,"resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T06:34:00.9875308+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:34:00.9875308+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/3e1d9051-4841-46cc-9b6a-d4b67d21c2b9","name":"3e1d9051-4841-46cc-9b6a-d4b67d21c2b9","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T07:27:40.289347Z","endTime":"2022-10-31T07:27:44.956362Z","lastModifiedTime":"2022-10-31T07:27:44.9563618Z","duration":"PT4.667015S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T07:27:45.6731874+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T07:27:45.6731874+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '2168' + - '1185' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:34:05 GMT + - Mon, 31 Oct 2022 07:28:13 GMT expires: - '-1' pragma: @@ -1301,19 +1258,19 @@ interactions: User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/e3faafc3-000c-457b-88fb-d142e95ae856?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/3e1d9051-4841-46cc-9b6a-d4b67d21c2b9?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/e3faafc3-000c-457b-88fb-d142e95ae856","name":"e3faafc3-000c-457b-88fb-d142e95ae856","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T06:33:48.2120195Z","endTime":"2022-10-31T06:33:52.3303805Z","lastModifiedTime":"2022-10-31T06:33:52.3303804Z","duration":"PT4.118361S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T06:33:52.8398931+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:33:52.8398931+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/3e1d9051-4841-46cc-9b6a-d4b67d21c2b9","name":"3e1d9051-4841-46cc-9b6a-d4b67d21c2b9","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T07:27:40.289347Z","endTime":"2022-10-31T07:27:44.956362Z","lastModifiedTime":"2022-10-31T07:27:44.9563618Z","duration":"PT4.667015S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T07:27:45.6731874+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T07:27:45.6731874+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1175' + - '1173' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:34:08 GMT + - Mon, 31 Oct 2022 07:28:15 GMT expires: - '-1' pragma: @@ -1324,10 +1281,6 @@ interactions: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff status: @@ -1361,7 +1314,7 @@ interactions: content-length: - '0' date: - - Mon, 31 Oct 2022 06:34:11 GMT + - Mon, 31 Oct 2022 07:28:17 GMT expires: - '-1' pragma: @@ -1407,7 +1360,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:34:13 GMT + - Mon, 31 Oct 2022 07:28:19 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index f15998bdca1..f79deec3509 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -88,7 +88,7 @@ def test_automanage_configuration_profile_assignment_vm_scenarios(self): profile_id = self.cmd('az automanage configuration-profile create -n {profile_name} -g {rg} ' '--configuration {{\\\"Antimalware/Enable\\\":true}}').get_output_in_json()["id"] self.kwargs.update({'profile_id': profile_id}) - vm_id = self.cmd('az vm create -n {vm_name} -g {rg} --image UbuntuLTS').get_output_in_json()["id"] + vm_id = self.cmd('az vm create -n {vm_name} -g {rg} --image UbuntuLTS --generate-ssh-keys').get_output_in_json()["id"] self.cmd('az automanage configuration-profile-assignment vm create -n default -g {rg} ' '--vm-name {vm_name} --configuration-profile {profile_id}') self.cmd('az automanage configuration-profile-assignment vm show -n default -g {rg} --vm-name {vm_name}', From 886bd7db5f42ebddda2209f47b88ac06adb8e9a9 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Mon, 31 Oct 2022 16:21:54 +0800 Subject: [PATCH 21/31] make test record-only --- .github/CODEOWNERS | 2 ++ src/automanage/azext_automanage/tests/latest/test_automanage.py | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8c8e419cd18..56a883a02a5 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -251,3 +251,5 @@ /src/reservation/ @gaoyp830 @rkapso @msft-adrianma @sornaks @juhee0202 /src/scenario-guide/ @zhoxing-ms @ReaNAiveD + +/src/automanage/ @calvinhzy diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index f79deec3509..0e1f671600a 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -152,6 +152,7 @@ def test_automanage_configuration_profile_assignment_arc_scenarios(self): '{arc_name} -y') self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) + @record_only() @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.profileassignment.cluster.') def test_automanage_configuration_profile_assignment_cluster_scenarios(self): self.kwargs.update({ From b00b15956c22c326aa460ee1a0cf107fad6f6918 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Tue, 1 Nov 2022 10:59:44 +0800 Subject: [PATCH 22/31] make test record-only --- ..._profile_assignment_cluster_scenarios.yaml | 229 +++++------------- .../tests/latest/test_automanage.py | 11 +- 2 files changed, 74 insertions(+), 166 deletions(-) diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml index bea7c8eb3d9..7a416e786ae 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml @@ -16,19 +16,19 @@ interactions: - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgtestautomanage?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T06:31:21Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage","name":"rgtestautomanage","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '391' + - '234' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:26 GMT + - Tue, 01 Nov 2022 02:14:29 GMT expires: - '-1' pragma: @@ -63,23 +63,23 @@ interactions: User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-31T06:31:31.4750528+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:31.4750528+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","name":"profile000001","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-11-01T02:14:34.6003927+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-01T02:14:34.6003927+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '606' + - '568' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:33 GMT + - Tue, 01 Nov 2022 02:14:36 GMT expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002 + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001 pragma: - no-cache request-context: @@ -96,109 +96,7 @@ interactions: code: 201 message: Created - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - stack-hci cluster create - Connection: - - keep-alive - ParameterSetName: - - --cluster-name -g - User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T06:31:21Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '391' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 31 Oct 2022 06:31:34 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus2euap"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - stack-hci cluster create - Connection: - - keep-alive - Content-Length: - - '27' - Content-Type: - - application/json - ParameterSetName: - - --cluster-name -g - User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-mgmt-azurestackhci/1.0.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1?api-version=2022-05-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1","name":"cluster1","type":"microsoft.azurestackhci/clusters","location":"eastus2euap","systemData":{"createdBy":"zhiyihuang@microsoft.com","createdByType":"User","createdAt":"2022-10-31T06:31:37.7566045Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-10-31T06:31:37.7566045Z"},"properties":{"provisioningState":"Succeeded","status":"NotYetRegistered","cloudId":"615a345e-8ed1-422e-bd0b-e0ff80df917b","desiredProperties":{"windowsServerSubscription":"Disabled","diagnosticLevel":"Basic"},"trialDaysRemaining":60,"billingModel":"Trial","serviceEndpoint":"https://dp.stackhci.azure.com/eastus2euap/"}}' - headers: - cache-control: - - no-cache - content-length: - - '828' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 31 Oct 2022 06:31:40 GMT - etag: - - '"01007792-0000-3400-0000-635f6bcb0000"' - expires: - - '-1' - mise-correlation-id: - - 428e258e-63fa-4881-9b8f-fdd220058191 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"properties": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002"}}' + body: '{"properties": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001"}}' headers: Accept: - application/json @@ -209,7 +107,7 @@ interactions: Connection: - keep-alive Content-Length: - - '232' + - '194' Content-Type: - application/json ParameterSetName: @@ -217,23 +115,21 @@ interactions: User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T06:31:41.534827+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:41.534827+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"Error"},"systemData":{"createdAt":"2022-11-01T02:14:37.649469+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-01T02:14:37.649469+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1011' + - '899' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:44 GMT + - Tue, 01 Nov 2022 02:14:39 GMT expires: - '-1' - location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default pragma: - no-cache request-context: @@ -242,13 +138,17 @@ interactions: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -265,19 +165,19 @@ interactions: User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"InProgress"},"systemData":{"createdAt":"2022-10-31T06:31:46.495453+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:31:46.495453+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"Error"},"systemData":{"createdAt":"2022-11-01T02:14:37.649469+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-01T02:14:37.649469+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1056' + - '899' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:46 GMT + - Tue, 01 Nov 2022 02:14:42 GMT expires: - '-1' pragma: @@ -313,19 +213,19 @@ interactions: User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2022-10-31T06:31:48.230468+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:31:48.230468+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"Error"},"systemData":{"createdAt":"2022-11-01T02:14:37.649469+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-01T02:14:37.649469+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '1063' + - '911' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:47 GMT + - Tue, 01 Nov 2022 02:14:44 GMT expires: - '-1' pragma: @@ -365,19 +265,19 @@ interactions: - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgtestautomanage?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T06:31:21Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage","name":"rgtestautomanage","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '391' + - '234' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:48 GMT + - Tue, 01 Nov 2022 02:14:45 GMT expires: - '-1' pragma: @@ -412,23 +312,23 @@ interactions: User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","name":"profile000003","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-31T06:31:53.9151252+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:53.9151252+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-11-01T02:14:50.3879812+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-01T02:14:50.3879812+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '607' + - '569' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:55 GMT + - Tue, 01 Nov 2022 02:14:52 GMT expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003 + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002 pragma: - no-cache request-context: @@ -460,19 +360,19 @@ interactions: User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2022-10-31T06:31:48.230468+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:31:48.230468+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"Error"},"systemData":{"createdAt":"2022-11-01T02:14:37.649469+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-01T02:14:37.649469+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1051' + - '899' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:58 GMT + - Tue, 01 Nov 2022 02:14:54 GMT expires: - '-1' pragma: @@ -493,7 +393,7 @@ interactions: code: 200 message: OK - request: - body: '{"properties": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003"}}' + body: '{"properties": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002"}}' headers: Accept: - application/json @@ -504,7 +404,7 @@ interactions: Connection: - keep-alive Content-Length: - - '232' + - '194' Content-Type: - application/json ParameterSetName: @@ -512,19 +412,19 @@ interactions: User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","status":"Error"},"systemData":{"createdAt":"2022-10-31T06:31:59.3172504+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:59.3172504+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2022-11-01T02:14:54.8657221+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-01T02:14:54.8657221+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1015' + - '901' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:59 GMT + - Tue, 01 Nov 2022 02:14:55 GMT expires: - '-1' pragma: @@ -542,7 +442,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -562,20 +462,23 @@ interactions: User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/c78babe5-975b-43a7-8cc7-5c54f30c8630","name":"c78babe5-975b-43a7-8cc7-5c54f30c8630","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T06:31:46.6750077Z","endTime":"2022-10-31T06:31:47.962032Z","lastModifiedTime":"2022-10-31T06:31:47.9620318Z","duration":"PT1.2870243S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T06:31:48.4837804+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:31:48.4837804+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/0be38054-8c25-4f9e-9bb5-60258c9178d9","name":"0be38054-8c25-4f9e-9bb5-60258c9178d9","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-01T02:12:50.4556879Z","endTime":"2022-11-01T02:12:51.0938884Z","lastModifiedTime":"2022-11-01T02:12:51.0938882Z","duration":"PT0.6382005S","type":"Consistency","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-01T02:12:51.303787+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-01T02:12:51.303787+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5b8bceb4-bda1-45d3-be68-8a572e217d77","name":"5b8bceb4-bda1-45d3-be68-8a572e217d77","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-01T02:14:55.8983725Z","endTime":"2022-11-01T02:14:57.2769793Z","lastModifiedTime":"2022-11-01T02:14:57.2769792Z","duration":"PT1.3786068S","type":"Consistency","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-01T02:14:57.8618955+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-01T02:14:57.8618955+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/9e1c806e-058e-4b10-bc4e-0b0b76b7d86a","name":"9e1c806e-058e-4b10-bc4e-0b0b76b7d86a","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-01T02:11:07.5196026Z","endTime":"2022-11-01T02:11:12.4285318Z","lastModifiedTime":"2022-11-01T02:11:12.4285317Z","duration":"PT4.9089292S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-01T02:11:12.7434062+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-01T02:11:12.7434062+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/fc574dbd-32a9-4e2f-8e06-a2c526eb2bd4","name":"fc574dbd-32a9-4e2f-8e06-a2c526eb2bd4","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-01T02:11:17.1933223Z","endTime":"2022-11-01T02:11:17.7524386Z","lastModifiedTime":"2022-11-01T02:11:17.7524385Z","duration":"PT0.5591163S","type":"Consistency","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-01T02:11:18.0818039+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-01T02:11:18.0818039+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '1167' + - '4497' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:32:11 GMT + - Tue, 01 Nov 2022 02:15:16 GMT expires: - '-1' pragma: @@ -611,20 +514,20 @@ interactions: User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/c78babe5-975b-43a7-8cc7-5c54f30c8630?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/0be38054-8c25-4f9e-9bb5-60258c9178d9?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/c78babe5-975b-43a7-8cc7-5c54f30c8630","name":"c78babe5-975b-43a7-8cc7-5c54f30c8630","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T06:31:46.6750077Z","endTime":"2022-10-31T06:31:47.962032Z","lastModifiedTime":"2022-10-31T06:31:47.9620318Z","duration":"PT1.2870243S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T06:31:48.4837804+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:31:48.4837804+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/0be38054-8c25-4f9e-9bb5-60258c9178d9","name":"0be38054-8c25-4f9e-9bb5-60258c9178d9","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-01T02:12:50.4556879Z","endTime":"2022-11-01T02:12:51.0938884Z","lastModifiedTime":"2022-11-01T02:12:51.0938882Z","duration":"PT0.6382005S","type":"Consistency","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-01T02:12:51.303787+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-01T02:12:51.303787+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1155' + - '1120' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:32:14 GMT + - Tue, 01 Nov 2022 02:15:18 GMT expires: - '-1' pragma: @@ -662,7 +565,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: string: '' @@ -672,7 +575,7 @@ interactions: content-length: - '0' date: - - Mon, 31 Oct 2022 06:32:15 GMT + - Tue, 01 Nov 2022 02:15:22 GMT expires: - '-1' pragma: @@ -706,7 +609,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: string: '{"value":[]}' @@ -718,7 +621,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:32:17 GMT + - Tue, 01 Nov 2022 02:15:23 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index 0e1f671600a..4f10432131e 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -116,6 +116,9 @@ def test_automanage_configuration_profile_assignment_vm_scenarios(self): self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) @record_only() + # need to first run: + # az group create -l eastus2euap -g rgtestautomanage + # Connect-AzConnectedMachine -ResourceGroupName rgtestautomanage -Name arc1 -Location eastus2euap def test_automanage_configuration_profile_assignment_arc_scenarios(self): self.kwargs.update({ 'profile_name': self.create_random_name(prefix='profile', length=24), @@ -153,10 +156,13 @@ def test_automanage_configuration_profile_assignment_arc_scenarios(self): self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) @record_only() - @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.profileassignment.cluster.') + # need to first run: + # az group create -l eastus2euap -g rgtestautomanage + # az stack-hci cluster create --cluster-name cluster1 -g rgtestautomanage def test_automanage_configuration_profile_assignment_cluster_scenarios(self): self.kwargs.update({ 'profile_name': self.create_random_name(prefix='profile', length=24), + 'rg': 'rgtestautomanage', 'cluster_name': 'cluster1', 'profile_name_2': self.create_random_name(prefix='profile', length=24), }) @@ -164,7 +170,6 @@ def test_automanage_configuration_profile_assignment_cluster_scenarios(self): '--configuration {{\\\"Antimalware/Enable\\\":true}}').get_output_in_json()["id"] self.kwargs.update({'profile_id': profile_id}) - self.cmd('az stack-hci cluster create --cluster-name {cluster_name} -g {rg}') self.cmd('az automanage configuration-profile-assignment cluster create -n default -g {rg} ' '--cluster-name {cluster_name} --configuration-profile {profile_id}') self.cmd('az automanage configuration-profile-assignment cluster show -n default -g {rg} ' @@ -180,7 +185,7 @@ def test_automanage_configuration_profile_assignment_cluster_scenarios(self): '--cluster-name {cluster_name} --configuration-profile {profile_id_2}', checks=[JMESPathCheck('properties.configurationProfile', profile_id_2)]) - sleep(10) + sleep(20) report_name = self.cmd('az automanage configuration-profile-assignment cluster report list --assignment-name ' 'default -g {rg} --cluster-name {cluster_name}').get_output_in_json()[0]["name"] self.kwargs.update({'report_name': report_name}) From f2e091a3fa7a0ff9a116fa8fa2aa15a0c85d5e70 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Fri, 18 Nov 2022 15:19:11 +0800 Subject: [PATCH 23/31] rerun aazdev and rerun test --- .../best_practice/version/__cmd_group.py | 3 + .../automanage/best_practice/version/_list.py | 3 + .../automanage/best_practice/version/_show.py | 3 + .../arc/report/_list.py | 1 - .../arc/report/_show.py | 1 - .../cluster/report/_list.py | 1 - .../cluster/report/_show.py | 1 - .../vm/report/_list.py | 1 - .../vm/report/_show.py | 1 - .../azext_automanage/azext_metadata.json | 2 +- ...tion_profile_assignment_arc_scenarios.yaml | 111 +++--- ..._profile_assignment_cluster_scenarios.yaml | 259 +++++++++----- ...ation_profile_assignment_vm_scenarios.yaml | 328 +++++++++++------- ...anage_configuration_profile_scenarios.yaml | 58 ++-- .../recordings/test_automanage_scenarios.yaml | 112 +++++- .../tests/latest/test_automanage.py | 26 +- 16 files changed, 598 insertions(+), 313 deletions(-) diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py index cb75619b0af..903321f1080 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py @@ -11,6 +11,9 @@ from azure.cli.core.aaz import * +@register_command_group( + "automanage best-practice version", +) class __CMDGroup(AAZCommandGroup): """Manage Automanage best practice version """ diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py index 8dead763d52..b032c4ab174 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py @@ -11,6 +11,9 @@ from azure.cli.core.aaz import * +@register_command( + "automanage best-practice version list", +) class List(AAZCommand): """List a list of Automanage best practices versions """ diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py index 92aa0e5cbf1..335bf748b8f 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py @@ -11,6 +11,9 @@ from azure.cli.core.aaz import * +@register_command( + "automanage best-practice version show", +) class Show(AAZCommand): """Get information about a Automanage best practice version """ diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_list.py index 5264420211d..b26c40f50d0 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_list.py @@ -13,7 +13,6 @@ @register_command( "automanage configuration-profile-assignment arc report list", - confirmation="", ) class List(AAZCommand): """List a list of reports within a given ARC machine configuration profile assignment diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_show.py index 7bd062e5b8f..b2c95994a1e 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_show.py @@ -13,7 +13,6 @@ @register_command( "automanage configuration-profile-assignment arc report show", - confirmation="", ) class Show(AAZCommand): """Get information about a report associated with an ARC machine configuration profile assignment run diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py index 1b85a7d5d33..87b7bced4e3 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py @@ -13,7 +13,6 @@ @register_command( "automanage configuration-profile-assignment cluster report list", - confirmation="", ) class List(AAZCommand): """List a list of reports within a given AzureStackHCI cluster configuration profile assignment diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py index 438ac90ca11..5c0ee85a3da 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py @@ -13,7 +13,6 @@ @register_command( "automanage configuration-profile-assignment cluster report show", - confirmation="", ) class Show(AAZCommand): """Get information about a report associated with a AzureStackHCI cluster configuration profile assignment run diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py index ef2ae7ba85d..ae73cfe1804 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py @@ -13,7 +13,6 @@ @register_command( "automanage configuration-profile-assignment vm report list", - confirmation="", ) class List(AAZCommand): """List a list of reports within a given VM configuration profile assignment diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py index 69932fdcff7..3747022bbd1 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py @@ -13,7 +13,6 @@ @register_command( "automanage configuration-profile-assignment vm report show", - confirmation="", ) class Show(AAZCommand): """Get information about a report associated with a VM configuration profile assignment run diff --git a/src/automanage/azext_automanage/azext_metadata.json b/src/automanage/azext_automanage/azext_metadata.json index 0a5db3c35db..47d964781bf 100644 --- a/src/automanage/azext_automanage/azext_metadata.json +++ b/src/automanage/azext_automanage/azext_metadata.json @@ -1,4 +1,4 @@ { "azext.isPreview": true, - "azext.minCliCoreVersion": "2.41.0" + "azext.minCliCoreVersion": "2.42.0" } \ No newline at end of file diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml index d457a12fab7..00705713041 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml @@ -13,8 +13,8 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgtestautomanage?api-version=2021-04-01 response: @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:54:38 GMT + - Fri, 18 Nov 2022 06:58:22 GMT expires: - '-1' pragma: @@ -61,21 +61,21 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","name":"profile000001","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-31T06:54:42.486196+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:54:42.486196+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","name":"profile000001","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-11-18T06:58:29.5019546+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:58:29.5019546+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '566' + - '568' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:54:44 GMT + - Fri, 18 Nov 2022 06:58:31 GMT expires: - '-1' location: @@ -113,25 +113,23 @@ interactions: ParameterSetName: - -n -g --machine-name --configuration-profile User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-10-31T06:54:45.0174341+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:54:45.0174341+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-11-18T06:58:32.7745211+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:58:32.7745211+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '891' + - '901' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:54:46 GMT + - Fri, 18 Nov 2022 06:58:35 GMT expires: - '-1' - location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default pragma: - no-cache request-context: @@ -140,13 +138,17 @@ interactions: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -161,21 +163,21 @@ interactions: ParameterSetName: - -n -g --machine-name User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-10-31T06:54:45.0174341+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:54:45.0174341+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-11-18T06:58:32.7745211+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:58:32.7745211+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '891' + - '901' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:54:48 GMT + - Fri, 18 Nov 2022 06:58:38 GMT expires: - '-1' pragma: @@ -209,21 +211,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"InProgress"},"systemData":{"createdAt":"2022-10-31T06:54:50.4346842+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:54:50.4346842+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-11-18T06:58:32.7745211+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:58:32.7745211+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '948' + - '913' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:54:50 GMT + - Fri, 18 Nov 2022 06:58:39 GMT expires: - '-1' pragma: @@ -260,8 +262,8 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgtestautomanage?api-version=2021-04-01 response: @@ -275,7 +277,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:54:50 GMT + - Fri, 18 Nov 2022 06:58:40 GMT expires: - '-1' pragma: @@ -308,12 +310,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-31T06:55:00.6149205+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:55:00.6149205+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-11-18T06:58:46.9530911+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:58:46.9530911+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -322,7 +324,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:55:01 GMT + - Fri, 18 Nov 2022 06:58:48 GMT expires: - '-1' location: @@ -356,21 +358,21 @@ interactions: ParameterSetName: - --n -g --machine-name --configuration-profile User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-10-31T06:54:51.9978766+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:54:51.9978766+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-11-18T06:58:48.434161+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:58:48.434161+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '939' + - '937' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:55:05 GMT + - Fri, 18 Nov 2022 06:58:50 GMT expires: - '-1' pragma: @@ -408,12 +410,12 @@ interactions: ParameterSetName: - --n -g --machine-name --configuration-profile User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"NonConformant"},"systemData":{"createdAt":"2022-10-31T06:55:06.0424209+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:55:06.0424209+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"NonConformant"},"systemData":{"createdAt":"2022-11-18T06:58:51.4613214+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:58:51.4613214+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -422,7 +424,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:55:07 GMT + - Fri, 18 Nov 2022 06:58:52 GMT expires: - '-1' pragma: @@ -458,25 +460,24 @@ interactions: ParameterSetName: - --assignment-name -g --machine-name User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/98f44c6f-7f23-462a-8d34-d2bab63f5e6b","name":"98f44c6f-7f23-462a-8d34-d2bab63f5e6b","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:33:58.7029002Z","endTime":"2022-10-31T05:34:00.3371492Z","lastModifiedTime":"2022-10-31T05:34:00.3371489Z","duration":"PT1.634249S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilesvsvdm7d54mgjm76b","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:34:00.6554125+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:34:00.6554125+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/8499e391-c0a2-4dc6-8d14-977d91eb8e5c","name":"8499e391-c0a2-4dc6-8d14-977d91eb8e5c","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:47:03.0403012Z","endTime":"2022-10-31T05:47:04.3284924Z","lastModifiedTime":"2022-10-31T05:47:04.3284922Z","duration":"PT1.2881912S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilej72ekba6eeus2b6an","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:47:04.569804+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:47:04.569804+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/79186299-dcb4-4349-8c7c-dfa9a3430ce6","name":"79186299-dcb4-4349-8c7c-dfa9a3430ce6","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T06:54:50.5353931Z","endTime":"2022-10-31T06:54:51.8792636Z","lastModifiedTime":"2022-10-31T06:54:51.8792635Z","duration":"PT1.3438705S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T06:54:52.1072526+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:54:52.1072526+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/e945ba3a-7b1c-43d4-8fdd-a987e2b5c913","name":"e945ba3a-7b1c-43d4-8fdd-a987e2b5c913","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T06:55:15.6311436Z","endTime":"2022-10-31T06:55:17.0178403Z","lastModifiedTime":"2022-10-31T06:55:17.0178402Z","duration":"PT1.3866967S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T06:55:17.2108198+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T06:55:17.2108198+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/2b572873-cc53-494b-9820-2a73e7cca2e2","name":"2b572873-cc53-494b-9820-2a73e7cca2e2","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:59:12.9081733Z","endTime":"0001-01-01T00:00:00","lastModifiedTime":"2022-11-18T06:59:12.9081749Z","duration":null,"type":"Consistency","status":"InProgress","configurationProfile":null,"resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:59:12.9418005+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:59:12.9418005+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/ae6298ff-52e1-4d5a-a12a-d80a46215c4c","name":"ae6298ff-52e1-4d5a-a12a-d80a46215c4c","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:42:34.2355748Z","endTime":"2022-11-18T06:42:41.544651Z","lastModifiedTime":"2022-11-18T06:42:41.5446475Z","duration":"PT7.3090762S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilelnwkhworimhx5jzr6","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:42:42.1595345+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:42:42.1595345+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/ccd43d1a-caf6-47da-a1e3-34bd6a95d319","name":"ccd43d1a-caf6-47da-a1e3-34bd6a95d319","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:42:48.0456324Z","endTime":"2022-11-18T06:42:50.9932042Z","lastModifiedTime":"2022-11-18T06:42:50.993203Z","duration":"PT2.9475718S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilelnwkhworimhx5jzr6","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:42:51.8327907+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:42:51.8327907+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/c9f483b1-9ce0-45a6-b8b9-fce6a76c364b","name":"c9f483b1-9ce0-45a6-b8b9-fce6a76c364b","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:58:45.2422152Z","endTime":"2022-11-18T06:58:48.1918218Z","lastModifiedTime":"2022-11-18T06:58:48.1918204Z","duration":"PT2.9496066S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:58:48.7004997+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:58:48.7004997+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '6426' + - '5773' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:55:19 GMT + - Fri, 18 Nov 2022 06:59:14 GMT expires: - '-1' pragma: @@ -510,22 +511,22 @@ interactions: ParameterSetName: - -n --assignment-name -g --machine-name User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/98f44c6f-7f23-462a-8d34-d2bab63f5e6b?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/2b572873-cc53-494b-9820-2a73e7cca2e2?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/98f44c6f-7f23-462a-8d34-d2bab63f5e6b","name":"98f44c6f-7f23-462a-8d34-d2bab63f5e6b","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T05:33:58.7029002Z","endTime":"2022-10-31T05:34:00.3371492Z","lastModifiedTime":"2022-10-31T05:34:00.3371489Z","duration":"PT1.634249S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilesvsvdm7d54mgjm76b","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T05:34:00.6554125+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T05:34:00.6554125+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/2b572873-cc53-494b-9820-2a73e7cca2e2","name":"2b572873-cc53-494b-9820-2a73e7cca2e2","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:59:12.9081733Z","endTime":"2022-11-18T06:59:16.1912519Z","lastModifiedTime":"2022-11-18T06:59:16.1912498Z","duration":"PT3.2830786S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:59:16.39724+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:59:16.39724+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1606' + - '1596' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:55:21 GMT + - Fri, 18 Nov 2022 06:59:16 GMT expires: - '-1' pragma: @@ -561,7 +562,7 @@ interactions: ParameterSetName: - -n -g --machine-name -y User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: @@ -573,7 +574,7 @@ interactions: content-length: - '0' date: - - Mon, 31 Oct 2022 06:55:24 GMT + - Fri, 18 Nov 2022 06:59:19 GMT expires: - '-1' pragma: @@ -605,7 +606,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: @@ -619,7 +620,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:55:25 GMT + - Fri, 18 Nov 2022 06:59:21 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml index 7a416e786ae..b1c6b8cf0ac 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml @@ -13,22 +13,22 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgtestautomanage?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage","name":"rgtestautomanage","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T06:41:54Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '234' + - '391' content-type: - application/json; charset=utf-8 date: - - Tue, 01 Nov 2022 02:14:29 GMT + - Fri, 18 Nov 2022 06:41:59 GMT expires: - '-1' pragma: @@ -61,25 +61,25 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","name":"profile000001","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-11-01T02:14:34.6003927+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-01T02:14:34.6003927+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-11-18T06:42:01.6227033+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:01.6227033+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '568' + - '606' content-type: - application/json; charset=utf-8 date: - - Tue, 01 Nov 2022 02:14:36 GMT + - Fri, 18 Nov 2022 06:42:03 GMT expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001 + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002 pragma: - no-cache request-context: @@ -91,12 +91,114 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created - request: - body: '{"properties": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001"}}' + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - stack-hci cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name -g + User-Agent: + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T06:41:54Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '391' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 18 Nov 2022 06:42: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": "eastus2euap"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - stack-hci cluster create + Connection: + - keep-alive + Content-Length: + - '27' + Content-Type: + - application/json + ParameterSetName: + - --cluster-name -g + User-Agent: + - AZURECLI/2.42.0 (PIP) azsdk-python-mgmt-azurestackhci/1.0.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1?api-version=2022-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1","name":"cluster1","type":"microsoft.azurestackhci/clusters","location":"eastus2euap","systemData":{"createdBy":"zhiyihuang@microsoft.com","createdByType":"User","createdAt":"2022-11-18T06:42:07.5817834Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-18T06:42:07.5817834Z"},"properties":{"provisioningState":"Succeeded","status":"NotYetRegistered","cloudId":"3735ce25-d509-48c5-bb44-c2746e775ad5","desiredProperties":{"windowsServerSubscription":"Disabled","diagnosticLevel":"Basic"},"trialDaysRemaining":60,"billingModel":"Trial","serviceEndpoint":"https://dp.stackhci.azure.com/eastus2euap/"}}' + headers: + cache-control: + - no-cache + content-length: + - '828' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 18 Nov 2022 06:42:09 GMT + etag: + - '"00006e45-0000-3400-0000-637729400000"' + expires: + - '-1' + mise-correlation-id: + - 9c891a41-21a4-4a91-846f-6ea85f80d186 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002"}}' headers: Accept: - application/json @@ -107,29 +209,31 @@ interactions: Connection: - keep-alive Content-Length: - - '194' + - '232' Content-Type: - application/json ParameterSetName: - -n -g --cluster-name --configuration-profile User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"Error"},"systemData":{"createdAt":"2022-11-01T02:14:37.649469+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-01T02:14:37.649469+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:42:10.918435+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:10.918435+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '899' + - '1011' content-type: - application/json; charset=utf-8 date: - - Tue, 01 Nov 2022 02:14:39 GMT + - Fri, 18 Nov 2022 06:42:13 GMT expires: - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default pragma: - no-cache request-context: @@ -138,17 +242,13 @@ interactions: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null headers: @@ -163,21 +263,21 @@ interactions: ParameterSetName: - -n -g --cluster-name User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"Error"},"systemData":{"createdAt":"2022-11-01T02:14:37.649469+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-01T02:14:37.649469+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:42:10.918435+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:10.918435+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '899' + - '1011' content-type: - application/json; charset=utf-8 date: - - Tue, 01 Nov 2022 02:14:42 GMT + - Fri, 18 Nov 2022 06:42:15 GMT expires: - '-1' pragma: @@ -211,21 +311,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"Error"},"systemData":{"createdAt":"2022-11-01T02:14:37.649469+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-01T02:14:37.649469+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:42:10.918435+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:10.918435+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '911' + - '1023' content-type: - application/json; charset=utf-8 date: - - Tue, 01 Nov 2022 02:14:44 GMT + - Fri, 18 Nov 2022 06:42:17 GMT expires: - '-1' pragma: @@ -262,22 +362,22 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgtestautomanage?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage","name":"rgtestautomanage","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T06:41:54Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '234' + - '391' content-type: - application/json; charset=utf-8 date: - - Tue, 01 Nov 2022 02:14:45 GMT + - Fri, 18 Nov 2022 06:42:18 GMT expires: - '-1' pragma: @@ -310,25 +410,25 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-11-01T02:14:50.3879812+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-01T02:14:50.3879812+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","name":"profile000003","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-11-18T06:42:22.9764715+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:22.9764715+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '569' + - '607' content-type: - application/json; charset=utf-8 date: - - Tue, 01 Nov 2022 02:14:52 GMT + - Fri, 18 Nov 2022 06:42:25 GMT expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002 + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003 pragma: - no-cache request-context: @@ -358,21 +458,21 @@ interactions: ParameterSetName: - --n -g --cluster-name --configuration-profile User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"Error"},"systemData":{"createdAt":"2022-11-01T02:14:37.649469+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-01T02:14:37.649469+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:42:10.918435+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:10.918435+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '899' + - '1011' content-type: - application/json; charset=utf-8 date: - - Tue, 01 Nov 2022 02:14:54 GMT + - Fri, 18 Nov 2022 06:42:27 GMT expires: - '-1' pragma: @@ -393,7 +493,7 @@ interactions: code: 200 message: OK - request: - body: '{"properties": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002"}}' + body: '{"properties": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003"}}' headers: Accept: - application/json @@ -404,27 +504,27 @@ interactions: Connection: - keep-alive Content-Length: - - '194' + - '232' Content-Type: - application/json ParameterSetName: - --n -g --cluster-name --configuration-profile User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2022-11-01T02:14:54.8657221+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-01T02:14:54.8657221+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","status":"New"},"systemData":{"createdAt":"2022-11-18T06:42:28.1660277+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:28.1660277+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '901' + - '1013' content-type: - application/json; charset=utf-8 date: - - Tue, 01 Nov 2022 02:14:55 GMT + - Fri, 18 Nov 2022 06:42:28 GMT expires: - '-1' pragma: @@ -460,25 +560,22 @@ interactions: ParameterSetName: - --assignment-name -g --cluster-name User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/0be38054-8c25-4f9e-9bb5-60258c9178d9","name":"0be38054-8c25-4f9e-9bb5-60258c9178d9","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-01T02:12:50.4556879Z","endTime":"2022-11-01T02:12:51.0938884Z","lastModifiedTime":"2022-11-01T02:12:51.0938882Z","duration":"PT0.6382005S","type":"Consistency","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-01T02:12:51.303787+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-01T02:12:51.303787+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5b8bceb4-bda1-45d3-be68-8a572e217d77","name":"5b8bceb4-bda1-45d3-be68-8a572e217d77","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-01T02:14:55.8983725Z","endTime":"2022-11-01T02:14:57.2769793Z","lastModifiedTime":"2022-11-01T02:14:57.2769792Z","duration":"PT1.3786068S","type":"Consistency","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-01T02:14:57.8618955+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-01T02:14:57.8618955+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/9e1c806e-058e-4b10-bc4e-0b0b76b7d86a","name":"9e1c806e-058e-4b10-bc4e-0b0b76b7d86a","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-01T02:11:07.5196026Z","endTime":"2022-11-01T02:11:12.4285318Z","lastModifiedTime":"2022-11-01T02:11:12.4285317Z","duration":"PT4.9089292S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-01T02:11:12.7434062+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-01T02:11:12.7434062+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/fc574dbd-32a9-4e2f-8e06-a2c526eb2bd4","name":"fc574dbd-32a9-4e2f-8e06-a2c526eb2bd4","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-01T02:11:17.1933223Z","endTime":"2022-11-01T02:11:17.7524386Z","lastModifiedTime":"2022-11-01T02:11:17.7524385Z","duration":"PT0.5591163S","type":"Consistency","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-01T02:11:18.0818039+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-01T02:11:18.0818039+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/843d7985-4f03-4242-a1ed-dbc29170d110","name":"843d7985-4f03-4242-a1ed-dbc29170d110","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:42:34.0202067Z","endTime":"2022-11-18T06:42:35.2052667Z","lastModifiedTime":"2022-11-18T06:42:35.2052645Z","duration":"PT1.18506S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:42:35.8061692+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:42:35.8061692+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '4497' + - '1166' content-type: - application/json; charset=utf-8 date: - - Tue, 01 Nov 2022 02:15:16 GMT + - Fri, 18 Nov 2022 06:42:51 GMT expires: - '-1' pragma: @@ -512,22 +609,22 @@ interactions: ParameterSetName: - -n --assignment-name -g --cluster-name User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/0be38054-8c25-4f9e-9bb5-60258c9178d9?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/843d7985-4f03-4242-a1ed-dbc29170d110?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/0be38054-8c25-4f9e-9bb5-60258c9178d9","name":"0be38054-8c25-4f9e-9bb5-60258c9178d9","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-01T02:12:50.4556879Z","endTime":"2022-11-01T02:12:51.0938884Z","lastModifiedTime":"2022-11-01T02:12:51.0938882Z","duration":"PT0.6382005S","type":"Consistency","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-01T02:12:51.303787+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-01T02:12:51.303787+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/843d7985-4f03-4242-a1ed-dbc29170d110","name":"843d7985-4f03-4242-a1ed-dbc29170d110","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:42:34.0202067Z","endTime":"2022-11-18T06:42:35.2052667Z","lastModifiedTime":"2022-11-18T06:42:35.2052645Z","duration":"PT1.18506S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:42:35.8061692+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:42:35.8061692+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1120' + - '1154' content-type: - application/json; charset=utf-8 date: - - Tue, 01 Nov 2022 02:15:18 GMT + - Fri, 18 Nov 2022 06:42:54 GMT expires: - '-1' pragma: @@ -563,9 +660,9 @@ interactions: ParameterSetName: - -n -g --cluster-name -y User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: string: '' @@ -575,7 +672,7 @@ interactions: content-length: - '0' date: - - Tue, 01 Nov 2022 02:15:22 GMT + - Fri, 18 Nov 2022 06:42:55 GMT expires: - '-1' pragma: @@ -607,9 +704,9 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: string: '{"value":[]}' @@ -621,7 +718,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 01 Nov 2022 02:15:23 GMT + - Fri, 18 Nov 2022 06:42:55 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml index 4b79678c59e..ab2e59a2137 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml @@ -13,13 +13,13 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T07:25:56Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T06:41:54Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:25:59 GMT + - Fri, 18 Nov 2022 06:41:59 GMT expires: - '-1' pragma: @@ -61,12 +61,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-10-31T07:26:06.2698159+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T07:26:06.2698159+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-11-18T06:42:04.3784207+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:04.3784207+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:26:07 GMT + - Fri, 18 Nov 2022 06:42:06 GMT expires: - '-1' location: @@ -109,13 +109,13 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T07:25:56Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T06:41:54Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:26:09 GMT + - Fri, 18 Nov 2022 06:42:07 GMT expires: - '-1' pragma: @@ -215,13 +215,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Mon, 31 Oct 2022 07:26:09 GMT + - Fri, 18 Nov 2022 06:42:08 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Mon, 31 Oct 2022 07:31:09 GMT + - Fri, 18 Nov 2022 06:47:08 GMT source-age: - - '69' + - '154' strict-transport-security: - max-age=31536000 vary: @@ -231,19 +231,19 @@ interactions: x-cache: - HIT x-cache-hits: - - '1' + - '2' x-content-type-options: - nosniff x-fastly-request-id: - - de908ba4cad6aa3f2a65a12a90a872de4f6b95fe + - 6e8d9bc7c001f416467e7cd50c544cb42c92ecf3 x-frame-options: - deny x-github-request-id: - - 0866:662F:A530D:1BBE13:635DA0E3 + - A03E:3CD1:5CBF7:BE728:6376D511 x-served-by: - - cache-qpg1262-QPG + - cache-qpg1249-QPG x-timer: - - S1667201170.966877,VS0,VE1 + - S1668753728.340557,VS0,VE0 x-xss-protection: - 1; mode=block status: @@ -263,8 +263,8 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-08-01 response: @@ -280,7 +280,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:26:12 GMT + - Fri, 18 Nov 2022 06:42:10 GMT expires: - '-1' pragma: @@ -315,8 +315,8 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202210180?api-version=2022-08-01 response: @@ -342,7 +342,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:26:14 GMT + - Fri, 18 Nov 2022 06:42:12 GMT expires: - '-1' pragma: @@ -377,8 +377,8 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks?api-version=2022-01-01 response: @@ -392,7 +392,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:26:15 GMT + - Fri, 18 Nov 2022 06:42:13 GMT expires: - '-1' pragma: @@ -456,24 +456,24 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_uMu52MlqjK3wwVq3snsX76ONU9n4AVSW","name":"vm_deploy_uMu52MlqjK3wwVq3snsX76ONU9n4AVSW","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16242899102269268678","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-31T07:26:22.1270519Z","duration":"PT0.0008964S","correlationId":"1c3a5f8f-f0f9-42df-8921-1c26e1b5302c","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_aLnx7vjvjJxnDYclEIAUYEK9IXml9Q5b","name":"vm_deploy_aLnx7vjvjJxnDYclEIAUYEK9IXml9Q5b","type":"Microsoft.Resources/deployments","properties":{"templateHash":"12563031028584668711","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-11-18T06:42:23.1300769Z","duration":"PT0.000614S","correlationId":"0024149c-c6ee-4b30-8fcb-010da9cc0a8b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_uMu52MlqjK3wwVq3snsX76ONU9n4AVSW/operationStatuses/08585344057062992726?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_aLnx7vjvjJxnDYclEIAUYEK9IXml9Q5b/operationStatuses/08585328531462046200?api-version=2021-04-01 cache-control: - no-cache content-length: - - '2646' + - '2645' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:26:23 GMT + - Fri, 18 Nov 2022 06:42:24 GMT expires: - '-1' pragma: @@ -483,7 +483,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 201 message: Created @@ -501,10 +501,10 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585344057062992726?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585328531462046200?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -516,7 +516,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:26:54 GMT + - Fri, 18 Nov 2022 06:42:55 GMT expires: - '-1' pragma: @@ -544,10 +544,96 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585344057062992726?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585328531462046200?api-version=2021-04-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 18 Nov 2022 06:43:25 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --generate-ssh-keys + User-Agent: + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585328531462046200?api-version=2021-04-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 18 Nov 2022 06:43:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --generate-ssh-keys + User-Agent: + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585328531462046200?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -559,7 +645,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:27:25 GMT + - Fri, 18 Nov 2022 06:44:26 GMT expires: - '-1' pragma: @@ -587,22 +673,22 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_uMu52MlqjK3wwVq3snsX76ONU9n4AVSW","name":"vm_deploy_uMu52MlqjK3wwVq3snsX76ONU9n4AVSW","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16242899102269268678","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-31T07:27:19.5355377Z","duration":"PT57.4093822S","correlationId":"1c3a5f8f-f0f9-42df-8921-1c26e1b5302c","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_aLnx7vjvjJxnDYclEIAUYEK9IXml9Q5b","name":"vm_deploy_aLnx7vjvjJxnDYclEIAUYEK9IXml9Q5b","type":"Microsoft.Resources/deployments","properties":{"templateHash":"12563031028584668711","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-11-18T06:43:59.2492632Z","duration":"PT1M36.1198003S","correlationId":"0024149c-c6ee-4b30-8fcb-010da9cc0a8b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3606' + - '3608' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:27:25 GMT + - Fri, 18 Nov 2022 06:44:27 GMT expires: - '-1' pragma: @@ -630,24 +716,24 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003?$expand=instanceView&api-version=2022-08-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus2euap\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"b712566b-65f9-408c-bbb7-5544ec8a2c9c\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"95c1970e-3d7e-4c0c-87ae-9fbe0b25d883\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": \"18.04.202210180\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm000003_disk1_0a5b857147b74291b51b32b52d4600a5\",\r\n + \"Linux\",\r\n \"name\": \"vm000003_disk1_4897690e2d5448828eb48bd3362f766a\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_0a5b857147b74291b51b32b52d4600a5\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_4897690e2d5448828eb48bd3362f766a\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"zhiyihuang\",\r\n @@ -663,32 +749,32 @@ interactions: {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\"}]},\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"computerName\": \"vm000003\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n - \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.9.0.2\",\r\n \"statuses\": + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.9.0.4\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2022-10-31T07:27:20+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_0a5b857147b74291b51b32b52d4600a5\",\r\n + \"2022-11-18T06:44:06+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_4897690e2d5448828eb48bd3362f766a\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-10-31T07:26:58.816137+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-11-18T06:43:16.3812962+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-10-31T07:27:12.3948771+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-11-18T06:43:52.1018495+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n - \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-10-31T07:26:55.65974+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-11-18T06:43:11.6310574+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '3974' + - '3977' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:27:27 GMT + - Fri, 18 Nov 2022 06:44:30 GMT expires: - '-1' pragma: @@ -705,7 +791,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31996 + - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31997 status: code: 200 message: OK @@ -723,19 +809,19 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"vm000003VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\",\r\n - \ \"etag\": \"W/\\\"3a6f86bb-5346-4bd8-9f95-a0187c75f1b4\\\"\",\r\n \"tags\": + \ \"etag\": \"W/\\\"b9a6efd4-62fa-4ea5-a494-a57cb1675284\\\"\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"e0a5bb49-5ff5-408a-afe0-0abe25486b34\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"e18249b4-c007-4047-a018-70192bae55c9\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\",\r\n - \ \"etag\": \"W/\\\"3a6f86bb-5346-4bd8-9f95-a0187c75f1b4\\\"\",\r\n + \ \"etag\": \"W/\\\"b9a6efd4-62fa-4ea5-a494-a57cb1675284\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -744,8 +830,8 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"d2o0bcxxa2aulls3dfytnv0led.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"60-45-BD-74-0F-2E\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": + \"hozxcy2gmesuzga4vhwewy1cta.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"60-45-BD-71-D7-DB\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\"\r\n @@ -761,9 +847,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:27:28 GMT + - Fri, 18 Nov 2022 06:44:31 GMT etag: - - W/"3a6f86bb-5346-4bd8-9f95-a0187c75f1b4" + - W/"b9a6efd4-62fa-4ea5-a494-a57cb1675284" expires: - '-1' pragma: @@ -780,7 +866,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 20e7415c-63b1-4811-b025-3a59ae848212 + - df984bdb-cebd-499d-abac-21dad40cd207 status: code: 200 message: '' @@ -798,17 +884,17 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"vm000003PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP\",\r\n - \ \"etag\": \"W/\\\"27101d07-5e27-4c8e-8f45-c6002be41c7d\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"56698f43-913a-4040-ae37-1b7bdd5c4a0d\\\"\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"539d1f39-b729-40d4-821b-00077e2f579f\",\r\n - \ \"ipAddress\": \"20.102.174.234\",\r\n \"publicIPAddressVersion\": + \"Succeeded\",\r\n \"resourceGuid\": \"1a79f444-832f-4e4d-a865-616475a2a9b7\",\r\n + \ \"ipAddress\": \"20.252.178.225\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -822,9 +908,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:27:28 GMT + - Fri, 18 Nov 2022 06:44:32 GMT etag: - - W/"27101d07-5e27-4c8e-8f45-c6002be41c7d" + - W/"56698f43-913a-4040-ae37-1b7bdd5c4a0d" expires: - '-1' pragma: @@ -841,7 +927,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - a8954b3e-8ca2-4910-b9a2-193072ed2a22 + - 9282a0cf-f5c4-4c24-b399-630cd51ed671 status: code: 200 message: '' @@ -863,12 +949,12 @@ interactions: ParameterSetName: - -n -g --vm-name --configuration-profile User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T07:27:29.6799042+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T07:27:29.6799042+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:44:34.2009027+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:44:34.2009027+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -877,7 +963,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:27:32 GMT + - Fri, 18 Nov 2022 06:44:37 GMT expires: - '-1' location: @@ -893,7 +979,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -911,12 +997,12 @@ interactions: ParameterSetName: - -n -g --vm-name User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T07:27:29.6799042+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T07:27:29.6799042+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:44:34.2009027+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:44:34.2009027+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -925,7 +1011,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:27:34 GMT + - Fri, 18 Nov 2022 06:44:38 GMT expires: - '-1' pragma: @@ -959,12 +1045,12 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-10-31T07:27:29.6799042+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T07:27:29.6799042+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:44:34.2009027+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:44:34.2009027+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache @@ -973,7 +1059,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:27:35 GMT + - Fri, 18 Nov 2022 06:44:40 GMT expires: - '-1' pragma: @@ -1010,13 +1096,13 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T07:25:56Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T06:41:54Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1025,7 +1111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:27:35 GMT + - Fri, 18 Nov 2022 06:44:41 GMT expires: - '-1' pragma: @@ -1058,12 +1144,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-10-31T07:27:41.5411699+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T07:27:41.5411699+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-11-18T06:44:46.1578271+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:44:46.1578271+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1072,7 +1158,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:27:43 GMT + - Fri, 18 Nov 2022 06:44:47 GMT expires: - '-1' location: @@ -1106,21 +1192,21 @@ interactions: ParameterSetName: - --n -g --vm-name --configuration-profile User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Conformant"},"systemData":{"createdAt":"2022-10-31T07:27:45.3757165+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T07:27:45.3757165+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:44:34.2009027+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:44:34.2009027+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1045' + - '1000' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:27:45 GMT + - Fri, 18 Nov 2022 06:44:50 GMT expires: - '-1' pragma: @@ -1158,21 +1244,21 @@ interactions: ParameterSetName: - --n -g --vm-name --configuration-profile User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"Conformant"},"systemData":{"createdAt":"2022-10-31T07:27:46.4230973+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T07:27:46.4230973+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"New"},"systemData":{"createdAt":"2022-11-18T06:44:51.2768229+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:44:51.2768229+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1007' + - '1000' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:27:47 GMT + - Fri, 18 Nov 2022 06:44:52 GMT expires: - '-1' pragma: @@ -1190,7 +1276,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -1208,21 +1294,21 @@ interactions: ParameterSetName: - --assignment-name -g --vm-name User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/3e1d9051-4841-46cc-9b6a-d4b67d21c2b9","name":"3e1d9051-4841-46cc-9b6a-d4b67d21c2b9","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T07:27:40.289347Z","endTime":"2022-10-31T07:27:44.956362Z","lastModifiedTime":"2022-10-31T07:27:44.9563618Z","duration":"PT4.667015S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T07:27:45.6731874+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T07:27:45.6731874+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/21665540-1c16-4222-8b5c-a9b533642653","name":"21665540-1c16-4222-8b5c-a9b533642653","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:44:55.121083Z","endTime":"2022-11-18T06:44:58.9639419Z","lastModifiedTime":"2022-11-18T06:44:58.9639401Z","duration":"PT3.8428589S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:44:59.5161344+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:44:59.5161344+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '1185' + - '1187' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:28:13 GMT + - Fri, 18 Nov 2022 06:45:03 GMT expires: - '-1' pragma: @@ -1256,21 +1342,21 @@ interactions: ParameterSetName: - -n --assignment-name -g --vm-name User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/3e1d9051-4841-46cc-9b6a-d4b67d21c2b9?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/21665540-1c16-4222-8b5c-a9b533642653?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/3e1d9051-4841-46cc-9b6a-d4b67d21c2b9","name":"3e1d9051-4841-46cc-9b6a-d4b67d21c2b9","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-10-31T07:27:40.289347Z","endTime":"2022-10-31T07:27:44.956362Z","lastModifiedTime":"2022-10-31T07:27:44.9563618Z","duration":"PT4.667015S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-10-31T07:27:45.6731874+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-10-31T07:27:45.6731874+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/21665540-1c16-4222-8b5c-a9b533642653","name":"21665540-1c16-4222-8b5c-a9b533642653","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:44:55.121083Z","endTime":"2022-11-18T06:44:58.9639419Z","lastModifiedTime":"2022-11-18T06:44:58.9639401Z","duration":"PT3.8428589S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:44:59.5161344+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:44:59.5161344+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1173' + - '1175' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:28:15 GMT + - Fri, 18 Nov 2022 06:45:05 GMT expires: - '-1' pragma: @@ -1281,6 +1367,10 @@ interactions: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -1302,7 +1392,7 @@ interactions: ParameterSetName: - -n -g --vm-name -y User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: @@ -1314,7 +1404,7 @@ interactions: content-length: - '0' date: - - Mon, 31 Oct 2022 07:28:17 GMT + - Fri, 18 Nov 2022 06:45:08 GMT expires: - '-1' pragma: @@ -1346,7 +1436,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: @@ -1360,7 +1450,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 07:28:19 GMT + - Fri, 18 Nov 2022 06:45:09 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml index 1028b5a68ee..e55455adb60 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml @@ -13,13 +13,13 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-10-31T06:31:21Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T06:41:54Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:26 GMT + - Fri, 18 Nov 2022 06:41:57 GMT expires: - '-1' pragma: @@ -64,21 +64,21 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-31T06:31:31.477113+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:31.477113+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T06:42:03.1529106+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:03.1529106+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '843' + - '845' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:33 GMT + - Fri, 18 Nov 2022 06:42:04 GMT expires: - '-1' location: @@ -112,21 +112,21 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-31T06:31:31.477113+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:31.477113+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T06:42:03.1529106+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:03.1529106+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '843' + - '845' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:35 GMT + - Fri, 18 Nov 2022 06:42:07 GMT expires: - '-1' pragma: @@ -160,21 +160,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-31T06:31:31.477113+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:31.477113+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T06:42:03.1529106+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:03.1529106+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '855' + - '857' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:37 GMT + - Fri, 18 Nov 2022 06:42:08 GMT expires: - '-1' pragma: @@ -208,21 +208,21 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-10-31T06:31:31.477113+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:31.477113+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T06:42:03.1529106+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:03.1529106+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '843' + - '845' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:39 GMT + - Fri, 18 Nov 2022 06:42:09 GMT expires: - '-1' pragma: @@ -261,21 +261,21 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2022-10-31T06:31:31.477113+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-10-31T06:31:40.5613674+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2022-11-18T06:42:03.1529106+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:10.3782286+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '626' + - '627' content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:40 GMT + - Fri, 18 Nov 2022 06:42:09 GMT expires: - '-1' pragma: @@ -293,7 +293,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -313,7 +313,7 @@ interactions: ParameterSetName: - -n -g -y User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: @@ -325,7 +325,7 @@ interactions: content-length: - '0' date: - - Mon, 31 Oct 2022 06:31:45 GMT + - Fri, 18 Nov 2022 06:42:16 GMT expires: - '-1' pragma: @@ -357,7 +357,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: @@ -371,7 +371,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:45 GMT + - Fri, 18 Nov 2022 06:42:15 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml index 23fa8363af3..fbca99e76b5 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml @@ -11,7 +11,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices?api-version=2022-05-04 response: @@ -25,7 +25,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:27 GMT + - Fri, 18 Nov 2022 06:42:36 GMT expires: - '-1' pragma: @@ -59,7 +59,7 @@ interactions: ParameterSetName: - --best-practice-name User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest?api-version=2022-05-04 response: @@ -73,7 +73,103 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:27 GMT + - Fri, 18 Nov 2022 06:42:38 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage best-practice version list + Connection: + - keep-alive + ParameterSetName: + - --best-practice-name + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions?api-version=2022-05-04 + response: + body: + string: '{"value":[{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions/2021-06-30","name":"AzureBestPracticesDevTest/2021-06-30","type":"Microsoft.Automanage/bestPractices/versions","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"false","VMInsights/Enable":"false","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2021-06-30T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '909' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 18 Nov 2022 06:42:38 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage best-practice version show + Connection: + - keep-alive + ParameterSetName: + - --best-practice-name --version-name + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions/2021-06-30?api-version=2022-05-04 + response: + body: + string: '{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions/2021-06-30","name":"AzureBestPracticesDevTest/2021-06-30","type":"Microsoft.Automanage/bestPractices/versions","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"false","VMInsights/Enable":"false","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2021-06-30T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '897' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 18 Nov 2022 06:42:39 GMT expires: - '-1' pragma: @@ -105,7 +201,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals?api-version=2022-05-04 response: @@ -119,7 +215,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:27 GMT + - Fri, 18 Nov 2022 06:42:39 GMT expires: - '-1' pragma: @@ -151,7 +247,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.41.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals/default?api-version=2022-05-04 response: @@ -165,7 +261,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 31 Oct 2022 06:31:32 GMT + - Fri, 18 Nov 2022 06:42:41 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index 4f10432131e..6840a29192b 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -16,14 +16,15 @@ def test_automanage_scenarios(self): if best_practice_name and len(best_practice_name) >= 2: best_practice_name = best_practice_name[1]["name"] self.cmd('az automanage best-practice show --best-practice-name {}'.format(best_practice_name)) + + version_name = self.cmd('az automanage best-practice version list ' + '--best-practice-name {}'.format(best_practice_name)).get_output_in_json() # TODO server error - # version_name = self.cmd('az automanage best-practice version list ' - # '--best-practice-name {}'.format(best_practice_name)).get_output_in_json() - # if version_name and len(version_name) >= 1: - # version_name = version_name[0]["name"] - # - # self.cmd('az automanage best-practice version show --best-practice-name {} --version-name ' - # '{}'.format(best_practice_name, version_name)) + if version_name and len(version_name) >= 1: + version_name = version_name[0]["name"].split('/')[1] + + self.cmd('az automanage best-practice version show --best-practice-name {} --version-name ' + '{}'.format(best_practice_name, version_name)) # service-principal self.cmd('az automanage service-principal list') @@ -118,7 +119,7 @@ def test_automanage_configuration_profile_assignment_vm_scenarios(self): @record_only() # need to first run: # az group create -l eastus2euap -g rgtestautomanage - # Connect-AzConnectedMachine -ResourceGroupName rgtestautomanage -Name arc1 -Location eastus2euap + # (run as admin in Powershell) Connect-AzConnectedMachine -ResourceGroupName rgtestautomanage -Name arc1 -Location eastus2euap def test_automanage_configuration_profile_assignment_arc_scenarios(self): self.kwargs.update({ 'profile_name': self.create_random_name(prefix='profile', length=24), @@ -144,7 +145,7 @@ def test_automanage_configuration_profile_assignment_arc_scenarios(self): '--machine-name {arc_name} --configuration-profile {profile_id_2}', checks=[JMESPathCheck('properties.configurationProfile', profile_id_2)]) - sleep(10) + sleep(20) report_name = self.cmd('az automanage configuration-profile-assignment arc report list --assignment-name ' 'default -g {rg} --machine-name {arc_name}').get_output_in_json()[0]["name"] self.kwargs.update({'report_name': report_name}) @@ -155,14 +156,10 @@ def test_automanage_configuration_profile_assignment_arc_scenarios(self): '{arc_name} -y') self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) - @record_only() - # need to first run: - # az group create -l eastus2euap -g rgtestautomanage - # az stack-hci cluster create --cluster-name cluster1 -g rgtestautomanage + @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.profileassignment.cluster.') def test_automanage_configuration_profile_assignment_cluster_scenarios(self): self.kwargs.update({ 'profile_name': self.create_random_name(prefix='profile', length=24), - 'rg': 'rgtestautomanage', 'cluster_name': 'cluster1', 'profile_name_2': self.create_random_name(prefix='profile', length=24), }) @@ -170,6 +167,7 @@ def test_automanage_configuration_profile_assignment_cluster_scenarios(self): '--configuration {{\\\"Antimalware/Enable\\\":true}}').get_output_in_json()["id"] self.kwargs.update({'profile_id': profile_id}) + self.cmd('az stack-hci cluster create --cluster-name {cluster_name} -g {rg}') self.cmd('az automanage configuration-profile-assignment cluster create -n default -g {rg} ' '--cluster-name {cluster_name} --configuration-profile {profile_id}') self.cmd('az automanage configuration-profile-assignment cluster show -n default -g {rg} ' From bc8de4701c47a83ba7705bcd2c2f73935c8afd82 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Fri, 18 Nov 2022 15:44:57 +0800 Subject: [PATCH 24/31] latest swagger and rerun test --- .../latest/automanage/best_practice/_list.py | 4 +- .../latest/automanage/best_practice/_show.py | 4 +- .../best_practice/version/__cmd_group.py | 3 - .../automanage/best_practice/version/_list.py | 7 +- .../automanage/best_practice/version/_show.py | 7 +- .../automanage/service_principal/_list.py | 4 +- .../service_principal/_show_default.py | 4 +- ...tion_profile_assignment_arc_scenarios.yaml | 78 ++-- ..._profile_assignment_cluster_scenarios.yaml | 87 ++--- ...ation_profile_assignment_vm_scenarios.yaml | 356 +++++++++--------- ...anage_configuration_profile_scenarios.yaml | 32 +- .../recordings/test_automanage_scenarios.yaml | 104 +---- .../tests/latest/test_automanage.py | 16 +- 13 files changed, 303 insertions(+), 403 deletions(-) diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py index 6f2047aff55..014b888f26b 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py @@ -122,9 +122,7 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"read_only": True}, ) - _element.properties = AAZObjectType( - flags={"client_flatten": True}, - ) + _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py index dd0b76662b5..73124a5f0bb 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py @@ -144,9 +144,7 @@ def _build_schema_on_200(cls): _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) - _schema_on_200.properties = AAZObjectType( - flags={"client_flatten": True}, - ) + _schema_on_200.properties = AAZObjectType() _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py index 903321f1080..cb75619b0af 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py @@ -11,9 +11,6 @@ from azure.cli.core.aaz import * -@register_command_group( - "automanage best-practice version", -) class __CMDGroup(AAZCommandGroup): """Manage Automanage best practice version """ diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py index b032c4ab174..2653522590d 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py @@ -11,9 +11,6 @@ from azure.cli.core.aaz import * -@register_command( - "automanage best-practice version list", -) class List(AAZCommand): """List a list of Automanage best practices versions """ @@ -150,9 +147,7 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"read_only": True}, ) - _element.properties = AAZObjectType( - flags={"client_flatten": True}, - ) + _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py index 335bf748b8f..0629ee6373f 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py @@ -11,9 +11,6 @@ from azure.cli.core.aaz import * -@register_command( - "automanage best-practice version show", -) class Show(AAZCommand): """Get information about a Automanage best practice version """ @@ -153,9 +150,7 @@ def _build_schema_on_200(cls): _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) - _schema_on_200.properties = AAZObjectType( - flags={"client_flatten": True}, - ) + _schema_on_200.properties = AAZObjectType() _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py index 11ef53fb6d2..fcb69157488 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py @@ -143,9 +143,7 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"read_only": True}, ) - _element.properties = AAZObjectType( - flags={"client_flatten": True}, - ) + _element.properties = AAZObjectType() _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py index 1765ff23805..9c8c494e68a 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py @@ -137,9 +137,7 @@ def _build_schema_on_200(cls): _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) - _schema_on_200.properties = AAZObjectType( - flags={"client_flatten": True}, - ) + _schema_on_200.properties = AAZObjectType() _schema_on_200.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml index 00705713041..b6afacc6f57 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:58:22 GMT + - Fri, 18 Nov 2022 07:41:39 GMT expires: - '-1' pragma: @@ -66,7 +66,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","name":"profile000001","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-11-18T06:58:29.5019546+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:58:29.5019546+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","name":"profile000001","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-11-18T07:41:45.7922547+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:45.7922547+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:58:31 GMT + - Fri, 18 Nov 2022 07:41:52 GMT expires: - '-1' location: @@ -118,18 +118,20 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-11-18T06:58:32.7745211+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:58:32.7745211+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-11-18T07:41:53.1999496+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:53.1999496+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '901' + - '891' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:58:35 GMT + - Fri, 18 Nov 2022 07:41:54 GMT expires: - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default pragma: - no-cache request-context: @@ -138,17 +140,13 @@ interactions: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null headers: @@ -168,16 +166,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-11-18T06:58:32.7745211+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:58:32.7745211+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-11-18T07:41:53.1999496+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:53.1999496+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '901' + - '891' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:58:38 GMT + - Fri, 18 Nov 2022 07:41:57 GMT expires: - '-1' pragma: @@ -216,16 +214,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-11-18T06:58:32.7745211+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:58:32.7745211+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-11-18T07:41:53.1999496+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:53.1999496+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '913' + - '903' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:58:39 GMT + - Fri, 18 Nov 2022 07:41:58 GMT expires: - '-1' pragma: @@ -277,7 +275,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:58:40 GMT + - Fri, 18 Nov 2022 07:41:58 GMT expires: - '-1' pragma: @@ -315,7 +313,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-11-18T06:58:46.9530911+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:58:46.9530911+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-11-18T07:42:03.8908474+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:42:03.8908474+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -324,7 +322,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:58:48 GMT + - Fri, 18 Nov 2022 07:42:04 GMT expires: - '-1' location: @@ -363,16 +361,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2022-11-18T06:58:48.434161+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:58:48.434161+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-11-18T07:41:53.1999496+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:53.1999496+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '937' + - '891' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:58:50 GMT + - Fri, 18 Nov 2022 07:42:06 GMT expires: - '-1' pragma: @@ -415,16 +413,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"NonConformant"},"systemData":{"createdAt":"2022-11-18T06:58:51.4613214+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:58:51.4613214+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T07:42:06.4446903+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:42:06.4446903+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '901' + - '891' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:58:52 GMT + - Fri, 18 Nov 2022 07:42:08 GMT expires: - '-1' pragma: @@ -442,7 +440,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK @@ -465,19 +463,23 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/2b572873-cc53-494b-9820-2a73e7cca2e2","name":"2b572873-cc53-494b-9820-2a73e7cca2e2","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:59:12.9081733Z","endTime":"0001-01-01T00:00:00","lastModifiedTime":"2022-11-18T06:59:12.9081749Z","duration":null,"type":"Consistency","status":"InProgress","configurationProfile":null,"resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:59:12.9418005+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:59:12.9418005+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/ae6298ff-52e1-4d5a-a12a-d80a46215c4c","name":"ae6298ff-52e1-4d5a-a12a-d80a46215c4c","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:42:34.2355748Z","endTime":"2022-11-18T06:42:41.544651Z","lastModifiedTime":"2022-11-18T06:42:41.5446475Z","duration":"PT7.3090762S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilelnwkhworimhx5jzr6","resources":[],"error":{"code":"UnsupportedOS","message":"The + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/2b572873-cc53-494b-9820-2a73e7cca2e2","name":"2b572873-cc53-494b-9820-2a73e7cca2e2","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:59:12.9081733Z","endTime":"2022-11-18T06:59:16.1912519Z","lastModifiedTime":"2022-11-18T06:59:16.1912498Z","duration":"PT3.2830786S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilem4p3azglmwlwob4yu","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:59:16.39724+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:59:16.39724+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/f7b347c7-821a-45f1-a851-acaa289a0030","name":"f7b347c7-821a-45f1-a851-acaa289a0030","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:41:22.0023153Z","endTime":"0001-01-01T00:00:00","lastModifiedTime":"2022-11-18T07:41:22.0023171Z","duration":null,"type":"Consistency","status":"InProgress","configurationProfile":null,"resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:41:22.1138737+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:41:22.1138737+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/4a05e774-8137-4f9f-9a62-ab1f1a75df0a","name":"4a05e774-8137-4f9f-9a62-ab1f1a75df0a","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:42:23.5214623Z","endTime":"2022-11-18T07:42:26.4730291Z","lastModifiedTime":"2022-11-18T07:42:26.473028Z","duration":"PT2.9515668S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:42:27.2539678+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:42:27.2539678+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/ae6298ff-52e1-4d5a-a12a-d80a46215c4c","name":"ae6298ff-52e1-4d5a-a12a-d80a46215c4c","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:42:34.2355748Z","endTime":"2022-11-18T06:42:41.544651Z","lastModifiedTime":"2022-11-18T06:42:41.5446475Z","duration":"PT7.3090762S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilelnwkhworimhx5jzr6","resources":[],"error":{"code":"UnsupportedOS","message":"The machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:42:42.1595345+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:42:42.1595345+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/ccd43d1a-caf6-47da-a1e3-34bd6a95d319","name":"ccd43d1a-caf6-47da-a1e3-34bd6a95d319","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:42:48.0456324Z","endTime":"2022-11-18T06:42:50.9932042Z","lastModifiedTime":"2022-11-18T06:42:50.993203Z","duration":"PT2.9475718S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilelnwkhworimhx5jzr6","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:42:51.8327907+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:42:51.8327907+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/c9f483b1-9ce0-45a6-b8b9-fce6a76c364b","name":"c9f483b1-9ce0-45a6-b8b9-fce6a76c364b","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:58:45.2422152Z","endTime":"2022-11-18T06:58:48.1918218Z","lastModifiedTime":"2022-11-18T06:58:48.1918204Z","duration":"PT2.9496066S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:58:48.7004997+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:58:48.7004997+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:42:51.8327907+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:42:51.8327907+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/c9f483b1-9ce0-45a6-b8b9-fce6a76c364b","name":"c9f483b1-9ce0-45a6-b8b9-fce6a76c364b","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:58:45.2422152Z","endTime":"2022-11-18T06:58:48.1918218Z","lastModifiedTime":"2022-11-18T06:58:48.1918204Z","duration":"PT2.9496066S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilemqnqkrrowegy2t5z5","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:58:48.7004997+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:58:48.7004997+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/43fc80dd-5c04-441b-bf46-8da19e39f280","name":"43fc80dd-5c04-441b-bf46-8da19e39f280","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:41:07.6576656Z","endTime":"2022-11-18T07:41:11.8292333Z","lastModifiedTime":"2022-11-18T07:41:11.8292308Z","duration":"PT4.1715677S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilevg4v7qppbzpteemhs","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:41:12.0490949+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:41:12.0490949+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5e8fe45a-2281-4399-9b00-3150e44062b5","name":"5e8fe45a-2281-4399-9b00-3150e44062b5","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:42:08.8840617Z","endTime":"2022-11-18T07:42:09.8293939Z","lastModifiedTime":"2022-11-18T07:42:09.8293937Z","duration":"PT0.9453322S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:42:10.1087234+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:42:10.1087234+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '5773' + - '12197' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:59:14 GMT + - Fri, 18 Nov 2022 07:42:30 GMT expires: - '-1' pragma: @@ -516,17 +518,17 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/2b572873-cc53-494b-9820-2a73e7cca2e2?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/2b572873-cc53-494b-9820-2a73e7cca2e2","name":"2b572873-cc53-494b-9820-2a73e7cca2e2","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:59:12.9081733Z","endTime":"2022-11-18T06:59:16.1912519Z","lastModifiedTime":"2022-11-18T06:59:16.1912498Z","duration":"PT3.2830786S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":{"code":"UnsupportedOS","message":"The + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/2b572873-cc53-494b-9820-2a73e7cca2e2","name":"2b572873-cc53-494b-9820-2a73e7cca2e2","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:59:12.9081733Z","endTime":"2022-11-18T06:59:16.1912519Z","lastModifiedTime":"2022-11-18T06:59:16.1912498Z","duration":"PT3.2830786S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilem4p3azglmwlwob4yu","resources":[],"error":{"code":"UnsupportedOS","message":"The machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:59:16.39724+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:59:16.39724+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1596' + - '1607' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:59:16 GMT + - Fri, 18 Nov 2022 07:42:32 GMT expires: - '-1' pragma: @@ -574,7 +576,7 @@ interactions: content-length: - '0' date: - - Fri, 18 Nov 2022 06:59:19 GMT + - Fri, 18 Nov 2022 07:42:35 GMT expires: - '-1' pragma: @@ -620,7 +622,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:59:21 GMT + - Fri, 18 Nov 2022 07:42:37 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml index b1c6b8cf0ac..cb0ba533bd4 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T06:41:54Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T07:41:39Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:41:59 GMT + - Fri, 18 Nov 2022 07:41:44 GMT expires: - '-1' pragma: @@ -66,7 +66,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-11-18T06:42:01.6227033+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:01.6227033+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-11-18T07:41:49.0357648+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:49.0357648+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:03 GMT + - Fri, 18 Nov 2022 07:41:50 GMT expires: - '-1' location: @@ -91,7 +91,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 201 message: Created @@ -115,7 +115,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T06:41:54Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T07:41:39Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:03 GMT + - Fri, 18 Nov 2022 07:41:51 GMT expires: - '-1' pragma: @@ -162,7 +162,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1?api-version=2022-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1","name":"cluster1","type":"microsoft.azurestackhci/clusters","location":"eastus2euap","systemData":{"createdBy":"zhiyihuang@microsoft.com","createdByType":"User","createdAt":"2022-11-18T06:42:07.5817834Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-18T06:42:07.5817834Z"},"properties":{"provisioningState":"Succeeded","status":"NotYetRegistered","cloudId":"3735ce25-d509-48c5-bb44-c2746e775ad5","desiredProperties":{"windowsServerSubscription":"Disabled","diagnosticLevel":"Basic"},"trialDaysRemaining":60,"billingModel":"Trial","serviceEndpoint":"https://dp.stackhci.azure.com/eastus2euap/"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1","name":"cluster1","type":"microsoft.azurestackhci/clusters","location":"eastus2euap","systemData":{"createdBy":"zhiyihuang@microsoft.com","createdByType":"User","createdAt":"2022-11-18T07:41:56.6010804Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-18T07:41:56.6010804Z"},"properties":{"provisioningState":"Succeeded","status":"NotYetRegistered","cloudId":"7157cc65-6ba7-472a-8f44-5fa2ff931fef","desiredProperties":{"windowsServerSubscription":"Disabled","diagnosticLevel":"Basic"},"trialDaysRemaining":60,"billingModel":"Trial","serviceEndpoint":"https://dp.stackhci.azure.com/eastus2euap/"}}' headers: cache-control: - no-cache @@ -171,13 +171,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:09 GMT + - Fri, 18 Nov 2022 07:42:02 GMT etag: - - '"00006e45-0000-3400-0000-637729400000"' + - '"0000dd45-0000-3400-0000-637737490000"' expires: - '-1' mise-correlation-id: - - 9c891a41-21a4-4a91-846f-6ea85f80d186 + - 4efddb95-325d-46a7-9c53-24c87a18c4af pragma: - no-cache strict-transport-security: @@ -191,7 +191,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' x-powered-by: - ASP.NET status: @@ -220,7 +220,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:42:10.918435+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:10.918435+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T07:42:03.545079+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:42:03.545079+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -229,7 +229,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:13 GMT + - Fri, 18 Nov 2022 07:42:05 GMT expires: - '-1' location: @@ -245,7 +245,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -268,7 +268,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:42:10.918435+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:10.918435+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T07:42:03.545079+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:42:03.545079+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -277,7 +277,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:15 GMT + - Fri, 18 Nov 2022 07:42:06 GMT expires: - '-1' pragma: @@ -316,16 +316,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:42:10.918435+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:10.918435+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"InProgress"},"systemData":{"createdAt":"2022-11-18T07:42:08.7737939+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:42:08.7737939+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '1023' + - '1070' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:17 GMT + - Fri, 18 Nov 2022 07:42:08 GMT expires: - '-1' pragma: @@ -368,7 +368,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T06:41:54Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T07:41:39Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -377,7 +377,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:18 GMT + - Fri, 18 Nov 2022 07:42:09 GMT expires: - '-1' pragma: @@ -415,7 +415,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","name":"profile000003","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-11-18T06:42:22.9764715+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:22.9764715+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","name":"profile000003","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-11-18T07:42:12.3327783+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:42:12.3327783+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -424,7 +424,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:25 GMT + - Fri, 18 Nov 2022 07:42:13 GMT expires: - '-1' location: @@ -440,7 +440,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -463,16 +463,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:42:10.918435+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:10.918435+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2022-11-18T07:42:09.6651464+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:42:09.6651464+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1011' + - '1053' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:27 GMT + - Fri, 18 Nov 2022 07:42:15 GMT expires: - '-1' pragma: @@ -515,16 +515,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","status":"New"},"systemData":{"createdAt":"2022-11-18T06:42:28.1660277+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:28.1660277+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","status":"Error"},"systemData":{"createdAt":"2022-11-18T07:42:16.6095178+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:42:16.6095178+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1013' + - '1015' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:28 GMT + - Fri, 18 Nov 2022 07:42:16 GMT expires: - '-1' pragma: @@ -542,7 +542,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK @@ -565,17 +565,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/843d7985-4f03-4242-a1ed-dbc29170d110","name":"843d7985-4f03-4242-a1ed-dbc29170d110","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:42:34.0202067Z","endTime":"2022-11-18T06:42:35.2052667Z","lastModifiedTime":"2022-11-18T06:42:35.2052645Z","duration":"PT1.18506S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:42:35.8061692+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:42:35.8061692+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/9abe615e-74be-42d0-9a3d-856703747cd8","name":"9abe615e-74be-42d0-9a3d-856703747cd8","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:42:08.890405Z","endTime":"2022-11-18T07:42:09.5099961Z","lastModifiedTime":"2022-11-18T07:42:09.5099933Z","duration":"PT0.6195911S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:42:09.7745194+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:42:09.7745194+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/629302e4-2d2d-4b69-9d57-9e816cb21496","name":"629302e4-2d2d-4b69-9d57-9e816cb21496","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:42:21.1834874Z","endTime":"2022-11-18T07:42:21.7552016Z","lastModifiedTime":"2022-11-18T07:42:21.7552007Z","duration":"PT0.5717142S","type":"Consistency","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:42:22.0069586+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:42:22.0069586+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '1166' + - '2328' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:51 GMT + - Fri, 18 Nov 2022 07:42:39 GMT expires: - '-1' pragma: @@ -611,20 +612,20 @@ interactions: User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/843d7985-4f03-4242-a1ed-dbc29170d110?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/9abe615e-74be-42d0-9a3d-856703747cd8?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/843d7985-4f03-4242-a1ed-dbc29170d110","name":"843d7985-4f03-4242-a1ed-dbc29170d110","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:42:34.0202067Z","endTime":"2022-11-18T06:42:35.2052667Z","lastModifiedTime":"2022-11-18T06:42:35.2052645Z","duration":"PT1.18506S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:42:35.8061692+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:42:35.8061692+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/9abe615e-74be-42d0-9a3d-856703747cd8","name":"9abe615e-74be-42d0-9a3d-856703747cd8","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:42:08.890405Z","endTime":"2022-11-18T07:42:09.5099961Z","lastModifiedTime":"2022-11-18T07:42:09.5099933Z","duration":"PT0.6195911S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:42:09.7745194+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:42:09.7745194+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1154' + - '1155' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:54 GMT + - Fri, 18 Nov 2022 07:42:41 GMT expires: - '-1' pragma: @@ -672,7 +673,7 @@ interactions: content-length: - '0' date: - - Fri, 18 Nov 2022 06:42:55 GMT + - Fri, 18 Nov 2022 07:42:44 GMT expires: - '-1' pragma: @@ -718,7 +719,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:55 GMT + - Fri, 18 Nov 2022 07:42:46 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml index ab2e59a2137..a853a800caf 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T06:41:54Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T07:41:39Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:41:59 GMT + - Fri, 18 Nov 2022 07:41:43 GMT expires: - '-1' pragma: @@ -66,16 +66,116 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-11-18T06:42:04.3784207+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:04.3784207+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"error":{"code":"SubscriptionRequestsThrottled","message":"Number + of requests for subscription ''0b1f6471-1bf0-4dda-aec3-cb9272f09590'' and + operation ''PUT/SUBSCRIPTIONS/RESOURCEGROUPS/PROVIDERS/MICROSOFT.AUTOMANAGE/CONFIGURATIONPROFILES/'' + exceeded the backend storage limit. Please try again after ''6'' seconds."}}' + headers: + cache-control: + - no-cache + connection: + - close + content-length: + - '312' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 18 Nov 2022 07:41:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 429 + message: '' +- request: + body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": + true}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + Content-Length: + - '90' + Content-Type: + - application/json + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + response: + body: + string: '{"error":{"code":"SubscriptionRequestsThrottled","message":"Number + of requests for subscription ''0b1f6471-1bf0-4dda-aec3-cb9272f09590'' and + operation ''PUT/SUBSCRIPTIONS/RESOURCEGROUPS/PROVIDERS/MICROSOFT.AUTOMANAGE/CONFIGURATIONPROFILES/'' + exceeded the backend storage limit. Please try again after ''6'' seconds."}}' + headers: + cache-control: + - no-cache + connection: + - close + content-length: + - '312' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 18 Nov 2022 07:42:02 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 429 + message: '' +- request: + body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": + true}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile create + Connection: + - keep-alive + Content-Length: + - '90' + Content-Type: + - application/json + ParameterSetName: + - -n -g --configuration + User-Agent: + - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-11-18T07:42:13.010946+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:42:13.010946+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '601' + - '599' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:06 GMT + - Fri, 18 Nov 2022 07:42:14 GMT expires: - '-1' location: @@ -91,7 +191,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -115,7 +215,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T06:41:54Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T07:41:39Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -124,7 +224,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:07 GMT + - Fri, 18 Nov 2022 07:42:15 GMT expires: - '-1' pragma: @@ -215,13 +315,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:08 GMT + - Fri, 18 Nov 2022 07:42:16 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Fri, 18 Nov 2022 06:47:08 GMT + - Fri, 18 Nov 2022 07:47:16 GMT source-age: - - '154' + - '148' strict-transport-security: - max-age=31536000 vary: @@ -231,19 +331,19 @@ interactions: x-cache: - HIT x-cache-hits: - - '2' + - '1' x-content-type-options: - nosniff x-fastly-request-id: - - 6e8d9bc7c001f416467e7cd50c544cb42c92ecf3 + - a5f383e94ff3a6792040ccc86eb70126f3f90310 x-frame-options: - deny x-github-request-id: - A03E:3CD1:5CBF7:BE728:6376D511 x-served-by: - - cache-qpg1249-QPG + - cache-qpg1250-QPG x-timer: - - S1668753728.340557,VS0,VE0 + - S1668757336.134033,VS0,VE1 x-xss-protection: - 1; mode=block status: @@ -280,7 +380,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:10 GMT + - Fri, 18 Nov 2022 07:42:18 GMT expires: - '-1' pragma: @@ -297,7 +397,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43999 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43997 status: code: 200 message: OK @@ -342,7 +442,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:12 GMT + - Fri, 18 Nov 2022 07:42:20 GMT expires: - '-1' pragma: @@ -359,7 +459,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73999 + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73997 status: code: 200 message: OK @@ -392,7 +492,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:13 GMT + - Fri, 18 Nov 2022 07:42:21 GMT expires: - '-1' pragma: @@ -462,10 +562,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_aLnx7vjvjJxnDYclEIAUYEK9IXml9Q5b","name":"vm_deploy_aLnx7vjvjJxnDYclEIAUYEK9IXml9Q5b","type":"Microsoft.Resources/deployments","properties":{"templateHash":"12563031028584668711","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-11-18T06:42:23.1300769Z","duration":"PT0.000614S","correlationId":"0024149c-c6ee-4b30-8fcb-010da9cc0a8b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_E35MntWzQL1gx6VpwaTGFg2uWTQnxk4r","name":"vm_deploy_E35MntWzQL1gx6VpwaTGFg2uWTQnxk4r","type":"Microsoft.Resources/deployments","properties":{"templateHash":"2837049010702756058","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-11-18T07:42:28.1588556Z","duration":"PT0.0000933S","correlationId":"1dcab306-ec17-4cc8-963a-1548a0005322","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_aLnx7vjvjJxnDYclEIAUYEK9IXml9Q5b/operationStatuses/08585328531462046200?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_E35MntWzQL1gx6VpwaTGFg2uWTQnxk4r/operationStatuses/08585328495413137203?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -473,7 +573,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:24 GMT + - Fri, 18 Nov 2022 07:42:29 GMT expires: - '-1' pragma: @@ -504,7 +604,7 @@ interactions: - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585328531462046200?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585328495413137203?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -516,7 +616,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:55 GMT + - Fri, 18 Nov 2022 07:43:00 GMT expires: - '-1' pragma: @@ -547,93 +647,7 @@ interactions: - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585328531462046200?api-version=2021-04-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Nov 2022 06:43:25 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -n -g --image --generate-ssh-keys - User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19045-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585328531462046200?api-version=2021-04-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Nov 2022 06:43:56 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -n -g --image --generate-ssh-keys - User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 - (Windows-10-10.0.19045-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585328531462046200?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585328495413137203?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -645,7 +659,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:44:26 GMT + - Fri, 18 Nov 2022 07:43:30 GMT expires: - '-1' pragma: @@ -679,16 +693,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_aLnx7vjvjJxnDYclEIAUYEK9IXml9Q5b","name":"vm_deploy_aLnx7vjvjJxnDYclEIAUYEK9IXml9Q5b","type":"Microsoft.Resources/deployments","properties":{"templateHash":"12563031028584668711","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-11-18T06:43:59.2492632Z","duration":"PT1M36.1198003S","correlationId":"0024149c-c6ee-4b30-8fcb-010da9cc0a8b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_E35MntWzQL1gx6VpwaTGFg2uWTQnxk4r","name":"vm_deploy_E35MntWzQL1gx6VpwaTGFg2uWTQnxk4r","type":"Microsoft.Resources/deployments","properties":{"templateHash":"2837049010702756058","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-11-18T07:43:27.9929553Z","duration":"PT59.834193S","correlationId":"1dcab306-ec17-4cc8-963a-1548a0005322","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3608' + - '3604' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:44:27 GMT + - Fri, 18 Nov 2022 07:43:31 GMT expires: - '-1' pragma: @@ -724,16 +738,16 @@ interactions: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus2euap\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"95c1970e-3d7e-4c0c-87ae-9fbe0b25d883\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"9b766e81-bc10-4c9e-875f-bea05c12d38f\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": \"18.04.202210180\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm000003_disk1_4897690e2d5448828eb48bd3362f766a\",\r\n + \"Linux\",\r\n \"name\": \"vm000003_disk1_dc4def88ec9547cca3568fcfe99cbb8e\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_4897690e2d5448828eb48bd3362f766a\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_dc4def88ec9547cca3568fcfe99cbb8e\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"zhiyihuang\",\r\n @@ -753,18 +767,18 @@ interactions: [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2022-11-18T06:44:06+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_4897690e2d5448828eb48bd3362f766a\",\r\n + \"2022-11-18T07:43:28+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_dc4def88ec9547cca3568fcfe99cbb8e\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-11-18T06:43:16.3812962+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-11-18T07:43:06.3425394+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-11-18T06:43:52.1018495+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-11-18T07:43:18.8119099+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n - \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-11-18T06:43:11.6310574+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-11-18T07:43:03.1392779+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -774,7 +788,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:44:30 GMT + - Fri, 18 Nov 2022 07:43:33 GMT expires: - '-1' pragma: @@ -791,7 +805,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31997 + - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31996 status: code: 200 message: OK @@ -816,12 +830,12 @@ interactions: response: body: string: "{\r\n \"name\": \"vm000003VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\",\r\n - \ \"etag\": \"W/\\\"b9a6efd4-62fa-4ea5-a494-a57cb1675284\\\"\",\r\n \"tags\": + \ \"etag\": \"W/\\\"2565d3bd-7b95-40a7-b759-14b1dc2e42d4\\\"\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"e18249b4-c007-4047-a018-70192bae55c9\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"a8e1d42c-4cde-4a28-b650-e435e71b7411\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\",\r\n - \ \"etag\": \"W/\\\"b9a6efd4-62fa-4ea5-a494-a57cb1675284\\\"\",\r\n + \ \"etag\": \"W/\\\"2565d3bd-7b95-40a7-b759-14b1dc2e42d4\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -830,8 +844,8 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"hozxcy2gmesuzga4vhwewy1cta.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"60-45-BD-71-D7-DB\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": + \"0cgbouwvqyaevl3yrurcgriiyb.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-22-48-6A-71-BF\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\"\r\n @@ -847,9 +861,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:44:31 GMT + - Fri, 18 Nov 2022 07:43:36 GMT etag: - - W/"b9a6efd4-62fa-4ea5-a494-a57cb1675284" + - W/"2565d3bd-7b95-40a7-b759-14b1dc2e42d4" expires: - '-1' pragma: @@ -866,10 +880,10 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - df984bdb-cebd-499d-abac-21dad40cd207 + - 120d23e3-6319-4e03-926d-645b9b39fcca status: code: 200 - message: '' + message: OK - request: body: null headers: @@ -891,11 +905,11 @@ interactions: response: body: string: "{\r\n \"name\": \"vm000003PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP\",\r\n - \ \"etag\": \"W/\\\"56698f43-913a-4040-ae37-1b7bdd5c4a0d\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"339cd94b-f5cc-42fd-a828-6c7a20fa3183\\\"\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"1a79f444-832f-4e4d-a865-616475a2a9b7\",\r\n - \ \"ipAddress\": \"20.252.178.225\",\r\n \"publicIPAddressVersion\": - \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": + \"Succeeded\",\r\n \"resourceGuid\": \"04ed47a0-4162-41f9-aefe-cbc6879441b7\",\r\n + \ \"ipAddress\": \"20.221.148.33\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \ \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n @@ -904,13 +918,13 @@ interactions: cache-control: - no-cache content-length: - - '996' + - '995' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:44:32 GMT + - Fri, 18 Nov 2022 07:43:37 GMT etag: - - W/"56698f43-913a-4040-ae37-1b7bdd5c4a0d" + - W/"339cd94b-f5cc-42fd-a828-6c7a20fa3183" expires: - '-1' pragma: @@ -927,10 +941,10 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 9282a0cf-f5c4-4c24-b399-630cd51ed671 + - 4efbd13d-7101-4f40-8817-d60d2ec30ea9 status: code: 200 - message: '' + message: OK - request: body: '{"properties": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002"}}' headers: @@ -954,7 +968,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:44:34.2009027+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:44:34.2009027+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T07:43:38.2227827+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:43:38.2227827+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -963,7 +977,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:44:37 GMT + - Fri, 18 Nov 2022 07:43:40 GMT expires: - '-1' location: @@ -979,7 +993,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -1002,7 +1016,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:44:34.2009027+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:44:34.2009027+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T07:43:38.2227827+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:43:38.2227827+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1011,7 +1025,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:44:38 GMT + - Fri, 18 Nov 2022 07:43:43 GMT expires: - '-1' pragma: @@ -1050,7 +1064,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:44:34.2009027+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:44:34.2009027+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T07:43:38.2227827+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:43:38.2227827+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache @@ -1059,7 +1073,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:44:40 GMT + - Fri, 18 Nov 2022 07:43:44 GMT expires: - '-1' pragma: @@ -1102,7 +1116,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T06:41:54Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T07:41:39Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1111,7 +1125,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:44:41 GMT + - Fri, 18 Nov 2022 07:43:44 GMT expires: - '-1' pragma: @@ -1149,7 +1163,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-11-18T06:44:46.1578271+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:44:46.1578271+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-11-18T07:43:49.6298145+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:43:49.6298145+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1158,7 +1172,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:44:47 GMT + - Fri, 18 Nov 2022 07:43:51 GMT expires: - '-1' location: @@ -1197,16 +1211,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T06:44:34.2009027+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:44:34.2009027+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Conformant"},"systemData":{"createdAt":"2022-11-18T07:43:53.0070013+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:43:53.0070013+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1000' + - '1045' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:44:50 GMT + - Fri, 18 Nov 2022 07:43:53 GMT expires: - '-1' pragma: @@ -1249,16 +1263,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"New"},"systemData":{"createdAt":"2022-11-18T06:44:51.2768229+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:44:51.2768229+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"Conformant"},"systemData":{"createdAt":"2022-11-18T07:43:54.0054318+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:43:54.0054318+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1000' + - '1007' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:44:52 GMT + - Fri, 18 Nov 2022 07:43:53 GMT expires: - '-1' pragma: @@ -1276,7 +1290,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -1299,16 +1313,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/21665540-1c16-4222-8b5c-a9b533642653","name":"21665540-1c16-4222-8b5c-a9b533642653","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:44:55.121083Z","endTime":"2022-11-18T06:44:58.9639419Z","lastModifiedTime":"2022-11-18T06:44:58.9639401Z","duration":"PT3.8428589S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:44:59.5161344+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:44:59.5161344+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/8d6dfddb-c765-4a74-aba2-f45c2ef0f6e3","name":"8d6dfddb-c765-4a74-aba2-f45c2ef0f6e3","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:43:45.5189613Z","endTime":"2022-11-18T07:43:52.7256375Z","lastModifiedTime":"2022-11-18T07:43:52.7256359Z","duration":"PT7.2066762S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:43:53.3038798+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:43:53.3038798+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '1187' + - '1188' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:45:03 GMT + - Fri, 18 Nov 2022 07:44:06 GMT expires: - '-1' pragma: @@ -1344,19 +1358,19 @@ interactions: User-Agent: - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/21665540-1c16-4222-8b5c-a9b533642653?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/8d6dfddb-c765-4a74-aba2-f45c2ef0f6e3?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/21665540-1c16-4222-8b5c-a9b533642653","name":"21665540-1c16-4222-8b5c-a9b533642653","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:44:55.121083Z","endTime":"2022-11-18T06:44:58.9639419Z","lastModifiedTime":"2022-11-18T06:44:58.9639401Z","duration":"PT3.8428589S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:44:59.5161344+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:44:59.5161344+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/8d6dfddb-c765-4a74-aba2-f45c2ef0f6e3","name":"8d6dfddb-c765-4a74-aba2-f45c2ef0f6e3","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:43:45.5189613Z","endTime":"2022-11-18T07:43:52.7256375Z","lastModifiedTime":"2022-11-18T07:43:52.7256359Z","duration":"PT7.2066762S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:43:53.3038798+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:43:53.3038798+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1175' + - '1176' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:45:05 GMT + - Fri, 18 Nov 2022 07:44:09 GMT expires: - '-1' pragma: @@ -1404,7 +1418,7 @@ interactions: content-length: - '0' date: - - Fri, 18 Nov 2022 06:45:08 GMT + - Fri, 18 Nov 2022 07:44:11 GMT expires: - '-1' pragma: @@ -1450,7 +1464,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:45:09 GMT + - Fri, 18 Nov 2022 07:44:13 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml index e55455adb60..616a5282391 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T06:41:54Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T07:41:39Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:41:57 GMT + - Fri, 18 Nov 2022 07:41:44 GMT expires: - '-1' pragma: @@ -69,7 +69,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T06:42:03.1529106+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:03.1529106+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T07:41:48.8665616+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:48.8665616+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -78,7 +78,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:04 GMT + - Fri, 18 Nov 2022 07:41:50 GMT expires: - '-1' location: @@ -94,7 +94,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -117,7 +117,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T06:42:03.1529106+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:03.1529106+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T07:41:48.8665616+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:48.8665616+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -126,7 +126,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:07 GMT + - Fri, 18 Nov 2022 07:41:52 GMT expires: - '-1' pragma: @@ -165,7 +165,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T06:42:03.1529106+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:03.1529106+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T07:41:48.8665616+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:48.8665616+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache @@ -174,7 +174,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:08 GMT + - Fri, 18 Nov 2022 07:41:54 GMT expires: - '-1' pragma: @@ -213,7 +213,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T06:42:03.1529106+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:03.1529106+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T07:41:48.8665616+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:48.8665616+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -222,7 +222,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:09 GMT + - Fri, 18 Nov 2022 07:41:56 GMT expires: - '-1' pragma: @@ -266,7 +266,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2022-11-18T06:42:03.1529106+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T06:42:10.3782286+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2022-11-18T07:41:48.8665616+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:57.2944011+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -275,7 +275,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:09 GMT + - Fri, 18 Nov 2022 07:41:57 GMT expires: - '-1' pragma: @@ -293,7 +293,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 200 message: OK @@ -325,7 +325,7 @@ interactions: content-length: - '0' date: - - Fri, 18 Nov 2022 06:42:16 GMT + - Fri, 18 Nov 2022 07:42:00 GMT expires: - '-1' pragma: @@ -371,7 +371,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:15 GMT + - Fri, 18 Nov 2022 07:42:00 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml index fbca99e76b5..c3e3928066b 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:36 GMT + - Fri, 18 Nov 2022 07:42:42 GMT expires: - '-1' pragma: @@ -73,103 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:38 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d - server: - - Kestrel - 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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automanage best-practice version list - Connection: - - keep-alive - ParameterSetName: - - --best-practice-name - User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions?api-version=2022-05-04 - response: - body: - string: '{"value":[{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions/2021-06-30","name":"AzureBestPracticesDevTest/2021-06-30","type":"Microsoft.Automanage/bestPractices/versions","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"false","VMInsights/Enable":"false","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2021-06-30T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '909' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Nov 2022 06:42:38 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d - server: - - Kestrel - 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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automanage best-practice version show - Connection: - - keep-alive - ParameterSetName: - - --best-practice-name --version-name - User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions/2021-06-30?api-version=2022-05-04 - response: - body: - string: '{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions/2021-06-30","name":"AzureBestPracticesDevTest/2021-06-30","type":"Microsoft.Automanage/bestPractices/versions","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"false","VMInsights/Enable":"false","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2021-06-30T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}' - headers: - cache-control: - - no-cache - content-length: - - '897' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Nov 2022 06:42:39 GMT + - Fri, 18 Nov 2022 07:42:43 GMT expires: - '-1' pragma: @@ -215,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:39 GMT + - Fri, 18 Nov 2022 07:42:44 GMT expires: - '-1' pragma: @@ -261,7 +165,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 06:42:41 GMT + - Fri, 18 Nov 2022 07:42:45 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index 6840a29192b..42695c4e4ac 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -17,14 +17,14 @@ def test_automanage_scenarios(self): best_practice_name = best_practice_name[1]["name"] self.cmd('az automanage best-practice show --best-practice-name {}'.format(best_practice_name)) - version_name = self.cmd('az automanage best-practice version list ' - '--best-practice-name {}'.format(best_practice_name)).get_output_in_json() # TODO server error - if version_name and len(version_name) >= 1: - version_name = version_name[0]["name"].split('/')[1] - - self.cmd('az automanage best-practice version show --best-practice-name {} --version-name ' - '{}'.format(best_practice_name, version_name)) + # version_name = self.cmd('az automanage best-practice version list ' + # '--best-practice-name {}'.format(best_practice_name)).get_output_in_json() + # if version_name and len(version_name) >= 1: + # version_name = version_name[0]["name"].split('/')[1] + # + # self.cmd('az automanage best-practice version show --best-practice-name {} --version-name ' + # '{}'.format(best_practice_name, version_name)) # service-principal self.cmd('az automanage service-principal list') @@ -116,7 +116,7 @@ def test_automanage_configuration_profile_assignment_vm_scenarios(self): self.cmd('az automanage configuration-profile-assignment vm delete -n default -g {rg} --vm-name {vm_name} -y') self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) - @record_only() + # @record_only() # need to first run: # az group create -l eastus2euap -g rgtestautomanage # (run as admin in Powershell) Connect-AzConnectedMachine -ResourceGroupName rgtestautomanage -Name arc1 -Location eastus2euap From db490242c244116e227b3605e351e47e1c3badad Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Fri, 20 Jan 2023 11:51:29 +0800 Subject: [PATCH 25/31] rerun azdev --- .../latest/automanage/best_practice/_list.py | 4 + .../latest/automanage/best_practice/_show.py | 4 + .../automanage/best_practice/version/_list.py | 4 + .../automanage/best_practice/version/_show.py | 4 + .../configuration_profile/_create.py | 5 +- .../configuration_profile/_delete.py | 4 + .../automanage/configuration_profile/_list.py | 4 + .../automanage/configuration_profile/_show.py | 4 + .../configuration_profile/_update.py | 146 +++-- .../configuration_profile/version/_create.py | 6 +- .../configuration_profile/version/_delete.py | 4 + .../configuration_profile/version/_list.py | 4 + .../configuration_profile/version/_show.py | 4 + .../configuration_profile/version/_update.py | 146 +++-- .../configuration_profile_assignment/_list.py | 4 + .../arc/_create.py | 6 +- .../arc/_delete.py | 4 + .../arc/_show.py | 4 + .../arc/_update.py | 152 ++--- .../arc/report/_list.py | 106 +-- .../arc/report/_show.py | 106 +-- .../cluster/_create.py | 6 +- .../cluster/_delete.py | 4 + .../cluster/_show.py | 4 + .../cluster/_update.py | 152 ++--- .../cluster/report/_list.py | 106 +-- .../cluster/report/_show.py | 106 +-- .../vm/_create.py | 6 +- .../vm/_delete.py | 4 + .../vm/_show.py | 4 + .../vm/_update.py | 152 ++--- .../vm/report/_list.py | 106 +-- .../vm/report/_show.py | 106 +-- .../automanage/service_principal/_list.py | 4 + .../service_principal/_show_default.py | 4 + .../azext_automanage/azext_metadata.json | 2 +- ...tion_profile_assignment_arc_scenarios.yaml | 99 ++- ..._profile_assignment_cluster_scenarios.yaml | 114 ++-- ...ation_profile_assignment_vm_scenarios.yaml | 618 +++++++++++++----- ...anage_configuration_profile_scenarios.yaml | 58 +- .../recordings/test_automanage_scenarios.yaml | 16 +- .../tests/latest/test_automanage.py | 2 +- 42 files changed, 1392 insertions(+), 1006 deletions(-) diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py index 014b888f26b..c3ec6b4b6d5 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py @@ -157,4 +157,8 @@ def _build_schema_on_200(cls): return cls._schema_on_200 +class _ListHelper: + """Helper class for List""" + + __all__ = ["List"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py index 73124a5f0bb..12db3590074 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py @@ -179,4 +179,8 @@ def _build_schema_on_200(cls): return cls._schema_on_200 +class _ShowHelper: + """Helper class for Show""" + + __all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py index 2653522590d..4c364b1e8ab 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py @@ -182,4 +182,8 @@ def _build_schema_on_200(cls): return cls._schema_on_200 +class _ListHelper: + """Helper class for List""" + + __all__ = ["List"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py index 0629ee6373f..aa58445cf64 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py @@ -185,4 +185,8 @@ def _build_schema_on_200(cls): return cls._schema_on_200 +class _ShowHelper: + """Helper class for Show""" + + __all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py index 0a1624dc345..631868b3f31 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py @@ -45,7 +45,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-n", "--name", "--configuration-profile-name"], help="Name of the configuration profile.", required=True, - id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -255,4 +254,8 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 +class _CreateHelper: + """Helper class for Create""" + + __all__ = ["Create"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py index d19ad871957..a80ed8f506a 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py @@ -129,4 +129,8 @@ def on_204(self, session): pass +class _DeleteHelper: + """Helper class for Delete""" + + __all__ = ["Delete"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py index b611a8618a6..07d8e5de6a7 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py @@ -324,4 +324,8 @@ def _build_schema_on_200(cls): return cls._schema_on_200 +class _ListHelper: + """Helper class for List""" + + __all__ = ["List"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py index 84c71d1649a..0ca9fa38457 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py @@ -198,4 +198,8 @@ def _build_schema_on_200(cls): return cls._schema_on_200 +class _ShowHelper: + """Helper class for Show""" + + __all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py index 1d74d3c61dd..5478603194b 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py @@ -188,7 +188,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _build_schema_configuration_profile_read(cls._schema_on_200) + _UpdateHelper._build_schema_configuration_profile_read(cls._schema_on_200) return cls._schema_on_200 @@ -283,7 +283,7 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() - _build_schema_configuration_profile_read(cls._schema_on_200_201) + _UpdateHelper._build_schema_configuration_profile_read(cls._schema_on_200_201) return cls._schema_on_200_201 @@ -324,76 +324,78 @@ def __call__(self, *args, **kwargs): ) -_schema_configuration_profile_read = None - - -def _build_schema_configuration_profile_read(_schema): - global _schema_configuration_profile_read - if _schema_configuration_profile_read is not None: - _schema.id = _schema_configuration_profile_read.id - _schema.location = _schema_configuration_profile_read.location - _schema.name = _schema_configuration_profile_read.name - _schema.properties = _schema_configuration_profile_read.properties - _schema.system_data = _schema_configuration_profile_read.system_data - _schema.tags = _schema_configuration_profile_read.tags - _schema.type = _schema_configuration_profile_read.type - return - - _schema_configuration_profile_read = AAZObjectType() - - configuration_profile_read = _schema_configuration_profile_read - configuration_profile_read.id = AAZStrType( - flags={"read_only": True}, - ) - configuration_profile_read.location = AAZStrType( - flags={"required": True}, - ) - configuration_profile_read.name = AAZStrType( - flags={"read_only": True}, - ) - configuration_profile_read.properties = AAZObjectType() - configuration_profile_read.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - configuration_profile_read.tags = AAZDictType() - configuration_profile_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_configuration_profile_read.properties - properties.configuration = AAZFreeFormDictType() - - system_data = _schema_configuration_profile_read.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - ) - - tags = _schema_configuration_profile_read.tags - tags.Element = AAZStrType() - - _schema.id = _schema_configuration_profile_read.id - _schema.location = _schema_configuration_profile_read.location - _schema.name = _schema_configuration_profile_read.name - _schema.properties = _schema_configuration_profile_read.properties - _schema.system_data = _schema_configuration_profile_read.system_data - _schema.tags = _schema_configuration_profile_read.tags - _schema.type = _schema_configuration_profile_read.type +class _UpdateHelper: + """Helper class for Update""" + + _schema_configuration_profile_read = None + + @classmethod + def _build_schema_configuration_profile_read(cls, _schema): + if cls._schema_configuration_profile_read is not None: + _schema.id = cls._schema_configuration_profile_read.id + _schema.location = cls._schema_configuration_profile_read.location + _schema.name = cls._schema_configuration_profile_read.name + _schema.properties = cls._schema_configuration_profile_read.properties + _schema.system_data = cls._schema_configuration_profile_read.system_data + _schema.tags = cls._schema_configuration_profile_read.tags + _schema.type = cls._schema_configuration_profile_read.type + return + + cls._schema_configuration_profile_read = _schema_configuration_profile_read = AAZObjectType() + + configuration_profile_read = _schema_configuration_profile_read + configuration_profile_read.id = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_read.location = AAZStrType( + flags={"required": True}, + ) + configuration_profile_read.name = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_read.properties = AAZObjectType() + configuration_profile_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + configuration_profile_read.tags = AAZDictType() + configuration_profile_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_configuration_profile_read.properties + properties.configuration = AAZFreeFormDictType() + + system_data = _schema_configuration_profile_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + tags = _schema_configuration_profile_read.tags + tags.Element = AAZStrType() + + _schema.id = cls._schema_configuration_profile_read.id + _schema.location = cls._schema_configuration_profile_read.location + _schema.name = cls._schema_configuration_profile_read.name + _schema.properties = cls._schema_configuration_profile_read.properties + _schema.system_data = cls._schema_configuration_profile_read.system_data + _schema.tags = cls._schema_configuration_profile_read.tags + _schema.type = cls._schema_configuration_profile_read.type __all__ = ["Update"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py index e668d863bf7..fa8018c43a6 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py @@ -45,7 +45,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["--profile-name", "--configuration-profile-name"], help="Name of the configuration profile.", required=True, - id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -54,7 +53,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-n", "--name", "--version-name"], help="The configuration profile version name.", required=True, - id_part="child_name_1", ) # define Arg Group "Parameters" @@ -265,4 +263,8 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 +class _CreateHelper: + """Helper class for Create""" + + __all__ = ["Create"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py index 90c3bea6284..3ff3328a7bd 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py @@ -139,4 +139,8 @@ def on_204(self, session): pass +class _DeleteHelper: + """Helper class for Delete""" + + __all__ = ["Delete"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py index 0f0e5e491f7..5cc4dc1fefb 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py @@ -203,4 +203,8 @@ def _build_schema_on_200(cls): return cls._schema_on_200 +class _ListHelper: + """Helper class for List""" + + __all__ = ["List"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py index 7cfbe9a1598..868d725aafd 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py @@ -208,4 +208,8 @@ def _build_schema_on_200(cls): return cls._schema_on_200 +class _ShowHelper: + """Helper class for Show""" + + __all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py index 1e3082ead36..3de7f99090b 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py @@ -198,7 +198,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _build_schema_configuration_profile_read(cls._schema_on_200) + _UpdateHelper._build_schema_configuration_profile_read(cls._schema_on_200) return cls._schema_on_200 @@ -297,7 +297,7 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() - _build_schema_configuration_profile_read(cls._schema_on_200_201) + _UpdateHelper._build_schema_configuration_profile_read(cls._schema_on_200_201) return cls._schema_on_200_201 @@ -338,76 +338,78 @@ def __call__(self, *args, **kwargs): ) -_schema_configuration_profile_read = None - - -def _build_schema_configuration_profile_read(_schema): - global _schema_configuration_profile_read - if _schema_configuration_profile_read is not None: - _schema.id = _schema_configuration_profile_read.id - _schema.location = _schema_configuration_profile_read.location - _schema.name = _schema_configuration_profile_read.name - _schema.properties = _schema_configuration_profile_read.properties - _schema.system_data = _schema_configuration_profile_read.system_data - _schema.tags = _schema_configuration_profile_read.tags - _schema.type = _schema_configuration_profile_read.type - return - - _schema_configuration_profile_read = AAZObjectType() - - configuration_profile_read = _schema_configuration_profile_read - configuration_profile_read.id = AAZStrType( - flags={"read_only": True}, - ) - configuration_profile_read.location = AAZStrType( - flags={"required": True}, - ) - configuration_profile_read.name = AAZStrType( - flags={"read_only": True}, - ) - configuration_profile_read.properties = AAZObjectType() - configuration_profile_read.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - configuration_profile_read.tags = AAZDictType() - configuration_profile_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_configuration_profile_read.properties - properties.configuration = AAZFreeFormDictType() - - system_data = _schema_configuration_profile_read.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - ) - - tags = _schema_configuration_profile_read.tags - tags.Element = AAZStrType() - - _schema.id = _schema_configuration_profile_read.id - _schema.location = _schema_configuration_profile_read.location - _schema.name = _schema_configuration_profile_read.name - _schema.properties = _schema_configuration_profile_read.properties - _schema.system_data = _schema_configuration_profile_read.system_data - _schema.tags = _schema_configuration_profile_read.tags - _schema.type = _schema_configuration_profile_read.type +class _UpdateHelper: + """Helper class for Update""" + + _schema_configuration_profile_read = None + + @classmethod + def _build_schema_configuration_profile_read(cls, _schema): + if cls._schema_configuration_profile_read is not None: + _schema.id = cls._schema_configuration_profile_read.id + _schema.location = cls._schema_configuration_profile_read.location + _schema.name = cls._schema_configuration_profile_read.name + _schema.properties = cls._schema_configuration_profile_read.properties + _schema.system_data = cls._schema_configuration_profile_read.system_data + _schema.tags = cls._schema_configuration_profile_read.tags + _schema.type = cls._schema_configuration_profile_read.type + return + + cls._schema_configuration_profile_read = _schema_configuration_profile_read = AAZObjectType() + + configuration_profile_read = _schema_configuration_profile_read + configuration_profile_read.id = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_read.location = AAZStrType( + flags={"required": True}, + ) + configuration_profile_read.name = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_read.properties = AAZObjectType() + configuration_profile_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + configuration_profile_read.tags = AAZDictType() + configuration_profile_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_configuration_profile_read.properties + properties.configuration = AAZFreeFormDictType() + + system_data = _schema_configuration_profile_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + tags = _schema_configuration_profile_read.tags + tags.Element = AAZStrType() + + _schema.id = cls._schema_configuration_profile_read.id + _schema.location = cls._schema_configuration_profile_read.location + _schema.name = cls._schema_configuration_profile_read.name + _schema.properties = cls._schema_configuration_profile_read.properties + _schema.system_data = cls._schema_configuration_profile_read.system_data + _schema.tags = cls._schema_configuration_profile_read.tags + _schema.type = cls._schema_configuration_profile_read.type __all__ = ["Update"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py index f8890d1205b..f90df7e368f 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py @@ -775,4 +775,8 @@ def _build_schema_on_200(cls): return cls._schema_on_200 +class _ListHelper: + """Helper class for List""" + + __all__ = ["List"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py index 8b598e5e9b2..f2eea82a49f 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py @@ -45,13 +45,11 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-n", "--name", "--configuration-profile-assignment-name"], help="Name of the configuration profile assignment. Only default is supported.", required=True, - id_part="child_name_1", ) _args_schema.machine_name = AAZStrArg( options=["--machine-name"], help="The name of the Arc machine.", required=True, - id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -240,4 +238,8 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 +class _CreateHelper: + """Helper class for Create""" + + __all__ = ["Create"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py index 719a67f075f..485dcc3a40b 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py @@ -139,4 +139,8 @@ def on_204(self, session): pass +class _DeleteHelper: + """Helper class for Delete""" + + __all__ = ["Delete"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py index 78505219d8e..8b633845542 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py @@ -213,4 +213,8 @@ def _build_schema_on_200(cls): return cls._schema_on_200 +class _ShowHelper: + """Helper class for Show""" + + __all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py index ff08ea8a5ba..54e2d080f13 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py @@ -183,7 +183,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _build_schema_configuration_profile_assignment_read(cls._schema_on_200) + _UpdateHelper._build_schema_configuration_profile_assignment_read(cls._schema_on_200) return cls._schema_on_200 @@ -282,7 +282,7 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() - _build_schema_configuration_profile_assignment_read(cls._schema_on_200_201) + _UpdateHelper._build_schema_configuration_profile_assignment_read(cls._schema_on_200_201) return cls._schema_on_200_201 @@ -314,79 +314,81 @@ def __call__(self, *args, **kwargs): ) -_schema_configuration_profile_assignment_read = None - - -def _build_schema_configuration_profile_assignment_read(_schema): - global _schema_configuration_profile_assignment_read - if _schema_configuration_profile_assignment_read is not None: - _schema.id = _schema_configuration_profile_assignment_read.id - _schema.managed_by = _schema_configuration_profile_assignment_read.managed_by - _schema.name = _schema_configuration_profile_assignment_read.name - _schema.properties = _schema_configuration_profile_assignment_read.properties - _schema.system_data = _schema_configuration_profile_assignment_read.system_data - _schema.type = _schema_configuration_profile_assignment_read.type - return - - _schema_configuration_profile_assignment_read = AAZObjectType() - - configuration_profile_assignment_read = _schema_configuration_profile_assignment_read - configuration_profile_assignment_read.id = AAZStrType( - flags={"read_only": True}, - ) - configuration_profile_assignment_read.managed_by = AAZStrType( - serialized_name="managedBy", - ) - configuration_profile_assignment_read.name = AAZStrType( - flags={"read_only": True}, - ) - configuration_profile_assignment_read.properties = AAZObjectType() - configuration_profile_assignment_read.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - configuration_profile_assignment_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_configuration_profile_assignment_read.properties - properties.configuration_profile = AAZStrType( - serialized_name="configurationProfile", - ) - properties.status = AAZStrType( - flags={"read_only": True}, - ) - properties.target_id = AAZStrType( - serialized_name="targetId", - flags={"read_only": True}, - ) - - system_data = _schema_configuration_profile_assignment_read.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - ) - - _schema.id = _schema_configuration_profile_assignment_read.id - _schema.managed_by = _schema_configuration_profile_assignment_read.managed_by - _schema.name = _schema_configuration_profile_assignment_read.name - _schema.properties = _schema_configuration_profile_assignment_read.properties - _schema.system_data = _schema_configuration_profile_assignment_read.system_data - _schema.type = _schema_configuration_profile_assignment_read.type +class _UpdateHelper: + """Helper class for Update""" + + _schema_configuration_profile_assignment_read = None + + @classmethod + def _build_schema_configuration_profile_assignment_read(cls, _schema): + if cls._schema_configuration_profile_assignment_read is not None: + _schema.id = cls._schema_configuration_profile_assignment_read.id + _schema.managed_by = cls._schema_configuration_profile_assignment_read.managed_by + _schema.name = cls._schema_configuration_profile_assignment_read.name + _schema.properties = cls._schema_configuration_profile_assignment_read.properties + _schema.system_data = cls._schema_configuration_profile_assignment_read.system_data + _schema.type = cls._schema_configuration_profile_assignment_read.type + return + + cls._schema_configuration_profile_assignment_read = _schema_configuration_profile_assignment_read = AAZObjectType() + + configuration_profile_assignment_read = _schema_configuration_profile_assignment_read + configuration_profile_assignment_read.id = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_assignment_read.managed_by = AAZStrType( + serialized_name="managedBy", + ) + configuration_profile_assignment_read.name = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_assignment_read.properties = AAZObjectType() + configuration_profile_assignment_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + configuration_profile_assignment_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_configuration_profile_assignment_read.properties + properties.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + flags={"read_only": True}, + ) + + system_data = _schema_configuration_profile_assignment_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.id = cls._schema_configuration_profile_assignment_read.id + _schema.managed_by = cls._schema_configuration_profile_assignment_read.managed_by + _schema.name = cls._schema_configuration_profile_assignment_read.name + _schema.properties = cls._schema_configuration_profile_assignment_read.properties + _schema.system_data = cls._schema_configuration_profile_assignment_read.system_data + _schema.type = cls._schema_configuration_profile_assignment_read.type __all__ = ["Update"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_list.py index b26c40f50d0..8d7ffd8a849 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_list.py @@ -191,7 +191,7 @@ def _build_schema_on_200(cls): serialized_name="endTime", ) properties.error = AAZObjectType() - _build_schema_error_detail_read(properties.error) + _ListHelper._build_schema_error_detail_read(properties.error) properties.last_modified_time = AAZStrType( serialized_name="lastModifiedTime", flags={"read_only": True}, @@ -218,7 +218,7 @@ def _build_schema_on_200(cls): _element = cls._schema_on_200.value.Element.properties.resources.Element _element.error = AAZObjectType() - _build_schema_error_detail_read(_element.error) + _ListHelper._build_schema_error_detail_read(_element.error) _element.id = AAZStrType( flags={"read_only": True}, ) @@ -255,56 +255,58 @@ def _build_schema_on_200(cls): return cls._schema_on_200 -_schema_error_detail_read = None - - -def _build_schema_error_detail_read(_schema): - global _schema_error_detail_read - if _schema_error_detail_read is not None: - _schema.additional_info = _schema_error_detail_read.additional_info - _schema.code = _schema_error_detail_read.code - _schema.details = _schema_error_detail_read.details - _schema.message = _schema_error_detail_read.message - _schema.target = _schema_error_detail_read.target - return - - _schema_error_detail_read = AAZObjectType() - - error_detail_read = _schema_error_detail_read - error_detail_read.additional_info = AAZListType( - serialized_name="additionalInfo", - flags={"read_only": True}, - ) - error_detail_read.code = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.details = AAZListType( - flags={"read_only": True}, - ) - error_detail_read.message = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.target = AAZStrType( - flags={"read_only": True}, - ) - - additional_info = _schema_error_detail_read.additional_info - additional_info.Element = AAZObjectType() - - _element = _schema_error_detail_read.additional_info.Element - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - details = _schema_error_detail_read.details - details.Element = AAZObjectType() - _build_schema_error_detail_read(details.Element) - - _schema.additional_info = _schema_error_detail_read.additional_info - _schema.code = _schema_error_detail_read.code - _schema.details = _schema_error_detail_read.details - _schema.message = _schema_error_detail_read.message - _schema.target = _schema_error_detail_read.target +class _ListHelper: + """Helper class for List""" + + _schema_error_detail_read = None + + @classmethod + def _build_schema_error_detail_read(cls, _schema): + if cls._schema_error_detail_read is not None: + _schema.additional_info = cls._schema_error_detail_read.additional_info + _schema.code = cls._schema_error_detail_read.code + _schema.details = cls._schema_error_detail_read.details + _schema.message = cls._schema_error_detail_read.message + _schema.target = cls._schema_error_detail_read.target + return + + cls._schema_error_detail_read = _schema_error_detail_read = AAZObjectType() + + error_detail_read = _schema_error_detail_read + error_detail_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + error_detail_read.code = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.details = AAZListType( + flags={"read_only": True}, + ) + error_detail_read.message = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.target = AAZStrType( + flags={"read_only": True}, + ) + + additional_info = _schema_error_detail_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_error_detail_read.additional_info.Element + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + details = _schema_error_detail_read.details + details.Element = AAZObjectType() + cls._build_schema_error_detail_read(details.Element) + + _schema.additional_info = cls._schema_error_detail_read.additional_info + _schema.code = cls._schema_error_detail_read.code + _schema.details = cls._schema_error_detail_read.details + _schema.message = cls._schema_error_detail_read.message + _schema.target = cls._schema_error_detail_read.target __all__ = ["List"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_show.py index b2c95994a1e..9d241a13199 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_show.py @@ -197,7 +197,7 @@ def _build_schema_on_200(cls): serialized_name="endTime", ) properties.error = AAZObjectType() - _build_schema_error_detail_read(properties.error) + _ShowHelper._build_schema_error_detail_read(properties.error) properties.last_modified_time = AAZStrType( serialized_name="lastModifiedTime", flags={"read_only": True}, @@ -224,7 +224,7 @@ def _build_schema_on_200(cls): _element = cls._schema_on_200.properties.resources.Element _element.error = AAZObjectType() - _build_schema_error_detail_read(_element.error) + _ShowHelper._build_schema_error_detail_read(_element.error) _element.id = AAZStrType( flags={"read_only": True}, ) @@ -261,56 +261,58 @@ def _build_schema_on_200(cls): return cls._schema_on_200 -_schema_error_detail_read = None - - -def _build_schema_error_detail_read(_schema): - global _schema_error_detail_read - if _schema_error_detail_read is not None: - _schema.additional_info = _schema_error_detail_read.additional_info - _schema.code = _schema_error_detail_read.code - _schema.details = _schema_error_detail_read.details - _schema.message = _schema_error_detail_read.message - _schema.target = _schema_error_detail_read.target - return - - _schema_error_detail_read = AAZObjectType() - - error_detail_read = _schema_error_detail_read - error_detail_read.additional_info = AAZListType( - serialized_name="additionalInfo", - flags={"read_only": True}, - ) - error_detail_read.code = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.details = AAZListType( - flags={"read_only": True}, - ) - error_detail_read.message = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.target = AAZStrType( - flags={"read_only": True}, - ) - - additional_info = _schema_error_detail_read.additional_info - additional_info.Element = AAZObjectType() - - _element = _schema_error_detail_read.additional_info.Element - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - details = _schema_error_detail_read.details - details.Element = AAZObjectType() - _build_schema_error_detail_read(details.Element) - - _schema.additional_info = _schema_error_detail_read.additional_info - _schema.code = _schema_error_detail_read.code - _schema.details = _schema_error_detail_read.details - _schema.message = _schema_error_detail_read.message - _schema.target = _schema_error_detail_read.target +class _ShowHelper: + """Helper class for Show""" + + _schema_error_detail_read = None + + @classmethod + def _build_schema_error_detail_read(cls, _schema): + if cls._schema_error_detail_read is not None: + _schema.additional_info = cls._schema_error_detail_read.additional_info + _schema.code = cls._schema_error_detail_read.code + _schema.details = cls._schema_error_detail_read.details + _schema.message = cls._schema_error_detail_read.message + _schema.target = cls._schema_error_detail_read.target + return + + cls._schema_error_detail_read = _schema_error_detail_read = AAZObjectType() + + error_detail_read = _schema_error_detail_read + error_detail_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + error_detail_read.code = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.details = AAZListType( + flags={"read_only": True}, + ) + error_detail_read.message = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.target = AAZStrType( + flags={"read_only": True}, + ) + + additional_info = _schema_error_detail_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_error_detail_read.additional_info.Element + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + details = _schema_error_detail_read.details + details.Element = AAZObjectType() + cls._build_schema_error_detail_read(details.Element) + + _schema.additional_info = cls._schema_error_detail_read.additional_info + _schema.code = cls._schema_error_detail_read.code + _schema.details = cls._schema_error_detail_read.details + _schema.message = cls._schema_error_detail_read.message + _schema.target = cls._schema_error_detail_read.target __all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py index 3e390a67c06..d08f5e624d3 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py @@ -45,13 +45,11 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["--cluster-name"], help="The name of the Arc machine.", required=True, - id_part="name", ) _args_schema.configuration_profile_assignment_name = AAZStrArg( options=["-n", "--name", "--configuration-profile-assignment-name"], help="Name of the configuration profile assignment. Only default is supported.", required=True, - id_part="child_name_1", ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -240,4 +238,8 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 +class _CreateHelper: + """Helper class for Create""" + + __all__ = ["Create"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py index feeed997adf..0e371a7f8ae 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py @@ -139,4 +139,8 @@ def on_204(self, session): pass +class _DeleteHelper: + """Helper class for Delete""" + + __all__ = ["Delete"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py index 457c79b5df4..e1074d513b0 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py @@ -213,4 +213,8 @@ def _build_schema_on_200(cls): return cls._schema_on_200 +class _ShowHelper: + """Helper class for Show""" + + __all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py index 741f3ddb156..36959ef4c41 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py @@ -183,7 +183,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _build_schema_configuration_profile_assignment_read(cls._schema_on_200) + _UpdateHelper._build_schema_configuration_profile_assignment_read(cls._schema_on_200) return cls._schema_on_200 @@ -282,7 +282,7 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() - _build_schema_configuration_profile_assignment_read(cls._schema_on_200_201) + _UpdateHelper._build_schema_configuration_profile_assignment_read(cls._schema_on_200_201) return cls._schema_on_200_201 @@ -314,79 +314,81 @@ def __call__(self, *args, **kwargs): ) -_schema_configuration_profile_assignment_read = None - - -def _build_schema_configuration_profile_assignment_read(_schema): - global _schema_configuration_profile_assignment_read - if _schema_configuration_profile_assignment_read is not None: - _schema.id = _schema_configuration_profile_assignment_read.id - _schema.managed_by = _schema_configuration_profile_assignment_read.managed_by - _schema.name = _schema_configuration_profile_assignment_read.name - _schema.properties = _schema_configuration_profile_assignment_read.properties - _schema.system_data = _schema_configuration_profile_assignment_read.system_data - _schema.type = _schema_configuration_profile_assignment_read.type - return - - _schema_configuration_profile_assignment_read = AAZObjectType() - - configuration_profile_assignment_read = _schema_configuration_profile_assignment_read - configuration_profile_assignment_read.id = AAZStrType( - flags={"read_only": True}, - ) - configuration_profile_assignment_read.managed_by = AAZStrType( - serialized_name="managedBy", - ) - configuration_profile_assignment_read.name = AAZStrType( - flags={"read_only": True}, - ) - configuration_profile_assignment_read.properties = AAZObjectType() - configuration_profile_assignment_read.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - configuration_profile_assignment_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_configuration_profile_assignment_read.properties - properties.configuration_profile = AAZStrType( - serialized_name="configurationProfile", - ) - properties.status = AAZStrType( - flags={"read_only": True}, - ) - properties.target_id = AAZStrType( - serialized_name="targetId", - flags={"read_only": True}, - ) - - system_data = _schema_configuration_profile_assignment_read.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - ) - - _schema.id = _schema_configuration_profile_assignment_read.id - _schema.managed_by = _schema_configuration_profile_assignment_read.managed_by - _schema.name = _schema_configuration_profile_assignment_read.name - _schema.properties = _schema_configuration_profile_assignment_read.properties - _schema.system_data = _schema_configuration_profile_assignment_read.system_data - _schema.type = _schema_configuration_profile_assignment_read.type +class _UpdateHelper: + """Helper class for Update""" + + _schema_configuration_profile_assignment_read = None + + @classmethod + def _build_schema_configuration_profile_assignment_read(cls, _schema): + if cls._schema_configuration_profile_assignment_read is not None: + _schema.id = cls._schema_configuration_profile_assignment_read.id + _schema.managed_by = cls._schema_configuration_profile_assignment_read.managed_by + _schema.name = cls._schema_configuration_profile_assignment_read.name + _schema.properties = cls._schema_configuration_profile_assignment_read.properties + _schema.system_data = cls._schema_configuration_profile_assignment_read.system_data + _schema.type = cls._schema_configuration_profile_assignment_read.type + return + + cls._schema_configuration_profile_assignment_read = _schema_configuration_profile_assignment_read = AAZObjectType() + + configuration_profile_assignment_read = _schema_configuration_profile_assignment_read + configuration_profile_assignment_read.id = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_assignment_read.managed_by = AAZStrType( + serialized_name="managedBy", + ) + configuration_profile_assignment_read.name = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_assignment_read.properties = AAZObjectType() + configuration_profile_assignment_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + configuration_profile_assignment_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_configuration_profile_assignment_read.properties + properties.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + flags={"read_only": True}, + ) + + system_data = _schema_configuration_profile_assignment_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.id = cls._schema_configuration_profile_assignment_read.id + _schema.managed_by = cls._schema_configuration_profile_assignment_read.managed_by + _schema.name = cls._schema_configuration_profile_assignment_read.name + _schema.properties = cls._schema_configuration_profile_assignment_read.properties + _schema.system_data = cls._schema_configuration_profile_assignment_read.system_data + _schema.type = cls._schema_configuration_profile_assignment_read.type __all__ = ["Update"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py index 87b7bced4e3..da601adf153 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py @@ -191,7 +191,7 @@ def _build_schema_on_200(cls): serialized_name="endTime", ) properties.error = AAZObjectType() - _build_schema_error_detail_read(properties.error) + _ListHelper._build_schema_error_detail_read(properties.error) properties.last_modified_time = AAZStrType( serialized_name="lastModifiedTime", flags={"read_only": True}, @@ -218,7 +218,7 @@ def _build_schema_on_200(cls): _element = cls._schema_on_200.value.Element.properties.resources.Element _element.error = AAZObjectType() - _build_schema_error_detail_read(_element.error) + _ListHelper._build_schema_error_detail_read(_element.error) _element.id = AAZStrType( flags={"read_only": True}, ) @@ -255,56 +255,58 @@ def _build_schema_on_200(cls): return cls._schema_on_200 -_schema_error_detail_read = None - - -def _build_schema_error_detail_read(_schema): - global _schema_error_detail_read - if _schema_error_detail_read is not None: - _schema.additional_info = _schema_error_detail_read.additional_info - _schema.code = _schema_error_detail_read.code - _schema.details = _schema_error_detail_read.details - _schema.message = _schema_error_detail_read.message - _schema.target = _schema_error_detail_read.target - return - - _schema_error_detail_read = AAZObjectType() - - error_detail_read = _schema_error_detail_read - error_detail_read.additional_info = AAZListType( - serialized_name="additionalInfo", - flags={"read_only": True}, - ) - error_detail_read.code = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.details = AAZListType( - flags={"read_only": True}, - ) - error_detail_read.message = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.target = AAZStrType( - flags={"read_only": True}, - ) - - additional_info = _schema_error_detail_read.additional_info - additional_info.Element = AAZObjectType() - - _element = _schema_error_detail_read.additional_info.Element - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - details = _schema_error_detail_read.details - details.Element = AAZObjectType() - _build_schema_error_detail_read(details.Element) - - _schema.additional_info = _schema_error_detail_read.additional_info - _schema.code = _schema_error_detail_read.code - _schema.details = _schema_error_detail_read.details - _schema.message = _schema_error_detail_read.message - _schema.target = _schema_error_detail_read.target +class _ListHelper: + """Helper class for List""" + + _schema_error_detail_read = None + + @classmethod + def _build_schema_error_detail_read(cls, _schema): + if cls._schema_error_detail_read is not None: + _schema.additional_info = cls._schema_error_detail_read.additional_info + _schema.code = cls._schema_error_detail_read.code + _schema.details = cls._schema_error_detail_read.details + _schema.message = cls._schema_error_detail_read.message + _schema.target = cls._schema_error_detail_read.target + return + + cls._schema_error_detail_read = _schema_error_detail_read = AAZObjectType() + + error_detail_read = _schema_error_detail_read + error_detail_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + error_detail_read.code = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.details = AAZListType( + flags={"read_only": True}, + ) + error_detail_read.message = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.target = AAZStrType( + flags={"read_only": True}, + ) + + additional_info = _schema_error_detail_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_error_detail_read.additional_info.Element + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + details = _schema_error_detail_read.details + details.Element = AAZObjectType() + cls._build_schema_error_detail_read(details.Element) + + _schema.additional_info = cls._schema_error_detail_read.additional_info + _schema.code = cls._schema_error_detail_read.code + _schema.details = cls._schema_error_detail_read.details + _schema.message = cls._schema_error_detail_read.message + _schema.target = cls._schema_error_detail_read.target __all__ = ["List"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py index 5c0ee85a3da..cd6b81a366f 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py @@ -197,7 +197,7 @@ def _build_schema_on_200(cls): serialized_name="endTime", ) properties.error = AAZObjectType() - _build_schema_error_detail_read(properties.error) + _ShowHelper._build_schema_error_detail_read(properties.error) properties.last_modified_time = AAZStrType( serialized_name="lastModifiedTime", flags={"read_only": True}, @@ -224,7 +224,7 @@ def _build_schema_on_200(cls): _element = cls._schema_on_200.properties.resources.Element _element.error = AAZObjectType() - _build_schema_error_detail_read(_element.error) + _ShowHelper._build_schema_error_detail_read(_element.error) _element.id = AAZStrType( flags={"read_only": True}, ) @@ -261,56 +261,58 @@ def _build_schema_on_200(cls): return cls._schema_on_200 -_schema_error_detail_read = None - - -def _build_schema_error_detail_read(_schema): - global _schema_error_detail_read - if _schema_error_detail_read is not None: - _schema.additional_info = _schema_error_detail_read.additional_info - _schema.code = _schema_error_detail_read.code - _schema.details = _schema_error_detail_read.details - _schema.message = _schema_error_detail_read.message - _schema.target = _schema_error_detail_read.target - return - - _schema_error_detail_read = AAZObjectType() - - error_detail_read = _schema_error_detail_read - error_detail_read.additional_info = AAZListType( - serialized_name="additionalInfo", - flags={"read_only": True}, - ) - error_detail_read.code = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.details = AAZListType( - flags={"read_only": True}, - ) - error_detail_read.message = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.target = AAZStrType( - flags={"read_only": True}, - ) - - additional_info = _schema_error_detail_read.additional_info - additional_info.Element = AAZObjectType() - - _element = _schema_error_detail_read.additional_info.Element - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - details = _schema_error_detail_read.details - details.Element = AAZObjectType() - _build_schema_error_detail_read(details.Element) - - _schema.additional_info = _schema_error_detail_read.additional_info - _schema.code = _schema_error_detail_read.code - _schema.details = _schema_error_detail_read.details - _schema.message = _schema_error_detail_read.message - _schema.target = _schema_error_detail_read.target +class _ShowHelper: + """Helper class for Show""" + + _schema_error_detail_read = None + + @classmethod + def _build_schema_error_detail_read(cls, _schema): + if cls._schema_error_detail_read is not None: + _schema.additional_info = cls._schema_error_detail_read.additional_info + _schema.code = cls._schema_error_detail_read.code + _schema.details = cls._schema_error_detail_read.details + _schema.message = cls._schema_error_detail_read.message + _schema.target = cls._schema_error_detail_read.target + return + + cls._schema_error_detail_read = _schema_error_detail_read = AAZObjectType() + + error_detail_read = _schema_error_detail_read + error_detail_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + error_detail_read.code = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.details = AAZListType( + flags={"read_only": True}, + ) + error_detail_read.message = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.target = AAZStrType( + flags={"read_only": True}, + ) + + additional_info = _schema_error_detail_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_error_detail_read.additional_info.Element + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + details = _schema_error_detail_read.details + details.Element = AAZObjectType() + cls._build_schema_error_detail_read(details.Element) + + _schema.additional_info = cls._schema_error_detail_read.additional_info + _schema.code = cls._schema_error_detail_read.code + _schema.details = cls._schema_error_detail_read.details + _schema.message = cls._schema_error_detail_read.message + _schema.target = cls._schema_error_detail_read.target __all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py index f84e68f6a3d..2f2d8d3d4a1 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py @@ -45,7 +45,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-n", "--name", "--configuration-profile-assignment-name"], help="Name of the configuration profile assignment. Only default is supported.", required=True, - id_part="child_name_1", ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -54,7 +53,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["--vm-name"], help="The name of the virtual machine.", required=True, - id_part="name", ) # define Arg Group "Properties" @@ -240,4 +238,8 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 +class _CreateHelper: + """Helper class for Create""" + + __all__ = ["Create"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py index c494e397c6c..c57a1a2b2a7 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py @@ -139,4 +139,8 @@ def on_204(self, session): pass +class _DeleteHelper: + """Helper class for Delete""" + + __all__ = ["Delete"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py index fda34446fe3..3d8cd4f53a8 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py @@ -213,4 +213,8 @@ def _build_schema_on_200(cls): return cls._schema_on_200 +class _ShowHelper: + """Helper class for Show""" + + __all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py index d42221f0d58..5769033a719 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py @@ -183,7 +183,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _build_schema_configuration_profile_assignment_read(cls._schema_on_200) + _UpdateHelper._build_schema_configuration_profile_assignment_read(cls._schema_on_200) return cls._schema_on_200 @@ -282,7 +282,7 @@ def _build_schema_on_200_201(cls): return cls._schema_on_200_201 cls._schema_on_200_201 = AAZObjectType() - _build_schema_configuration_profile_assignment_read(cls._schema_on_200_201) + _UpdateHelper._build_schema_configuration_profile_assignment_read(cls._schema_on_200_201) return cls._schema_on_200_201 @@ -314,79 +314,81 @@ def __call__(self, *args, **kwargs): ) -_schema_configuration_profile_assignment_read = None - - -def _build_schema_configuration_profile_assignment_read(_schema): - global _schema_configuration_profile_assignment_read - if _schema_configuration_profile_assignment_read is not None: - _schema.id = _schema_configuration_profile_assignment_read.id - _schema.managed_by = _schema_configuration_profile_assignment_read.managed_by - _schema.name = _schema_configuration_profile_assignment_read.name - _schema.properties = _schema_configuration_profile_assignment_read.properties - _schema.system_data = _schema_configuration_profile_assignment_read.system_data - _schema.type = _schema_configuration_profile_assignment_read.type - return - - _schema_configuration_profile_assignment_read = AAZObjectType() - - configuration_profile_assignment_read = _schema_configuration_profile_assignment_read - configuration_profile_assignment_read.id = AAZStrType( - flags={"read_only": True}, - ) - configuration_profile_assignment_read.managed_by = AAZStrType( - serialized_name="managedBy", - ) - configuration_profile_assignment_read.name = AAZStrType( - flags={"read_only": True}, - ) - configuration_profile_assignment_read.properties = AAZObjectType() - configuration_profile_assignment_read.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - configuration_profile_assignment_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_configuration_profile_assignment_read.properties - properties.configuration_profile = AAZStrType( - serialized_name="configurationProfile", - ) - properties.status = AAZStrType( - flags={"read_only": True}, - ) - properties.target_id = AAZStrType( - serialized_name="targetId", - flags={"read_only": True}, - ) - - system_data = _schema_configuration_profile_assignment_read.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - ) - - _schema.id = _schema_configuration_profile_assignment_read.id - _schema.managed_by = _schema_configuration_profile_assignment_read.managed_by - _schema.name = _schema_configuration_profile_assignment_read.name - _schema.properties = _schema_configuration_profile_assignment_read.properties - _schema.system_data = _schema_configuration_profile_assignment_read.system_data - _schema.type = _schema_configuration_profile_assignment_read.type +class _UpdateHelper: + """Helper class for Update""" + + _schema_configuration_profile_assignment_read = None + + @classmethod + def _build_schema_configuration_profile_assignment_read(cls, _schema): + if cls._schema_configuration_profile_assignment_read is not None: + _schema.id = cls._schema_configuration_profile_assignment_read.id + _schema.managed_by = cls._schema_configuration_profile_assignment_read.managed_by + _schema.name = cls._schema_configuration_profile_assignment_read.name + _schema.properties = cls._schema_configuration_profile_assignment_read.properties + _schema.system_data = cls._schema_configuration_profile_assignment_read.system_data + _schema.type = cls._schema_configuration_profile_assignment_read.type + return + + cls._schema_configuration_profile_assignment_read = _schema_configuration_profile_assignment_read = AAZObjectType() + + configuration_profile_assignment_read = _schema_configuration_profile_assignment_read + configuration_profile_assignment_read.id = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_assignment_read.managed_by = AAZStrType( + serialized_name="managedBy", + ) + configuration_profile_assignment_read.name = AAZStrType( + flags={"read_only": True}, + ) + configuration_profile_assignment_read.properties = AAZObjectType() + configuration_profile_assignment_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + configuration_profile_assignment_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_configuration_profile_assignment_read.properties + properties.configuration_profile = AAZStrType( + serialized_name="configurationProfile", + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.target_id = AAZStrType( + serialized_name="targetId", + flags={"read_only": True}, + ) + + system_data = _schema_configuration_profile_assignment_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.id = cls._schema_configuration_profile_assignment_read.id + _schema.managed_by = cls._schema_configuration_profile_assignment_read.managed_by + _schema.name = cls._schema_configuration_profile_assignment_read.name + _schema.properties = cls._schema_configuration_profile_assignment_read.properties + _schema.system_data = cls._schema_configuration_profile_assignment_read.system_data + _schema.type = cls._schema_configuration_profile_assignment_read.type __all__ = ["Update"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py index ae73cfe1804..a92fe06b9bb 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py @@ -191,7 +191,7 @@ def _build_schema_on_200(cls): serialized_name="endTime", ) properties.error = AAZObjectType() - _build_schema_error_detail_read(properties.error) + _ListHelper._build_schema_error_detail_read(properties.error) properties.last_modified_time = AAZStrType( serialized_name="lastModifiedTime", flags={"read_only": True}, @@ -218,7 +218,7 @@ def _build_schema_on_200(cls): _element = cls._schema_on_200.value.Element.properties.resources.Element _element.error = AAZObjectType() - _build_schema_error_detail_read(_element.error) + _ListHelper._build_schema_error_detail_read(_element.error) _element.id = AAZStrType( flags={"read_only": True}, ) @@ -255,56 +255,58 @@ def _build_schema_on_200(cls): return cls._schema_on_200 -_schema_error_detail_read = None - - -def _build_schema_error_detail_read(_schema): - global _schema_error_detail_read - if _schema_error_detail_read is not None: - _schema.additional_info = _schema_error_detail_read.additional_info - _schema.code = _schema_error_detail_read.code - _schema.details = _schema_error_detail_read.details - _schema.message = _schema_error_detail_read.message - _schema.target = _schema_error_detail_read.target - return - - _schema_error_detail_read = AAZObjectType() - - error_detail_read = _schema_error_detail_read - error_detail_read.additional_info = AAZListType( - serialized_name="additionalInfo", - flags={"read_only": True}, - ) - error_detail_read.code = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.details = AAZListType( - flags={"read_only": True}, - ) - error_detail_read.message = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.target = AAZStrType( - flags={"read_only": True}, - ) - - additional_info = _schema_error_detail_read.additional_info - additional_info.Element = AAZObjectType() - - _element = _schema_error_detail_read.additional_info.Element - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - details = _schema_error_detail_read.details - details.Element = AAZObjectType() - _build_schema_error_detail_read(details.Element) - - _schema.additional_info = _schema_error_detail_read.additional_info - _schema.code = _schema_error_detail_read.code - _schema.details = _schema_error_detail_read.details - _schema.message = _schema_error_detail_read.message - _schema.target = _schema_error_detail_read.target +class _ListHelper: + """Helper class for List""" + + _schema_error_detail_read = None + + @classmethod + def _build_schema_error_detail_read(cls, _schema): + if cls._schema_error_detail_read is not None: + _schema.additional_info = cls._schema_error_detail_read.additional_info + _schema.code = cls._schema_error_detail_read.code + _schema.details = cls._schema_error_detail_read.details + _schema.message = cls._schema_error_detail_read.message + _schema.target = cls._schema_error_detail_read.target + return + + cls._schema_error_detail_read = _schema_error_detail_read = AAZObjectType() + + error_detail_read = _schema_error_detail_read + error_detail_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + error_detail_read.code = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.details = AAZListType( + flags={"read_only": True}, + ) + error_detail_read.message = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.target = AAZStrType( + flags={"read_only": True}, + ) + + additional_info = _schema_error_detail_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_error_detail_read.additional_info.Element + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + details = _schema_error_detail_read.details + details.Element = AAZObjectType() + cls._build_schema_error_detail_read(details.Element) + + _schema.additional_info = cls._schema_error_detail_read.additional_info + _schema.code = cls._schema_error_detail_read.code + _schema.details = cls._schema_error_detail_read.details + _schema.message = cls._schema_error_detail_read.message + _schema.target = cls._schema_error_detail_read.target __all__ = ["List"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py index 3747022bbd1..e44b1e0f39a 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py @@ -197,7 +197,7 @@ def _build_schema_on_200(cls): serialized_name="endTime", ) properties.error = AAZObjectType() - _build_schema_error_detail_read(properties.error) + _ShowHelper._build_schema_error_detail_read(properties.error) properties.last_modified_time = AAZStrType( serialized_name="lastModifiedTime", flags={"read_only": True}, @@ -224,7 +224,7 @@ def _build_schema_on_200(cls): _element = cls._schema_on_200.properties.resources.Element _element.error = AAZObjectType() - _build_schema_error_detail_read(_element.error) + _ShowHelper._build_schema_error_detail_read(_element.error) _element.id = AAZStrType( flags={"read_only": True}, ) @@ -261,56 +261,58 @@ def _build_schema_on_200(cls): return cls._schema_on_200 -_schema_error_detail_read = None - - -def _build_schema_error_detail_read(_schema): - global _schema_error_detail_read - if _schema_error_detail_read is not None: - _schema.additional_info = _schema_error_detail_read.additional_info - _schema.code = _schema_error_detail_read.code - _schema.details = _schema_error_detail_read.details - _schema.message = _schema_error_detail_read.message - _schema.target = _schema_error_detail_read.target - return - - _schema_error_detail_read = AAZObjectType() - - error_detail_read = _schema_error_detail_read - error_detail_read.additional_info = AAZListType( - serialized_name="additionalInfo", - flags={"read_only": True}, - ) - error_detail_read.code = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.details = AAZListType( - flags={"read_only": True}, - ) - error_detail_read.message = AAZStrType( - flags={"read_only": True}, - ) - error_detail_read.target = AAZStrType( - flags={"read_only": True}, - ) - - additional_info = _schema_error_detail_read.additional_info - additional_info.Element = AAZObjectType() - - _element = _schema_error_detail_read.additional_info.Element - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - details = _schema_error_detail_read.details - details.Element = AAZObjectType() - _build_schema_error_detail_read(details.Element) - - _schema.additional_info = _schema_error_detail_read.additional_info - _schema.code = _schema_error_detail_read.code - _schema.details = _schema_error_detail_read.details - _schema.message = _schema_error_detail_read.message - _schema.target = _schema_error_detail_read.target +class _ShowHelper: + """Helper class for Show""" + + _schema_error_detail_read = None + + @classmethod + def _build_schema_error_detail_read(cls, _schema): + if cls._schema_error_detail_read is not None: + _schema.additional_info = cls._schema_error_detail_read.additional_info + _schema.code = cls._schema_error_detail_read.code + _schema.details = cls._schema_error_detail_read.details + _schema.message = cls._schema_error_detail_read.message + _schema.target = cls._schema_error_detail_read.target + return + + cls._schema_error_detail_read = _schema_error_detail_read = AAZObjectType() + + error_detail_read = _schema_error_detail_read + error_detail_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + error_detail_read.code = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.details = AAZListType( + flags={"read_only": True}, + ) + error_detail_read.message = AAZStrType( + flags={"read_only": True}, + ) + error_detail_read.target = AAZStrType( + flags={"read_only": True}, + ) + + additional_info = _schema_error_detail_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_error_detail_read.additional_info.Element + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + details = _schema_error_detail_read.details + details.Element = AAZObjectType() + cls._build_schema_error_detail_read(details.Element) + + _schema.additional_info = cls._schema_error_detail_read.additional_info + _schema.code = cls._schema_error_detail_read.code + _schema.details = cls._schema_error_detail_read.details + _schema.message = cls._schema_error_detail_read.message + _schema.target = cls._schema_error_detail_read.target __all__ = ["Show"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py index fcb69157488..0c78200af58 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py @@ -185,4 +185,8 @@ def _build_schema_on_200(cls): return cls._schema_on_200 +class _ListHelper: + """Helper class for List""" + + __all__ = ["List"] diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py index 9c8c494e68a..77d95cb72cb 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py @@ -179,4 +179,8 @@ def _build_schema_on_200(cls): return cls._schema_on_200 +class _ShowDefaultHelper: + """Helper class for ShowDefault""" + + __all__ = ["ShowDefault"] diff --git a/src/automanage/azext_automanage/azext_metadata.json b/src/automanage/azext_automanage/azext_metadata.json index 47d964781bf..f5c45b78119 100644 --- a/src/automanage/azext_automanage/azext_metadata.json +++ b/src/automanage/azext_automanage/azext_metadata.json @@ -1,4 +1,4 @@ { "azext.isPreview": true, - "azext.minCliCoreVersion": "2.42.0" + "azext.minCliCoreVersion": "2.44.1" } \ No newline at end of file diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml index b6afacc6f57..b1a1d94924f 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml @@ -13,7 +13,7 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgtestautomanage?api-version=2021-04-01 @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:39 GMT + - Fri, 20 Jan 2023 03:45:55 GMT expires: - '-1' pragma: @@ -61,12 +61,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","name":"profile000001","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-11-18T07:41:45.7922547+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:45.7922547+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","name":"profile000001","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-01-20T03:45:58.3430495+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:45:58.3430495+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:52 GMT + - Fri, 20 Jan 2023 03:46:00 GMT expires: - '-1' location: @@ -113,12 +113,12 @@ interactions: ParameterSetName: - -n -g --machine-name --configuration-profile User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-11-18T07:41:53.1999496+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:53.1999496+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2023-01-20T03:46:01.3428232+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:46:01.3428232+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -127,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:54 GMT + - Fri, 20 Jan 2023 03:46:03 GMT expires: - '-1' location: @@ -143,7 +143,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -161,21 +161,21 @@ interactions: ParameterSetName: - -n -g --machine-name User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-11-18T07:41:53.1999496+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:53.1999496+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"InProgress"},"systemData":{"createdAt":"2023-01-20T03:46:05.7070042+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:46:05.7070042+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '891' + - '936' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:57 GMT + - Fri, 20 Jan 2023 03:46:06 GMT expires: - '-1' pragma: @@ -209,21 +209,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-11-18T07:41:53.1999496+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:53.1999496+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2023-01-20T03:46:07.1757634+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:46:07.1757634+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '903' + - '951' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:58 GMT + - Fri, 20 Jan 2023 03:46:08 GMT expires: - '-1' pragma: @@ -260,7 +260,7 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgtestautomanage?api-version=2021-04-01 @@ -275,7 +275,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:58 GMT + - Fri, 20 Jan 2023 03:46:07 GMT expires: - '-1' pragma: @@ -308,12 +308,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-11-18T07:42:03.8908474+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:42:03.8908474+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T03:46:13.6177999+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:46:13.6177999+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -322,7 +322,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:04 GMT + - Fri, 20 Jan 2023 03:46:15 GMT expires: - '-1' location: @@ -356,21 +356,21 @@ interactions: ParameterSetName: - --n -g --machine-name --configuration-profile User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2022-11-18T07:41:53.1999496+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:53.1999496+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2023-01-20T03:46:07.1757634+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:46:07.1757634+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '891' + - '939' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:06 GMT + - Fri, 20 Jan 2023 03:46:17 GMT expires: - '-1' pragma: @@ -408,21 +408,21 @@ interactions: ParameterSetName: - --n -g --machine-name --configuration-profile User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T07:42:06.4446903+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:42:06.4446903+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"NonConformant"},"systemData":{"createdAt":"2023-01-20T03:46:18.6075646+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:46:18.6075646+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '891' + - '901' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:08 GMT + - Fri, 20 Jan 2023 03:46:19 GMT expires: - '-1' pragma: @@ -440,7 +440,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -458,28 +458,23 @@ interactions: ParameterSetName: - --assignment-name -g --machine-name User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/2b572873-cc53-494b-9820-2a73e7cca2e2","name":"2b572873-cc53-494b-9820-2a73e7cca2e2","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:59:12.9081733Z","endTime":"2022-11-18T06:59:16.1912519Z","lastModifiedTime":"2022-11-18T06:59:16.1912498Z","duration":"PT3.2830786S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilem4p3azglmwlwob4yu","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:59:16.39724+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:59:16.39724+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/f7b347c7-821a-45f1-a851-acaa289a0030","name":"f7b347c7-821a-45f1-a851-acaa289a0030","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:41:22.0023153Z","endTime":"0001-01-01T00:00:00","lastModifiedTime":"2022-11-18T07:41:22.0023171Z","duration":null,"type":"Consistency","status":"InProgress","configurationProfile":null,"resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:41:22.1138737+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:41:22.1138737+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/4a05e774-8137-4f9f-9a62-ab1f1a75df0a","name":"4a05e774-8137-4f9f-9a62-ab1f1a75df0a","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:42:23.5214623Z","endTime":"2022-11-18T07:42:26.4730291Z","lastModifiedTime":"2022-11-18T07:42:26.473028Z","duration":"PT2.9515668S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:42:27.2539678+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:42:27.2539678+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/ae6298ff-52e1-4d5a-a12a-d80a46215c4c","name":"ae6298ff-52e1-4d5a-a12a-d80a46215c4c","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:42:34.2355748Z","endTime":"2022-11-18T06:42:41.544651Z","lastModifiedTime":"2022-11-18T06:42:41.5446475Z","duration":"PT7.3090762S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilelnwkhworimhx5jzr6","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:42:42.1595345+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:42:42.1595345+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/ccd43d1a-caf6-47da-a1e3-34bd6a95d319","name":"ccd43d1a-caf6-47da-a1e3-34bd6a95d319","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:42:48.0456324Z","endTime":"2022-11-18T06:42:50.9932042Z","lastModifiedTime":"2022-11-18T06:42:50.993203Z","duration":"PT2.9475718S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilelnwkhworimhx5jzr6","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:42:51.8327907+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:42:51.8327907+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/c9f483b1-9ce0-45a6-b8b9-fce6a76c364b","name":"c9f483b1-9ce0-45a6-b8b9-fce6a76c364b","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:58:45.2422152Z","endTime":"2022-11-18T06:58:48.1918218Z","lastModifiedTime":"2022-11-18T06:58:48.1918204Z","duration":"PT2.9496066S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilemqnqkrrowegy2t5z5","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:58:48.7004997+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:58:48.7004997+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/43fc80dd-5c04-441b-bf46-8da19e39f280","name":"43fc80dd-5c04-441b-bf46-8da19e39f280","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:41:07.6576656Z","endTime":"2022-11-18T07:41:11.8292333Z","lastModifiedTime":"2022-11-18T07:41:11.8292308Z","duration":"PT4.1715677S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilevg4v7qppbzpteemhs","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:41:12.0490949+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:41:12.0490949+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5e8fe45a-2281-4399-9b00-3150e44062b5","name":"5e8fe45a-2281-4399-9b00-3150e44062b5","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:42:08.8840617Z","endTime":"2022-11-18T07:42:09.8293939Z","lastModifiedTime":"2022-11-18T07:42:09.8293937Z","duration":"PT0.9453322S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:42:10.1087234+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:42:10.1087234+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b695fbba-a47e-4477-8d44-ac1928e482b6","name":"b695fbba-a47e-4477-8d44-ac1928e482b6","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:46:05.8035601Z","endTime":"2023-01-20T03:46:07.1124517Z","lastModifiedTime":"2023-01-20T03:46:07.1124514Z","duration":"PT1.3088916S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://aka.ms/amvm_windows_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_linux_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_Arc_supportedOS"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:46:07.2696368+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:46:07.2696368+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/fd957858-f2e0-401d-9a18-e4b209140077","name":"fd957858-f2e0-401d-9a18-e4b209140077","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:46:33.9134518Z","endTime":"2023-01-20T03:46:35.3553345Z","lastModifiedTime":"2023-01-20T03:46:35.3553343Z","duration":"PT1.4418827S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://aka.ms/amvm_windows_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_linux_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_Arc_supportedOS"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:46:35.581645+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:46:35.581645+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '12197' + - '3175' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:30 GMT + - Fri, 20 Jan 2023 03:46:40 GMT expires: - '-1' pragma: @@ -513,22 +508,22 @@ interactions: ParameterSetName: - -n --assignment-name -g --machine-name User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/2b572873-cc53-494b-9820-2a73e7cca2e2?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b695fbba-a47e-4477-8d44-ac1928e482b6?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/2b572873-cc53-494b-9820-2a73e7cca2e2","name":"2b572873-cc53-494b-9820-2a73e7cca2e2","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T06:59:12.9081733Z","endTime":"2022-11-18T06:59:16.1912519Z","lastModifiedTime":"2022-11-18T06:59:16.1912498Z","duration":"PT3.2830786S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilem4p3azglmwlwob4yu","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows"},{"type":"hyperlink","info":"https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T06:59:16.39724+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T06:59:16.39724+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b695fbba-a47e-4477-8d44-ac1928e482b6","name":"b695fbba-a47e-4477-8d44-ac1928e482b6","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:46:05.8035601Z","endTime":"2023-01-20T03:46:07.1124517Z","lastModifiedTime":"2023-01-20T03:46:07.1124514Z","duration":"PT1.3088916S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://aka.ms/amvm_windows_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_linux_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_Arc_supportedOS"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:46:07.2696368+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:46:07.2696368+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1607' + - '1580' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:32 GMT + - Fri, 20 Jan 2023 03:46:42 GMT expires: - '-1' pragma: @@ -564,7 +559,7 @@ interactions: ParameterSetName: - -n -g --machine-name -y User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: @@ -576,7 +571,7 @@ interactions: content-length: - '0' date: - - Fri, 18 Nov 2022 07:42:35 GMT + - Fri, 20 Jan 2023 03:46:45 GMT expires: - '-1' pragma: @@ -608,7 +603,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: @@ -622,7 +617,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:37 GMT + - Fri, 20 Jan 2023 03:46:46 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml index cb0ba533bd4..e413fba3434 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml @@ -13,13 +13,13 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T07:41:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T03:42:36Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:44 GMT + - Fri, 20 Jan 2023 03:42:40 GMT expires: - '-1' pragma: @@ -61,12 +61,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-11-18T07:41:49.0357648+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:49.0357648+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-01-20T03:42:45.3015183+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:42:45.3015183+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:50 GMT + - Fri, 20 Jan 2023 03:42:56 GMT expires: - '-1' location: @@ -91,7 +91,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -109,13 +109,13 @@ interactions: ParameterSetName: - --cluster-name -g User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T07:41:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T03:42:36Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:51 GMT + - Fri, 20 Jan 2023 03:42:57 GMT expires: - '-1' pragma: @@ -156,13 +156,13 @@ interactions: ParameterSetName: - --cluster-name -g User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-mgmt-azurestackhci/1.0.0b1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-mgmt-azurestackhci/1.0.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1?api-version=2022-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1","name":"cluster1","type":"microsoft.azurestackhci/clusters","location":"eastus2euap","systemData":{"createdBy":"zhiyihuang@microsoft.com","createdByType":"User","createdAt":"2022-11-18T07:41:56.6010804Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-18T07:41:56.6010804Z"},"properties":{"provisioningState":"Succeeded","status":"NotYetRegistered","cloudId":"7157cc65-6ba7-472a-8f44-5fa2ff931fef","desiredProperties":{"windowsServerSubscription":"Disabled","diagnosticLevel":"Basic"},"trialDaysRemaining":60,"billingModel":"Trial","serviceEndpoint":"https://dp.stackhci.azure.com/eastus2euap/"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1","name":"cluster1","type":"microsoft.azurestackhci/clusters","location":"eastus2euap","systemData":{"createdBy":"zhiyihuang@microsoft.com","createdByType":"User","createdAt":"2023-01-20T03:43:07.0023973Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-01-20T03:43:07.0023973Z"},"properties":{"provisioningState":"Succeeded","status":"NotYetRegistered","cloudId":"5a32d4bf-2747-4d75-bb40-58f4cbacfb94","desiredProperties":{"windowsServerSubscription":"Disabled","diagnosticLevel":"Basic"},"trialDaysRemaining":60,"billingModel":"Trial","serviceEndpoint":"https://dp.stackhci.azure.com/eastus2euap/"}}' headers: cache-control: - no-cache @@ -171,13 +171,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:02 GMT + - Fri, 20 Jan 2023 03:43:10 GMT etag: - - '"0000dd45-0000-3400-0000-637737490000"' + - '"03008cde-0000-3400-0000-63ca0dcd0000"' expires: - '-1' mise-correlation-id: - - 4efddb95-325d-46a7-9c53-24c87a18c4af + - eb68bc24-29a9-45ae-9a9a-151b6494021d pragma: - no-cache strict-transport-security: @@ -191,7 +191,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' x-powered-by: - ASP.NET status: @@ -215,12 +215,12 @@ interactions: ParameterSetName: - -n -g --cluster-name --configuration-profile User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T07:42:03.545079+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:42:03.545079+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T03:43:11.724157+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:43:11.724157+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -229,7 +229,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:05 GMT + - Fri, 20 Jan 2023 03:43:13 GMT expires: - '-1' location: @@ -245,7 +245,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -263,12 +263,12 @@ interactions: ParameterSetName: - -n -g --cluster-name User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T07:42:03.545079+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:42:03.545079+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T03:43:11.724157+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:43:11.724157+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -277,7 +277,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:06 GMT + - Fri, 20 Jan 2023 03:43:16 GMT expires: - '-1' pragma: @@ -311,21 +311,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"InProgress"},"systemData":{"createdAt":"2022-11-18T07:42:08.7737939+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:42:08.7737939+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T03:43:11.724157+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:43:11.724157+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '1070' + - '1023' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:08 GMT + - Fri, 20 Jan 2023 03:43:17 GMT expires: - '-1' pragma: @@ -362,13 +362,13 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T07:41:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T03:42:36Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -377,7 +377,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:09 GMT + - Fri, 20 Jan 2023 03:43:18 GMT expires: - '-1' pragma: @@ -410,12 +410,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","name":"profile000003","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-11-18T07:42:12.3327783+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:42:12.3327783+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","name":"profile000003","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T03:43:23.4941649+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:43:23.4941649+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -424,7 +424,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:13 GMT + - Fri, 20 Jan 2023 03:43:25 GMT expires: - '-1' location: @@ -440,7 +440,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 201 message: Created @@ -458,12 +458,12 @@ interactions: ParameterSetName: - --n -g --cluster-name --configuration-profile User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2022-11-18T07:42:09.6651464+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:42:09.6651464+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2023-01-20T03:43:23.9911927+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:43:23.9911927+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache @@ -472,7 +472,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:15 GMT + - Fri, 20 Jan 2023 03:43:27 GMT expires: - '-1' pragma: @@ -510,12 +510,12 @@ interactions: ParameterSetName: - --n -g --cluster-name --configuration-profile User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","status":"Error"},"systemData":{"createdAt":"2022-11-18T07:42:16.6095178+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:42:16.6095178+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","status":"Error"},"systemData":{"createdAt":"2023-01-20T03:43:28.6139948+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:43:28.6139948+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -524,7 +524,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:16 GMT + - Fri, 20 Jan 2023 03:43:29 GMT expires: - '-1' pragma: @@ -542,7 +542,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -560,23 +560,23 @@ interactions: ParameterSetName: - --assignment-name -g --cluster-name User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/9abe615e-74be-42d0-9a3d-856703747cd8","name":"9abe615e-74be-42d0-9a3d-856703747cd8","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:42:08.890405Z","endTime":"2022-11-18T07:42:09.5099961Z","lastModifiedTime":"2022-11-18T07:42:09.5099933Z","duration":"PT0.6195911S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:42:09.7745194+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:42:09.7745194+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/629302e4-2d2d-4b69-9d57-9e816cb21496","name":"629302e4-2d2d-4b69-9d57-9e816cb21496","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:42:21.1834874Z","endTime":"2022-11-18T07:42:21.7552016Z","lastModifiedTime":"2022-11-18T07:42:21.7552007Z","duration":"PT0.5717142S","type":"Consistency","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:42:22.0069586+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:42:22.0069586+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/38156af6-7db2-4127-a08f-428975adaac5","name":"38156af6-7db2-4127-a08f-428975adaac5","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:43:22.9741536Z","endTime":"2023-01-20T03:43:23.7502161Z","lastModifiedTime":"2023-01-20T03:43:23.7502154Z","duration":"PT0.7760625S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:43:24.2411669+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:43:24.2411669+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/9b477cea-9d11-4fcf-aa47-8647d7f9fb65","name":"9b477cea-9d11-4fcf-aa47-8647d7f9fb65","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:43:33.2350795Z","endTime":"2023-01-20T03:43:34.5893126Z","lastModifiedTime":"2023-01-20T03:43:34.5893122Z","duration":"PT1.3542331S","type":"Consistency","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:43:35.1914127+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:43:35.1914127+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '2328' + - '2329' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:39 GMT + - Fri, 20 Jan 2023 03:43:52 GMT expires: - '-1' pragma: @@ -610,22 +610,22 @@ interactions: ParameterSetName: - -n --assignment-name -g --cluster-name User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/9abe615e-74be-42d0-9a3d-856703747cd8?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/38156af6-7db2-4127-a08f-428975adaac5?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/9abe615e-74be-42d0-9a3d-856703747cd8","name":"9abe615e-74be-42d0-9a3d-856703747cd8","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:42:08.890405Z","endTime":"2022-11-18T07:42:09.5099961Z","lastModifiedTime":"2022-11-18T07:42:09.5099933Z","duration":"PT0.6195911S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:42:09.7745194+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:42:09.7745194+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/38156af6-7db2-4127-a08f-428975adaac5","name":"38156af6-7db2-4127-a08f-428975adaac5","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:43:22.9741536Z","endTime":"2023-01-20T03:43:23.7502161Z","lastModifiedTime":"2023-01-20T03:43:23.7502154Z","duration":"PT0.7760625S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:43:24.2411669+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:43:24.2411669+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1155' + - '1156' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:41 GMT + - Fri, 20 Jan 2023 03:43:55 GMT expires: - '-1' pragma: @@ -661,7 +661,7 @@ interactions: ParameterSetName: - -n -g --cluster-name -y User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: @@ -673,7 +673,7 @@ interactions: content-length: - '0' date: - - Fri, 18 Nov 2022 07:42:44 GMT + - Fri, 20 Jan 2023 03:43:57 GMT expires: - '-1' pragma: @@ -705,7 +705,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: @@ -719,7 +719,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:46 GMT + - Fri, 20 Jan 2023 03:43:59 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml index a853a800caf..2399fa0cae7 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml @@ -13,13 +13,13 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T07:41:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T03:35:01Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:43 GMT + - Fri, 20 Jan 2023 03:35:07 GMT expires: - '-1' pragma: @@ -61,140 +61,308 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"error":{"code":"SubscriptionRequestsThrottled","message":"Number - of requests for subscription ''0b1f6471-1bf0-4dda-aec3-cb9272f09590'' and - operation ''PUT/SUBSCRIPTIONS/RESOURCEGROUPS/PROVIDERS/MICROSOFT.AUTOMANAGE/CONFIGURATIONPROFILES/'' - exceeded the backend storage limit. Please try again after ''6'' seconds."}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-01-20T03:35:12.6133209+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:35:12.6133209+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache - connection: - - close content-length: - - '312' + - '601' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:49 GMT + - Fri, 20 Jan 2023 03:35:14 GMT expires: - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002 pragma: - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' status: - code: 429 - message: '' + code: 201 + message: Created - request: - body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": - true}}}' + body: null headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - automanage configuration-profile create + - vm create Connection: - keep-alive - Content-Length: - - '90' - Content-Type: - - application/json ParameterSetName: - - -n -g --configuration + - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"error":{"code":"SubscriptionRequestsThrottled","message":"Number - of requests for subscription ''0b1f6471-1bf0-4dda-aec3-cb9272f09590'' and - operation ''PUT/SUBSCRIPTIONS/RESOURCEGROUPS/PROVIDERS/MICROSOFT.AUTOMANAGE/CONFIGURATIONPROFILES/'' - exceeded the backend storage limit. Please try again after ''6'' seconds."}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T03:35:01Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache - connection: - - close content-length: - - '312' + - '381' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:02 GMT + - Fri, 20 Jan 2023 03:35:16 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding x-content-type-options: - nosniff status: - code: 429 - message: '' + code: 200 + message: OK - request: - body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": - true}}}' + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.26.0 + method: GET + uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/arm-compute/quickstart-templates/aliases.json + response: + body: + string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\",\n + \ \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\": + {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"type\": + \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\": + {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n + \ \"sku\": \"7.5\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Debian\": {\n \"publisher\": + \"Debian\",\n \"offer\": \"debian-10\",\n \"sku\": \"10\",\n + \ \"version\": \"latest\",\n \"architecture\": \"x64\"\n + \ },\n \"Flatcar\": {\n \"publisher\": \"kinvolk\",\n + \ \"offer\": \"flatcar-container-linux-free\",\n \"sku\": + \"stable\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"openSUSE-Leap\": {\n \"publisher\": + \"SUSE\",\n \"offer\": \"opensuse-leap-15-3\",\n \"sku\": + \"gen2\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"RHEL\": {\n \"publisher\": \"RedHat\",\n + \ \"offer\": \"RHEL\",\n \"sku\": \"7-LVM\",\n \"version\": + \"latest\",\n \"architecture\": \"x64\"\n },\n \"SLES\": + {\n \"publisher\": \"SUSE\",\n \"offer\": \"sles-15-sp3\",\n + \ \"sku\": \"gen2\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"UbuntuLTS\": {\n \"publisher\": + \"Canonical\",\n \"offer\": \"UbuntuServer\",\n \"sku\": + \"18.04-LTS\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n }\n },\n \"Windows\": {\n \"Win2022Datacenter\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2022-Datacenter\",\n \"version\": + \"latest\",\n \"architecture\": \"x64\"\n },\n \"Win2022AzureEditionCore\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2022-datacenter-azure-edition-core\",\n + \ \"version\": \"latest\",\n \"architecture\": \"x64\"\n + \ },\n \"Win2019Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2019-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2016Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2016-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2012R2Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-R2-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2012Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2008R2SP1\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2008-R2-SP1\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n }\n }\n }\n }\n }\n}" + headers: + accept-ranges: + - bytes + access-control-allow-origin: + - '*' + cache-control: + - max-age=300 + connection: + - keep-alive + content-length: + - '3463' + content-security-policy: + - default-src 'none'; style-src 'unsafe-inline'; sandbox + content-type: + - text/plain; charset=utf-8 + date: + - Fri, 20 Jan 2023 03:35:17 GMT + etag: + - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" + expires: + - Fri, 20 Jan 2023 03:40:17 GMT + source-age: + - '0' + strict-transport-security: + - max-age=31536000 + vary: + - Authorization,Accept-Encoding,Origin + via: + - 1.1 varnish + x-cache: + - HIT + x-cache-hits: + - '1' + x-content-type-options: + - nosniff + x-fastly-request-id: + - 6d8cd1e73aa1f8c2f7fe9a7d4a9bbbe82b897f7e + x-frame-options: + - deny + x-github-request-id: + - E30A:6795:9235:1F57B:63C75D91 + x-served-by: + - cache-qpg1247-QPG + x-timer: + - S1674185717.020264,VS0,VE284 + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - automanage configuration-profile create + - vm create Connection: - keep-alive - Content-Length: - - '90' - Content-Type: + ParameterSetName: + - -n -g --image --generate-ssh-keys + User-Agent: + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-08-01 + response: + body: + string: "[\r\n {\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301100\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301100\"\r\n + \ }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '296' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Jan 2023 03:35:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43999 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive ParameterSetName: - - -n -g --configuration + - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202301100?api-version=2022-08-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2022-11-18T07:42:13.010946+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:42:13.010946+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": + \"x64\",\r\n \"replicaType\": \"Unmanaged\",\r\n \"disallowed\": {\r\n + \ \"vmDiskType\": \"None\"\r\n },\r\n \"automaticOSUpgradeProperties\": + {\r\n \"automaticOSUpgradeSupported\": true\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"features\": [\r\n + \ {\r\n \"name\": \"IsAcceleratedNetworkSupported\",\r\n \"value\": + \"True\"\r\n },\r\n {\r\n \"name\": \"DiskControllerTypes\",\r\n + \ \"value\": \"SCSI, NVMe\"\r\n },\r\n {\r\n \"name\": + \"IsHibernateSupported\",\r\n \"value\": \"True\"\r\n }\r\n ],\r\n + \ \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": + 31,\r\n \"sizeInBytes\": 32213303808\r\n },\r\n \"dataDiskImages\": + []\r\n },\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301100\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301100\"\r\n}" headers: cache-control: - no-cache content-length: - - '599' + - '1058' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:14 GMT + - Fri, 20 Jan 2023 03:35:22 GMT expires: - '-1' - location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002 pragma: - no-cache - request-context: - - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d server: - - Kestrel + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73999 status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -209,22 +377,22 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks?api-version=2022-01-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T07:41:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"value":[]}' headers: cache-control: - no-cache content-length: - - '381' + - '12' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:15 GMT + - Fri, 20 Jan 2023 03:35:23 GMT expires: - '-1' pragma: @@ -315,13 +483,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:16 GMT + - Fri, 20 Jan 2023 03:35:24 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Fri, 18 Nov 2022 07:47:16 GMT + - Fri, 20 Jan 2023 03:40:24 GMT source-age: - - '148' + - '7' strict-transport-security: - max-age=31536000 vary: @@ -335,15 +503,15 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - a5f383e94ff3a6792040ccc86eb70126f3f90310 + - 62577ceb66ad309bc7b2d22778f3b052a23391a2 x-frame-options: - deny x-github-request-id: - - A03E:3CD1:5CBF7:BE728:6376D511 + - E30A:6795:9235:1F57B:63C75D91 x-served-by: - - cache-qpg1250-QPG + - cache-qpg1268-QPG x-timer: - - S1668757336.134033,VS0,VE1 + - S1674185724.369133,VS0,VE4 x-xss-protection: - 1; mode=block status: @@ -363,14 +531,14 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-08-01 response: body: - string: "[\r\n {\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202210180\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202210180\"\r\n + string: "[\r\n {\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301100\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301100\"\r\n \ }\r\n]" headers: cache-control: @@ -380,7 +548,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:18 GMT + - Fri, 20 Jan 2023 03:35:26 GMT expires: - '-1' pragma: @@ -397,7 +565,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43997 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15998,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43998 status: code: 200 message: OK @@ -415,10 +583,10 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202210180?api-version=2022-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202301100?api-version=2022-08-01 response: body: string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": @@ -432,8 +600,8 @@ interactions: \"IsHibernateSupported\",\r\n \"value\": \"True\"\r\n }\r\n ],\r\n \ \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": 31,\r\n \"sizeInBytes\": 32213303808\r\n },\r\n \"dataDiskImages\": - []\r\n },\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202210180\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202210180\"\r\n}" + []\r\n },\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301100\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301100\"\r\n}" headers: cache-control: - no-cache @@ -442,7 +610,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:20 GMT + - Fri, 20 Jan 2023 03:35:29 GMT expires: - '-1' pragma: @@ -459,7 +627,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73997 + - Microsoft.Compute/GetVMImageFromLocation3Min;12998,Microsoft.Compute/GetVMImageFromLocation30Min;73998 status: code: 200 message: OK @@ -477,32 +645,103 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks?api-version=2022-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-08-01 response: body: - string: '{"value":[]}' + string: "[\r\n {\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301100\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301100\"\r\n + \ }\r\n]" headers: cache-control: - no-cache content-length: - - '12' + - '296' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Jan 2023 03:35:30 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15997,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43997 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --generate-ssh-keys + User-Agent: + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202301100?api-version=2022-08-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": + \"x64\",\r\n \"replicaType\": \"Unmanaged\",\r\n \"disallowed\": {\r\n + \ \"vmDiskType\": \"None\"\r\n },\r\n \"automaticOSUpgradeProperties\": + {\r\n \"automaticOSUpgradeSupported\": true\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"features\": [\r\n + \ {\r\n \"name\": \"IsAcceleratedNetworkSupported\",\r\n \"value\": + \"True\"\r\n },\r\n {\r\n \"name\": \"DiskControllerTypes\",\r\n + \ \"value\": \"SCSI, NVMe\"\r\n },\r\n {\r\n \"name\": + \"IsHibernateSupported\",\r\n \"value\": \"True\"\r\n }\r\n ],\r\n + \ \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": + 31,\r\n \"sizeInBytes\": 32213303808\r\n },\r\n \"dataDiskImages\": + []\r\n },\r\n \"location\": \"EastUS2EUAP\",\r\n \"name\": \"18.04.202301100\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202301100\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1058' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:21 GMT + - Fri, 20 Jan 2023 03:35:33 GMT expires: - '-1' pragma: - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMImageFromLocation3Min;12997,Microsoft.Compute/GetVMImageFromLocation30Min;73997 status: code: 200 message: OK @@ -556,24 +795,24 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_E35MntWzQL1gx6VpwaTGFg2uWTQnxk4r","name":"vm_deploy_E35MntWzQL1gx6VpwaTGFg2uWTQnxk4r","type":"Microsoft.Resources/deployments","properties":{"templateHash":"2837049010702756058","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-11-18T07:42:28.1588556Z","duration":"PT0.0000933S","correlationId":"1dcab306-ec17-4cc8-963a-1548a0005322","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_YKGesPTcyRfBWUzTZzEW2SDa4oCnQcqr","name":"vm_deploy_YKGesPTcyRfBWUzTZzEW2SDa4oCnQcqr","type":"Microsoft.Resources/deployments","properties":{"templateHash":"2884791486165889208","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2023-01-20T03:35:43.728019Z","duration":"PT0.0004198S","correlationId":"be5779f2-52b1-4ecf-bdb2-a77a330aa951","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_E35MntWzQL1gx6VpwaTGFg2uWTQnxk4r/operationStatuses/08585328495413137203?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_YKGesPTcyRfBWUzTZzEW2SDa4oCnQcqr/operationStatuses/08585274211459941843?api-version=2021-04-01 cache-control: - no-cache content-length: - - '2645' + - '2644' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:29 GMT + - Fri, 20 Jan 2023 03:35:44 GMT expires: - '-1' pragma: @@ -583,7 +822,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 201 message: Created @@ -601,10 +840,10 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585328495413137203?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585274211459941843?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -616,7 +855,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:43:00 GMT + - Fri, 20 Jan 2023 03:36:16 GMT expires: - '-1' pragma: @@ -644,10 +883,53 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585328495413137203?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585274211459941843?api-version=2021-04-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Jan 2023 03:36:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --generate-ssh-keys + User-Agent: + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585274211459941843?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -659,7 +941,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:43:30 GMT + - Fri, 20 Jan 2023 03:37:17 GMT expires: - '-1' pragma: @@ -687,22 +969,22 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_E35MntWzQL1gx6VpwaTGFg2uWTQnxk4r","name":"vm_deploy_E35MntWzQL1gx6VpwaTGFg2uWTQnxk4r","type":"Microsoft.Resources/deployments","properties":{"templateHash":"2837049010702756058","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-11-18T07:43:27.9929553Z","duration":"PT59.834193S","correlationId":"1dcab306-ec17-4cc8-963a-1548a0005322","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_YKGesPTcyRfBWUzTZzEW2SDa4oCnQcqr","name":"vm_deploy_YKGesPTcyRfBWUzTZzEW2SDa4oCnQcqr","type":"Microsoft.Resources/deployments","properties":{"templateHash":"2884791486165889208","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2023-01-20T03:37:02.1590466Z","duration":"PT1M18.4314474S","correlationId":"be5779f2-52b1-4ecf-bdb2-a77a330aa951","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3604' + - '3607' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:43:31 GMT + - Fri, 20 Jan 2023 03:37:17 GMT expires: - '-1' pragma: @@ -730,7 +1012,7 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-compute/29.0.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003?$expand=instanceView&api-version=2022-08-01 @@ -738,16 +1020,16 @@ interactions: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus2euap\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"9b766e81-bc10-4c9e-875f-bea05c12d38f\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"31a87334-6798-465d-a92a-5ba673725b68\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"18.04.202210180\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm000003_disk1_dc4def88ec9547cca3568fcfe99cbb8e\",\r\n + \"18.04.202301100\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000003_disk1_c4d15be69ecd464cb41b7bd5a6fdbbc7\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_dc4def88ec9547cca3568fcfe99cbb8e\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_c4d15be69ecd464cb41b7bd5a6fdbbc7\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"zhiyihuang\",\r\n @@ -767,18 +1049,18 @@ interactions: [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2022-11-18T07:43:28+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_dc4def88ec9547cca3568fcfe99cbb8e\",\r\n + \"2023-01-20T03:37:07+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_c4d15be69ecd464cb41b7bd5a6fdbbc7\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-11-18T07:43:06.3425394+00:00\"\r\n + succeeded\",\r\n \"time\": \"2023-01-20T03:36:42.7531884+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-11-18T07:43:18.8119099+00:00\"\r\n + succeeded\",\r\n \"time\": \"2023-01-20T03:36:54.7692397+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n - \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-11-18T07:43:03.1392779+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2023-01-20T03:36:38.1123388+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -788,7 +1070,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:43:33 GMT + - Fri, 20 Jan 2023 03:37:19 GMT expires: - '-1' pragma: @@ -805,7 +1087,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31996 + - Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31997 status: code: 200 message: OK @@ -823,19 +1105,19 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"vm000003VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\",\r\n - \ \"etag\": \"W/\\\"2565d3bd-7b95-40a7-b759-14b1dc2e42d4\\\"\",\r\n \"tags\": + \ \"etag\": \"W/\\\"c4096acf-ff62-4d6a-a546-40d75a5beba3\\\"\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"a8e1d42c-4cde-4a28-b650-e435e71b7411\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"36138bb5-44df-47cb-9765-77329cba7fcc\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\",\r\n - \ \"etag\": \"W/\\\"2565d3bd-7b95-40a7-b759-14b1dc2e42d4\\\"\",\r\n + \ \"etag\": \"W/\\\"c4096acf-ff62-4d6a-a546-40d75a5beba3\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -844,8 +1126,8 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"0cgbouwvqyaevl3yrurcgriiyb.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-22-48-6A-71-BF\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": + \"nrwhk2gmtcuejgewjed1bbcsub.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-22-48-6A-7B-3D\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\"\r\n @@ -861,9 +1143,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:43:36 GMT + - Fri, 20 Jan 2023 03:37:21 GMT etag: - - W/"2565d3bd-7b95-40a7-b759-14b1dc2e42d4" + - W/"c4096acf-ff62-4d6a-a546-40d75a5beba3" expires: - '-1' pragma: @@ -880,10 +1162,10 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 120d23e3-6319-4e03-926d-645b9b39fcca + - 871ea0f9-d913-448c-9a41-7207e02a0466 status: code: 200 - message: OK + message: '' - request: body: null headers: @@ -898,17 +1180,17 @@ interactions: ParameterSetName: - -n -g --image --generate-ssh-keys User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"vm000003PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP\",\r\n - \ \"etag\": \"W/\\\"339cd94b-f5cc-42fd-a828-6c7a20fa3183\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"545ebae2-e960-433f-bd17-524f7117d86c\\\"\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"04ed47a0-4162-41f9-aefe-cbc6879441b7\",\r\n - \ \"ipAddress\": \"20.221.148.33\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"294aef2f-72b4-45aa-ad1f-b036dc7aeae1\",\r\n + \ \"ipAddress\": \"20.47.242.117\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -922,9 +1204,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:43:37 GMT + - Fri, 20 Jan 2023 03:37:22 GMT etag: - - W/"339cd94b-f5cc-42fd-a828-6c7a20fa3183" + - W/"545ebae2-e960-433f-bd17-524f7117d86c" expires: - '-1' pragma: @@ -941,10 +1223,10 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 4efbd13d-7101-4f40-8817-d60d2ec30ea9 + - e1662d46-bde9-4221-a7a0-25e074f9bda5 status: code: 200 - message: OK + message: '' - request: body: '{"properties": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002"}}' headers: @@ -963,12 +1245,12 @@ interactions: ParameterSetName: - -n -g --vm-name --configuration-profile User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T07:43:38.2227827+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:43:38.2227827+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T03:37:22.8754566+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:37:22.8754566+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -977,7 +1259,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:43:40 GMT + - Fri, 20 Jan 2023 03:37:29 GMT expires: - '-1' location: @@ -993,7 +1275,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -1011,12 +1293,12 @@ interactions: ParameterSetName: - -n -g --vm-name User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T07:43:38.2227827+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:43:38.2227827+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T03:37:22.8754566+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:37:22.8754566+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1025,7 +1307,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:43:43 GMT + - Fri, 20 Jan 2023 03:37:32 GMT expires: - '-1' pragma: @@ -1059,21 +1341,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2022-11-18T07:43:38.2227827+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:43:38.2227827+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"InProgress"},"systemData":{"createdAt":"2023-01-20T03:37:32.7807087+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:37:32.7807087+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '1012' + - '1057' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:43:44 GMT + - Fri, 20 Jan 2023 03:37:33 GMT expires: - '-1' pragma: @@ -1110,13 +1392,13 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T07:41:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T03:35:01Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1125,7 +1407,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:43:44 GMT + - Fri, 20 Jan 2023 03:37:34 GMT expires: - '-1' pragma: @@ -1158,12 +1440,12 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2022-11-18T07:43:49.6298145+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:43:49.6298145+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T03:37:39.7946494+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:37:39.7946494+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1172,7 +1454,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:43:51 GMT + - Fri, 20 Jan 2023 03:37:41 GMT expires: - '-1' location: @@ -1206,12 +1488,12 @@ interactions: ParameterSetName: - --n -g --vm-name --configuration-profile User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Conformant"},"systemData":{"createdAt":"2022-11-18T07:43:53.0070013+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:43:53.0070013+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Conformant"},"systemData":{"createdAt":"2023-01-20T03:37:34.8440053+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:37:34.8440053+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache @@ -1220,7 +1502,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:43:53 GMT + - Fri, 20 Jan 2023 03:37:44 GMT expires: - '-1' pragma: @@ -1258,21 +1540,21 @@ interactions: ParameterSetName: - --n -g --vm-name --configuration-profile User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"Conformant"},"systemData":{"createdAt":"2022-11-18T07:43:54.0054318+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:43:54.0054318+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"Conformant"},"systemData":{"createdAt":"2023-01-20T03:37:44.82827+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:37:44.82827+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1007' + - '1003' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:43:53 GMT + - Fri, 20 Jan 2023 03:37:45 GMT expires: - '-1' pragma: @@ -1290,7 +1572,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -1308,21 +1590,21 @@ interactions: ParameterSetName: - --assignment-name -g --vm-name User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/8d6dfddb-c765-4a74-aba2-f45c2ef0f6e3","name":"8d6dfddb-c765-4a74-aba2-f45c2ef0f6e3","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:43:45.5189613Z","endTime":"2022-11-18T07:43:52.7256375Z","lastModifiedTime":"2022-11-18T07:43:52.7256359Z","duration":"PT7.2066762S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:43:53.3038798+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:43:53.3038798+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5155eec8-d380-4fcf-96d3-4d6f3b9472b6","name":"5155eec8-d380-4fcf-96d3-4d6f3b9472b6","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:37:32.8697473Z","endTime":"2023-01-20T03:37:34.7287867Z","lastModifiedTime":"2023-01-20T03:37:34.7287866Z","duration":"PT1.8590394S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:37:34.9690097+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:37:34.9690097+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/daf4b610-43c8-4cdd-bf10-48ffd960589c","name":"daf4b610-43c8-4cdd-bf10-48ffd960589c","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:37:51.1339758Z","endTime":"2023-01-20T03:37:53.3005869Z","lastModifiedTime":"2023-01-20T03:37:53.3005867Z","duration":"PT2.1666111S","type":"Consistency","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:37:53.6832108+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:37:53.6832108+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '1188' + - '2369' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:44:06 GMT + - Fri, 20 Jan 2023 03:37:58 GMT expires: - '-1' pragma: @@ -1356,12 +1638,12 @@ interactions: ParameterSetName: - -n --assignment-name -g --vm-name User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/8d6dfddb-c765-4a74-aba2-f45c2ef0f6e3?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5155eec8-d380-4fcf-96d3-4d6f3b9472b6?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/8d6dfddb-c765-4a74-aba2-f45c2ef0f6e3","name":"8d6dfddb-c765-4a74-aba2-f45c2ef0f6e3","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2022-11-18T07:43:45.5189613Z","endTime":"2022-11-18T07:43:52.7256375Z","lastModifiedTime":"2022-11-18T07:43:52.7256359Z","duration":"PT7.2066762S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2022-11-18T07:43:53.3038798+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2022-11-18T07:43:53.3038798+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5155eec8-d380-4fcf-96d3-4d6f3b9472b6","name":"5155eec8-d380-4fcf-96d3-4d6f3b9472b6","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:37:32.8697473Z","endTime":"2023-01-20T03:37:34.7287867Z","lastModifiedTime":"2023-01-20T03:37:34.7287866Z","duration":"PT1.8590394S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:37:34.9690097+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:37:34.9690097+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache @@ -1370,7 +1652,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:44:09 GMT + - Fri, 20 Jan 2023 03:37:59 GMT expires: - '-1' pragma: @@ -1406,7 +1688,7 @@ interactions: ParameterSetName: - -n -g --vm-name -y User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: @@ -1418,7 +1700,7 @@ interactions: content-length: - '0' date: - - Fri, 18 Nov 2022 07:44:11 GMT + - Fri, 20 Jan 2023 03:38:02 GMT expires: - '-1' pragma: @@ -1450,7 +1732,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: @@ -1464,7 +1746,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:44:13 GMT + - Fri, 20 Jan 2023 03:38:04 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml index 616a5282391..502ba77436f 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml @@ -13,13 +13,13 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-11-18T07:41:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T03:41:49Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:44 GMT + - Fri, 20 Jan 2023 03:41:53 GMT expires: - '-1' pragma: @@ -64,21 +64,21 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T07:41:48.8665616+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:48.8665616+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T03:41:57.838775+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:41:57.838775+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '845' + - '843' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:50 GMT + - Fri, 20 Jan 2023 03:42:00 GMT expires: - '-1' location: @@ -94,7 +94,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -112,21 +112,21 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T07:41:48.8665616+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:48.8665616+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T03:41:57.838775+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:41:57.838775+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '845' + - '843' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:52 GMT + - Fri, 20 Jan 2023 03:42:02 GMT expires: - '-1' pragma: @@ -160,21 +160,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T07:41:48.8665616+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:48.8665616+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T03:41:57.838775+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:41:57.838775+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '857' + - '855' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:54 GMT + - Fri, 20 Jan 2023 03:42:04 GMT expires: - '-1' pragma: @@ -208,21 +208,21 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2022-11-18T07:41:48.8665616+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:48.8665616+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T03:41:57.838775+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:41:57.838775+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '845' + - '843' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:56 GMT + - Fri, 20 Jan 2023 03:42:07 GMT expires: - '-1' pragma: @@ -261,21 +261,21 @@ interactions: ParameterSetName: - -n -g --configuration User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2022-11-18T07:41:48.8665616+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-11-18T07:41:57.2944011+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2023-01-20T03:41:57.838775+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:42:08.6161936+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '627' + - '626' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:41:57 GMT + - Fri, 20 Jan 2023 03:42:08 GMT expires: - '-1' pragma: @@ -293,7 +293,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -313,7 +313,7 @@ interactions: ParameterSetName: - -n -g -y User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: @@ -325,7 +325,7 @@ interactions: content-length: - '0' date: - - Fri, 18 Nov 2022 07:42:00 GMT + - Fri, 20 Jan 2023 03:42:15 GMT expires: - '-1' pragma: @@ -357,7 +357,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: @@ -371,7 +371,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:00 GMT + - Fri, 20 Jan 2023 03:42:16 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml index c3e3928066b..5338e6665ec 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml @@ -11,7 +11,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices?api-version=2022-05-04 response: @@ -25,7 +25,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:42 GMT + - Fri, 20 Jan 2023 03:40:49 GMT expires: - '-1' pragma: @@ -59,7 +59,7 @@ interactions: ParameterSetName: - --best-practice-name User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest?api-version=2022-05-04 response: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:43 GMT + - Fri, 20 Jan 2023 03:40:49 GMT expires: - '-1' pragma: @@ -105,7 +105,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals?api-version=2022-05-04 response: @@ -119,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:44 GMT + - Fri, 20 Jan 2023 03:40:50 GMT expires: - '-1' pragma: @@ -151,7 +151,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.42.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automanage/servicePrincipals/default?api-version=2022-05-04 response: @@ -165,7 +165,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Nov 2022 07:42:45 GMT + - Fri, 20 Jan 2023 03:40:52 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index 42695c4e4ac..265425e62ae 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -116,7 +116,7 @@ def test_automanage_configuration_profile_assignment_vm_scenarios(self): self.cmd('az automanage configuration-profile-assignment vm delete -n default -g {rg} --vm-name {vm_name} -y') self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) - # @record_only() + @record_only() # need to first run: # az group create -l eastus2euap -g rgtestautomanage # (run as admin in Powershell) Connect-AzConnectedMachine -ResourceGroupName rgtestautomanage -Name arc1 -Location eastus2euap From 22240632f640d4477903ecaba54b83c50fd32c80 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Fri, 20 Jan 2023 13:35:35 +0800 Subject: [PATCH 26/31] server errors all fixed. --- .../best_practice/version/__cmd_group.py | 3 + .../automanage/best_practice/version/_list.py | 3 + .../automanage/best_practice/version/_show.py | 3 + ...anage_configuration_profile_scenarios.yaml | 427 +++++++++++++++++- .../recordings/test_automanage_scenarios.yaml | 104 ++++- .../tests/latest/test_automanage.py | 48 +- 6 files changed, 540 insertions(+), 48 deletions(-) diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py index cb75619b0af..903321f1080 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/__cmd_group.py @@ -11,6 +11,9 @@ from azure.cli.core.aaz import * +@register_command_group( + "automanage best-practice version", +) class __CMDGroup(AAZCommandGroup): """Manage Automanage best practice version """ diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py index 4c364b1e8ab..93cdb234d03 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py @@ -11,6 +11,9 @@ from azure.cli.core.aaz import * +@register_command( + "automanage best-practice version list", +) class List(AAZCommand): """List a list of Automanage best practices versions """ diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py index aa58445cf64..68e5d605b97 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py @@ -11,6 +11,9 @@ from azure.cli.core.aaz import * +@register_command( + "automanage best-practice version show", +) class Show(AAZCommand): """Get information about a Automanage best practice version """ diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml index 502ba77436f..0b1cf541da6 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T03:41:49Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T04:24:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:41:53 GMT + - Fri, 20 Jan 2023 04:24:37 GMT expires: - '-1' pragma: @@ -69,16 +69,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T03:41:57.838775+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:41:57.838775+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T04:24:42.9182333+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:24:42.9182333+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '843' + - '845' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:42:00 GMT + - Fri, 20 Jan 2023 04:24:44 GMT expires: - '-1' location: @@ -117,16 +117,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T03:41:57.838775+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:41:57.838775+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T04:24:42.9182333+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:24:42.9182333+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '843' + - '845' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:42:02 GMT + - Fri, 20 Jan 2023 04:24:47 GMT expires: - '-1' pragma: @@ -165,16 +165,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T03:41:57.838775+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:41:57.838775+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T04:24:42.9182333+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:24:42.9182333+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '855' + - '857' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:42:04 GMT + - Fri, 20 Jan 2023 04:24:50 GMT expires: - '-1' pragma: @@ -213,16 +213,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T03:41:57.838775+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:41:57.838775+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T04:24:42.9182333+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:24:42.9182333+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '843' + - '845' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:42:07 GMT + - Fri, 20 Jan 2023 04:24:52 GMT expires: - '-1' pragma: @@ -266,16 +266,311 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2023-01-20T03:41:57.838775+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:42:08.6161936+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2023-01-20T04:24:42.9182333+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:24:53.44361+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '626' + - '625' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:42:08 GMT + - Fri, 20 Jan 2023 04:24:52 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile version create + Connection: + - keep-alive + ParameterSetName: + - --profile-name -g -n --configuration + User-Agent: + - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 + (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T04:24:32Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '381' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Jan 2023 04:24:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": + false}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile version create + Connection: + - keep-alive + Content-Length: + - '91' + Content-Type: + - application/json + ParameterSetName: + - --profile-name -g -n --configuration + User-Agent: + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T04:25:00.1530442+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:25:00.1530442+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '634' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Jan 2023 04:25:01 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003 + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile version show + Connection: + - keep-alive + ParameterSetName: + - --profile-name -g -n + User-Agent: + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T04:25:00.1530442+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:25:00.1530442+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '634' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Jan 2023 04:25:04 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile version list + Connection: + - keep-alive + ParameterSetName: + - --profile-name -g + User-Agent: + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions?api-version=2022-05-04 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T04:25:00.1530442+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:25:00.1530442+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '646' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Jan 2023 04:25:07 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile version update + Connection: + - keep-alive + ParameterSetName: + - --profile-name -g -n --configuration + User-Agent: + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T04:25:00.1530442+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:25:00.1530442+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '634' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Jan 2023 04:25:09 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: '{"location": "eastus2euap", "properties": {"configuration": {"Antimalware/Enable": + true}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile version update + Connection: + - keep-alive + Content-Length: + - '90' + Content-Type: + - application/json + ParameterSetName: + - --profile-name -g -n --configuration + User-Agent: + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-01-20T04:25:00.1530442+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:25:10.5035087+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '633' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Jan 2023 04:25:09 GMT expires: - '-1' pragma: @@ -297,6 +592,100 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile version delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --profile-name -g -n -y + User-Agent: + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 20 Jan 2023 04:25:17 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage configuration-profile version list + Connection: + - keep-alive + ParameterSetName: + - --profile-name -g + User-Agent: + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions?api-version=2022-05-04 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Jan 2023 04:25:19 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: @@ -325,7 +714,7 @@ interactions: content-length: - '0' date: - - Fri, 20 Jan 2023 03:42:15 GMT + - Fri, 20 Jan 2023 04:25:25 GMT expires: - '-1' pragma: @@ -371,7 +760,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:42:16 GMT + - Fri, 20 Jan 2023 04:25:27 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml index 5338e6665ec..ba3b9f09195 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:40:49 GMT + - Fri, 20 Jan 2023 05:29:29 GMT expires: - '-1' pragma: @@ -73,7 +73,103 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:40:49 GMT + - Fri, 20 Jan 2023 05:29:30 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage best-practice version list + Connection: + - keep-alive + ParameterSetName: + - --best-practice-name + User-Agent: + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions?api-version=2022-05-04 + response: + body: + string: '{"value":[{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions/2021-06-30","name":"AzureBestPracticesDevTest/2021-06-30","type":"Microsoft.Automanage/bestPractices/versions","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"false","VMInsights/Enable":"false","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2021-06-30T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '909' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Jan 2023 05:29:31 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d + server: + - Kestrel + 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automanage best-practice version show + Connection: + - keep-alive + ParameterSetName: + - --best-practice-name --version-name + User-Agent: + - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions/2021-06-30?api-version=2022-05-04 + response: + body: + string: '{"id":"/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest/versions/2021-06-30","name":"AzureBestPracticesDevTest/2021-06-30","type":"Microsoft.Automanage/bestPractices/versions","properties":{"configuration":{"Antimalware/Enable":"true","Antimalware/EnableRealTimeProtection":"true","Antimalware/RunScheduledScan":"true","Antimalware/ScanType":"Quick","Antimalware/ScanDay":"7","Antimalware/ScanTimeInMinutes":"120","Backup/Enable":"false","VMInsights/Enable":"false","AzureSecurityCenter/Enable":"true","UpdateManagement/Enable":"true","ChangeTrackingAndInventory/Enable":"true","GuestConfiguration/Enable":"true","LogAnalytics/Enable":"true","BootDiagnostics/Enable":"true"}},"systemData":{"createdAt":"2021-06-30T00:00:00+00:00","createdBy":"SYSTEM","createdByType":"User","lastModifiedAt":"2021-06-30T00:00:00+00:00","lastModifiedBy":"SYSTEM","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '897' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 20 Jan 2023 05:29:31 GMT expires: - '-1' pragma: @@ -119,7 +215,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:40:50 GMT + - Fri, 20 Jan 2023 05:29:32 GMT expires: - '-1' pragma: @@ -165,7 +261,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:40:52 GMT + - Fri, 20 Jan 2023 05:29:34 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index 265425e62ae..97b447a65e8 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -17,14 +17,13 @@ def test_automanage_scenarios(self): best_practice_name = best_practice_name[1]["name"] self.cmd('az automanage best-practice show --best-practice-name {}'.format(best_practice_name)) - # TODO server error - # version_name = self.cmd('az automanage best-practice version list ' - # '--best-practice-name {}'.format(best_practice_name)).get_output_in_json() - # if version_name and len(version_name) >= 1: - # version_name = version_name[0]["name"].split('/')[1] - # - # self.cmd('az automanage best-practice version show --best-practice-name {} --version-name ' - # '{}'.format(best_practice_name, version_name)) + version_name = self.cmd('az automanage best-practice version list ' + '--best-practice-name {}'.format(best_practice_name)).get_output_in_json() + if version_name and len(version_name) >= 1: + version_name = version_name[0]["name"].split('/')[1] + + self.cmd('az automanage best-practice version show --best-practice-name {} --version-name ' + '{}'.format(best_practice_name, version_name)) # service-principal self.cmd('az automanage service-principal list') @@ -58,23 +57,22 @@ def test_automanage_configuration_profile_scenarios(self): checks=[JMESPathCheck('properties.configuration', {"Antimalware/Enable": True, "VMInsights/Enable": False})]) - # TODO server error # # version - # self.cmd('az automanage configuration-profile version create --profile-name {profile_name} -g {rg} ' - # '-n {version_name} --configuration {{\\\"Antimalware/Enable\\\":false}}') - # self.cmd('az automanage configuration-profile version show --profile-name {profile_name} -g {rg} ' - # '-n {version_name}', - # checks=[JMESPathCheck('name', self.kwargs.get('version_name', '')), - # JMESPathCheck('properties.configuration', {"Antimalware/Enable": False})]) - # self.cmd('az automanage configuration-profile version list --profile-name {profile_name} -g {rg}', - # checks=[JMESPathCheck('length(@)', 1)]) - # self.cmd('az automanage configuration-profile version update --profile-name {profile_name} -g {rg} ' - # '-n {version_name} --configuration {{\\\"Antimalware/Enable\\\":true}}', - # checks=[JMESPathCheck('properties.configuration', {"Antimalware/Enable": True})]) - # self.cmd('az automanage configuration-profile version delete --profile-name {profile_name} -g {rg} ' - # '-n {version_name}') - # self.cmd('az automanage configuration-profile version list --profile-name {profile_name} -g {rg}', - # checks=[JMESPathCheck('length(@)', 0)]) + self.cmd('az automanage configuration-profile version create --profile-name {profile_name} -g {rg} ' + '-n {version_name} --configuration {{\\\"Antimalware/Enable\\\":false}}') + self.cmd('az automanage configuration-profile version show --profile-name {profile_name} -g {rg} ' + '-n {version_name}', + checks=[JMESPathCheck('name', self.kwargs.get('version_name', '')), + JMESPathCheck('properties.configuration', {"Antimalware/Enable": False})]) + self.cmd('az automanage configuration-profile version list --profile-name {profile_name} -g {rg}', + checks=[JMESPathCheck('length(@)', 1)]) + self.cmd('az automanage configuration-profile version update --profile-name {profile_name} -g {rg} ' + '-n {version_name} --configuration {{\\\"Antimalware/Enable\\\":true}}', + checks=[JMESPathCheck('properties.configuration', {"Antimalware/Enable": True})]) + self.cmd('az automanage configuration-profile version delete --profile-name {profile_name} -g {rg} ' + '-n {version_name} -y') + self.cmd('az automanage configuration-profile version list --profile-name {profile_name} -g {rg}', + checks=[JMESPathCheck('length(@)', 0)]) self.cmd('az automanage configuration-profile delete -n {profile_name} -g {rg} -y') self.cmd('az automanage configuration-profile list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) @@ -116,7 +114,7 @@ def test_automanage_configuration_profile_assignment_vm_scenarios(self): self.cmd('az automanage configuration-profile-assignment vm delete -n default -g {rg} --vm-name {vm_name} -y') self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) - @record_only() + # @record_only() # need to first run: # az group create -l eastus2euap -g rgtestautomanage # (run as admin in Powershell) Connect-AzConnectedMachine -ResourceGroupName rgtestautomanage -Name arc1 -Location eastus2euap From f4b6301a61a437fd8409c660dde13089f1b79b46 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Fri, 20 Jan 2023 14:16:17 +0800 Subject: [PATCH 27/31] rerun all tests --- ...tion_profile_assignment_arc_scenarios.yaml | 68 +++---- ..._profile_assignment_cluster_scenarios.yaml | 82 ++++---- ...ation_profile_assignment_vm_scenarios.yaml | 180 +++++++++--------- ...anage_configuration_profile_scenarios.yaml | 68 +++---- .../recordings/test_automanage_scenarios.yaml | 12 +- 5 files changed, 207 insertions(+), 203 deletions(-) diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml index b1a1d94924f..57ada16c724 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_arc_scenarios.yaml @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:45:55 GMT + - Fri, 20 Jan 2023 06:12:49 GMT expires: - '-1' pragma: @@ -66,7 +66,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","name":"profile000001","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-01-20T03:45:58.3430495+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:45:58.3430495+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","name":"profile000001","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-01-20T06:12:55.7667759+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:12:55.7667759+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:46:00 GMT + - Fri, 20 Jan 2023 06:12:58 GMT expires: - '-1' location: @@ -91,7 +91,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -118,7 +118,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2023-01-20T03:46:01.3428232+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:46:01.3428232+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2023-01-20T06:12:59.1632937+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:12:59.1632937+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -127,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:46:03 GMT + - Fri, 20 Jan 2023 06:13:02 GMT expires: - '-1' location: @@ -166,16 +166,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"InProgress"},"systemData":{"createdAt":"2023-01-20T03:46:05.7070042+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:46:05.7070042+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2023-01-20T06:12:59.1632937+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:12:59.1632937+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '936' + - '891' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:46:06 GMT + - Fri, 20 Jan 2023 06:13:04 GMT expires: - '-1' pragma: @@ -214,16 +214,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2023-01-20T03:46:07.1757634+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:46:07.1757634+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"New"},"systemData":{"createdAt":"2023-01-20T06:12:59.1632937+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:12:59.1632937+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '951' + - '903' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:46:08 GMT + - Fri, 20 Jan 2023 06:13:05 GMT expires: - '-1' pragma: @@ -275,7 +275,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:46:07 GMT + - Fri, 20 Jan 2023 06:13:06 GMT expires: - '-1' pragma: @@ -313,7 +313,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T03:46:13.6177999+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:46:13.6177999+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T06:13:12.5070531+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:12.5070531+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -322,7 +322,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:46:15 GMT + - Fri, 20 Jan 2023 06:13:15 GMT expires: - '-1' location: @@ -338,7 +338,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -361,7 +361,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2023-01-20T03:46:07.1757634+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:46:07.1757634+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","status":"NonConformant"},"systemData":{"createdAt":"2023-01-20T06:13:12.8428826+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T06:13:12.8428826+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache @@ -370,7 +370,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:46:17 GMT + - Fri, 20 Jan 2023 06:13:17 GMT expires: - '-1' pragma: @@ -413,16 +413,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"NonConformant"},"systemData":{"createdAt":"2023-01-20T03:46:18.6075646+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:46:18.6075646+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"NonConformant"},"systemData":{"createdAt":"2023-01-20T06:13:18.128175+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:18.128175+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '901' + - '899' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:46:19 GMT + - Fri, 20 Jan 2023 06:13:18 GMT expires: - '-1' pragma: @@ -463,18 +463,22 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b695fbba-a47e-4477-8d44-ac1928e482b6","name":"b695fbba-a47e-4477-8d44-ac1928e482b6","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:46:05.8035601Z","endTime":"2023-01-20T03:46:07.1124517Z","lastModifiedTime":"2023-01-20T03:46:07.1124514Z","duration":"PT1.3088916S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://aka.ms/amvm_windows_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_linux_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_Arc_supportedOS"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:46:07.2696368+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:46:07.2696368+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/fd957858-f2e0-401d-9a18-e4b209140077","name":"fd957858-f2e0-401d-9a18-e4b209140077","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:46:33.9134518Z","endTime":"2023-01-20T03:46:35.3553345Z","lastModifiedTime":"2023-01-20T03:46:35.3553343Z","duration":"PT1.4418827S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":{"code":"UnsupportedOS","message":"The - machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://aka.ms/amvm_windows_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_linux_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_Arc_supportedOS"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:46:35.581645+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:46:35.581645+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b695fbba-a47e-4477-8d44-ac1928e482b6","name":"b695fbba-a47e-4477-8d44-ac1928e482b6","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:46:05.8035601Z","endTime":"2023-01-20T03:46:07.1124517Z","lastModifiedTime":"2023-01-20T03:46:07.1124514Z","duration":"PT1.3088916S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilehmjlza6ow3pqlsk2x","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://aka.ms/amvm_windows_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_linux_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_Arc_supportedOS"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:46:07.2696368+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:46:07.2696368+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/fd957858-f2e0-401d-9a18-e4b209140077","name":"fd957858-f2e0-401d-9a18-e4b209140077","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:46:33.9134518Z","endTime":"2023-01-20T03:46:35.3553345Z","lastModifiedTime":"2023-01-20T03:46:35.3553343Z","duration":"PT1.4418827S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilejucml2pgti4dv36l7","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://aka.ms/amvm_windows_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_linux_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_Arc_supportedOS"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:46:35.581645+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:46:35.581645+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/0a9cf1b2-cecc-4439-a218-70139ef8d0f7","name":"0a9cf1b2-cecc-4439-a218-70139ef8d0f7","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T06:13:09.3629687Z","endTime":"2023-01-20T06:13:12.5487697Z","lastModifiedTime":"2023-01-20T06:13:12.5487695Z","duration":"PT3.185801S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://aka.ms/amvm_windows_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_linux_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_Arc_supportedOS"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T06:13:13.0928753+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T06:13:13.0928753+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/0daf51b9-1c5c-4dbd-ab62-6e9e26244c98","name":"0daf51b9-1c5c-4dbd-ab62-6e9e26244c98","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T06:13:20.5968578Z","endTime":"2023-01-20T06:13:21.5531616Z","lastModifiedTime":"2023-01-20T06:13:21.5531613Z","duration":"PT0.9563038S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://aka.ms/amvm_windows_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_linux_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_Arc_supportedOS"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T06:13:21.7133363+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T06:13:21.7133363+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b32db40e-e06d-4d44-b223-d4f89e9fca73","name":"b32db40e-e06d-4d44-b223-d4f89e9fca73","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T05:35:44.2032952Z","endTime":"2023-01-20T05:35:45.4790519Z","lastModifiedTime":"2023-01-20T05:35:45.4790517Z","duration":"PT1.2757567S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilekzhkpc5mtkpu3jz3k","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://aka.ms/amvm_windows_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_linux_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_Arc_supportedOS"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T05:35:45.7084642+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T05:35:45.7084642+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/6e98e7d4-f4df-46bb-938e-39f0b513d738","name":"6e98e7d4-f4df-46bb-938e-39f0b513d738","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T05:36:07.6120778Z","endTime":"2023-01-20T05:36:11.0837821Z","lastModifiedTime":"2023-01-20T05:36:11.0837819Z","duration":"PT3.4717043S","type":"Consistency","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile4yk3ouuaouleurlhs","resources":[],"error":{"code":"UnsupportedOS","message":"The + machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://aka.ms/amvm_windows_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_linux_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_Arc_supportedOS"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T05:36:11.673933+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T05:36:11.673933+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '3175' + - '9548' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:46:40 GMT + - Fri, 20 Jan 2023 06:13:41 GMT expires: - '-1' pragma: @@ -513,17 +517,17 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b695fbba-a47e-4477-8d44-ac1928e482b6?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b695fbba-a47e-4477-8d44-ac1928e482b6","name":"b695fbba-a47e-4477-8d44-ac1928e482b6","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:46:05.8035601Z","endTime":"2023-01-20T03:46:07.1124517Z","lastModifiedTime":"2023-01-20T03:46:07.1124514Z","duration":"PT1.3088916S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profile000001","resources":[],"error":{"code":"UnsupportedOS","message":"The + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b695fbba-a47e-4477-8d44-ac1928e482b6","name":"b695fbba-a47e-4477-8d44-ac1928e482b6","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:46:05.8035601Z","endTime":"2023-01-20T03:46:07.1124517Z","lastModifiedTime":"2023-01-20T03:46:07.1124514Z","duration":"PT1.3088916S","type":"Initial","status":"NonConformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.Automanage/configurationProfiles/profilehmjlza6ow3pqlsk2x","resources":[],"error":{"code":"UnsupportedOS","message":"The machine has an unsupported OS version or distribution.","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgtestautomanage/providers/Microsoft.HybridCompute/machines/arc1","details":null,"additionalInfo":[{"type":"hyperlink","info":"https://aka.ms/amvm_windows_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_linux_supportedOS"},{"type":"hyperlink","info":"https://aka.ms/amvm_Arc_supportedOS"}]},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:46:07.2696368+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:46:07.2696368+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1580' + - '1591' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:46:42 GMT + - Fri, 20 Jan 2023 06:13:44 GMT expires: - '-1' pragma: @@ -571,7 +575,7 @@ interactions: content-length: - '0' date: - - Fri, 20 Jan 2023 03:46:45 GMT + - Fri, 20 Jan 2023 06:13:46 GMT expires: - '-1' pragma: @@ -585,7 +589,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 200 message: OK @@ -617,7 +621,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:46:46 GMT + - Fri, 20 Jan 2023 06:13:47 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml index e413fba3434..c6f40ec4acf 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_cluster_scenarios.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T03:42:36Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T06:12:49Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:42:40 GMT + - Fri, 20 Jan 2023 06:12:54 GMT expires: - '-1' pragma: @@ -66,7 +66,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-01-20T03:42:45.3015183+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:42:45.3015183+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-01-20T06:12:59.8871012+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:12:59.8871012+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:42:56 GMT + - Fri, 20 Jan 2023 06:13:01 GMT expires: - '-1' location: @@ -91,7 +91,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -115,7 +115,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T03:42:36Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T06:12:49Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:42:57 GMT + - Fri, 20 Jan 2023 06:13:01 GMT expires: - '-1' pragma: @@ -162,7 +162,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1?api-version=2022-05-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1","name":"cluster1","type":"microsoft.azurestackhci/clusters","location":"eastus2euap","systemData":{"createdBy":"zhiyihuang@microsoft.com","createdByType":"User","createdAt":"2023-01-20T03:43:07.0023973Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-01-20T03:43:07.0023973Z"},"properties":{"provisioningState":"Succeeded","status":"NotYetRegistered","cloudId":"5a32d4bf-2747-4d75-bb40-58f4cbacfb94","desiredProperties":{"windowsServerSubscription":"Disabled","diagnosticLevel":"Basic"},"trialDaysRemaining":60,"billingModel":"Trial","serviceEndpoint":"https://dp.stackhci.azure.com/eastus2euap/"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHCI/clusters/cluster1","name":"cluster1","type":"microsoft.azurestackhci/clusters","location":"eastus2euap","systemData":{"createdBy":"zhiyihuang@microsoft.com","createdByType":"User","createdAt":"2023-01-20T06:13:07.1461152Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-01-20T06:13:07.1461152Z"},"properties":{"provisioningState":"Succeeded","status":"NotYetRegistered","cloudId":"579592a1-c399-4111-8966-9bd85a2187f9","desiredProperties":{"windowsServerSubscription":"Disabled","diagnosticLevel":"Basic"},"trialDaysRemaining":60,"billingModel":"Trial","serviceEndpoint":"https://dp.stackhci.azure.com/eastus2euap/"}}' headers: cache-control: - no-cache @@ -171,13 +171,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:43:10 GMT + - Fri, 20 Jan 2023 06:13:09 GMT etag: - - '"03008cde-0000-3400-0000-63ca0dcd0000"' + - '"030046ea-0000-3400-0000-63ca30f50000"' expires: - '-1' mise-correlation-id: - - eb68bc24-29a9-45ae-9a9a-151b6494021d + - e12ae92a-e804-426b-8d1e-c38f540740e6 pragma: - no-cache strict-transport-security: @@ -220,16 +220,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T03:43:11.724157+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:43:11.724157+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T06:13:10.9942263+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:10.9942263+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1011' + - '1013' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:43:13 GMT + - Fri, 20 Jan 2023 06:13:12 GMT expires: - '-1' location: @@ -268,16 +268,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T03:43:11.724157+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:43:11.724157+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"InProgress"},"systemData":{"createdAt":"2023-01-20T06:13:14.8162038+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T06:13:14.8162038+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1011' + - '1058' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:43:16 GMT + - Fri, 20 Jan 2023 06:13:15 GMT expires: - '-1' pragma: @@ -316,16 +316,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T03:43:11.724157+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:43:11.724157+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2023-01-20T06:13:16.3658126+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T06:13:16.3658126+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '1023' + - '1065' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:43:17 GMT + - Fri, 20 Jan 2023 06:13:17 GMT expires: - '-1' pragma: @@ -368,7 +368,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.cluster.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T03:42:36Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001","name":"clitest.rg.automanage.profileassignment.cluster.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T06:12:49Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -377,7 +377,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:43:18 GMT + - Fri, 20 Jan 2023 06:13:18 GMT expires: - '-1' pragma: @@ -415,7 +415,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","name":"profile000003","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T03:43:23.4941649+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:43:23.4941649+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","name":"profile000003","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T06:13:24.0107875+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:24.0107875+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -424,7 +424,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:43:25 GMT + - Fri, 20 Jan 2023 06:13:26 GMT expires: - '-1' location: @@ -463,7 +463,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2023-01-20T03:43:23.9911927+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:43:23.9911927+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Error"},"systemData":{"createdAt":"2023-01-20T06:13:16.3658126+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T06:13:16.3658126+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache @@ -472,7 +472,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:43:27 GMT + - Fri, 20 Jan 2023 06:13:29 GMT expires: - '-1' pragma: @@ -515,7 +515,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","status":"Error"},"systemData":{"createdAt":"2023-01-20T03:43:28.6139948+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:43:28.6139948+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.Automanage/configurationProfiles/profile000003","status":"Error"},"systemData":{"createdAt":"2023-01-20T06:13:29.7808476+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:29.7808476+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -524,7 +524,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:43:29 GMT + - Fri, 20 Jan 2023 06:13:30 GMT expires: - '-1' pragma: @@ -542,7 +542,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -565,18 +565,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/38156af6-7db2-4127-a08f-428975adaac5","name":"38156af6-7db2-4127-a08f-428975adaac5","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:43:22.9741536Z","endTime":"2023-01-20T03:43:23.7502161Z","lastModifiedTime":"2023-01-20T03:43:23.7502154Z","duration":"PT0.7760625S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:43:24.2411669+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:43:24.2411669+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/9b477cea-9d11-4fcf-aa47-8647d7f9fb65","name":"9b477cea-9d11-4fcf-aa47-8647d7f9fb65","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:43:33.2350795Z","endTime":"2023-01-20T03:43:34.5893126Z","lastModifiedTime":"2023-01-20T03:43:34.5893122Z","duration":"PT1.3542331S","type":"Consistency","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:43:35.1914127+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:43:35.1914127+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/be6b48e4-2042-4317-8240-6d360fcdbef5","name":"be6b48e4-2042-4317-8240-6d360fcdbef5","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T06:13:15.3315914Z","endTime":"2023-01-20T06:13:16.2762564Z","lastModifiedTime":"2023-01-20T06:13:16.2762562Z","duration":"PT0.944665S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T06:13:16.490778+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T06:13:16.490778+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/d037487d-8a8e-440e-9618-28eb8c7c8335","name":"d037487d-8a8e-440e-9618-28eb8c7c8335","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T06:13:39.0565453Z","endTime":"2023-01-20T06:13:39.8037884Z","lastModifiedTime":"2023-01-20T06:13:39.8037883Z","duration":"PT0.7472431S","type":"Consistency","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T06:13:40.1348331+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T06:13:40.1348331+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '2329' + - '2326' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:43:52 GMT + - Fri, 20 Jan 2023 06:13:53 GMT expires: - '-1' pragma: @@ -612,20 +612,20 @@ interactions: User-Agent: - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/38156af6-7db2-4127-a08f-428975adaac5?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/be6b48e4-2042-4317-8240-6d360fcdbef5?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/38156af6-7db2-4127-a08f-428975adaac5","name":"38156af6-7db2-4127-a08f-428975adaac5","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:43:22.9741536Z","endTime":"2023-01-20T03:43:23.7502161Z","lastModifiedTime":"2023-01-20T03:43:23.7502154Z","duration":"PT0.7760625S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response - status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:43:24.2411669+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:43:24.2411669+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.cluster.000001/providers/Microsoft.AzureStackHci/clusters/cluster1/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/be6b48e4-2042-4317-8240-6d360fcdbef5","name":"be6b48e4-2042-4317-8240-6d360fcdbef5","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T06:13:15.3315914Z","endTime":"2023-01-20T06:13:16.2762564Z","lastModifiedTime":"2023-01-20T06:13:16.2762562Z","duration":"PT0.944665S","type":"Initial","status":"Error","configurationProfile":null,"resources":[],"error":{"code":null,"message":"Response + status code does not indicate success: PreconditionFailed (Precondition Failed).","target":null,"details":null,"additionalInfo":null},"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T06:13:16.490778+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T06:13:16.490778+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache content-length: - - '1156' + - '1153' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:43:55 GMT + - Fri, 20 Jan 2023 06:13:54 GMT expires: - '-1' pragma: @@ -673,7 +673,7 @@ interactions: content-length: - '0' date: - - Fri, 20 Jan 2023 03:43:57 GMT + - Fri, 20 Jan 2023 06:13:55 GMT expires: - '-1' pragma: @@ -719,7 +719,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:43:59 GMT + - Fri, 20 Jan 2023 06:13:57 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml index 2399fa0cae7..d441c68a128 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_assignment_vm_scenarios.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T03:35:01Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T06:12:49Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:35:07 GMT + - Fri, 20 Jan 2023 06:12:54 GMT expires: - '-1' pragma: @@ -66,16 +66,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-01-20T03:35:12.6133209+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:35:12.6133209+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-01-20T06:13:00.58581+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:00.58581+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '601' + - '597' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:35:14 GMT + - Fri, 20 Jan 2023 06:13:02 GMT expires: - '-1' location: @@ -115,7 +115,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T03:35:01Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T06:12:49Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:35:16 GMT + - Fri, 20 Jan 2023 06:13:04 GMT expires: - '-1' pragma: @@ -215,11 +215,11 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 20 Jan 2023 03:35:17 GMT + - Fri, 20 Jan 2023 06:13:04 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Fri, 20 Jan 2023 03:40:17 GMT + - Fri, 20 Jan 2023 06:18:04 GMT source-age: - '0' strict-transport-security: @@ -235,15 +235,15 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - 6d8cd1e73aa1f8c2f7fe9a7d4a9bbbe82b897f7e + - 471b6bf4dac1b48ea80290110be76219027cc936 x-frame-options: - deny x-github-request-id: - E30A:6795:9235:1F57B:63C75D91 x-served-by: - - cache-qpg1247-QPG + - cache-qpg1254-QPG x-timer: - - S1674185717.020264,VS0,VE284 + - S1674195184.483968,VS0,VE296 x-xss-protection: - 1; mode=block status: @@ -280,7 +280,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:35:19 GMT + - Fri, 20 Jan 2023 06:13:06 GMT expires: - '-1' pragma: @@ -342,7 +342,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:35:22 GMT + - Fri, 20 Jan 2023 06:13:08 GMT expires: - '-1' pragma: @@ -392,7 +392,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:35:23 GMT + - Fri, 20 Jan 2023 06:13:09 GMT expires: - '-1' pragma: @@ -483,13 +483,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 20 Jan 2023 03:35:24 GMT + - Fri, 20 Jan 2023 06:13:10 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Fri, 20 Jan 2023 03:40:24 GMT + - Fri, 20 Jan 2023 06:18:10 GMT source-age: - - '7' + - '6' strict-transport-security: - max-age=31536000 vary: @@ -503,15 +503,15 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - 62577ceb66ad309bc7b2d22778f3b052a23391a2 + - ef2b9e431068bdf0f4755df732065d6b94aa891b x-frame-options: - deny x-github-request-id: - E30A:6795:9235:1F57B:63C75D91 x-served-by: - - cache-qpg1268-QPG + - cache-qpg1255-QPG x-timer: - - S1674185724.369133,VS0,VE4 + - S1674195190.423284,VS0,VE2 x-xss-protection: - 1; mode=block status: @@ -548,7 +548,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:35:26 GMT + - Fri, 20 Jan 2023 06:13:11 GMT expires: - '-1' pragma: @@ -610,7 +610,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:35:29 GMT + - Fri, 20 Jan 2023 06:13:13 GMT expires: - '-1' pragma: @@ -662,7 +662,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:35:30 GMT + - Fri, 20 Jan 2023 06:13:16 GMT expires: - '-1' pragma: @@ -724,7 +724,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:35:33 GMT + - Fri, 20 Jan 2023 06:13:19 GMT expires: - '-1' pragma: @@ -801,18 +801,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_YKGesPTcyRfBWUzTZzEW2SDa4oCnQcqr","name":"vm_deploy_YKGesPTcyRfBWUzTZzEW2SDa4oCnQcqr","type":"Microsoft.Resources/deployments","properties":{"templateHash":"2884791486165889208","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2023-01-20T03:35:43.728019Z","duration":"PT0.0004198S","correlationId":"be5779f2-52b1-4ecf-bdb2-a77a330aa951","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_jQMGDnL9OSTM3nGGKlWoJOUO31WPi26G","name":"vm_deploy_jQMGDnL9OSTM3nGGKlWoJOUO31WPi26G","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13756716753965521186","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2023-01-20T06:13:25.9774639Z","duration":"PT0.0001934S","correlationId":"b706806e-93a5-4562-beda-e115f67f7d77","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_YKGesPTcyRfBWUzTZzEW2SDa4oCnQcqr/operationStatuses/08585274211459941843?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_jQMGDnL9OSTM3nGGKlWoJOUO31WPi26G/operationStatuses/08585274116833028449?api-version=2021-04-01 cache-control: - no-cache content-length: - - '2644' + - '2646' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:35:44 GMT + - Fri, 20 Jan 2023 06:13:27 GMT expires: - '-1' pragma: @@ -822,7 +822,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -843,7 +843,7 @@ interactions: - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585274211459941843?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585274116833028449?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -855,7 +855,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:36:16 GMT + - Fri, 20 Jan 2023 06:13:58 GMT expires: - '-1' pragma: @@ -886,7 +886,7 @@ interactions: - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585274211459941843?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585274116833028449?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -898,7 +898,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:36:46 GMT + - Fri, 20 Jan 2023 06:14:28 GMT expires: - '-1' pragma: @@ -929,7 +929,7 @@ interactions: - AZURECLI/2.44.1 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585274211459941843?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585274116833028449?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -941,7 +941,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:37:17 GMT + - Fri, 20 Jan 2023 06:14:59 GMT expires: - '-1' pragma: @@ -975,7 +975,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_YKGesPTcyRfBWUzTZzEW2SDa4oCnQcqr","name":"vm_deploy_YKGesPTcyRfBWUzTZzEW2SDa4oCnQcqr","type":"Microsoft.Resources/deployments","properties":{"templateHash":"2884791486165889208","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2023-01-20T03:37:02.1590466Z","duration":"PT1M18.4314474S","correlationId":"be5779f2-52b1-4ecf-bdb2-a77a330aa951","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Resources/deployments/vm_deploy_jQMGDnL9OSTM3nGGKlWoJOUO31WPi26G","name":"vm_deploy_jQMGDnL9OSTM3nGGKlWoJOUO31WPi26G","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13756716753965521186","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2023-01-20T06:14:33.9460794Z","duration":"PT1M7.9688089S","correlationId":"b706806e-93a5-4562-beda-e115f67f7d77","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus2euap"]},{"resourceType":"networkSecurityGroups","locations":["eastus2euap"]},{"resourceType":"publicIPAddresses","locations":["eastus2euap"]},{"resourceType":"networkInterfaces","locations":["eastus2euap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus2euap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/virtualNetworks/vm000003VNET"}]}}' headers: cache-control: - no-cache @@ -984,7 +984,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:37:17 GMT + - Fri, 20 Jan 2023 06:14:59 GMT expires: - '-1' pragma: @@ -1020,16 +1020,16 @@ interactions: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus2euap\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"31a87334-6798-465d-a92a-5ba673725b68\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"65755818-1c98-4462-9114-8024fc498ea6\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": \"18.04.202301100\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm000003_disk1_c4d15be69ecd464cb41b7bd5a6fdbbc7\",\r\n + \"Linux\",\r\n \"name\": \"vm000003_disk1_defe2fecf39d47c5912407ffc0c28c70\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_c4d15be69ecd464cb41b7bd5a6fdbbc7\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/disks/vm000003_disk1_defe2fecf39d47c5912407ffc0c28c70\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"zhiyihuang\",\r\n @@ -1049,18 +1049,18 @@ interactions: [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2023-01-20T03:37:07+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_c4d15be69ecd464cb41b7bd5a6fdbbc7\",\r\n + \"2023-01-20T06:14:33+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_defe2fecf39d47c5912407ffc0c28c70\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2023-01-20T03:36:42.7531884+00:00\"\r\n + succeeded\",\r\n \"time\": \"2023-01-20T06:14:13.6362534+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2023-01-20T03:36:54.7692397+00:00\"\r\n + succeeded\",\r\n \"time\": \"2023-01-20T06:14:26.1524039+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n - \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2023-01-20T03:36:38.1123388+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2023-01-20T06:14:10.6361317+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -1070,7 +1070,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:37:19 GMT + - Fri, 20 Jan 2023 06:15:01 GMT expires: - '-1' pragma: @@ -1087,7 +1087,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31997 + - Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31992 status: code: 200 message: OK @@ -1112,12 +1112,12 @@ interactions: response: body: string: "{\r\n \"name\": \"vm000003VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\",\r\n - \ \"etag\": \"W/\\\"c4096acf-ff62-4d6a-a546-40d75a5beba3\\\"\",\r\n \"tags\": + \ \"etag\": \"W/\\\"7e5fcc8b-f158-4299-895c-7d21fef087db\\\"\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"36138bb5-44df-47cb-9765-77329cba7fcc\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"9c4fd676-29c4-4493-9a4f-823554781761\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\",\r\n - \ \"etag\": \"W/\\\"c4096acf-ff62-4d6a-a546-40d75a5beba3\\\"\",\r\n + \ \"etag\": \"W/\\\"7e5fcc8b-f158-4299-895c-7d21fef087db\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -1126,8 +1126,8 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"nrwhk2gmtcuejgewjed1bbcsub.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-22-48-6A-7B-3D\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": + \"5mf5erowfgkerl30e2stwfxczg.cbnx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-22-48-71-CD-6B\",\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003\"\r\n @@ -1143,9 +1143,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:37:21 GMT + - Fri, 20 Jan 2023 06:15:05 GMT etag: - - W/"c4096acf-ff62-4d6a-a546-40d75a5beba3" + - W/"7e5fcc8b-f158-4299-895c-7d21fef087db" expires: - '-1' pragma: @@ -1162,10 +1162,10 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 871ea0f9-d913-448c-9a41-7207e02a0466 + - fb1a664f-68c1-4c91-994a-bd4ad3dd1308 status: code: 200 - message: '' + message: OK - request: body: null headers: @@ -1187,10 +1187,10 @@ interactions: response: body: string: "{\r\n \"name\": \"vm000003PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP\",\r\n - \ \"etag\": \"W/\\\"545ebae2-e960-433f-bd17-524f7117d86c\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"729725ca-d32a-477d-a101-6e35ada6e2fe\\\"\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"294aef2f-72b4-45aa-ad1f-b036dc7aeae1\",\r\n - \ \"ipAddress\": \"20.47.242.117\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"3ce600df-6fe2-4ba4-8f3c-924b136f1d0e\",\r\n + \ \"ipAddress\": \"20.47.244.4\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -1200,13 +1200,13 @@ interactions: cache-control: - no-cache content-length: - - '995' + - '993' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:37:22 GMT + - Fri, 20 Jan 2023 06:15:05 GMT etag: - - W/"545ebae2-e960-433f-bd17-524f7117d86c" + - W/"729725ca-d32a-477d-a101-6e35ada6e2fe" expires: - '-1' pragma: @@ -1223,10 +1223,10 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - e1662d46-bde9-4221-a7a0-25e074f9bda5 + - 1ceec6e8-cdb6-4e44-8b92-e53935f863f3 status: code: 200 - message: '' + message: OK - request: body: '{"properties": {"configurationProfile": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002"}}' headers: @@ -1250,7 +1250,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T03:37:22.8754566+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:37:22.8754566+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T06:15:06.6110074+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:15:06.6110074+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1259,7 +1259,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:37:29 GMT + - Fri, 20 Jan 2023 06:15:08 GMT expires: - '-1' location: @@ -1298,7 +1298,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T03:37:22.8754566+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:37:22.8754566+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T06:15:06.6110074+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:15:06.6110074+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1307,7 +1307,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:37:32 GMT + - Fri, 20 Jan 2023 06:15:11 GMT expires: - '-1' pragma: @@ -1346,16 +1346,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfileAssignments?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"InProgress"},"systemData":{"createdAt":"2023-01-20T03:37:32.7807087+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:37:32.7807087+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"New"},"systemData":{"createdAt":"2023-01-20T06:15:06.6110074+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:15:06.6110074+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '1057' + - '1012' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:37:33 GMT + - Fri, 20 Jan 2023 06:15:12 GMT expires: - '-1' pragma: @@ -1398,7 +1398,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.profileassignment.vm.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T03:35:01Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001","name":"clitest.rg.automanage.profileassignment.vm.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T06:12:49Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1407,7 +1407,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:37:34 GMT + - Fri, 20 Jan 2023 06:15:14 GMT expires: - '-1' pragma: @@ -1445,7 +1445,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T03:37:39.7946494+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:37:39.7946494+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","name":"profile000004","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T06:15:22.9583536+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:15:22.9583536+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -1454,7 +1454,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:37:41 GMT + - Fri, 20 Jan 2023 06:15:25 GMT expires: - '-1' location: @@ -1493,7 +1493,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Conformant"},"systemData":{"createdAt":"2023-01-20T03:37:34.8440053+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:37:34.8440053+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","status":"Conformant"},"systemData":{"createdAt":"2023-01-20T06:15:18.8774666+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T06:15:18.8774666+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache @@ -1502,7 +1502,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:37:44 GMT + - Fri, 20 Jan 2023 06:15:27 GMT expires: - '-1' pragma: @@ -1545,16 +1545,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"Conformant"},"systemData":{"createdAt":"2023-01-20T03:37:44.82827+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T03:37:44.82827+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default","name":"default","type":"Microsoft.Automanage/configurationProfileAssignments","properties":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","status":"Conformant"},"systemData":{"createdAt":"2023-01-20T06:15:28.5571377+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:15:28.5571377+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '1003' + - '1007' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:37:45 GMT + - Fri, 20 Jan 2023 06:15:28 GMT expires: - '-1' pragma: @@ -1572,7 +1572,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -1595,16 +1595,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5155eec8-d380-4fcf-96d3-4d6f3b9472b6","name":"5155eec8-d380-4fcf-96d3-4d6f3b9472b6","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:37:32.8697473Z","endTime":"2023-01-20T03:37:34.7287867Z","lastModifiedTime":"2023-01-20T03:37:34.7287866Z","duration":"PT1.8590394S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:37:34.9690097+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:37:34.9690097+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/daf4b610-43c8-4cdd-bf10-48ffd960589c","name":"daf4b610-43c8-4cdd-bf10-48ffd960589c","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:37:51.1339758Z","endTime":"2023-01-20T03:37:53.3005869Z","lastModifiedTime":"2023-01-20T03:37:53.3005867Z","duration":"PT2.1666111S","type":"Consistency","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000004","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:37:53.6832108+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:37:53.6832108+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/6180b1db-26f2-46c6-a6d6-b3dd18f41d6f","name":"6180b1db-26f2-46c6-a6d6-b3dd18f41d6f","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T06:15:14.8254883Z","endTime":"2023-01-20T06:15:18.6210537Z","lastModifiedTime":"2023-01-20T06:15:18.6210534Z","duration":"PT3.7955654S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T06:15:19.1274721+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T06:15:19.1274721+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}]}' headers: cache-control: - no-cache content-length: - - '2369' + - '1188' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:37:58 GMT + - Fri, 20 Jan 2023 06:15:41 GMT expires: - '-1' pragma: @@ -1640,10 +1640,10 @@ interactions: User-Agent: - AZURECLI/2.44.1 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5155eec8-d380-4fcf-96d3-4d6f3b9472b6?api-version=2022-05-04 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/6180b1db-26f2-46c6-a6d6-b3dd18f41d6f?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/5155eec8-d380-4fcf-96d3-4d6f3b9472b6","name":"5155eec8-d380-4fcf-96d3-4d6f3b9472b6","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T03:37:32.8697473Z","endTime":"2023-01-20T03:37:34.7287867Z","lastModifiedTime":"2023-01-20T03:37:34.7287866Z","duration":"PT1.8590394S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T03:37:34.9690097+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T03:37:34.9690097+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Compute/virtualMachines/vm000003/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/6180b1db-26f2-46c6-a6d6-b3dd18f41d6f","name":"6180b1db-26f2-46c6-a6d6-b3dd18f41d6f","type":"Microsoft.Automanage/configurationProfileAssignments/reports","properties":{"startTime":"2023-01-20T06:15:14.8254883Z","endTime":"2023-01-20T06:15:18.6210537Z","lastModifiedTime":"2023-01-20T06:15:18.6210534Z","duration":"PT3.7955654S","type":"Initial","status":"Conformant","configurationProfile":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.profileassignment.vm.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","resources":[],"error":null,"reportFormatVersion":null},"systemData":{"createdAt":"2023-01-20T06:15:19.1274721+00:00","createdBy":"d828acde-4b48-47f5-a6e8-52460104a052","createdByType":"Application","lastModifiedAt":"2023-01-20T06:15:19.1274721+00:00","lastModifiedBy":"d828acde-4b48-47f5-a6e8-52460104a052","lastModifiedByType":"Application"}}' headers: cache-control: - no-cache @@ -1652,7 +1652,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:37:59 GMT + - Fri, 20 Jan 2023 06:15:44 GMT expires: - '-1' pragma: @@ -1700,7 +1700,7 @@ interactions: content-length: - '0' date: - - Fri, 20 Jan 2023 03:38:02 GMT + - Fri, 20 Jan 2023 06:15:45 GMT expires: - '-1' pragma: @@ -1746,7 +1746,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 03:38:04 GMT + - Fri, 20 Jan 2023 06:15:46 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml index 0b1cf541da6..d660d9cfefd 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_configuration_profile_scenarios.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T04:24:32Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T06:12:49Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 04:24:37 GMT + - Fri, 20 Jan 2023 06:12:53 GMT expires: - '-1' pragma: @@ -69,16 +69,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T04:24:42.9182333+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:24:42.9182333+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T06:12:56.251165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:12:56.251165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '845' + - '843' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 04:24:44 GMT + - Fri, 20 Jan 2023 06:12:59 GMT expires: - '-1' location: @@ -94,7 +94,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -117,16 +117,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T04:24:42.9182333+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:24:42.9182333+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T06:12:56.251165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:12:56.251165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '845' + - '843' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 04:24:47 GMT + - Fri, 20 Jan 2023 06:13:01 GMT expires: - '-1' pragma: @@ -165,16 +165,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T04:24:42.9182333+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:24:42.9182333+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T06:12:56.251165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:12:56.251165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '857' + - '855' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 04:24:50 GMT + - Fri, 20 Jan 2023 06:13:04 GMT expires: - '-1' pragma: @@ -213,16 +213,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T04:24:42.9182333+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:24:42.9182333+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}},"systemData":{"createdAt":"2023-01-20T06:12:56.251165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:12:56.251165+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '845' + - '843' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 04:24:52 GMT + - Fri, 20 Jan 2023 06:13:06 GMT expires: - '-1' pragma: @@ -266,16 +266,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2023-01-20T04:24:42.9182333+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:24:53.44361+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002","name":"profile000002","type":"Microsoft.Automanage/configurationProfiles","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true,"VMInsights/Enable":false}},"systemData":{"createdAt":"2023-01-20T06:12:56.251165+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:07.0824346+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '625' + - '626' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 04:24:52 GMT + - Fri, 20 Jan 2023 06:13:07 GMT expires: - '-1' pragma: @@ -317,7 +317,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.automanage.configurationprofile.000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T04:24:32Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001","name":"clitest.rg.automanage.configurationprofile.000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-01-20T06:12:49Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -326,7 +326,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 04:24:53 GMT + - Fri, 20 Jan 2023 06:13:07 GMT expires: - '-1' pragma: @@ -364,7 +364,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T04:25:00.1530442+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:25:00.1530442+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T06:13:12.7728436+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:12.7728436+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -373,7 +373,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 04:25:01 GMT + - Fri, 20 Jan 2023 06:13:15 GMT expires: - '-1' location: @@ -412,7 +412,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T04:25:00.1530442+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:25:00.1530442+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T06:13:12.7728436+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:12.7728436+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -421,7 +421,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 04:25:04 GMT + - Fri, 20 Jan 2023 06:13:17 GMT expires: - '-1' pragma: @@ -460,7 +460,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions?api-version=2022-05-04 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T04:25:00.1530442+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:25:00.1530442+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T06:13:12.7728436+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:12.7728436+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache @@ -469,7 +469,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 04:25:07 GMT + - Fri, 20 Jan 2023 06:13:18 GMT expires: - '-1' pragma: @@ -508,7 +508,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T04:25:00.1530442+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:25:00.1530442+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":false}},"systemData":{"createdAt":"2023-01-20T06:13:12.7728436+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:12.7728436+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -517,7 +517,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 04:25:09 GMT + - Fri, 20 Jan 2023 06:13:21 GMT expires: - '-1' pragma: @@ -561,7 +561,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003?api-version=2022-05-04 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-01-20T04:25:00.1530442+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T04:25:10.5035087+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.automanage.configurationprofile.000001/providers/Microsoft.Automanage/configurationProfiles/profile000002/versions/version000003","name":"version000003","type":"Microsoft.Automanage/configurationProfiles/versions","location":"eastus2euap","properties":{"configuration":{"Antimalware/Enable":true}},"systemData":{"createdAt":"2023-01-20T06:13:12.7728436+00:00","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-01-20T06:13:21.9365566+00:00","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -570,7 +570,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 04:25:09 GMT + - Fri, 20 Jan 2023 06:13:22 GMT expires: - '-1' pragma: @@ -620,7 +620,7 @@ interactions: content-length: - '0' date: - - Fri, 20 Jan 2023 04:25:17 GMT + - Fri, 20 Jan 2023 06:13:29 GMT expires: - '-1' pragma: @@ -666,7 +666,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 04:25:19 GMT + - Fri, 20 Jan 2023 06:13:31 GMT expires: - '-1' pragma: @@ -714,7 +714,7 @@ interactions: content-length: - '0' date: - - Fri, 20 Jan 2023 04:25:25 GMT + - Fri, 20 Jan 2023 06:13:42 GMT expires: - '-1' pragma: @@ -760,7 +760,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 04:25:27 GMT + - Fri, 20 Jan 2023 06:13:43 GMT expires: - '-1' pragma: diff --git a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml index ba3b9f09195..a2b81e44826 100644 --- a/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml +++ b/src/automanage/azext_automanage/tests/latest/recordings/test_automanage_scenarios.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 05:29:29 GMT + - Fri, 20 Jan 2023 06:13:52 GMT expires: - '-1' pragma: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 05:29:30 GMT + - Fri, 20 Jan 2023 06:13:53 GMT expires: - '-1' pragma: @@ -121,7 +121,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 05:29:31 GMT + - Fri, 20 Jan 2023 06:13:54 GMT expires: - '-1' pragma: @@ -169,7 +169,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 05:29:31 GMT + - Fri, 20 Jan 2023 06:13:54 GMT expires: - '-1' pragma: @@ -215,7 +215,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 05:29:32 GMT + - Fri, 20 Jan 2023 06:13:55 GMT expires: - '-1' pragma: @@ -261,7 +261,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Jan 2023 05:29:34 GMT + - Fri, 20 Jan 2023 06:13:57 GMT expires: - '-1' pragma: From dab90543b5a5b6522a08cb479b165e7d4617828e Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Fri, 20 Jan 2023 15:03:57 +0800 Subject: [PATCH 28/31] record only --- .../azext_automanage/tests/latest/test_automanage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index 97b447a65e8..a4a28ca63b6 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -114,7 +114,7 @@ def test_automanage_configuration_profile_assignment_vm_scenarios(self): self.cmd('az automanage configuration-profile-assignment vm delete -n default -g {rg} --vm-name {vm_name} -y') self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) - # @record_only() + @record_only() # need to first run: # az group create -l eastus2euap -g rgtestautomanage # (run as admin in Powershell) Connect-AzConnectedMachine -ResourceGroupName rgtestautomanage -Name arc1 -Location eastus2euap @@ -154,6 +154,7 @@ def test_automanage_configuration_profile_assignment_arc_scenarios(self): '{arc_name} -y') self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) + @record_only() @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.profileassignment.cluster.') def test_automanage_configuration_profile_assignment_cluster_scenarios(self): self.kwargs.update({ From 463fb3c99670781cb32d24345ec02ce90919de53 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Fri, 20 Jan 2023 15:08:33 +0800 Subject: [PATCH 29/31] add examples --- .../aaz/latest/automanage/best_practice/_list.py | 5 ++++- .../aaz/latest/automanage/best_practice/_show.py | 3 +++ .../aaz/latest/automanage/best_practice/version/_list.py | 5 ++++- .../aaz/latest/automanage/best_practice/version/_show.py | 3 +++ .../aaz/latest/automanage/configuration_profile/_create.py | 3 +++ .../aaz/latest/automanage/configuration_profile/_delete.py | 3 +++ .../aaz/latest/automanage/configuration_profile/_list.py | 5 ++++- .../aaz/latest/automanage/configuration_profile/_show.py | 3 +++ .../aaz/latest/automanage/configuration_profile/_update.py | 3 +++ .../automanage/configuration_profile/version/_create.py | 3 +++ .../automanage/configuration_profile/version/_delete.py | 3 +++ .../latest/automanage/configuration_profile/version/_list.py | 5 ++++- .../latest/automanage/configuration_profile/version/_show.py | 3 +++ .../automanage/configuration_profile/version/_update.py | 3 +++ .../automanage/configuration_profile_assignment/_list.py | 5 ++++- .../configuration_profile_assignment/arc/_create.py | 3 +++ .../configuration_profile_assignment/arc/_delete.py | 3 +++ .../automanage/configuration_profile_assignment/arc/_show.py | 3 +++ .../configuration_profile_assignment/arc/_update.py | 3 +++ .../configuration_profile_assignment/arc/report/_list.py | 5 ++++- .../configuration_profile_assignment/arc/report/_show.py | 3 +++ .../configuration_profile_assignment/cluster/_create.py | 3 +++ .../configuration_profile_assignment/cluster/_delete.py | 3 +++ .../configuration_profile_assignment/cluster/_show.py | 3 +++ .../configuration_profile_assignment/cluster/_update.py | 3 +++ .../configuration_profile_assignment/cluster/report/_list.py | 5 ++++- .../configuration_profile_assignment/cluster/report/_show.py | 3 +++ .../configuration_profile_assignment/vm/_create.py | 3 +++ .../configuration_profile_assignment/vm/_delete.py | 3 +++ .../automanage/configuration_profile_assignment/vm/_show.py | 3 +++ .../configuration_profile_assignment/vm/_update.py | 3 +++ .../configuration_profile_assignment/vm/report/_list.py | 5 ++++- .../configuration_profile_assignment/vm/report/_show.py | 3 +++ .../aaz/latest/automanage/service_principal/_list.py | 3 +++ .../aaz/latest/automanage/service_principal/_show_default.py | 3 +++ 35 files changed, 113 insertions(+), 8 deletions(-) diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py index c3ec6b4b6d5..59a953e0e76 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_list.py @@ -15,7 +15,10 @@ "automanage best-practice list", ) class List(AAZCommand): - """List a list of Automanage best practices + """List Automanage best practices + + :example: List best practices + az automanage best-practice list """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py index 12db3590074..c66e637020c 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/_show.py @@ -16,6 +16,9 @@ ) class Show(AAZCommand): """Get information about a Automanage best practice + + :example: Show best-practice + az automanage best-practice show --best-practice-name {} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py index 93cdb234d03..435023ae6db 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_list.py @@ -15,7 +15,10 @@ "automanage best-practice version list", ) class List(AAZCommand): - """List a list of Automanage best practices versions + """List Automanage best practice versions + + :example: List best-practice versions + az automanage best-practice version list --best-practice-name {} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py index 68e5d605b97..e8ddb5eface 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/best_practice/version/_show.py @@ -16,6 +16,9 @@ ) class Show(AAZCommand): """Get information about a Automanage best practice version + + :example: show a best-practice version + az automanage best-practice version show --best-practice-name {} --version-name {} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py index 631868b3f31..52c324fd9c4 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_create.py @@ -16,6 +16,9 @@ ) class Create(AAZCommand): """Create a configuration profile + + :example: create configuration-profile + az automanage configuration-profile create -n {profile_name} -g {rg} --configuration {"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py index a80ed8f506a..5b420db5a52 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_delete.py @@ -17,6 +17,9 @@ ) class Delete(AAZCommand): """Delete a configuration profile + + :example: delete configuration-profile + az automanage configuration-profile delete -n {profile_name} -g {rg} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py index 07d8e5de6a7..8df54c71e8d 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_list.py @@ -15,7 +15,10 @@ "automanage configuration-profile list", ) class List(AAZCommand): - """List a list of configuration profile within a subscription + """List configuration profiles within a subscription + + :example: list configuration-profile + az automanage configuration-profile list -g {rg} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py index 0ca9fa38457..65a47c4e8ab 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_show.py @@ -16,6 +16,9 @@ ) class Show(AAZCommand): """Get information about a configuration profile + + :example: show configuration-profile + az automanage configuration-profile show -n {profile_name} -g {rg} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py index 5478603194b..7ebdacf3b46 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/_update.py @@ -16,6 +16,9 @@ ) class Update(AAZCommand): """Update a configuration profile + + :example: update configuration-profile + az automanage configuration-profile update -n {profile_name} -g {rg} --configuration {"Antimalware/Enable":true,"VMInsights/Enable":false} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py index fa8018c43a6..dbc54b31313 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_create.py @@ -16,6 +16,9 @@ ) class Create(AAZCommand): """Create a configuration profile version + + :example: create configuration-profile version + az automanage configuration-profile version create --profile-name {profile_name} -g {rg} -n {version_name} --configuration {"Antimalware/Enable":false} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py index 3ff3328a7bd..b1053e782a7 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_delete.py @@ -17,6 +17,9 @@ ) class Delete(AAZCommand): """Delete a configuration profile version + + :example: delete configuration-profile version + az automanage configuration-profile version delete --profile-name {profile_name} -g {rg} -n {version_name} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py index 5cc4dc1fefb..21ffaf36d5c 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_list.py @@ -15,7 +15,10 @@ "automanage configuration-profile version list", ) class List(AAZCommand): - """List a list of configuration profile version for a configuration profile + """List configuration profile versions for a configuration profile + + :example: list configuration-profile version + az automanage configuration-profile version list --profile-name {profile_name} -g {rg} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py index 868d725aafd..30380f63978 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_show.py @@ -16,6 +16,9 @@ ) class Show(AAZCommand): """Get information about a configuration profile version + + :example: show configuration-profile version + az automanage configuration-profile version show --profile-name {profile_name} -g {rg} -n {version_name} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py index 3de7f99090b..4ff97a427e7 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile/version/_update.py @@ -16,6 +16,9 @@ ) class Update(AAZCommand): """Update a configuration profile version + + :example: update configuration-profile version + az automanage configuration-profile version update --profile-name {profile_name} -g {rg} -n {version_name} --configuration {"Antimalware/Enable":true} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py index f90df7e368f..9860940905b 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/_list.py @@ -15,7 +15,10 @@ "automanage configuration-profile-assignment list", ) class List(AAZCommand): - """List list of configuration profile assignments under a given subscription + """List configuration profile assignments under a given subscription + + :example: list configuration-profile-assignment + az automanage configuration-profile-assignment list -g {rg} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py index f2eea82a49f..09c2e5a7373 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_create.py @@ -16,6 +16,9 @@ ) class Create(AAZCommand): """Create an association between an ARC machine and Automanage configuration profile + + :example: create configuration-profile-assignment for arc + az automanage configuration-profile-assignment arc create -n default -g {rg} --machine-name {arc_name} --configuration-profile {profile_id} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py index 485dcc3a40b..927d26bd456 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_delete.py @@ -17,6 +17,9 @@ ) class Delete(AAZCommand): """Delete an association between an ARC machine and Automanage configuration profile + + :example: delete configuration-profile-assignment for arc + az automanage configuration-profile-assignment arc delete -n default -g {rg} --machine-name {arc_name} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py index 8b633845542..55f86a95d53 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_show.py @@ -16,6 +16,9 @@ ) class Show(AAZCommand): """Get information about an association between an ARC machine and Automanage configuration profile + + :example: show configuration-profile-assignment for arc + az automanage configuration-profile-assignment arc show -n default -g {rg} --machine-name {arc_name} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py index 54e2d080f13..06b8e0b94eb 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/_update.py @@ -16,6 +16,9 @@ ) class Update(AAZCommand): """Update an association between a ARC machine and Automanage configuration profile + + :example: update configuration-profile-assignment for arc + az automanage configuration-profile-assignment arc update --n default -g {rg} --machine-name {arc_name} --configuration-profile {profile_id_2} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_list.py index 8d7ffd8a849..5ad83f1e6ca 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_list.py @@ -15,7 +15,10 @@ "automanage configuration-profile-assignment arc report list", ) class List(AAZCommand): - """List a list of reports within a given ARC machine configuration profile assignment + """List reports within a given ARC machine configuration profile assignment + + :example: list configuration-profile-assignment for arc report + az automanage configuration-profile-assignment arc report list --assignment-name default -g {rg} --machine-name {arc_name} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_show.py index 9d241a13199..b6ce441fd53 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/arc/report/_show.py @@ -16,6 +16,9 @@ ) class Show(AAZCommand): """Get information about a report associated with an ARC machine configuration profile assignment run + + :example: show configuration-profile-assignment for arc report + az automanage configuration-profile-assignment arc report show -n {report_name} --assignment-name default -g {rg} --machine-name {arc_name} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py index d08f5e624d3..6b1028ae151 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_create.py @@ -16,6 +16,9 @@ ) class Create(AAZCommand): """Create an association between an AzureStackHCI cluster and Automanage configuration profile + + :example: create configuration-profile-assignment for cluster + az automanage configuration-profile-assignment cluster create -n default -g {rg} --cluster-name {cluster_name} --configuration-profile {profile_id} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py index 0e371a7f8ae..78eb0131a02 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_delete.py @@ -17,6 +17,9 @@ ) class Delete(AAZCommand): """Delete an association between an AzureStackHCI cluster and Automanage configuration profile + + :example: delete configuration-profile-assignment cluster + az automanage configuration-profile-assignment cluster delete -n default -g {rg} --cluster-name {cluster_name} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py index e1074d513b0..d1d2bbbe3e9 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_show.py @@ -16,6 +16,9 @@ ) class Show(AAZCommand): """Get information about an association between an AzureStackHCI cluster and Automanage configuration profile + + :example: show configuration-profile-assignment for cluster + az automanage configuration-profile-assignment cluster show -n default -g {rg} --cluster-name {cluster_name} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py index 36959ef4c41..db704548886 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/_update.py @@ -16,6 +16,9 @@ ) class Update(AAZCommand): """Update an association between a AzureStackHCI cluster and Automanage configuration profile + + :example: update configuration-profile-assignment cluster + az automanage configuration-profile-assignment cluster update --n default -g {rg} --cluster-name {cluster_name} --configuration-profile {profile_id_2} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py index da601adf153..3bc43a148e1 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_list.py @@ -15,7 +15,10 @@ "automanage configuration-profile-assignment cluster report list", ) class List(AAZCommand): - """List a list of reports within a given AzureStackHCI cluster configuration profile assignment + """List reports within a given AzureStackHCI cluster configuration profile assignment + + :example: list configuration-profile-assignment cluster report + az automanage configuration-profile-assignment cluster report list --assignment-name default -g {rg} --cluster-name {cluster_name} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py index cd6b81a366f..070ffb33d4c 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/cluster/report/_show.py @@ -16,6 +16,9 @@ ) class Show(AAZCommand): """Get information about a report associated with a AzureStackHCI cluster configuration profile assignment run + + :example: show configuration-profile-assignment cluster report + az automanage configuration-profile-assignment cluster report show -n {report_name} --assignment-name default -g {rg} --cluster-name {cluster_name} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py index 2f2d8d3d4a1..b4b418ed772 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_create.py @@ -16,6 +16,9 @@ ) class Create(AAZCommand): """Create an association between a VM and Automanage configuration profile + + :example: create configuration-profile-assignment for vm + az automanage configuration-profile-assignment vm create -n default -g {rg} --vm-name {vm_name} --configuration-profile {profile_id} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py index c57a1a2b2a7..6f8c0732623 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_delete.py @@ -17,6 +17,9 @@ ) class Delete(AAZCommand): """Delete an association between a VM and Automanage configuration profile + + :example: delete configuration-profile-assignment for vm + az automanage configuration-profile-assignment vm delete -n default -g {rg} --vm-name {vm_name} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py index 3d8cd4f53a8..ed63af283db 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_show.py @@ -16,6 +16,9 @@ ) class Show(AAZCommand): """Get information about an association between a VM and Automanage configuration profile + + :example: show configuration-profile-assignment vm + az automanage configuration-profile-assignment vm show -n default -g {rg} --vm-name {vm_name} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py index 5769033a719..ba5b49d2649 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/_update.py @@ -16,6 +16,9 @@ ) class Update(AAZCommand): """Update an association between a VM and Automanage configuration profile + + :example: update configuration-profile-assignment vm + az automanage configuration-profile-assignment vm update --n default -g {rg} --vm-name {vm_name} --configuration-profile {profile_id_2} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py index a92fe06b9bb..41b9c5b09ea 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_list.py @@ -15,7 +15,10 @@ "automanage configuration-profile-assignment vm report list", ) class List(AAZCommand): - """List a list of reports within a given VM configuration profile assignment + """List reports within a given VM configuration profile assignment + + :example: list configuration-profile-assignment vm report + az automanage configuration-profile-assignment vm report list --assignment-name default -g {rg} --vm-name {vm_name} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py index e44b1e0f39a..5b851c40e61 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/configuration_profile_assignment/vm/report/_show.py @@ -16,6 +16,9 @@ ) class Show(AAZCommand): """Get information about a report associated with a VM configuration profile assignment run + + :example: show configuration-profile-assignment vm report + az automanage configuration-profile-assignment vm report show -n {report_name} --assignment-name default -g {rg} --vm-name {vm_name} """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py index 0c78200af58..80055853a88 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_list.py @@ -16,6 +16,9 @@ ) class List(AAZCommand): """List the Automanage AAD first party Application Service Principal details for the subscription id. + + :example: list service-principal + az automanage service-principal list """ _aaz_info = { diff --git a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py index 77d95cb72cb..36c12212f6d 100644 --- a/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py +++ b/src/automanage/azext_automanage/aaz/latest/automanage/service_principal/_show_default.py @@ -16,6 +16,9 @@ ) class ShowDefault(AAZCommand): """Get the Automanage AAD first party Application Service Principal details for the subscription id. + + :example: Show default service-principal + az automanage service-principal show-default """ _aaz_info = { From 68f545a2fc3797808b65edcb83c620e740a1822b Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Fri, 20 Jan 2023 15:28:56 +0800 Subject: [PATCH 30/31] remove test which relying on other extensions --- src/automanage/azext_automanage/tests/latest/test_automanage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/automanage/azext_automanage/tests/latest/test_automanage.py b/src/automanage/azext_automanage/tests/latest/test_automanage.py index a4a28ca63b6..d25cdba845f 100644 --- a/src/automanage/azext_automanage/tests/latest/test_automanage.py +++ b/src/automanage/azext_automanage/tests/latest/test_automanage.py @@ -155,6 +155,7 @@ def test_automanage_configuration_profile_assignment_arc_scenarios(self): self.cmd('az automanage configuration-profile-assignment list -g {rg}', checks=[JMESPathCheck('length(@)', 0)]) @record_only() + # self.cmd('az stack-hci cluster create --cluster-name {cluster_name} -g {rg}') @ResourceGroupPreparer(location='eastus2euap', name_prefix='clitest.rg.automanage.profileassignment.cluster.') def test_automanage_configuration_profile_assignment_cluster_scenarios(self): self.kwargs.update({ @@ -166,7 +167,6 @@ def test_automanage_configuration_profile_assignment_cluster_scenarios(self): '--configuration {{\\\"Antimalware/Enable\\\":true}}').get_output_in_json()["id"] self.kwargs.update({'profile_id': profile_id}) - self.cmd('az stack-hci cluster create --cluster-name {cluster_name} -g {rg}') self.cmd('az automanage configuration-profile-assignment cluster create -n default -g {rg} ' '--cluster-name {cluster_name} --configuration-profile {profile_id}') self.cmd('az automanage configuration-profile-assignment cluster show -n default -g {rg} ' From bfcb753e5041edda5ae84c29e61b3d0f80b94f3c Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Fri, 20 Jan 2023 15:57:47 +0800 Subject: [PATCH 31/31] add readme example --- src/automanage/README.md | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/src/automanage/README.md b/src/automanage/README.md index 94fdb12e4dc..c6ab5b3f969 100644 --- a/src/automanage/README.md +++ b/src/automanage/README.md @@ -2,4 +2,38 @@ This is an extension to Azure CLI to manage Automanage resources. ## How to use ## -Please add commands usage here. \ No newline at end of file +# configuration-profile +Create a configuration-profile +`az automanage configuration-profile create -n {profile_name} -g {rg} --configuration {"Antimalware/Enable":false,"Backup/Enable":false,"VMInsights/Enable":true,"AzureSecurityCenter/Enable":true,"UpdateManagement/Enable":true,"ChangeTrackingAndInventory/Enable":true,"GuestConfiguration/Enable":true,"LogAnalytics/Enable":true,"BootDiagnostics/Enable":true}` + +Show a configuration-profile +`az automanage configuration-profile show -n {profile_name} -g {rg}` + +Update a configuration-profile +`az automanage configuration-profile update -n {profile_name} -g {rg} --configuration {"Antimalware/Enable":true,"VMInsights/Enable":false}` + +List configuration-profiles +`az automanage configuration-profile list -g {rg}` + +Delete a configuration-profile +`az automanage configuration-profile delete -n {profile_name} -g {rg}` + +# configuration-profile-assignment +Create a configuration-profile-assignment for vm +`az automanage configuration-profile-assignment vm create -n default -g {rg} --vm-name {vm_name} --configuration-profile {profile_id}` + +Show a configuration-profile-assignment for vm +`az automanage configuration-profile-assignment vm show -n default -g {rg} --vm-name {vm_name}` + +Update a configuration-profile-assignment for vm +`az automanage configuration-profile-assignment vm update --n default -g {rg} --vm-name {vm_name} --configuration-profile {profile_id_2}` + +Delete configuration-profile-assignment for vm +`az automanage configuration-profile-assignment vm delete -n default -g {rg} --vm-name {vm_name}` + +Create a configuration-profile-assignment for arc +`az automanage configuration-profile-assignment arc create -n default -g {rg} --machine-name {arc_name} --configuration-profile {profile_id}` + +# configuration-profile-assignment report +List configuration-profile-assignment report for vm +`az automanage configuration-profile-assignment vm report list --assignment-name default -g {rg} --vm-name {vm_name}` \ No newline at end of file