From bec35368f4620eb21b1abbcee09db3368caf13a8 Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Fri, 2 Sep 2022 12:01:21 +0530 Subject: [PATCH 01/10] Add Python3 CLI Commands --- .../aaz/latest/automation/__cmd_group.py | 46 +- .../aaz/latest/automation/__init__.py | 22 +- .../automation/python3package/__cmd_group.py | 23 + .../automation/python3package/__init__.py | 16 + .../automation/python3package/_create.py | 305 ++++++++++++ .../automation/python3package/_delete.py | 132 ++++++ .../latest/automation/python3package/_list.py | 221 +++++++++ .../latest/automation/python3package/_show.py | 223 +++++++++ .../automation/python3package/_update.py | 448 ++++++++++++++++++ .../azext_automation/azext_metadata.json | 6 +- 10 files changed, 1405 insertions(+), 37 deletions(-) create mode 100644 src/automation/azext_automation/aaz/latest/automation/python3package/__cmd_group.py create mode 100644 src/automation/azext_automation/aaz/latest/automation/python3package/__init__.py create mode 100644 src/automation/azext_automation/aaz/latest/automation/python3package/_create.py create mode 100644 src/automation/azext_automation/aaz/latest/automation/python3package/_delete.py create mode 100644 src/automation/azext_automation/aaz/latest/automation/python3package/_list.py create mode 100644 src/automation/azext_automation/aaz/latest/automation/python3package/_show.py create mode 100644 src/automation/azext_automation/aaz/latest/automation/python3package/_update.py diff --git a/src/automation/azext_automation/aaz/latest/automation/__cmd_group.py b/src/automation/azext_automation/aaz/latest/automation/__cmd_group.py index c2ac75642d4..336762af7d2 100644 --- a/src/automation/azext_automation/aaz/latest/automation/__cmd_group.py +++ b/src/automation/azext_automation/aaz/latest/automation/__cmd_group.py @@ -1,23 +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( - "automation", -) -class __CMDGroup(AAZCommandGroup): - """Automation Account. - """ - pass - - -__all__ = ["__CMDGroup"] +# -------------------------------------------------------------------------------------------- +# 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( + "automation", +) +class __CMDGroup(AAZCommandGroup): + """Manage Automation Account + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automation/azext_automation/aaz/latest/automation/__init__.py b/src/automation/azext_automation/aaz/latest/automation/__init__.py index 5a9d61963d6..709a5170d90 100644 --- a/src/automation/azext_automation/aaz/latest/automation/__init__.py +++ b/src/automation/azext_automation/aaz/latest/automation/__init__.py @@ -1,11 +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 * +# -------------------------------------------------------------------------------------------- +# 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/automation/azext_automation/aaz/latest/automation/python3package/__cmd_group.py b/src/automation/azext_automation/aaz/latest/automation/python3package/__cmd_group.py new file mode 100644 index 00000000000..28867eca689 --- /dev/null +++ b/src/automation/azext_automation/aaz/latest/automation/python3package/__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( + "automation python3package", +) +class __CMDGroup(AAZCommandGroup): + """python3package + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3package/__init__.py b/src/automation/azext_automation/aaz/latest/automation/python3package/__init__.py new file mode 100644 index 00000000000..1f78565855b --- /dev/null +++ b/src/automation/azext_automation/aaz/latest/automation/python3package/__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/automation/azext_automation/aaz/latest/automation/python3package/_create.py b/src/automation/azext_automation/aaz/latest/automation/python3package/_create.py new file mode 100644 index 00000000000..bd384996ef6 --- /dev/null +++ b/src/automation/azext_automation/aaz/latest/automation/python3package/_create.py @@ -0,0 +1,305 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automation python3package create", +) +class Create(AAZCommand): + """Create or Update the python 3 package identified by package name. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/python3packages/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.package_name = AAZStrArg( + options=["-n", "--name", "--package-name"], + help="The name of python package.", + required=True, + id_part="child_name_1", + ) + _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="Gets or sets the tags attached to the resource.", + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg() + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.content_link = AAZObjectArg( + options=["--content-link"], + arg_group="Properties", + help="Gets or sets the module content link.", + required=True, + ) + + content_link = cls._args_schema.content_link + content_link.content_hash = AAZObjectArg( + options=["content-hash"], + help="Gets or sets the hash.", + ) + content_link.uri = AAZStrArg( + options=["uri"], + help="Gets or sets the uri of the runbook content.", + ) + content_link.version = AAZStrArg( + options=["version"], + help="Gets or sets the version of the content.", + ) + + content_hash = cls._args_schema.content_link.content_hash + content_hash.algorithm = AAZStrArg( + options=["algorithm"], + help="Gets or sets the content hash algorithm used to hash the content.", + required=True, + ) + content_hash.value = AAZStrArg( + options=["value"], + help="Gets or sets expected hash value of the content.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.Python3PackageCreateOrUpdate(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class Python3PackageCreateOrUpdate(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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "packageName", self.ctx.args.package_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-08-08", + 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, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) + _builder.set_prop("tags", AAZDictType, ".tags") + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("contentLink", AAZObjectType, ".content_link", typ_kwargs={"flags": {"required": True}}) + + content_link = _builder.get(".properties.contentLink") + if content_link is not None: + content_link.set_prop("contentHash", AAZObjectType, ".content_hash") + content_link.set_prop("uri", AAZStrType, ".uri") + content_link.set_prop("version", AAZStrType, ".version") + + content_hash = _builder.get(".properties.contentLink.contentHash") + if content_hash is not None: + content_hash.set_prop("algorithm", AAZStrType, ".algorithm", typ_kwargs={"flags": {"required": True}}) + content_hash.set_prop("value", AAZStrType, ".value", typ_kwargs={"flags": {"required": True}}) + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.etag = AAZStrType() + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.location = AAZStrType() + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200_201.tags = AAZDictType() + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.activity_count = AAZIntType( + serialized_name="activityCount", + ) + properties.content_link = AAZObjectType( + serialized_name="contentLink", + ) + properties.creation_time = AAZStrType( + serialized_name="creationTime", + ) + properties.description = AAZStrType() + properties.error = AAZObjectType() + properties.is_composite = AAZBoolType( + serialized_name="isComposite", + ) + properties.is_global = AAZBoolType( + serialized_name="isGlobal", + ) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + properties.size_in_bytes = AAZIntType( + serialized_name="sizeInBytes", + ) + properties.version = AAZStrType() + + content_link = cls._schema_on_200_201.properties.content_link + content_link.content_hash = AAZObjectType( + serialized_name="contentHash", + ) + content_link.uri = AAZStrType() + content_link.version = AAZStrType() + + content_hash = cls._schema_on_200_201.properties.content_link.content_hash + content_hash.algorithm = AAZStrType( + flags={"required": True}, + ) + content_hash.value = AAZStrType( + flags={"required": True}, + ) + + error = cls._schema_on_200_201.properties.error + error.code = AAZStrType() + error.message = AAZStrType() + + tags = cls._schema_on_200_201.tags + tags.Element = AAZStrType() + + return cls._schema_on_200_201 + + +__all__ = ["Create"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3package/_delete.py b/src/automation/azext_automation/aaz/latest/automation/python3package/_delete.py new file mode 100644 index 00000000000..9d7db34c128 --- /dev/null +++ b/src/automation/azext_automation/aaz/latest/automation/python3package/_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( + "automation python3package delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete the python 3 package by name. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/python3packages/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.package_name = AAZStrArg( + options=["-n", "--name", "--package-name"], + help="The python package name.", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.Python3PackageDelete(ctx=self.ctx)() + + class Python3PackageDelete(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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "packageName", self.ctx.args.package_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-08-08", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +__all__ = ["Delete"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3package/_list.py b/src/automation/azext_automation/aaz/latest/automation/python3package/_list.py new file mode 100644 index 00000000000..bac644ba0bd --- /dev/null +++ b/src/automation/azext_automation/aaz/latest/automation/python3package/_list.py @@ -0,0 +1,221 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automation python3package list", +) +class List(AAZCommand): + """Retrieve a list of python 3 packages. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/python3packages", "2022-08-08"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.Python3PackageListByAutomationAccount(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class Python3PackageListByAutomationAccount(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.Automation/automationAccounts/{automationAccountName}/python3Packages", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-08-08", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.etag = AAZStrType() + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.location = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.tags = AAZDictType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.activity_count = AAZIntType( + serialized_name="activityCount", + ) + properties.content_link = AAZObjectType( + serialized_name="contentLink", + ) + properties.creation_time = AAZStrType( + serialized_name="creationTime", + ) + properties.description = AAZStrType() + properties.error = AAZObjectType() + properties.is_composite = AAZBoolType( + serialized_name="isComposite", + ) + properties.is_global = AAZBoolType( + serialized_name="isGlobal", + ) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + properties.size_in_bytes = AAZIntType( + serialized_name="sizeInBytes", + ) + properties.version = AAZStrType() + + content_link = cls._schema_on_200.value.Element.properties.content_link + content_link.content_hash = AAZObjectType( + serialized_name="contentHash", + ) + content_link.uri = AAZStrType() + content_link.version = AAZStrType() + + content_hash = cls._schema_on_200.value.Element.properties.content_link.content_hash + content_hash.algorithm = AAZStrType( + flags={"required": True}, + ) + content_hash.value = AAZStrType( + flags={"required": True}, + ) + + error = cls._schema_on_200.value.Element.properties.error + error.code = AAZStrType() + error.message = AAZStrType() + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["List"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3package/_show.py b/src/automation/azext_automation/aaz/latest/automation/python3package/_show.py new file mode 100644 index 00000000000..4b7edcf5102 --- /dev/null +++ b/src/automation/azext_automation/aaz/latest/automation/python3package/_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( + "automation python3package show", +) +class Show(AAZCommand): + """Retrieve the python 3 package identified by package name. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/python3packages/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.package_name = AAZStrArg( + options=["-n", "--name", "--package-name"], + help="The python package name.", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.Python3PackageGet(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class Python3PackageGet(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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "packageName", self.ctx.args.package_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-08-08", + 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.etag = AAZStrType() + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.location = AAZStrType() + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.activity_count = AAZIntType( + serialized_name="activityCount", + ) + properties.content_link = AAZObjectType( + serialized_name="contentLink", + ) + properties.creation_time = AAZStrType( + serialized_name="creationTime", + ) + properties.description = AAZStrType() + properties.error = AAZObjectType() + properties.is_composite = AAZBoolType( + serialized_name="isComposite", + ) + properties.is_global = AAZBoolType( + serialized_name="isGlobal", + ) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + properties.size_in_bytes = AAZIntType( + serialized_name="sizeInBytes", + ) + properties.version = AAZStrType() + + content_link = cls._schema_on_200.properties.content_link + content_link.content_hash = AAZObjectType( + serialized_name="contentHash", + ) + content_link.uri = AAZStrType() + content_link.version = AAZStrType() + + content_hash = cls._schema_on_200.properties.content_link.content_hash + content_hash.algorithm = AAZStrType( + flags={"required": True}, + ) + content_hash.value = AAZStrType( + flags={"required": True}, + ) + + error = cls._schema_on_200.properties.error + error.code = AAZStrType() + error.message = AAZStrType() + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["Show"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3package/_update.py b/src/automation/azext_automation/aaz/latest/automation/python3package/_update.py new file mode 100644 index 00000000000..10d5e80c46f --- /dev/null +++ b/src/automation/azext_automation/aaz/latest/automation/python3package/_update.py @@ -0,0 +1,448 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automation python3package update", +) +class Update(AAZCommand): + """Create or Update the python 3 package identified by package name. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/python3packages/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.package_name = AAZStrArg( + options=["-n", "--name", "--package-name"], + help="The python package name.", + required=True, + id_part="child_name_1", + ) + _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="Gets or sets the tags attached to the resource.", + nullable=True, + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg( + nullable=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.content_link = AAZObjectArg( + options=["--content-link"], + arg_group="Properties", + help="Gets or sets the module content link.", + ) + + content_link = cls._args_schema.content_link + content_link.content_hash = AAZObjectArg( + options=["content-hash"], + help="Gets or sets the hash.", + nullable=True, + ) + content_link.uri = AAZStrArg( + options=["uri"], + help="Gets or sets the uri of the runbook content.", + nullable=True, + ) + content_link.version = AAZStrArg( + options=["version"], + help="Gets or sets the version of the content.", + nullable=True, + ) + + content_hash = cls._args_schema.content_link.content_hash + content_hash.algorithm = AAZStrArg( + options=["algorithm"], + help="Gets or sets the content hash algorithm used to hash the content.", + ) + content_hash.value = AAZStrArg( + options=["value"], + help="Gets or sets expected hash value of the content.", + ) + return cls._args_schema + + def _execute_operations(self): + self.Python3PackageGet(ctx=self.ctx)() + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.Python3PackageCreateOrUpdate(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class Python3PackageGet(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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "packageName", self.ctx.args.package_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-08-08", + 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_module_read(cls._schema_on_200) + + return cls._schema_on_200 + + class Python3PackageCreateOrUpdate(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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "packageName", self.ctx.args.package_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-08-08", + 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_module_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) + _builder.set_prop("tags", AAZDictType, ".tags") + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("contentLink", AAZObjectType, ".content_link", typ_kwargs={"flags": {"required": True}}) + + content_link = _builder.get(".properties.contentLink") + if content_link is not None: + content_link.set_prop("contentHash", AAZObjectType, ".content_hash") + content_link.set_prop("uri", AAZStrType, ".uri") + content_link.set_prop("version", AAZStrType, ".version") + + content_hash = _builder.get(".properties.contentLink.contentHash") + if content_hash is not None: + content_hash.set_prop("algorithm", AAZStrType, ".algorithm", typ_kwargs={"flags": {"required": True}}) + content_hash.set_prop("value", AAZStrType, ".value", typ_kwargs={"flags": {"required": True}}) + + 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_module_read = None + + +def _build_schema_module_read(_schema): + global _schema_module_read + if _schema_module_read is not None: + _schema.etag = _schema_module_read.etag + _schema.id = _schema_module_read.id + _schema.location = _schema_module_read.location + _schema.name = _schema_module_read.name + _schema.properties = _schema_module_read.properties + _schema.tags = _schema_module_read.tags + _schema.type = _schema_module_read.type + return + + _schema_module_read = AAZObjectType() + + module_read = _schema_module_read + module_read.etag = AAZStrType() + module_read.id = AAZStrType( + flags={"read_only": True}, + ) + module_read.location = AAZStrType() + module_read.name = AAZStrType( + flags={"read_only": True}, + ) + module_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + module_read.tags = AAZDictType() + module_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_module_read.properties + properties.activity_count = AAZIntType( + serialized_name="activityCount", + ) + properties.content_link = AAZObjectType( + serialized_name="contentLink", + ) + properties.creation_time = AAZStrType( + serialized_name="creationTime", + ) + properties.description = AAZStrType() + properties.error = AAZObjectType() + properties.is_composite = AAZBoolType( + serialized_name="isComposite", + ) + properties.is_global = AAZBoolType( + serialized_name="isGlobal", + ) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + properties.size_in_bytes = AAZIntType( + serialized_name="sizeInBytes", + ) + properties.version = AAZStrType() + + content_link = _schema_module_read.properties.content_link + content_link.content_hash = AAZObjectType( + serialized_name="contentHash", + ) + content_link.uri = AAZStrType() + content_link.version = AAZStrType() + + content_hash = _schema_module_read.properties.content_link.content_hash + content_hash.algorithm = AAZStrType( + flags={"required": True}, + ) + content_hash.value = AAZStrType( + flags={"required": True}, + ) + + error = _schema_module_read.properties.error + error.code = AAZStrType() + error.message = AAZStrType() + + tags = _schema_module_read.tags + tags.Element = AAZStrType() + + _schema.etag = _schema_module_read.etag + _schema.id = _schema_module_read.id + _schema.location = _schema_module_read.location + _schema.name = _schema_module_read.name + _schema.properties = _schema_module_read.properties + _schema.tags = _schema_module_read.tags + _schema.type = _schema_module_read.type + + +__all__ = ["Update"] diff --git a/src/automation/azext_automation/azext_metadata.json b/src/automation/azext_automation/azext_metadata.json index a0d4f25e0f3..242f0e4ba54 100644 --- a/src/automation/azext_automation/azext_metadata.json +++ b/src/automation/azext_automation/azext_metadata.json @@ -1,4 +1,4 @@ -{ - "azext.isExperimental": true, - "azext.minCliCoreVersion": "2.39.0" +{ + "azext.isExperimental": true, + "azext.minCliCoreVersion": "2.39.0" } \ No newline at end of file From cde2c2f4f079b8b50042ee56728949e77b507f6a Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Fri, 9 Sep 2022 15:02:10 +0530 Subject: [PATCH 02/10] Update Linter exclusion rule for automation account parameter --- src/automation/linter_exclusions.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/automation/linter_exclusions.yml b/src/automation/linter_exclusions.yml index daf01e19db3..b19c0793c0a 100644 --- a/src/automation/linter_exclusions.yml +++ b/src/automation/linter_exclusions.yml @@ -253,3 +253,29 @@ automation software-update-configuration machine-runs list: software_update_configuration_machine_run_id: rule_exclusions: - option_length_too_long +automation python3package create: + parameters: + automation_account_name: + rule_exclusions: + - option_length_too_long +automation python3package delete: + parameters: + automation_account_name: + rule_exclusions: + - option_length_too_long +automation python3package list: + parameters: + automation_account_name: + rule_exclusions: + - option_length_too_long +automation python3package show: + parameters: + automation_account_name: + rule_exclusions: + - option_length_too_long +automation python3package update: + parameters: + automation_account_name: + rule_exclusions: + - option_length_too_long + From 1362d3400f8e4021391cee757e9058ab2ed06de6 Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Tue, 4 Oct 2022 11:17:05 +0530 Subject: [PATCH 03/10] Added Test cases for PY3 --- .../aaz/latest/automation/__cmd_group.py | 46 +- .../aaz/latest/automation/__init__.py | 22 +- .../automation/python3_package/__cmd_group.py | 23 + .../automation/python3_package/__init__.py | 16 + .../automation/python3_package/_create.py | 318 ++++++++++++ .../automation/python3_package/_delete.py | 145 ++++++ .../automation/python3_package/_list.py | 234 +++++++++ .../automation/python3_package/_show.py | 236 +++++++++ .../automation/python3_package/_update.py | 471 ++++++++++++++++++ .../azext_automation/azext_metadata.json | 6 +- .../latest/test_automation_scenario_manual.py | 18 +- src/automation/linter_exclusions.yml | 26 + 12 files changed, 1523 insertions(+), 38 deletions(-) create mode 100644 src/automation/azext_automation/aaz/latest/automation/python3_package/__cmd_group.py create mode 100644 src/automation/azext_automation/aaz/latest/automation/python3_package/__init__.py create mode 100644 src/automation/azext_automation/aaz/latest/automation/python3_package/_create.py create mode 100644 src/automation/azext_automation/aaz/latest/automation/python3_package/_delete.py create mode 100644 src/automation/azext_automation/aaz/latest/automation/python3_package/_list.py create mode 100644 src/automation/azext_automation/aaz/latest/automation/python3_package/_show.py create mode 100644 src/automation/azext_automation/aaz/latest/automation/python3_package/_update.py diff --git a/src/automation/azext_automation/aaz/latest/automation/__cmd_group.py b/src/automation/azext_automation/aaz/latest/automation/__cmd_group.py index c2ac75642d4..336762af7d2 100644 --- a/src/automation/azext_automation/aaz/latest/automation/__cmd_group.py +++ b/src/automation/azext_automation/aaz/latest/automation/__cmd_group.py @@ -1,23 +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( - "automation", -) -class __CMDGroup(AAZCommandGroup): - """Automation Account. - """ - pass - - -__all__ = ["__CMDGroup"] +# -------------------------------------------------------------------------------------------- +# 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( + "automation", +) +class __CMDGroup(AAZCommandGroup): + """Manage Automation Account + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automation/azext_automation/aaz/latest/automation/__init__.py b/src/automation/azext_automation/aaz/latest/automation/__init__.py index 5a9d61963d6..709a5170d90 100644 --- a/src/automation/azext_automation/aaz/latest/automation/__init__.py +++ b/src/automation/azext_automation/aaz/latest/automation/__init__.py @@ -1,11 +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 * +# -------------------------------------------------------------------------------------------- +# 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/automation/azext_automation/aaz/latest/automation/python3_package/__cmd_group.py b/src/automation/azext_automation/aaz/latest/automation/python3_package/__cmd_group.py new file mode 100644 index 00000000000..5158bd13e76 --- /dev/null +++ b/src/automation/azext_automation/aaz/latest/automation/python3_package/__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( + "automation python3-package", +) +class __CMDGroup(AAZCommandGroup): + """python3-package + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3_package/__init__.py b/src/automation/azext_automation/aaz/latest/automation/python3_package/__init__.py new file mode 100644 index 00000000000..1f78565855b --- /dev/null +++ b/src/automation/azext_automation/aaz/latest/automation/python3_package/__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/automation/azext_automation/aaz/latest/automation/python3_package/_create.py b/src/automation/azext_automation/aaz/latest/automation/python3_package/_create.py new file mode 100644 index 00000000000..0e00336b753 --- /dev/null +++ b/src/automation/azext_automation/aaz/latest/automation/python3_package/_create.py @@ -0,0 +1,318 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automation python3-package create", +) +class Create(AAZCommand): + """Create or Update the python 3 package identified by package name. + + :example: Add Python3 Package to automation account + az automation python3-package create --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup " --name "PackageName" --content-link "uri=https://PackageUri.com" + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/python3packages/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.package_name = AAZStrArg( + options=["-n", "--name", "--package-name"], + help="The name of python package.", + required=True, + id_part="child_name_1", + ) + _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="Gets or sets the tags attached to the resource.", + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg() + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.content_link = AAZObjectArg( + options=["--content-link"], + arg_group="Properties", + help="Gets or sets the module content link.", + required=True, + ) + + content_link = cls._args_schema.content_link + content_link.content_hash = AAZObjectArg( + options=["content-hash"], + help="Gets or sets the hash.", + ) + content_link.uri = AAZStrArg( + options=["uri"], + help="Gets or sets the uri of the runbook content.", + ) + content_link.version = AAZStrArg( + options=["version"], + help="Gets or sets the version of the content.", + ) + + content_hash = cls._args_schema.content_link.content_hash + content_hash.algorithm = AAZStrArg( + options=["algorithm"], + help="Gets or sets the content hash algorithm used to hash the content.", + required=True, + ) + content_hash.value = AAZStrArg( + options=["value"], + help="Gets or sets expected hash value of the content.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.Python3PackageCreateOrUpdate(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 Python3PackageCreateOrUpdate(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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "packageName", self.ctx.args.package_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-08-08", + 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, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) + _builder.set_prop("tags", AAZDictType, ".tags") + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("contentLink", AAZObjectType, ".content_link", typ_kwargs={"flags": {"required": True}}) + + content_link = _builder.get(".properties.contentLink") + if content_link is not None: + content_link.set_prop("contentHash", AAZObjectType, ".content_hash") + content_link.set_prop("uri", AAZStrType, ".uri") + content_link.set_prop("version", AAZStrType, ".version") + + content_hash = _builder.get(".properties.contentLink.contentHash") + if content_hash is not None: + content_hash.set_prop("algorithm", AAZStrType, ".algorithm", typ_kwargs={"flags": {"required": True}}) + content_hash.set_prop("value", AAZStrType, ".value", typ_kwargs={"flags": {"required": True}}) + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.etag = AAZStrType() + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.location = AAZStrType() + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200_201.tags = AAZDictType() + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.activity_count = AAZIntType( + serialized_name="activityCount", + ) + properties.content_link = AAZObjectType( + serialized_name="contentLink", + ) + properties.creation_time = AAZStrType( + serialized_name="creationTime", + ) + properties.description = AAZStrType() + properties.error = AAZObjectType() + properties.is_composite = AAZBoolType( + serialized_name="isComposite", + ) + properties.is_global = AAZBoolType( + serialized_name="isGlobal", + ) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + properties.size_in_bytes = AAZIntType( + serialized_name="sizeInBytes", + ) + properties.version = AAZStrType() + + content_link = cls._schema_on_200_201.properties.content_link + content_link.content_hash = AAZObjectType( + serialized_name="contentHash", + ) + content_link.uri = AAZStrType() + content_link.version = AAZStrType() + + content_hash = cls._schema_on_200_201.properties.content_link.content_hash + content_hash.algorithm = AAZStrType( + flags={"required": True}, + ) + content_hash.value = AAZStrType( + flags={"required": True}, + ) + + error = cls._schema_on_200_201.properties.error + error.code = AAZStrType() + error.message = AAZStrType() + + tags = cls._schema_on_200_201.tags + tags.Element = AAZStrType() + + return cls._schema_on_200_201 + + +__all__ = ["Create"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3_package/_delete.py b/src/automation/azext_automation/aaz/latest/automation/python3_package/_delete.py new file mode 100644 index 00000000000..3bccef085c3 --- /dev/null +++ b/src/automation/azext_automation/aaz/latest/automation/python3_package/_delete.py @@ -0,0 +1,145 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automation python3-package delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete the python 3 package by name. + + :example: Delete Python3 Package by Name + az automation python3-package delete --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup " --name "PackageName" + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/python3packages/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.package_name = AAZStrArg( + options=["-n", "--name", "--package-name"], + help="The python package 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.Python3PackageDelete(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + class Python3PackageDelete(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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "packageName", self.ctx.args.package_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-08-08", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +__all__ = ["Delete"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3_package/_list.py b/src/automation/azext_automation/aaz/latest/automation/python3_package/_list.py new file mode 100644 index 00000000000..0d3f587b801 --- /dev/null +++ b/src/automation/azext_automation/aaz/latest/automation/python3_package/_list.py @@ -0,0 +1,234 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automation python3-package list", +) +class List(AAZCommand): + """Retrieve a list of python 3 packages. + + :example: List all Custom Python3Package in AutomationAccount + az automation python3-package list --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup " + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/python3packages", "2022-08-08"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.Python3PackageListByAutomationAccount(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) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class Python3PackageListByAutomationAccount(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.Automation/automationAccounts/{automationAccountName}/python3Packages", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-08-08", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.etag = AAZStrType() + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.location = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.tags = AAZDictType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.activity_count = AAZIntType( + serialized_name="activityCount", + ) + properties.content_link = AAZObjectType( + serialized_name="contentLink", + ) + properties.creation_time = AAZStrType( + serialized_name="creationTime", + ) + properties.description = AAZStrType() + properties.error = AAZObjectType() + properties.is_composite = AAZBoolType( + serialized_name="isComposite", + ) + properties.is_global = AAZBoolType( + serialized_name="isGlobal", + ) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + properties.size_in_bytes = AAZIntType( + serialized_name="sizeInBytes", + ) + properties.version = AAZStrType() + + content_link = cls._schema_on_200.value.Element.properties.content_link + content_link.content_hash = AAZObjectType( + serialized_name="contentHash", + ) + content_link.uri = AAZStrType() + content_link.version = AAZStrType() + + content_hash = cls._schema_on_200.value.Element.properties.content_link.content_hash + content_hash.algorithm = AAZStrType( + flags={"required": True}, + ) + content_hash.value = AAZStrType( + flags={"required": True}, + ) + + error = cls._schema_on_200.value.Element.properties.error + error.code = AAZStrType() + error.message = AAZStrType() + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["List"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3_package/_show.py b/src/automation/azext_automation/aaz/latest/automation/python3_package/_show.py new file mode 100644 index 00000000000..abb400acfe7 --- /dev/null +++ b/src/automation/azext_automation/aaz/latest/automation/python3_package/_show.py @@ -0,0 +1,236 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automation python3-package show", +) +class Show(AAZCommand): + """Retrieve the python 3 package identified by package name. + + :example: Get Python3Package by Name + az automation python3-package show --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup " --name "PackageName" + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/python3packages/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.package_name = AAZStrArg( + options=["-n", "--name", "--package-name"], + help="The python package 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.Python3PackageGet(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 Python3PackageGet(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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "packageName", self.ctx.args.package_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-08-08", + 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.etag = AAZStrType() + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.location = AAZStrType() + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.activity_count = AAZIntType( + serialized_name="activityCount", + ) + properties.content_link = AAZObjectType( + serialized_name="contentLink", + ) + properties.creation_time = AAZStrType( + serialized_name="creationTime", + ) + properties.description = AAZStrType() + properties.error = AAZObjectType() + properties.is_composite = AAZBoolType( + serialized_name="isComposite", + ) + properties.is_global = AAZBoolType( + serialized_name="isGlobal", + ) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + properties.size_in_bytes = AAZIntType( + serialized_name="sizeInBytes", + ) + properties.version = AAZStrType() + + content_link = cls._schema_on_200.properties.content_link + content_link.content_hash = AAZObjectType( + serialized_name="contentHash", + ) + content_link.uri = AAZStrType() + content_link.version = AAZStrType() + + content_hash = cls._schema_on_200.properties.content_link.content_hash + content_hash.algorithm = AAZStrType( + flags={"required": True}, + ) + content_hash.value = AAZStrType( + flags={"required": True}, + ) + + error = cls._schema_on_200.properties.error + error.code = AAZStrType() + error.message = AAZStrType() + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["Show"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3_package/_update.py b/src/automation/azext_automation/aaz/latest/automation/python3_package/_update.py new file mode 100644 index 00000000000..6e30a6bf27a --- /dev/null +++ b/src/automation/azext_automation/aaz/latest/automation/python3_package/_update.py @@ -0,0 +1,471 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "automation python3-package update", +) +class Update(AAZCommand): + """Create or Update the python 3 package identified by package name. + + :example: Update Python3Package by Name + az automation python3-package update --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup " --name "PackageName" --content-link "uri=https://PackageUri.com" + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/python3packages/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.package_name = AAZStrArg( + options=["-n", "--name", "--package-name"], + help="The python package name.", + required=True, + id_part="child_name_1", + ) + _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="Gets or sets the tags attached to the resource.", + nullable=True, + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg( + nullable=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.content_link = AAZObjectArg( + options=["--content-link"], + arg_group="Properties", + help="Gets or sets the module content link.", + ) + + content_link = cls._args_schema.content_link + content_link.content_hash = AAZObjectArg( + options=["content-hash"], + help="Gets or sets the hash.", + nullable=True, + ) + content_link.uri = AAZStrArg( + options=["uri"], + help="Gets or sets the uri of the runbook content.", + nullable=True, + ) + content_link.version = AAZStrArg( + options=["version"], + help="Gets or sets the version of the content.", + nullable=True, + ) + + content_hash = cls._args_schema.content_link.content_hash + content_hash.algorithm = AAZStrArg( + options=["algorithm"], + help="Gets or sets the content hash algorithm used to hash the content.", + ) + content_hash.value = AAZStrArg( + options=["value"], + help="Gets or sets expected hash value of the content.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.Python3PackageGet(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.Python3PackageCreateOrUpdate(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 Python3PackageGet(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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "packageName", self.ctx.args.package_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-08-08", + 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_module_read(cls._schema_on_200) + + return cls._schema_on_200 + + class Python3PackageCreateOrUpdate(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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "packageName", self.ctx.args.package_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-08-08", + 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_module_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) + _builder.set_prop("tags", AAZDictType, ".tags") + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("contentLink", AAZObjectType, ".content_link", typ_kwargs={"flags": {"required": True}}) + + content_link = _builder.get(".properties.contentLink") + if content_link is not None: + content_link.set_prop("contentHash", AAZObjectType, ".content_hash") + content_link.set_prop("uri", AAZStrType, ".uri") + content_link.set_prop("version", AAZStrType, ".version") + + content_hash = _builder.get(".properties.contentLink.contentHash") + if content_hash is not None: + content_hash.set_prop("algorithm", AAZStrType, ".algorithm", typ_kwargs={"flags": {"required": True}}) + content_hash.set_prop("value", AAZStrType, ".value", typ_kwargs={"flags": {"required": True}}) + + 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_module_read = None + + +def _build_schema_module_read(_schema): + global _schema_module_read + if _schema_module_read is not None: + _schema.etag = _schema_module_read.etag + _schema.id = _schema_module_read.id + _schema.location = _schema_module_read.location + _schema.name = _schema_module_read.name + _schema.properties = _schema_module_read.properties + _schema.tags = _schema_module_read.tags + _schema.type = _schema_module_read.type + return + + _schema_module_read = AAZObjectType() + + module_read = _schema_module_read + module_read.etag = AAZStrType() + module_read.id = AAZStrType( + flags={"read_only": True}, + ) + module_read.location = AAZStrType() + module_read.name = AAZStrType( + flags={"read_only": True}, + ) + module_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + module_read.tags = AAZDictType() + module_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_module_read.properties + properties.activity_count = AAZIntType( + serialized_name="activityCount", + ) + properties.content_link = AAZObjectType( + serialized_name="contentLink", + ) + properties.creation_time = AAZStrType( + serialized_name="creationTime", + ) + properties.description = AAZStrType() + properties.error = AAZObjectType() + properties.is_composite = AAZBoolType( + serialized_name="isComposite", + ) + properties.is_global = AAZBoolType( + serialized_name="isGlobal", + ) + properties.last_modified_time = AAZStrType( + serialized_name="lastModifiedTime", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + properties.size_in_bytes = AAZIntType( + serialized_name="sizeInBytes", + ) + properties.version = AAZStrType() + + content_link = _schema_module_read.properties.content_link + content_link.content_hash = AAZObjectType( + serialized_name="contentHash", + ) + content_link.uri = AAZStrType() + content_link.version = AAZStrType() + + content_hash = _schema_module_read.properties.content_link.content_hash + content_hash.algorithm = AAZStrType( + flags={"required": True}, + ) + content_hash.value = AAZStrType( + flags={"required": True}, + ) + + error = _schema_module_read.properties.error + error.code = AAZStrType() + error.message = AAZStrType() + + tags = _schema_module_read.tags + tags.Element = AAZStrType() + + _schema.etag = _schema_module_read.etag + _schema.id = _schema_module_read.id + _schema.location = _schema_module_read.location + _schema.name = _schema_module_read.name + _schema.properties = _schema_module_read.properties + _schema.tags = _schema_module_read.tags + _schema.type = _schema_module_read.type + + +__all__ = ["Update"] diff --git a/src/automation/azext_automation/azext_metadata.json b/src/automation/azext_automation/azext_metadata.json index a0d4f25e0f3..a3beef2a804 100644 --- a/src/automation/azext_automation/azext_metadata.json +++ b/src/automation/azext_automation/azext_metadata.json @@ -1,4 +1,4 @@ -{ - "azext.isExperimental": true, - "azext.minCliCoreVersion": "2.39.0" +{ + "azext.isExperimental": true, + "azext.minCliCoreVersion": "2.40.0" } \ No newline at end of file diff --git a/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py b/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py index 6274e211e3e..e6f9a383b20 100644 --- a/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py +++ b/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py @@ -71,7 +71,9 @@ def test_automation(self, resource_group): 'account_name': self.create_random_name(prefix='test-account-', length=24), 'runbook_name': self.create_random_name(prefix='test-runbook-', length=24), 'runbook_content': RUNBOOK_CONTENT, - 'hybrid_runbook_worker_group_name' : self.create_random_name(prefix='hwg-', length=10) + 'hybrid_runbook_worker_group_name' : self.create_random_name(prefix='hwg-', length=10), + 'python3Package_name': self.create_random_name(prefix='py3-package-', length=24), + 'python3PackageContentUri':'uri=https://files.pythonhosted.org/packages/7f/e2/85dfb9f7364cbd7a9213caea0e91fc948da3c912a2b222a3e43bc9cc6432/requires.io-0.2.6-py2.py3-none-any.whl' }) self.cmd('automation account create --resource-group {rg} --name {account_name} --location "West US 2"', checks=[self.check('name', '{account_name}')]) @@ -126,6 +128,20 @@ def test_automation(self, resource_group): self.cmd('automation hrwg delete --resource-group {rg} --automation-account-name {account_name} --name {hybrid_runbook_worker_group_name} --yes') + self.cmd('automation python3-package create --resource-group {rg} --automation-account-name {account_name} --name {python3Package_name} --content-link {python3PackageContentUri}', + checks=[self.check('name', '{python3Package_name}')]) + + self.cmd('automation python3-package update --resource-group {rg} --automation-account-name {account_name} --name {python3Package_name} --content-link {python3PackageContentUri}', + checks=[self.check('name', '{python3Package_name}')]) + + self.cmd('automation python3package show --resource-group {rg} --automation-account-name {account_name} --name {python3Package_name}', + checks=[self.check('name', '{python3Package_name}')]) + + self.cmd('automation python3-package list --resource-group {rg} --automation-account-name {account_name} ', + checks=[self.check('length(@)', 1)]) + + self.cmd('automation python3-package delete --resource-group {rg} --automation-account-name {account_name} --name {python3Package_name} --yes') + with mock.patch('azext_automation.manual.custom._uuid', side_effect=_uuid): job = self.cmd('automation runbook start --resource-group {rg} --automation-account-name {account_name} ' '--name {runbook_name}').get_output_in_json() diff --git a/src/automation/linter_exclusions.yml b/src/automation/linter_exclusions.yml index daf01e19db3..e7f2a7aa0ad 100644 --- a/src/automation/linter_exclusions.yml +++ b/src/automation/linter_exclusions.yml @@ -253,3 +253,29 @@ automation software-update-configuration machine-runs list: software_update_configuration_machine_run_id: rule_exclusions: - option_length_too_long +automation python3-package create: + parameters: + automation_account_name: + rule_exclusions: + - option_length_too_long +automation python3-package delete: + parameters: + automation_account_name: + rule_exclusions: + - option_length_too_long +automation python3-package list: + parameters: + automation_account_name: + rule_exclusions: + - option_length_too_long +automation python3-package show: + parameters: + automation_account_name: + rule_exclusions: + - option_length_too_long +automation python3-package update: + parameters: + automation_account_name: + rule_exclusions: + - option_length_too_long + From 7b3a91f3b92682196d10de9eb5a4ef2537334c9e Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Tue, 18 Oct 2022 12:02:47 +0530 Subject: [PATCH 04/10] Updated Test cases recording with latest test cases --- .../aaz/latest/automation/hrwg/__cmd_group.py | 46 +- .../aaz/latest/automation/hrwg/__init__.py | 32 +- .../aaz/latest/automation/hrwg/_create.py | 502 +-- .../aaz/latest/automation/hrwg/_delete.py | 264 +- .../aaz/latest/automation/hrwg/_list.py | 436 +-- .../aaz/latest/automation/hrwg/_show.py | 426 +-- .../aaz/latest/automation/hrwg/_update.py | 788 ++--- .../latest/automation/hrwg/hrw/__cmd_group.py | 46 +- .../latest/automation/hrwg/hrw/__init__.py | 34 +- .../aaz/latest/automation/hrwg/hrw/_create.py | 520 +-- .../aaz/latest/automation/hrwg/hrw/_delete.py | 294 +- .../aaz/latest/automation/hrwg/hrw/_list.py | 472 +-- .../aaz/latest/automation/hrwg/hrw/_move.py | 321 +- .../aaz/latest/automation/hrwg/hrw/_show.py | 464 +-- .../aaz/latest/automation/hrwg/hrw/_update.py | 812 ++--- .../automation/python3_package/_create.py | 2 +- .../automation/python3_package/_delete.py | 2 +- .../automation/python3_package/_list.py | 2 +- .../automation/python3_package/_show.py | 2 +- .../automation/python3_package/_update.py | 2 +- .../automation/python3package/__cmd_group.py | 23 - .../automation/python3package/__init__.py | 16 - .../automation/python3package/_create.py | 305 -- .../automation/python3package/_delete.py | 132 - .../latest/automation/python3package/_list.py | 221 -- .../latest/automation/python3package/_show.py | 223 -- .../automation/python3package/_update.py | 448 --- .../latest/recordings/test_automation.yaml | 2989 ++++++++++------- .../recordings/test_automation_schedule.yaml | 674 ++-- .../latest/test_automation_scenario_manual.py | 17 +- 30 files changed, 4944 insertions(+), 5571 deletions(-) delete mode 100644 src/automation/azext_automation/aaz/latest/automation/python3package/__cmd_group.py delete mode 100644 src/automation/azext_automation/aaz/latest/automation/python3package/__init__.py delete mode 100644 src/automation/azext_automation/aaz/latest/automation/python3package/_create.py delete mode 100644 src/automation/azext_automation/aaz/latest/automation/python3package/_delete.py delete mode 100644 src/automation/azext_automation/aaz/latest/automation/python3package/_list.py delete mode 100644 src/automation/azext_automation/aaz/latest/automation/python3package/_show.py delete mode 100644 src/automation/azext_automation/aaz/latest/automation/python3package/_update.py diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/__cmd_group.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/__cmd_group.py index b0998384a91..388c5bc53a9 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/__cmd_group.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/__cmd_group.py @@ -1,23 +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( - "automation hrwg", -) -class __CMDGroup(AAZCommandGroup): - """Automation Hybrid Runbook Worker Group - """ - pass - - -__all__ = ["__CMDGroup"] +# -------------------------------------------------------------------------------------------- +# 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( + "automation hrwg", +) +class __CMDGroup(AAZCommandGroup): + """Hrwg + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/__init__.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/__init__.py index c401f439385..1f78565855b 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/__init__.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/__init__.py @@ -1,16 +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 * +# -------------------------------------------------------------------------------------------- +# 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/automation/azext_automation/aaz/latest/automation/hrwg/_create.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/_create.py index f50200f8d8c..99fe6f96bd3 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/_create.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/_create.py @@ -1,246 +1,256 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation hrwg create", -) -class Create(AAZCommand): - """Create a hybrid runbook worker group. - """ - - _aaz_info = { - "version": "2022-02-22", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}", "2022-02-22"], - ] - } - - 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.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - id_part="name", - ) - _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( - options=["-n", "--name", "--hybrid-runbook-worker-group-name"], - help="The hybrid runbook worker group 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.credential = AAZObjectArg( - options=["--credential"], - arg_group="Properties", - help="Set the credential of a worker group.", - ) - - credential = cls._args_schema.credential - credential.name = AAZStrArg( - options=["name"], - help="Get or set the name of the credential.", - ) - return cls._args_schema - - def _execute_operations(self): - self.HybridRunbookWorkerGroupCreate(ctx=self.ctx)() - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) - return result - - class HybridRunbookWorkerGroupCreate(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_201(session) - - return self.on_error(session.http_response) - - @property - def url(self): - return self.client.format_url( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", - **self.url_parameters - ) - - @property - def method(self): - return "PUT" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_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-02-22", - required=True, - ), - } - return parameters - - @property - def header_parameters(self): - parameters = { - **self.serialize_header_param( - "Content-Type", "application/json", - ), - **self.serialize_header_param( - "Accept", "application/json", - ), - } - return parameters - - @property - def content(self): - _content_value, _builder = self.new_content_builder( - self.ctx.args, - typ=AAZObjectType, - typ_kwargs={"flags": {"required": True, "client_flatten": True}} - ) - _builder.set_prop("name", AAZStrType, ".hybrid_runbook_worker_group_name") - _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) - - properties = _builder.get(".properties") - if properties is not None: - properties.set_prop("credential", AAZObjectType, ".credential") - - credential = _builder.get(".properties.credential") - if credential is not None: - credential.set_prop("name", AAZStrType, ".name") - - return self.serialize_content(_content_value) - - def on_201(self, session): - data = self.deserialize_http_content(session) - self.ctx.set_var( - "instance", - data, - schema_builder=self._build_schema_on_201 - ) - - _schema_on_201 = None - - @classmethod - def _build_schema_on_201(cls): - if cls._schema_on_201 is not None: - return cls._schema_on_201 - - cls._schema_on_201 = AAZObjectType() - - _schema_on_201 = cls._schema_on_201 - _schema_on_201.id = AAZStrType( - flags={"read_only": True}, - ) - _schema_on_201.name = AAZStrType( - flags={"read_only": True}, - ) - _schema_on_201.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - _schema_on_201.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - _schema_on_201.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = cls._schema_on_201.properties - properties.credential = AAZObjectType() - properties.group_type = AAZStrType( - serialized_name="groupType", - ) - - credential = cls._schema_on_201.properties.credential - credential.name = AAZStrType() - - system_data = cls._schema_on_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_201 - - -__all__ = ["Create"] +# -------------------------------------------------------------------------------------------- +# 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( + "automation hrwg create", +) +class Create(AAZCommand): + """Create a hybrid runbook worker group. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( + options=["-n", "--name", "--hybrid-runbook-worker-group-name"], + help="The hybrid runbook worker group 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.credential = AAZObjectArg( + options=["--credential"], + arg_group="Properties", + help="Sets the credential of a worker group.", + ) + + credential = cls._args_schema.credential + credential.name = AAZStrArg( + options=["name"], + help="Gets or sets the name of the credential.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.HybridRunbookWorkerGroupCreate(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 HybridRunbookWorkerGroupCreate(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_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-08-08", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("name", AAZStrType, ".hybrid_runbook_worker_group_name") + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("credential", AAZObjectType, ".credential") + + credential = _builder.get(".properties.credential") + if credential is not None: + credential.set_prop("name", AAZStrType, ".name") + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.credential = AAZObjectType() + properties.group_type = AAZStrType( + serialized_name="groupType", + ) + + credential = cls._schema_on_200_201.properties.credential + credential.name = AAZStrType() + + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + return cls._schema_on_200_201 + + +__all__ = ["Create"] diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/_delete.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/_delete.py index edcc6e94be6..2f9afd9aa7b 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/_delete.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/_delete.py @@ -1,127 +1,137 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation hrwg delete", - confirmation="Are you sure you want to perform this operation?", -) -class Delete(AAZCommand): - """Delete a hybrid runbook worker group. - """ - - _aaz_info = { - "version": "2022-02-22", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}", "2022-02-22"], - ] - } - - 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.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - id_part="name", - ) - _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( - options=["-n", "--name", "--hybrid-runbook-worker-group-name"], - help="The hybrid runbook worker group name", - required=True, - id_part="child_name_1", - ) - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - return cls._args_schema - - def _execute_operations(self): - self.HybridRunbookWorkerGroupDelete(ctx=self.ctx)() - - class HybridRunbookWorkerGroupDelete(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", - **self.url_parameters - ) - - @property - def method(self): - return "DELETE" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_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-02-22", - required=True, - ), - } - return parameters - - def on_200(self, session): - pass - - -__all__ = ["Delete"] +# -------------------------------------------------------------------------------------------- +# 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( + "automation hrwg delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a hybrid runbook worker group. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( + options=["-n", "--name", "--hybrid-runbook-worker-group-name"], + help="The hybrid runbook worker group 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.HybridRunbookWorkerGroupDelete(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + class HybridRunbookWorkerGroupDelete(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_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-08-08", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + +__all__ = ["Delete"] diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/_list.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/_list.py index d056fe847e9..e3b1af3a419 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/_list.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/_list.py @@ -1,213 +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( - "automation hrwg list", -) -class List(AAZCommand): - """Retrieve a list of hybrid runbook worker groups. - """ - - _aaz_info = { - "version": "2022-02-22", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups", "2022-02-22"], - ] - } - - def _handler(self, command_args): - super()._handler(command_args) - return self.build_paging(self._execute_operations, self._output) - - _args_schema = None - - @classmethod - def _build_arguments_schema(cls, *args, **kwargs): - if cls._args_schema is not None: - return cls._args_schema - cls._args_schema = super()._build_arguments_schema(*args, **kwargs) - - # define Arg Group "" - - _args_schema = cls._args_schema - _args_schema.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - ) - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - _args_schema.filter = AAZStrArg( - options=["--filter"], - help="The filter to apply on the operation.", - ) - return cls._args_schema - - def _execute_operations(self): - self.HybridRunbookWorkerGroupListByAutomationAccount(ctx=self.ctx)() - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) - next_link = self.deserialize_output(self.ctx.vars.instance.next_link) - return result, next_link - - class HybridRunbookWorkerGroupListByAutomationAccount(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups", - **self.url_parameters - ) - - @property - def method(self): - return "GET" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "resourceGroupName", self.ctx.args.resource_group, - required=True, - ), - **self.serialize_url_param( - "subscriptionId", self.ctx.subscription_id, - required=True, - ), - } - return parameters - - @property - def query_parameters(self): - parameters = { - **self.serialize_query_param( - "$filter", self.ctx.args.filter, - ), - **self.serialize_query_param( - "api-version", "2022-02-22", - required=True, - ), - } - return parameters - - @property - def header_parameters(self): - parameters = { - **self.serialize_header_param( - "Accept", "application/json", - ), - } - return parameters - - def on_200(self, session): - data = self.deserialize_http_content(session) - self.ctx.set_var( - "instance", - data, - schema_builder=self._build_schema_on_200 - ) - - _schema_on_200 = None - - @classmethod - def _build_schema_on_200(cls): - if cls._schema_on_200 is not None: - return cls._schema_on_200 - - cls._schema_on_200 = AAZObjectType() - - _schema_on_200 = cls._schema_on_200 - _schema_on_200.next_link = AAZStrType( - serialized_name="nextLink", - ) - _schema_on_200.value = AAZListType() - - 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.credential = AAZObjectType() - properties.group_type = AAZStrType( - serialized_name="groupType", - ) - - credential = cls._schema_on_200.value.Element.properties.credential - credential.name = AAZStrType() - - 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"] +# -------------------------------------------------------------------------------------------- +# 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( + "automation hrwg list", +) +class List(AAZCommand): + """List a list of hybrid runbook worker groups. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups", "2022-08-08"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.filter = AAZStrArg( + options=["--filter"], + help="The filter to apply on the operation.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.HybridRunbookWorkerGroupListByAutomationAccount(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) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class HybridRunbookWorkerGroupListByAutomationAccount(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "$filter", self.ctx.args.filter, + ), + **self.serialize_query_param( + "api-version", "2022-08-08", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + 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.credential = AAZObjectType() + properties.group_type = AAZStrType( + serialized_name="groupType", + ) + + credential = cls._schema_on_200.value.Element.properties.credential + credential.name = AAZStrType() + + 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/automation/azext_automation/aaz/latest/automation/hrwg/_show.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/_show.py index cc3d13250e4..71ca1b57165 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/_show.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/_show.py @@ -1,208 +1,218 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation hrwg show", -) -class Show(AAZCommand): - """Retrieve a hybrid runbook worker group. - """ - - _aaz_info = { - "version": "2022-02-22", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}", "2022-02-22"], - ] - } - - 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.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - id_part="name", - ) - _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( - options=["-n", "--name", "--hybrid-runbook-worker-group-name"], - help="The hybrid runbook worker group name", - required=True, - id_part="child_name_1", - ) - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - return cls._args_schema - - def _execute_operations(self): - self.HybridRunbookWorkerGroupGet(ctx=self.ctx)() - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) - return result - - class HybridRunbookWorkerGroupGet(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", - **self.url_parameters - ) - - @property - def method(self): - return "GET" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_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-02-22", - 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.credential = AAZObjectType() - properties.group_type = AAZStrType( - serialized_name="groupType", - ) - - credential = cls._schema_on_200.properties.credential - credential.name = AAZStrType() - - system_data = cls._schema_on_200.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - flags={"read_only": True}, - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - flags={"read_only": True}, - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - flags={"read_only": True}, - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - flags={"read_only": True}, - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - flags={"read_only": True}, - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - flags={"read_only": True}, - ) - - return cls._schema_on_200 - - -__all__ = ["Show"] +# -------------------------------------------------------------------------------------------- +# 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( + "automation hrwg show", +) +class Show(AAZCommand): + """Get a hybrid runbook worker group. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( + options=["-n", "--name", "--hybrid-runbook-worker-group-name"], + help="The hybrid runbook worker group 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.HybridRunbookWorkerGroupGet(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 HybridRunbookWorkerGroupGet(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_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-08-08", + 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.credential = AAZObjectType() + properties.group_type = AAZStrType( + serialized_name="groupType", + ) + + credential = cls._schema_on_200.properties.credential + credential.name = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + return cls._schema_on_200 + + +__all__ = ["Show"] diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/_update.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/_update.py index 27dad24b0a6..9bc0136f147 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/_update.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/_update.py @@ -1,384 +1,404 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation hrwg update", -) -class Update(AAZCommand): - """Create a hybrid runbook worker group. - """ - - _aaz_info = { - "version": "2022-02-22", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}", "2022-02-22"], - ] - } - - 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.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - id_part="name", - ) - _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( - options=["-n", "--name", "--hybrid-runbook-worker-group-name"], - help="The hybrid runbook worker group 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.credential = AAZObjectArg( - options=["--credential"], - arg_group="Properties", - help="Sets the credential of a worker group.", - nullable=True, - ) - - credential = cls._args_schema.credential - credential.name = AAZStrArg( - options=["name"], - help="Gets or sets the name of the credential.", - nullable=True, - ) - return cls._args_schema - - def _execute_operations(self): - self.HybridRunbookWorkerGroupGet(ctx=self.ctx)() - self.InstanceUpdateByJson(ctx=self.ctx)() - self.InstanceUpdateByGeneric(ctx=self.ctx)() - self.HybridRunbookWorkerGroupCreate(ctx=self.ctx)() - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) - return result - - class HybridRunbookWorkerGroupGet(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", - **self.url_parameters - ) - - @property - def method(self): - return "GET" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_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-02-22", - 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_hybrid_runbook_worker_group_read(cls._schema_on_200) - - return cls._schema_on_200 - - class HybridRunbookWorkerGroupCreate(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", - **self.url_parameters - ) - - @property - def method(self): - return "PUT" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_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-02-22", - 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(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_hybrid_runbook_worker_group_read(cls._schema_on_200) - - return cls._schema_on_200 - - 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("name", AAZStrType, ".hybrid_runbook_worker_group_name") - _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) - - properties = _builder.get(".properties") - if properties is not None: - properties.set_prop("credential", AAZObjectType, ".credential") - - credential = _builder.get(".properties.credential") - if credential is not None: - credential.set_prop("name", AAZStrType, ".name") - - 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_hybrid_runbook_worker_group_read = None - - -def _build_schema_hybrid_runbook_worker_group_read(_schema): - global _schema_hybrid_runbook_worker_group_read - if _schema_hybrid_runbook_worker_group_read is not None: - _schema.id = _schema_hybrid_runbook_worker_group_read.id - _schema.name = _schema_hybrid_runbook_worker_group_read.name - _schema.properties = _schema_hybrid_runbook_worker_group_read.properties - _schema.system_data = _schema_hybrid_runbook_worker_group_read.system_data - _schema.type = _schema_hybrid_runbook_worker_group_read.type - return - - _schema_hybrid_runbook_worker_group_read = AAZObjectType() - - hybrid_runbook_worker_group_read = _schema_hybrid_runbook_worker_group_read - hybrid_runbook_worker_group_read.id = AAZStrType( - flags={"read_only": True}, - ) - hybrid_runbook_worker_group_read.name = AAZStrType( - flags={"read_only": True}, - ) - hybrid_runbook_worker_group_read.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - hybrid_runbook_worker_group_read.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - hybrid_runbook_worker_group_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_hybrid_runbook_worker_group_read.properties - properties.credential = AAZObjectType() - properties.group_type = AAZStrType( - serialized_name="groupType", - ) - - credential = _schema_hybrid_runbook_worker_group_read.properties.credential - credential.name = AAZStrType() - - system_data = _schema_hybrid_runbook_worker_group_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_hybrid_runbook_worker_group_read.id - _schema.name = _schema_hybrid_runbook_worker_group_read.name - _schema.properties = _schema_hybrid_runbook_worker_group_read.properties - _schema.system_data = _schema_hybrid_runbook_worker_group_read.system_data - _schema.type = _schema_hybrid_runbook_worker_group_read.type - - -__all__ = ["Update"] +# -------------------------------------------------------------------------------------------- +# 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( + "automation hrwg update", +) +class Update(AAZCommand): + """Update a hybrid runbook worker group. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( + options=["-n", "--name", "--hybrid-runbook-worker-group-name"], + help="The hybrid runbook worker group 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.credential = AAZObjectArg( + options=["--credential"], + arg_group="Properties", + help="Sets the credential of a worker group.", + nullable=True, + ) + + credential = cls._args_schema.credential + credential.name = AAZStrArg( + options=["name"], + help="Gets or sets the name of the credential.", + nullable=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.HybridRunbookWorkerGroupGet(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.HybridRunbookWorkerGroupCreate(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 HybridRunbookWorkerGroupGet(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_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-08-08", + 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_hybrid_runbook_worker_group_read(cls._schema_on_200) + + return cls._schema_on_200 + + class HybridRunbookWorkerGroupCreate(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_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-08-08", + 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_hybrid_runbook_worker_group_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("name", AAZStrType, ".hybrid_runbook_worker_group_name") + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("credential", AAZObjectType, ".credential") + + credential = _builder.get(".properties.credential") + if credential is not None: + credential.set_prop("name", AAZStrType, ".name") + + 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_hybrid_runbook_worker_group_read = None + + +def _build_schema_hybrid_runbook_worker_group_read(_schema): + global _schema_hybrid_runbook_worker_group_read + if _schema_hybrid_runbook_worker_group_read is not None: + _schema.id = _schema_hybrid_runbook_worker_group_read.id + _schema.name = _schema_hybrid_runbook_worker_group_read.name + _schema.properties = _schema_hybrid_runbook_worker_group_read.properties + _schema.system_data = _schema_hybrid_runbook_worker_group_read.system_data + _schema.type = _schema_hybrid_runbook_worker_group_read.type + return + + _schema_hybrid_runbook_worker_group_read = AAZObjectType() + + hybrid_runbook_worker_group_read = _schema_hybrid_runbook_worker_group_read + hybrid_runbook_worker_group_read.id = AAZStrType( + flags={"read_only": True}, + ) + hybrid_runbook_worker_group_read.name = AAZStrType( + flags={"read_only": True}, + ) + hybrid_runbook_worker_group_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + hybrid_runbook_worker_group_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + hybrid_runbook_worker_group_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_hybrid_runbook_worker_group_read.properties + properties.credential = AAZObjectType() + properties.group_type = AAZStrType( + serialized_name="groupType", + ) + + credential = _schema_hybrid_runbook_worker_group_read.properties.credential + credential.name = AAZStrType() + + system_data = _schema_hybrid_runbook_worker_group_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_hybrid_runbook_worker_group_read.id + _schema.name = _schema_hybrid_runbook_worker_group_read.name + _schema.properties = _schema_hybrid_runbook_worker_group_read.properties + _schema.system_data = _schema_hybrid_runbook_worker_group_read.system_data + _schema.type = _schema_hybrid_runbook_worker_group_read.type + + +__all__ = ["Update"] diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/__cmd_group.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/__cmd_group.py index 49c641aa764..e0316265730 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/__cmd_group.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/__cmd_group.py @@ -1,23 +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( - "automation hrwg hrw", -) -class __CMDGroup(AAZCommandGroup): - """Automation Hybrid Runbook Worker - """ - pass - - -__all__ = ["__CMDGroup"] +# -------------------------------------------------------------------------------------------- +# 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( + "automation hrwg hrw", +) +class __CMDGroup(AAZCommandGroup): + """hrw + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/__init__.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/__init__.py index a0ec108bbe4..6c85c17d26b 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/__init__.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/__init__.py @@ -1,17 +1,17 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -# Code generated by aaz-dev-tools -# -------------------------------------------------------------------------------------------- - -# pylint: skip-file -# flake8: noqa - -from .__cmd_group import * -from ._create import * -from ._delete import * -from ._list import * -from ._move import * -from ._show import * -from ._update import * +# -------------------------------------------------------------------------------------------- +# 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 ._move import * +from ._show import * +from ._update import * diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_create.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_create.py index a85390a136f..c5a35883f95 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_create.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_create.py @@ -1,255 +1,265 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -# Code generated by aaz-dev-tools -# -------------------------------------------------------------------------------------------- - -# pylint: skip-file -# flake8: noqa - -from azure.cli.core.aaz import * - - -@register_command( - "automation hrwg hrw create", -) -class Create(AAZCommand): - """Create a hybrid runbook worker. - """ - - _aaz_info = { - "version": "2021-06-22", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}/hybridrunbookworkers/{}", "2021-06-22"], - ] - } - - 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.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - id_part="name", - ) - _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( - options=["--hybrid-runbook-worker-group-name"], - help="The hybrid runbook worker group name", - required=True, - id_part="child_name_1", - ) - _args_schema.hybrid_runbook_worker_id = AAZStrArg( - options=["-n", "--name", "--hybrid-runbook-worker-id"], - help="The hybrid runbook worker id", - required=True, - id_part="child_name_2", - ) - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - - # define Arg Group "Properties" - - _args_schema = cls._args_schema - _args_schema.vm_resource_id = AAZStrArg( - options=["--vm-resource-id"], - arg_group="Properties", - help="Azure Resource Manager Id for a virtual machine.", - ) - return cls._args_schema - - def _execute_operations(self): - self.HybridRunbookWorkersCreate(ctx=self.ctx)() - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) - return result - - class HybridRunbookWorkersCreate(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(session) - - return self.on_error(session.http_response) - - @property - def url(self): - return self.client.format_url( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", - **self.url_parameters - ) - - @property - def method(self): - return "PUT" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerId", self.ctx.args.hybrid_runbook_worker_id, - 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", "2021-06-22", - required=True, - ), - } - return parameters - - @property - def header_parameters(self): - parameters = { - **self.serialize_header_param( - "Content-Type", "application/json", - ), - **self.serialize_header_param( - "Accept", "application/json", - ), - } - return parameters - - @property - def content(self): - _content_value, _builder = self.new_content_builder( - self.ctx.args, - typ=AAZObjectType, - typ_kwargs={"flags": {"required": True, "client_flatten": True}} - ) - _builder.set_prop("name", AAZStrType, ".hybrid_runbook_worker_id") - _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) - - properties = _builder.get(".properties") - if properties is not None: - properties.set_prop("vmResourceId", AAZStrType, ".vm_resource_id") - - return self.serialize_content(_content_value) - - def on_200(self, session): - data = self.deserialize_http_content(session) - self.ctx.set_var( - "instance", - data, - schema_builder=self._build_schema_on_200 - ) - - _schema_on_200 = None - - @classmethod - def _build_schema_on_200(cls): - if cls._schema_on_200 is not None: - return cls._schema_on_200 - - cls._schema_on_200 = AAZObjectType() - - _schema_on_200 = cls._schema_on_200 - _schema_on_200.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.ip = AAZStrType() - properties.last_seen_date_time = AAZStrType( - serialized_name="lastSeenDateTime", - ) - properties.registered_date_time = AAZStrType( - serialized_name="registeredDateTime", - ) - properties.vm_resource_id = AAZStrType( - serialized_name="vmResourceId", - ) - properties.worker_name = AAZStrType( - serialized_name="workerName", - ) - properties.worker_type = AAZStrType( - serialized_name="workerType", - ) - - 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__ = ["Create"] +# -------------------------------------------------------------------------------------------- +# 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( + "automation hrwg hrw create", +) +class Create(AAZCommand): + """Create a hybrid runbook worker. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}/hybridrunbookworkers/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( + options=["--hybrid-runbook-worker-group-name"], + help="The hybrid runbook worker group name", + required=True, + id_part="child_name_1", + ) + _args_schema.hybrid_runbook_worker_id = AAZStrArg( + options=["-n", "--name", "--hybrid-runbook-worker-id"], + help="The hybrid runbook worker id", + required=True, + id_part="child_name_2", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.vm_resource_id = AAZStrArg( + options=["--vm-resource-id"], + arg_group="Properties", + help="Azure Resource Manager Id for a virtual machine.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.HybridRunbookWorkersCreate(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 HybridRunbookWorkersCreate(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerId", self.ctx.args.hybrid_runbook_worker_id, + 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-08-08", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("name", AAZStrType, ".hybrid_runbook_worker_id") + _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("vmResourceId", AAZStrType, ".vm_resource_id") + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.ip = AAZStrType() + properties.last_seen_date_time = AAZStrType( + serialized_name="lastSeenDateTime", + ) + properties.registered_date_time = AAZStrType( + serialized_name="registeredDateTime", + ) + properties.vm_resource_id = AAZStrType( + serialized_name="vmResourceId", + ) + properties.worker_name = AAZStrType( + serialized_name="workerName", + ) + properties.worker_type = AAZStrType( + serialized_name="workerType", + ) + + 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/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_delete.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_delete.py index 826c80aeccb..6139ec86e0f 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_delete.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_delete.py @@ -1,142 +1,152 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation hrwg hrw delete", - confirmation="Are you sure you want to perform this operation?", -) -class Delete(AAZCommand): - """Delete a hybrid runbook worker. - """ - - _aaz_info = { - "version": "2021-06-22", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}/hybridrunbookworkers/{}", "2021-06-22"], - ] - } - - 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.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - id_part="name", - ) - _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( - options=["--hybrid-runbook-worker-group-name"], - help="The hybrid runbook worker group name", - required=True, - id_part="child_name_1", - ) - _args_schema.hybrid_runbook_worker_id = AAZStrArg( - options=["-n", "--name", "--hybrid-runbook-worker-id"], - help="The hybrid runbook worker id", - required=True, - id_part="child_name_2", - ) - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - return cls._args_schema - - def _execute_operations(self): - self.HybridRunbookWorkersDelete(ctx=self.ctx)() - - class HybridRunbookWorkersDelete(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", - **self.url_parameters - ) - - @property - def method(self): - return "DELETE" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerId", self.ctx.args.hybrid_runbook_worker_id, - 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", "2021-06-22", - required=True, - ), - } - return parameters - - def on_200(self, session): - pass - - def on_204(self, session): - pass - - -__all__ = ["Delete"] +# -------------------------------------------------------------------------------------------- +# 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( + "automation hrwg hrw delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a hybrid runbook worker. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}/hybridrunbookworkers/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( + options=["--hybrid-runbook-worker-group-name"], + help="The hybrid runbook worker group name", + required=True, + id_part="child_name_1", + ) + _args_schema.hybrid_runbook_worker_id = AAZStrArg( + options=["-n", "--name", "--hybrid-runbook-worker-id"], + help="The hybrid runbook worker id", + 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.HybridRunbookWorkersDelete(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + class HybridRunbookWorkersDelete(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerId", self.ctx.args.hybrid_runbook_worker_id, + 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-08-08", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +__all__ = ["Delete"] diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_list.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_list.py index 799abdb8581..ec21202e00d 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_list.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_list.py @@ -1,231 +1,241 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation hrwg hrw list", -) -class List(AAZCommand): - """Retrieve a list of hybrid runbook workers. - """ - - _aaz_info = { - "version": "2021-06-22", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}/hybridrunbookworkers", "2021-06-22"], - ] - } - - def _handler(self, command_args): - super()._handler(command_args) - return self.build_paging(self._execute_operations, self._output) - - _args_schema = None - - @classmethod - def _build_arguments_schema(cls, *args, **kwargs): - if cls._args_schema is not None: - return cls._args_schema - cls._args_schema = super()._build_arguments_schema(*args, **kwargs) - - # define Arg Group "" - - _args_schema = cls._args_schema - _args_schema.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - ) - _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( - options=["--hybrid-runbook-worker-group-name"], - help="The hybrid runbook worker group name", - required=True, - ) - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - _args_schema.filter = AAZStrArg( - options=["--filter"], - help="The filter to apply on the operation.", - ) - return cls._args_schema - - def _execute_operations(self): - self.HybridRunbookWorkersListByHybridRunbookWorkerGroup(ctx=self.ctx)() - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) - next_link = self.deserialize_output(self.ctx.vars.instance.next_link) - return result, next_link - - class HybridRunbookWorkersListByHybridRunbookWorkerGroup(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers", - **self.url_parameters - ) - - @property - def method(self): - return "GET" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_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( - "$filter", self.ctx.args.filter, - ), - **self.serialize_query_param( - "api-version", "2021-06-22", - required=True, - ), - } - return parameters - - @property - def header_parameters(self): - parameters = { - **self.serialize_header_param( - "Accept", "application/json", - ), - } - return parameters - - def on_200(self, session): - data = self.deserialize_http_content(session) - self.ctx.set_var( - "instance", - data, - schema_builder=self._build_schema_on_200 - ) - - _schema_on_200 = None - - @classmethod - def _build_schema_on_200(cls): - if cls._schema_on_200 is not None: - return cls._schema_on_200 - - cls._schema_on_200 = AAZObjectType() - - _schema_on_200 = cls._schema_on_200 - _schema_on_200.next_link = AAZStrType( - serialized_name="nextLink", - ) - _schema_on_200.value = AAZListType() - - 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.ip = AAZStrType() - properties.last_seen_date_time = AAZStrType( - serialized_name="lastSeenDateTime", - ) - properties.registered_date_time = AAZStrType( - serialized_name="registeredDateTime", - ) - properties.vm_resource_id = AAZStrType( - serialized_name="vmResourceId", - ) - properties.worker_name = AAZStrType( - serialized_name="workerName", - ) - properties.worker_type = AAZStrType( - serialized_name="workerType", - ) - - 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"] +# -------------------------------------------------------------------------------------------- +# 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( + "automation hrwg hrw list", +) +class List(AAZCommand): + """List a list of hybrid runbook workers. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}/hybridrunbookworkers", "2022-08-08"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + ) + _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( + options=["--hybrid-runbook-worker-group-name"], + help="The hybrid runbook worker group name", + required=True, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.filter = AAZStrArg( + options=["--filter"], + help="The filter to apply on the operation.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.HybridRunbookWorkersListByHybridRunbookWorkerGroup(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) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class HybridRunbookWorkersListByHybridRunbookWorkerGroup(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_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( + "$filter", self.ctx.args.filter, + ), + **self.serialize_query_param( + "api-version", "2022-08-08", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + 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.ip = AAZStrType() + properties.last_seen_date_time = AAZStrType( + serialized_name="lastSeenDateTime", + ) + properties.registered_date_time = AAZStrType( + serialized_name="registeredDateTime", + ) + properties.vm_resource_id = AAZStrType( + serialized_name="vmResourceId", + ) + properties.worker_name = AAZStrType( + serialized_name="workerName", + ) + properties.worker_type = AAZStrType( + serialized_name="workerType", + ) + + 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/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_move.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_move.py index 1bdf533fc0f..d27b1b02468 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_move.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_move.py @@ -1,158 +1,163 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation hrwg hrw move", -) -class Move(AAZCommand): - """Move a hybrid worker to a different group. - """ - - _aaz_info = { - "version": "2021-06-22", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}/hybridrunbookworkers/{}/move", "2021-06-22"], - ] - } - - 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.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - ) - _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( - options=["--hybrid-runbook-worker-group-name"], - help="The hybrid runbook worker group name", - required=True, - ) - _args_schema.target_hybrid_runbook_worker_group_name = AAZStrArg( - options=["--target-hybrid-runbook-worker-group-name"], - help="The target hybrid worker group name", - required=True, - ) - _args_schema.hybrid_runbook_worker_id = AAZStrArg( - options=["-n", "--name","--hybrid-runbook-worker-id"], - help="The hybrid runbook worker id", - required=True, - ) - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - return cls._args_schema - - def _execute_operations(self): - self.HybridRunbookWorkersMove(ctx=self.ctx)() - - class HybridRunbookWorkersMove(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}/move", - **self.url_parameters - ) - - @property - def method(self): - return "POST" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerId", self.ctx.args.hybrid_runbook_worker_id, - 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", "2021-06-22", - required=True, - ), - } - return parameters - - @property - def header_parameters(self): - parameters = { - **self.serialize_header_param( - "Content-Type", "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("hybridRunbookWorkerGroupName", AAZStrType, ".target_hybrid_runbook_worker_group_name") - - return self.serialize_content(_content_value) - - def on_200(self, session): - pass - - -__all__ = ["Move"] +# -------------------------------------------------------------------------------------------- +# 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( + "automation hrwg hrw move", +) +class Move(AAZCommand): + """Move a hybrid worker to a different group. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}/hybridrunbookworkers/{}/move", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + ) + _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( + options=["--hybrid-runbook-worker-group-name"], + help="The hybrid runbook worker group name", + required=True, + ) + _args_schema.hybrid_runbook_worker_id = AAZStrArg( + options=["--hybrid-runbook-worker-id"], + help="The hybrid runbook worker id", + required=True, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.HybridRunbookWorkersMove(ctx=self.ctx)() + self.post_operations() + + # @register_callback + def pre_operations(self): + pass + + # @register_callback + def post_operations(self): + pass + + class HybridRunbookWorkersMove(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}/move", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerId", self.ctx.args.hybrid_runbook_worker_id, + 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-08-08", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "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("hybridRunbookWorkerGroupName", AAZStrType, ".hybrid_runbook_worker_group_name") + + return self.serialize_content(_content_value) + + def on_200(self, session): + pass + + +__all__ = ["Move"] diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_show.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_show.py index af76b559722..7530d4bb88d 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_show.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_show.py @@ -1,227 +1,237 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation hrwg hrw show", -) -class Show(AAZCommand): - """Retrieve a hybrid runbook worker. - """ - - _aaz_info = { - "version": "2021-06-22", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}/hybridrunbookworkers/{}", "2021-06-22"], - ] - } - - 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.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - id_part="name", - ) - _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( - options=["--hybrid-runbook-worker-group-name"], - help="The hybrid runbook worker group name", - required=True, - id_part="child_name_1", - ) - _args_schema.hybrid_runbook_worker_id = AAZStrArg( - options=["-n", "--name", "--hybrid-runbook-worker-id"], - help="The hybrid runbook worker id", - required=True, - id_part="child_name_2", - ) - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - return cls._args_schema - - def _execute_operations(self): - self.HybridRunbookWorkersGet(ctx=self.ctx)() - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) - return result - - class HybridRunbookWorkersGet(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", - **self.url_parameters - ) - - @property - def method(self): - return "GET" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerId", self.ctx.args.hybrid_runbook_worker_id, - 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", "2021-06-22", - 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.ip = AAZStrType() - properties.last_seen_date_time = AAZStrType( - serialized_name="lastSeenDateTime", - ) - properties.registered_date_time = AAZStrType( - serialized_name="registeredDateTime", - ) - properties.vm_resource_id = AAZStrType( - serialized_name="vmResourceId", - ) - properties.worker_name = AAZStrType( - serialized_name="workerName", - ) - properties.worker_type = AAZStrType( - serialized_name="workerType", - ) - - 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"] +# -------------------------------------------------------------------------------------------- +# 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( + "automation hrwg hrw show", +) +class Show(AAZCommand): + """Get a hybrid runbook worker. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}/hybridrunbookworkers/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( + options=["--hybrid-runbook-worker-group-name"], + help="The hybrid runbook worker group name", + required=True, + id_part="child_name_1", + ) + _args_schema.hybrid_runbook_worker_id = AAZStrArg( + options=["-n", "--name", "--hybrid-runbook-worker-id"], + help="The hybrid runbook worker id", + 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.HybridRunbookWorkersGet(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 HybridRunbookWorkersGet(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerId", self.ctx.args.hybrid_runbook_worker_id, + 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-08-08", + 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.ip = AAZStrType() + properties.last_seen_date_time = AAZStrType( + serialized_name="lastSeenDateTime", + ) + properties.registered_date_time = AAZStrType( + serialized_name="registeredDateTime", + ) + properties.vm_resource_id = AAZStrType( + serialized_name="vmResourceId", + ) + properties.worker_name = AAZStrType( + serialized_name="workerName", + ) + properties.worker_type = AAZStrType( + serialized_name="workerType", + ) + + 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/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_update.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_update.py index 50fa1af063f..75d1af9d009 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_update.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_update.py @@ -1,396 +1,416 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation hrwg hrw update", -) -class Update(AAZCommand): - """Create a hybrid runbook worker. - """ - - _aaz_info = { - "version": "2021-06-22", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}/hybridrunbookworkers/{}", "2021-06-22"], - ] - } - - 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.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - id_part="name", - ) - _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( - options=["--hybrid-runbook-worker-group-name"], - help="The hybrid runbook worker group name", - required=True, - id_part="child_name_1", - ) - _args_schema.hybrid_runbook_worker_id = AAZStrArg( - options=["-n", "--name", "--hybrid-runbook-worker-id"], - help="The hybrid runbook worker id", - required=True, - id_part="child_name_2", - ) - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - - # define Arg Group "Properties" - - _args_schema = cls._args_schema - _args_schema.vm_resource_id = AAZStrArg( - options=["--vm-resource-id"], - arg_group="Properties", - help="Azure Resource Manager Id for a virtual machine.", - nullable=True, - ) - return cls._args_schema - - def _execute_operations(self): - self.HybridRunbookWorkersGet(ctx=self.ctx)() - self.InstanceUpdateByJson(ctx=self.ctx)() - self.InstanceUpdateByGeneric(ctx=self.ctx)() - self.HybridRunbookWorkersCreate(ctx=self.ctx)() - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) - return result - - class HybridRunbookWorkersGet(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", - **self.url_parameters - ) - - @property - def method(self): - return "GET" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerId", self.ctx.args.hybrid_runbook_worker_id, - 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", "2021-06-22", - 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_hybrid_runbook_worker_read(cls._schema_on_200) - - return cls._schema_on_200 - - class HybridRunbookWorkersCreate(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", - **self.url_parameters - ) - - @property - def method(self): - return "PUT" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerId", self.ctx.args.hybrid_runbook_worker_id, - 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", "2021-06-22", - 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(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_hybrid_runbook_worker_read(cls._schema_on_200) - - return cls._schema_on_200 - - 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("name", AAZStrType, ".hybrid_runbook_worker_id") - _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) - - properties = _builder.get(".properties") - if properties is not None: - properties.set_prop("vmResourceId", AAZStrType, ".vm_resource_id") - - 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_hybrid_runbook_worker_read = None - - -def _build_schema_hybrid_runbook_worker_read(_schema): - global _schema_hybrid_runbook_worker_read - if _schema_hybrid_runbook_worker_read is not None: - _schema.id = _schema_hybrid_runbook_worker_read.id - _schema.name = _schema_hybrid_runbook_worker_read.name - _schema.properties = _schema_hybrid_runbook_worker_read.properties - _schema.system_data = _schema_hybrid_runbook_worker_read.system_data - _schema.type = _schema_hybrid_runbook_worker_read.type - return - - _schema_hybrid_runbook_worker_read = AAZObjectType() - - hybrid_runbook_worker_read = _schema_hybrid_runbook_worker_read - hybrid_runbook_worker_read.id = AAZStrType( - flags={"read_only": True}, - ) - hybrid_runbook_worker_read.name = AAZStrType( - flags={"read_only": True}, - ) - hybrid_runbook_worker_read.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - hybrid_runbook_worker_read.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - hybrid_runbook_worker_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_hybrid_runbook_worker_read.properties - properties.ip = AAZStrType() - properties.last_seen_date_time = AAZStrType( - serialized_name="lastSeenDateTime", - ) - properties.registered_date_time = AAZStrType( - serialized_name="registeredDateTime", - ) - properties.vm_resource_id = AAZStrType( - serialized_name="vmResourceId", - ) - properties.worker_name = AAZStrType( - serialized_name="workerName", - ) - properties.worker_type = AAZStrType( - serialized_name="workerType", - ) - - system_data = _schema_hybrid_runbook_worker_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_hybrid_runbook_worker_read.id - _schema.name = _schema_hybrid_runbook_worker_read.name - _schema.properties = _schema_hybrid_runbook_worker_read.properties - _schema.system_data = _schema_hybrid_runbook_worker_read.system_data - _schema.type = _schema_hybrid_runbook_worker_read.type - - -__all__ = ["Update"] +# -------------------------------------------------------------------------------------------- +# 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( + "automation hrwg hrw update", +) +class Update(AAZCommand): + """Update a hybrid runbook worker. + """ + + _aaz_info = { + "version": "2022-08-08", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}/hybridrunbookworkers/{}", "2022-08-08"], + ] + } + + 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.automation_account_name = AAZStrArg( + options=["--automation-account-name"], + help="The name of the automation account.", + required=True, + id_part="name", + ) + _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( + options=["--hybrid-runbook-worker-group-name"], + help="The hybrid runbook worker group name", + required=True, + id_part="child_name_1", + ) + _args_schema.hybrid_runbook_worker_id = AAZStrArg( + options=["-n", "--name", "--hybrid-runbook-worker-id"], + help="The hybrid runbook worker id", + required=True, + id_part="child_name_2", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.vm_resource_id = AAZStrArg( + options=["--vm-resource-id"], + arg_group="Properties", + help="Azure Resource Manager Id for a virtual machine.", + nullable=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.HybridRunbookWorkersGet(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.HybridRunbookWorkersCreate(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 HybridRunbookWorkersGet(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerId", self.ctx.args.hybrid_runbook_worker_id, + 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-08-08", + 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_hybrid_runbook_worker_read(cls._schema_on_200) + + return cls._schema_on_200 + + class HybridRunbookWorkersCreate(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "automationAccountName", self.ctx.args.automation_account_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_name, + required=True, + ), + **self.serialize_url_param( + "hybridRunbookWorkerId", self.ctx.args.hybrid_runbook_worker_id, + 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-08-08", + 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_hybrid_runbook_worker_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("name", AAZStrType, ".hybrid_runbook_worker_id") + _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("vmResourceId", AAZStrType, ".vm_resource_id") + + 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_hybrid_runbook_worker_read = None + + +def _build_schema_hybrid_runbook_worker_read(_schema): + global _schema_hybrid_runbook_worker_read + if _schema_hybrid_runbook_worker_read is not None: + _schema.id = _schema_hybrid_runbook_worker_read.id + _schema.name = _schema_hybrid_runbook_worker_read.name + _schema.properties = _schema_hybrid_runbook_worker_read.properties + _schema.system_data = _schema_hybrid_runbook_worker_read.system_data + _schema.type = _schema_hybrid_runbook_worker_read.type + return + + _schema_hybrid_runbook_worker_read = AAZObjectType() + + hybrid_runbook_worker_read = _schema_hybrid_runbook_worker_read + hybrid_runbook_worker_read.id = AAZStrType( + flags={"read_only": True}, + ) + hybrid_runbook_worker_read.name = AAZStrType( + flags={"read_only": True}, + ) + hybrid_runbook_worker_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + hybrid_runbook_worker_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + hybrid_runbook_worker_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_hybrid_runbook_worker_read.properties + properties.ip = AAZStrType() + properties.last_seen_date_time = AAZStrType( + serialized_name="lastSeenDateTime", + ) + properties.registered_date_time = AAZStrType( + serialized_name="registeredDateTime", + ) + properties.vm_resource_id = AAZStrType( + serialized_name="vmResourceId", + ) + properties.worker_name = AAZStrType( + serialized_name="workerName", + ) + properties.worker_type = AAZStrType( + serialized_name="workerType", + ) + + system_data = _schema_hybrid_runbook_worker_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_hybrid_runbook_worker_read.id + _schema.name = _schema_hybrid_runbook_worker_read.name + _schema.properties = _schema_hybrid_runbook_worker_read.properties + _schema.system_data = _schema_hybrid_runbook_worker_read.system_data + _schema.type = _schema_hybrid_runbook_worker_read.type + + +__all__ = ["Update"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3_package/_create.py b/src/automation/azext_automation/aaz/latest/automation/python3_package/_create.py index 0e00336b753..4ae08150a87 100644 --- a/src/automation/azext_automation/aaz/latest/automation/python3_package/_create.py +++ b/src/automation/azext_automation/aaz/latest/automation/python3_package/_create.py @@ -18,7 +18,7 @@ class Create(AAZCommand): """Create or Update the python 3 package identified by package name. :example: Add Python3 Package to automation account - az automation python3-package create --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup " --name "PackageName" --content-link "uri=https://PackageUri.com" + az automation python3-package create --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup" --name "PackageName" --content-link "uri=https://PackageUri.com" """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/python3_package/_delete.py b/src/automation/azext_automation/aaz/latest/automation/python3_package/_delete.py index 3bccef085c3..22429c1a4e7 100644 --- a/src/automation/azext_automation/aaz/latest/automation/python3_package/_delete.py +++ b/src/automation/azext_automation/aaz/latest/automation/python3_package/_delete.py @@ -19,7 +19,7 @@ class Delete(AAZCommand): """Delete the python 3 package by name. :example: Delete Python3 Package by Name - az automation python3-package delete --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup " --name "PackageName" + az automation python3-package delete --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup" --name "PackageName" """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/python3_package/_list.py b/src/automation/azext_automation/aaz/latest/automation/python3_package/_list.py index 0d3f587b801..5a735a0c4de 100644 --- a/src/automation/azext_automation/aaz/latest/automation/python3_package/_list.py +++ b/src/automation/azext_automation/aaz/latest/automation/python3_package/_list.py @@ -18,7 +18,7 @@ class List(AAZCommand): """Retrieve a list of python 3 packages. :example: List all Custom Python3Package in AutomationAccount - az automation python3-package list --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup " + az automation python3-package list --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup" """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/python3_package/_show.py b/src/automation/azext_automation/aaz/latest/automation/python3_package/_show.py index abb400acfe7..b27df9d4ee4 100644 --- a/src/automation/azext_automation/aaz/latest/automation/python3_package/_show.py +++ b/src/automation/azext_automation/aaz/latest/automation/python3_package/_show.py @@ -18,7 +18,7 @@ class Show(AAZCommand): """Retrieve the python 3 package identified by package name. :example: Get Python3Package by Name - az automation python3-package show --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup " --name "PackageName" + az automation python3-package show --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup" --name "PackageName" """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/python3_package/_update.py b/src/automation/azext_automation/aaz/latest/automation/python3_package/_update.py index 6e30a6bf27a..00f07edef7b 100644 --- a/src/automation/azext_automation/aaz/latest/automation/python3_package/_update.py +++ b/src/automation/azext_automation/aaz/latest/automation/python3_package/_update.py @@ -18,7 +18,7 @@ class Update(AAZCommand): """Create or Update the python 3 package identified by package name. :example: Update Python3Package by Name - az automation python3-package update --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup " --name "PackageName" --content-link "uri=https://PackageUri.com" + az automation python3-package update --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup" --name "PackageName" --content-link "uri=https://PackageUri.com" """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/python3package/__cmd_group.py b/src/automation/azext_automation/aaz/latest/automation/python3package/__cmd_group.py deleted file mode 100644 index 28867eca689..00000000000 --- a/src/automation/azext_automation/aaz/latest/automation/python3package/__cmd_group.py +++ /dev/null @@ -1,23 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation python3package", -) -class __CMDGroup(AAZCommandGroup): - """python3package - """ - pass - - -__all__ = ["__CMDGroup"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3package/__init__.py b/src/automation/azext_automation/aaz/latest/automation/python3package/__init__.py deleted file mode 100644 index 1f78565855b..00000000000 --- a/src/automation/azext_automation/aaz/latest/automation/python3package/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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/automation/azext_automation/aaz/latest/automation/python3package/_create.py b/src/automation/azext_automation/aaz/latest/automation/python3package/_create.py deleted file mode 100644 index bd384996ef6..00000000000 --- a/src/automation/azext_automation/aaz/latest/automation/python3package/_create.py +++ /dev/null @@ -1,305 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation python3package create", -) -class Create(AAZCommand): - """Create or Update the python 3 package identified by package name. - """ - - _aaz_info = { - "version": "2022-08-08", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/python3packages/{}", "2022-08-08"], - ] - } - - 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.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - id_part="name", - ) - _args_schema.package_name = AAZStrArg( - options=["-n", "--name", "--package-name"], - help="The name of python package.", - required=True, - id_part="child_name_1", - ) - _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="Gets or sets the tags attached to the resource.", - ) - - tags = cls._args_schema.tags - tags.Element = AAZStrArg() - - # define Arg Group "Properties" - - _args_schema = cls._args_schema - _args_schema.content_link = AAZObjectArg( - options=["--content-link"], - arg_group="Properties", - help="Gets or sets the module content link.", - required=True, - ) - - content_link = cls._args_schema.content_link - content_link.content_hash = AAZObjectArg( - options=["content-hash"], - help="Gets or sets the hash.", - ) - content_link.uri = AAZStrArg( - options=["uri"], - help="Gets or sets the uri of the runbook content.", - ) - content_link.version = AAZStrArg( - options=["version"], - help="Gets or sets the version of the content.", - ) - - content_hash = cls._args_schema.content_link.content_hash - content_hash.algorithm = AAZStrArg( - options=["algorithm"], - help="Gets or sets the content hash algorithm used to hash the content.", - required=True, - ) - content_hash.value = AAZStrArg( - options=["value"], - help="Gets or sets expected hash value of the content.", - required=True, - ) - return cls._args_schema - - def _execute_operations(self): - self.Python3PackageCreateOrUpdate(ctx=self.ctx)() - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) - return result - - class Python3PackageCreateOrUpdate(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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", - **self.url_parameters - ) - - @property - def method(self): - return "PUT" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "packageName", self.ctx.args.package_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-08-08", - 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, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) - _builder.set_prop("tags", AAZDictType, ".tags") - - properties = _builder.get(".properties") - if properties is not None: - properties.set_prop("contentLink", AAZObjectType, ".content_link", typ_kwargs={"flags": {"required": True}}) - - content_link = _builder.get(".properties.contentLink") - if content_link is not None: - content_link.set_prop("contentHash", AAZObjectType, ".content_hash") - content_link.set_prop("uri", AAZStrType, ".uri") - content_link.set_prop("version", AAZStrType, ".version") - - content_hash = _builder.get(".properties.contentLink.contentHash") - if content_hash is not None: - content_hash.set_prop("algorithm", AAZStrType, ".algorithm", typ_kwargs={"flags": {"required": True}}) - content_hash.set_prop("value", AAZStrType, ".value", typ_kwargs={"flags": {"required": True}}) - - tags = _builder.get(".tags") - if tags is not None: - tags.set_elements(AAZStrType, ".") - - return self.serialize_content(_content_value) - - def on_200_201(self, session): - data = self.deserialize_http_content(session) - self.ctx.set_var( - "instance", - data, - schema_builder=self._build_schema_on_200_201 - ) - - _schema_on_200_201 = None - - @classmethod - def _build_schema_on_200_201(cls): - if cls._schema_on_200_201 is not None: - return cls._schema_on_200_201 - - cls._schema_on_200_201 = AAZObjectType() - - _schema_on_200_201 = cls._schema_on_200_201 - _schema_on_200_201.etag = AAZStrType() - _schema_on_200_201.id = AAZStrType( - flags={"read_only": True}, - ) - _schema_on_200_201.location = AAZStrType() - _schema_on_200_201.name = AAZStrType( - flags={"read_only": True}, - ) - _schema_on_200_201.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - _schema_on_200_201.tags = AAZDictType() - _schema_on_200_201.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = cls._schema_on_200_201.properties - properties.activity_count = AAZIntType( - serialized_name="activityCount", - ) - properties.content_link = AAZObjectType( - serialized_name="contentLink", - ) - properties.creation_time = AAZStrType( - serialized_name="creationTime", - ) - properties.description = AAZStrType() - properties.error = AAZObjectType() - properties.is_composite = AAZBoolType( - serialized_name="isComposite", - ) - properties.is_global = AAZBoolType( - serialized_name="isGlobal", - ) - properties.last_modified_time = AAZStrType( - serialized_name="lastModifiedTime", - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - ) - properties.size_in_bytes = AAZIntType( - serialized_name="sizeInBytes", - ) - properties.version = AAZStrType() - - content_link = cls._schema_on_200_201.properties.content_link - content_link.content_hash = AAZObjectType( - serialized_name="contentHash", - ) - content_link.uri = AAZStrType() - content_link.version = AAZStrType() - - content_hash = cls._schema_on_200_201.properties.content_link.content_hash - content_hash.algorithm = AAZStrType( - flags={"required": True}, - ) - content_hash.value = AAZStrType( - flags={"required": True}, - ) - - error = cls._schema_on_200_201.properties.error - error.code = AAZStrType() - error.message = AAZStrType() - - tags = cls._schema_on_200_201.tags - tags.Element = AAZStrType() - - return cls._schema_on_200_201 - - -__all__ = ["Create"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3package/_delete.py b/src/automation/azext_automation/aaz/latest/automation/python3package/_delete.py deleted file mode 100644 index 9d7db34c128..00000000000 --- a/src/automation/azext_automation/aaz/latest/automation/python3package/_delete.py +++ /dev/null @@ -1,132 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation python3package delete", - confirmation="Are you sure you want to perform this operation?", -) -class Delete(AAZCommand): - """Delete the python 3 package by name. - """ - - _aaz_info = { - "version": "2022-08-08", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/python3packages/{}", "2022-08-08"], - ] - } - - 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.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - id_part="name", - ) - _args_schema.package_name = AAZStrArg( - options=["-n", "--name", "--package-name"], - help="The python package name.", - required=True, - id_part="child_name_1", - ) - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - return cls._args_schema - - def _execute_operations(self): - self.Python3PackageDelete(ctx=self.ctx)() - - class Python3PackageDelete(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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", - **self.url_parameters - ) - - @property - def method(self): - return "DELETE" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "packageName", self.ctx.args.package_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-08-08", - required=True, - ), - } - return parameters - - def on_200(self, session): - pass - - def on_204(self, session): - pass - - -__all__ = ["Delete"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3package/_list.py b/src/automation/azext_automation/aaz/latest/automation/python3package/_list.py deleted file mode 100644 index bac644ba0bd..00000000000 --- a/src/automation/azext_automation/aaz/latest/automation/python3package/_list.py +++ /dev/null @@ -1,221 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation python3package list", -) -class List(AAZCommand): - """Retrieve a list of python 3 packages. - """ - - _aaz_info = { - "version": "2022-08-08", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/python3packages", "2022-08-08"], - ] - } - - def _handler(self, command_args): - super()._handler(command_args) - return self.build_paging(self._execute_operations, self._output) - - _args_schema = None - - @classmethod - def _build_arguments_schema(cls, *args, **kwargs): - if cls._args_schema is not None: - return cls._args_schema - cls._args_schema = super()._build_arguments_schema(*args, **kwargs) - - # define Arg Group "" - - _args_schema = cls._args_schema - _args_schema.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - ) - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - return cls._args_schema - - def _execute_operations(self): - self.Python3PackageListByAutomationAccount(ctx=self.ctx)() - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) - next_link = self.deserialize_output(self.ctx.vars.instance.next_link) - return result, next_link - - class Python3PackageListByAutomationAccount(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.Automation/automationAccounts/{automationAccountName}/python3Packages", - **self.url_parameters - ) - - @property - def method(self): - return "GET" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "resourceGroupName", self.ctx.args.resource_group, - required=True, - ), - **self.serialize_url_param( - "subscriptionId", self.ctx.subscription_id, - required=True, - ), - } - return parameters - - @property - def query_parameters(self): - parameters = { - **self.serialize_query_param( - "api-version", "2022-08-08", - required=True, - ), - } - return parameters - - @property - def header_parameters(self): - parameters = { - **self.serialize_header_param( - "Accept", "application/json", - ), - } - return parameters - - def on_200(self, session): - data = self.deserialize_http_content(session) - self.ctx.set_var( - "instance", - data, - schema_builder=self._build_schema_on_200 - ) - - _schema_on_200 = None - - @classmethod - def _build_schema_on_200(cls): - if cls._schema_on_200 is not None: - return cls._schema_on_200 - - cls._schema_on_200 = AAZObjectType() - - _schema_on_200 = cls._schema_on_200 - _schema_on_200.next_link = AAZStrType( - serialized_name="nextLink", - ) - _schema_on_200.value = AAZListType() - - value = cls._schema_on_200.value - value.Element = AAZObjectType() - - _element = cls._schema_on_200.value.Element - _element.etag = AAZStrType() - _element.id = AAZStrType( - flags={"read_only": True}, - ) - _element.location = AAZStrType() - _element.name = AAZStrType( - flags={"read_only": True}, - ) - _element.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - _element.tags = AAZDictType() - _element.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = cls._schema_on_200.value.Element.properties - properties.activity_count = AAZIntType( - serialized_name="activityCount", - ) - properties.content_link = AAZObjectType( - serialized_name="contentLink", - ) - properties.creation_time = AAZStrType( - serialized_name="creationTime", - ) - properties.description = AAZStrType() - properties.error = AAZObjectType() - properties.is_composite = AAZBoolType( - serialized_name="isComposite", - ) - properties.is_global = AAZBoolType( - serialized_name="isGlobal", - ) - properties.last_modified_time = AAZStrType( - serialized_name="lastModifiedTime", - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - ) - properties.size_in_bytes = AAZIntType( - serialized_name="sizeInBytes", - ) - properties.version = AAZStrType() - - content_link = cls._schema_on_200.value.Element.properties.content_link - content_link.content_hash = AAZObjectType( - serialized_name="contentHash", - ) - content_link.uri = AAZStrType() - content_link.version = AAZStrType() - - content_hash = cls._schema_on_200.value.Element.properties.content_link.content_hash - content_hash.algorithm = AAZStrType( - flags={"required": True}, - ) - content_hash.value = AAZStrType( - flags={"required": True}, - ) - - error = cls._schema_on_200.value.Element.properties.error - error.code = AAZStrType() - error.message = AAZStrType() - - tags = cls._schema_on_200.value.Element.tags - tags.Element = AAZStrType() - - return cls._schema_on_200 - - -__all__ = ["List"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3package/_show.py b/src/automation/azext_automation/aaz/latest/automation/python3package/_show.py deleted file mode 100644 index 4b7edcf5102..00000000000 --- a/src/automation/azext_automation/aaz/latest/automation/python3package/_show.py +++ /dev/null @@ -1,223 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation python3package show", -) -class Show(AAZCommand): - """Retrieve the python 3 package identified by package name. - """ - - _aaz_info = { - "version": "2022-08-08", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/python3packages/{}", "2022-08-08"], - ] - } - - 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.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - id_part="name", - ) - _args_schema.package_name = AAZStrArg( - options=["-n", "--name", "--package-name"], - help="The python package name.", - required=True, - id_part="child_name_1", - ) - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - return cls._args_schema - - def _execute_operations(self): - self.Python3PackageGet(ctx=self.ctx)() - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) - return result - - class Python3PackageGet(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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", - **self.url_parameters - ) - - @property - def method(self): - return "GET" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "packageName", self.ctx.args.package_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-08-08", - 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.etag = AAZStrType() - _schema_on_200.id = AAZStrType( - flags={"read_only": True}, - ) - _schema_on_200.location = AAZStrType() - _schema_on_200.name = AAZStrType( - flags={"read_only": True}, - ) - _schema_on_200.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - _schema_on_200.tags = AAZDictType() - _schema_on_200.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = cls._schema_on_200.properties - properties.activity_count = AAZIntType( - serialized_name="activityCount", - ) - properties.content_link = AAZObjectType( - serialized_name="contentLink", - ) - properties.creation_time = AAZStrType( - serialized_name="creationTime", - ) - properties.description = AAZStrType() - properties.error = AAZObjectType() - properties.is_composite = AAZBoolType( - serialized_name="isComposite", - ) - properties.is_global = AAZBoolType( - serialized_name="isGlobal", - ) - properties.last_modified_time = AAZStrType( - serialized_name="lastModifiedTime", - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - ) - properties.size_in_bytes = AAZIntType( - serialized_name="sizeInBytes", - ) - properties.version = AAZStrType() - - content_link = cls._schema_on_200.properties.content_link - content_link.content_hash = AAZObjectType( - serialized_name="contentHash", - ) - content_link.uri = AAZStrType() - content_link.version = AAZStrType() - - content_hash = cls._schema_on_200.properties.content_link.content_hash - content_hash.algorithm = AAZStrType( - flags={"required": True}, - ) - content_hash.value = AAZStrType( - flags={"required": True}, - ) - - error = cls._schema_on_200.properties.error - error.code = AAZStrType() - error.message = AAZStrType() - - tags = cls._schema_on_200.tags - tags.Element = AAZStrType() - - return cls._schema_on_200 - - -__all__ = ["Show"] diff --git a/src/automation/azext_automation/aaz/latest/automation/python3package/_update.py b/src/automation/azext_automation/aaz/latest/automation/python3package/_update.py deleted file mode 100644 index 10d5e80c46f..00000000000 --- a/src/automation/azext_automation/aaz/latest/automation/python3package/_update.py +++ /dev/null @@ -1,448 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation python3package update", -) -class Update(AAZCommand): - """Create or Update the python 3 package identified by package name. - """ - - _aaz_info = { - "version": "2022-08-08", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/python3packages/{}", "2022-08-08"], - ] - } - - 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.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - id_part="name", - ) - _args_schema.package_name = AAZStrArg( - options=["-n", "--name", "--package-name"], - help="The python package name.", - required=True, - id_part="child_name_1", - ) - _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="Gets or sets the tags attached to the resource.", - nullable=True, - ) - - tags = cls._args_schema.tags - tags.Element = AAZStrArg( - nullable=True, - ) - - # define Arg Group "Properties" - - _args_schema = cls._args_schema - _args_schema.content_link = AAZObjectArg( - options=["--content-link"], - arg_group="Properties", - help="Gets or sets the module content link.", - ) - - content_link = cls._args_schema.content_link - content_link.content_hash = AAZObjectArg( - options=["content-hash"], - help="Gets or sets the hash.", - nullable=True, - ) - content_link.uri = AAZStrArg( - options=["uri"], - help="Gets or sets the uri of the runbook content.", - nullable=True, - ) - content_link.version = AAZStrArg( - options=["version"], - help="Gets or sets the version of the content.", - nullable=True, - ) - - content_hash = cls._args_schema.content_link.content_hash - content_hash.algorithm = AAZStrArg( - options=["algorithm"], - help="Gets or sets the content hash algorithm used to hash the content.", - ) - content_hash.value = AAZStrArg( - options=["value"], - help="Gets or sets expected hash value of the content.", - ) - return cls._args_schema - - def _execute_operations(self): - self.Python3PackageGet(ctx=self.ctx)() - self.InstanceUpdateByJson(ctx=self.ctx)() - self.InstanceUpdateByGeneric(ctx=self.ctx)() - self.Python3PackageCreateOrUpdate(ctx=self.ctx)() - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) - return result - - class Python3PackageGet(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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", - **self.url_parameters - ) - - @property - def method(self): - return "GET" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "packageName", self.ctx.args.package_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-08-08", - 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_module_read(cls._schema_on_200) - - return cls._schema_on_200 - - class Python3PackageCreateOrUpdate(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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", - **self.url_parameters - ) - - @property - def method(self): - return "PUT" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "packageName", self.ctx.args.package_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-08-08", - 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_module_read(cls._schema_on_200_201) - - return cls._schema_on_200_201 - - class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): - - def __call__(self, *args, **kwargs): - self._update_instance(self.ctx.vars.instance) - - def _update_instance(self, instance): - _instance_value, _builder = self.new_content_builder( - self.ctx.args, - value=instance, - typ=AAZObjectType - ) - _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) - _builder.set_prop("tags", AAZDictType, ".tags") - - properties = _builder.get(".properties") - if properties is not None: - properties.set_prop("contentLink", AAZObjectType, ".content_link", typ_kwargs={"flags": {"required": True}}) - - content_link = _builder.get(".properties.contentLink") - if content_link is not None: - content_link.set_prop("contentHash", AAZObjectType, ".content_hash") - content_link.set_prop("uri", AAZStrType, ".uri") - content_link.set_prop("version", AAZStrType, ".version") - - content_hash = _builder.get(".properties.contentLink.contentHash") - if content_hash is not None: - content_hash.set_prop("algorithm", AAZStrType, ".algorithm", typ_kwargs={"flags": {"required": True}}) - content_hash.set_prop("value", AAZStrType, ".value", typ_kwargs={"flags": {"required": True}}) - - 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_module_read = None - - -def _build_schema_module_read(_schema): - global _schema_module_read - if _schema_module_read is not None: - _schema.etag = _schema_module_read.etag - _schema.id = _schema_module_read.id - _schema.location = _schema_module_read.location - _schema.name = _schema_module_read.name - _schema.properties = _schema_module_read.properties - _schema.tags = _schema_module_read.tags - _schema.type = _schema_module_read.type - return - - _schema_module_read = AAZObjectType() - - module_read = _schema_module_read - module_read.etag = AAZStrType() - module_read.id = AAZStrType( - flags={"read_only": True}, - ) - module_read.location = AAZStrType() - module_read.name = AAZStrType( - flags={"read_only": True}, - ) - module_read.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - module_read.tags = AAZDictType() - module_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_module_read.properties - properties.activity_count = AAZIntType( - serialized_name="activityCount", - ) - properties.content_link = AAZObjectType( - serialized_name="contentLink", - ) - properties.creation_time = AAZStrType( - serialized_name="creationTime", - ) - properties.description = AAZStrType() - properties.error = AAZObjectType() - properties.is_composite = AAZBoolType( - serialized_name="isComposite", - ) - properties.is_global = AAZBoolType( - serialized_name="isGlobal", - ) - properties.last_modified_time = AAZStrType( - serialized_name="lastModifiedTime", - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - ) - properties.size_in_bytes = AAZIntType( - serialized_name="sizeInBytes", - ) - properties.version = AAZStrType() - - content_link = _schema_module_read.properties.content_link - content_link.content_hash = AAZObjectType( - serialized_name="contentHash", - ) - content_link.uri = AAZStrType() - content_link.version = AAZStrType() - - content_hash = _schema_module_read.properties.content_link.content_hash - content_hash.algorithm = AAZStrType( - flags={"required": True}, - ) - content_hash.value = AAZStrType( - flags={"required": True}, - ) - - error = _schema_module_read.properties.error - error.code = AAZStrType() - error.message = AAZStrType() - - tags = _schema_module_read.tags - tags.Element = AAZStrType() - - _schema.etag = _schema_module_read.etag - _schema.id = _schema_module_read.id - _schema.location = _schema_module_read.location - _schema.name = _schema_module_read.name - _schema.properties = _schema_module_read.properties - _schema.tags = _schema_module_read.tags - _schema.type = _schema_module_read.type - - -__all__ = ["Update"] diff --git a/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml b/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml index 4600c0ab6f4..29233a6b678 100644 --- a/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml +++ b/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml @@ -1,1188 +1,1801 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - unknown - Connection: - - keep-alive - User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-11-01 - response: - body: - string: "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus\",\"name\":\"eastus\",\"displayName\":\"East - US\",\"regionalDisplayName\":\"(US) East US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-79.8164\",\"latitude\":\"37.3719\",\"physicalLocation\":\"Virginia\",\"pairedRegion\":[{\"name\":\"westus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2\",\"name\":\"eastus2\",\"displayName\":\"East - US 2\",\"regionalDisplayName\":\"(US) East US 2\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-78.3889\",\"latitude\":\"36.6681\",\"physicalLocation\":\"Virginia\",\"pairedRegion\":[{\"name\":\"centralus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus\",\"name\":\"southcentralus\",\"displayName\":\"South - Central US\",\"regionalDisplayName\":\"(US) South Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-98.5\",\"latitude\":\"29.4167\",\"physicalLocation\":\"Texas\",\"pairedRegion\":[{\"name\":\"northcentralus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2\",\"name\":\"westus2\",\"displayName\":\"West - US 2\",\"regionalDisplayName\":\"(US) West US 2\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-119.852\",\"latitude\":\"47.233\",\"physicalLocation\":\"Washington\",\"pairedRegion\":[{\"name\":\"westcentralus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus3\",\"name\":\"westus3\",\"displayName\":\"West - US 3\",\"regionalDisplayName\":\"(US) West US 3\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-112.074036\",\"latitude\":\"33.448376\",\"physicalLocation\":\"Phoenix\",\"pairedRegion\":[{\"name\":\"eastus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast\",\"name\":\"australiaeast\",\"displayName\":\"Australia - East\",\"regionalDisplayName\":\"(Asia Pacific) Australia East\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"151.2094\",\"latitude\":\"-33.86\",\"physicalLocation\":\"New - South Wales\",\"pairedRegion\":[{\"name\":\"australiasoutheast\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia\",\"name\":\"southeastasia\",\"displayName\":\"Southeast - Asia\",\"regionalDisplayName\":\"(Asia Pacific) Southeast Asia\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"103.833\",\"latitude\":\"1.283\",\"physicalLocation\":\"Singapore\",\"pairedRegion\":[{\"name\":\"eastasia\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope\",\"name\":\"northeurope\",\"displayName\":\"North - Europe\",\"regionalDisplayName\":\"(Europe) North Europe\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"-6.2597\",\"latitude\":\"53.3478\",\"physicalLocation\":\"Ireland\",\"pairedRegion\":[{\"name\":\"westeurope\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/swedencentral\",\"name\":\"swedencentral\",\"displayName\":\"Sweden - Central\",\"regionalDisplayName\":\"(Europe) Sweden Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"17.14127\",\"latitude\":\"60.67488\",\"physicalLocation\":\"G\xE4vle\",\"pairedRegion\":[{\"name\":\"swedensouth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/swedensouth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth\",\"name\":\"uksouth\",\"displayName\":\"UK - South\",\"regionalDisplayName\":\"(Europe) UK South\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"-0.799\",\"latitude\":\"50.941\",\"physicalLocation\":\"London\",\"pairedRegion\":[{\"name\":\"ukwest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope\",\"name\":\"westeurope\",\"displayName\":\"West - Europe\",\"regionalDisplayName\":\"(Europe) West Europe\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"4.9\",\"latitude\":\"52.3667\",\"physicalLocation\":\"Netherlands\",\"pairedRegion\":[{\"name\":\"northeurope\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus\",\"name\":\"centralus\",\"displayName\":\"Central - US\",\"regionalDisplayName\":\"(US) Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-93.6208\",\"latitude\":\"41.5908\",\"physicalLocation\":\"Iowa\",\"pairedRegion\":[{\"name\":\"eastus2\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth\",\"name\":\"southafricanorth\",\"displayName\":\"South - Africa North\",\"regionalDisplayName\":\"(Africa) South Africa North\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Africa\",\"longitude\":\"28.218370\",\"latitude\":\"-25.731340\",\"physicalLocation\":\"Johannesburg\",\"pairedRegion\":[{\"name\":\"southafricawest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia\",\"name\":\"centralindia\",\"displayName\":\"Central - India\",\"regionalDisplayName\":\"(Asia Pacific) Central India\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"73.9197\",\"latitude\":\"18.5822\",\"physicalLocation\":\"Pune\",\"pairedRegion\":[{\"name\":\"southindia\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia\",\"name\":\"eastasia\",\"displayName\":\"East - Asia\",\"regionalDisplayName\":\"(Asia Pacific) East Asia\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"114.188\",\"latitude\":\"22.267\",\"physicalLocation\":\"Hong - Kong\",\"pairedRegion\":[{\"name\":\"southeastasia\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast\",\"name\":\"japaneast\",\"displayName\":\"Japan - East\",\"regionalDisplayName\":\"(Asia Pacific) Japan East\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"139.77\",\"latitude\":\"35.68\",\"physicalLocation\":\"Tokyo, - Saitama\",\"pairedRegion\":[{\"name\":\"japanwest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral\",\"name\":\"koreacentral\",\"displayName\":\"Korea - Central\",\"regionalDisplayName\":\"(Asia Pacific) Korea Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"126.9780\",\"latitude\":\"37.5665\",\"physicalLocation\":\"Seoul\",\"pairedRegion\":[{\"name\":\"koreasouth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral\",\"name\":\"canadacentral\",\"displayName\":\"Canada - Central\",\"regionalDisplayName\":\"(Canada) Canada Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Canada\",\"longitude\":\"-79.383\",\"latitude\":\"43.653\",\"physicalLocation\":\"Toronto\",\"pairedRegion\":[{\"name\":\"canadaeast\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral\",\"name\":\"francecentral\",\"displayName\":\"France - Central\",\"regionalDisplayName\":\"(Europe) France Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"2.3730\",\"latitude\":\"46.3772\",\"physicalLocation\":\"Paris\",\"pairedRegion\":[{\"name\":\"francesouth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral\",\"name\":\"germanywestcentral\",\"displayName\":\"Germany - West Central\",\"regionalDisplayName\":\"(Europe) Germany West Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"8.682127\",\"latitude\":\"50.110924\",\"physicalLocation\":\"Frankfurt\",\"pairedRegion\":[{\"name\":\"germanynorth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast\",\"name\":\"norwayeast\",\"displayName\":\"Norway - East\",\"regionalDisplayName\":\"(Europe) Norway East\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"10.752245\",\"latitude\":\"59.913868\",\"physicalLocation\":\"Norway\",\"pairedRegion\":[{\"name\":\"norwaywest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth\",\"name\":\"switzerlandnorth\",\"displayName\":\"Switzerland - North\",\"regionalDisplayName\":\"(Europe) Switzerland North\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"8.564572\",\"latitude\":\"47.451542\",\"physicalLocation\":\"Zurich\",\"pairedRegion\":[{\"name\":\"switzerlandwest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth\",\"name\":\"uaenorth\",\"displayName\":\"UAE - North\",\"regionalDisplayName\":\"(Middle East) UAE North\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Middle - East\",\"longitude\":\"55.316666\",\"latitude\":\"25.266666\",\"physicalLocation\":\"Dubai\",\"pairedRegion\":[{\"name\":\"uaecentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth\",\"name\":\"brazilsouth\",\"displayName\":\"Brazil - South\",\"regionalDisplayName\":\"(South America) Brazil South\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"South - America\",\"longitude\":\"-46.633\",\"latitude\":\"-23.55\",\"physicalLocation\":\"Sao - Paulo State\",\"pairedRegion\":[{\"name\":\"southcentralus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2euap\",\"name\":\"eastus2euap\",\"displayName\":\"East - US 2 EUAP\",\"regionalDisplayName\":\"(US) East US 2 EUAP\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-78.3889\",\"latitude\":\"36.6681\",\"pairedRegion\":[{\"name\":\"centraluseuap\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centraluseuap\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/qatarcentral\",\"name\":\"qatarcentral\",\"displayName\":\"Qatar - Central\",\"regionalDisplayName\":\"(Middle East) Qatar Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Middle - East\",\"longitude\":\"51.439327\",\"latitude\":\"25.551462\",\"physicalLocation\":\"Doha\",\"pairedRegion\":[{\"name\":\"westeurope\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralusstage\",\"name\":\"centralusstage\",\"displayName\":\"Central - US (Stage)\",\"regionalDisplayName\":\"(US) Central US (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastusstage\",\"name\":\"eastusstage\",\"displayName\":\"East - US (Stage)\",\"regionalDisplayName\":\"(US) East US (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2stage\",\"name\":\"eastus2stage\",\"displayName\":\"East - US 2 (Stage)\",\"regionalDisplayName\":\"(US) East US 2 (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralusstage\",\"name\":\"northcentralusstage\",\"displayName\":\"North - Central US (Stage)\",\"regionalDisplayName\":\"(US) North Central US (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralusstage\",\"name\":\"southcentralusstage\",\"displayName\":\"South - Central US (Stage)\",\"regionalDisplayName\":\"(US) South Central US (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westusstage\",\"name\":\"westusstage\",\"displayName\":\"West - US (Stage)\",\"regionalDisplayName\":\"(US) West US (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2stage\",\"name\":\"westus2stage\",\"displayName\":\"West - US 2 (Stage)\",\"regionalDisplayName\":\"(US) West US 2 (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/asia\",\"name\":\"asia\",\"displayName\":\"Asia\",\"regionalDisplayName\":\"Asia\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/asiapacific\",\"name\":\"asiapacific\",\"displayName\":\"Asia - Pacific\",\"regionalDisplayName\":\"Asia Pacific\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australia\",\"name\":\"australia\",\"displayName\":\"Australia\",\"regionalDisplayName\":\"Australia\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazil\",\"name\":\"brazil\",\"displayName\":\"Brazil\",\"regionalDisplayName\":\"Brazil\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canada\",\"name\":\"canada\",\"displayName\":\"Canada\",\"regionalDisplayName\":\"Canada\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/europe\",\"name\":\"europe\",\"displayName\":\"Europe\",\"regionalDisplayName\":\"Europe\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/france\",\"name\":\"france\",\"displayName\":\"France\",\"regionalDisplayName\":\"France\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germany\",\"name\":\"germany\",\"displayName\":\"Germany\",\"regionalDisplayName\":\"Germany\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/global\",\"name\":\"global\",\"displayName\":\"Global\",\"regionalDisplayName\":\"Global\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/india\",\"name\":\"india\",\"displayName\":\"India\",\"regionalDisplayName\":\"India\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japan\",\"name\":\"japan\",\"displayName\":\"Japan\",\"regionalDisplayName\":\"Japan\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/korea\",\"name\":\"korea\",\"displayName\":\"Korea\",\"regionalDisplayName\":\"Korea\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norway\",\"name\":\"norway\",\"displayName\":\"Norway\",\"regionalDisplayName\":\"Norway\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/singapore\",\"name\":\"singapore\",\"displayName\":\"Singapore\",\"regionalDisplayName\":\"Singapore\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafrica\",\"name\":\"southafrica\",\"displayName\":\"South - Africa\",\"regionalDisplayName\":\"South Africa\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerland\",\"name\":\"switzerland\",\"displayName\":\"Switzerland\",\"regionalDisplayName\":\"Switzerland\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uae\",\"name\":\"uae\",\"displayName\":\"United - Arab Emirates\",\"regionalDisplayName\":\"United Arab Emirates\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uk\",\"name\":\"uk\",\"displayName\":\"United - Kingdom\",\"regionalDisplayName\":\"United Kingdom\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/unitedstates\",\"name\":\"unitedstates\",\"displayName\":\"United - States\",\"regionalDisplayName\":\"United States\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/unitedstateseuap\",\"name\":\"unitedstateseuap\",\"displayName\":\"United - States EUAP\",\"regionalDisplayName\":\"United States EUAP\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasiastage\",\"name\":\"eastasiastage\",\"displayName\":\"East - Asia (Stage)\",\"regionalDisplayName\":\"(Asia Pacific) East Asia (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasiastage\",\"name\":\"southeastasiastage\",\"displayName\":\"Southeast - Asia (Stage)\",\"regionalDisplayName\":\"(Asia Pacific) Southeast Asia (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus\",\"name\":\"northcentralus\",\"displayName\":\"North - Central US\",\"regionalDisplayName\":\"(US) North Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\",\"longitude\":\"-87.6278\",\"latitude\":\"41.8819\",\"physicalLocation\":\"Illinois\",\"pairedRegion\":[{\"name\":\"southcentralus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus\",\"name\":\"westus\",\"displayName\":\"West - US\",\"regionalDisplayName\":\"(US) West US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\",\"longitude\":\"-122.417\",\"latitude\":\"37.783\",\"physicalLocation\":\"California\",\"pairedRegion\":[{\"name\":\"eastus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiawest\",\"name\":\"jioindiawest\",\"displayName\":\"Jio - India West\",\"regionalDisplayName\":\"(Asia Pacific) Jio India West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"70.05773\",\"latitude\":\"22.470701\",\"physicalLocation\":\"Jamnagar\",\"pairedRegion\":[{\"name\":\"jioindiacentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiacentral\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centraluseuap\",\"name\":\"centraluseuap\",\"displayName\":\"Central - US EUAP\",\"regionalDisplayName\":\"(US) Central US EUAP\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\",\"longitude\":\"-93.6208\",\"latitude\":\"41.5908\",\"pairedRegion\":[{\"name\":\"eastus2euap\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2euap\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus\",\"name\":\"westcentralus\",\"displayName\":\"West - Central US\",\"regionalDisplayName\":\"(US) West Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\",\"longitude\":\"-110.234\",\"latitude\":\"40.890\",\"physicalLocation\":\"Wyoming\",\"pairedRegion\":[{\"name\":\"westus2\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest\",\"name\":\"southafricawest\",\"displayName\":\"South - Africa West\",\"regionalDisplayName\":\"(Africa) South Africa West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Africa\",\"longitude\":\"18.843266\",\"latitude\":\"-34.075691\",\"physicalLocation\":\"Cape - Town\",\"pairedRegion\":[{\"name\":\"southafricanorth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral\",\"name\":\"australiacentral\",\"displayName\":\"Australia - Central\",\"regionalDisplayName\":\"(Asia Pacific) Australia Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"149.1244\",\"latitude\":\"-35.3075\",\"physicalLocation\":\"Canberra\",\"pairedRegion\":[{\"name\":\"australiacentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2\",\"name\":\"australiacentral2\",\"displayName\":\"Australia - Central 2\",\"regionalDisplayName\":\"(Asia Pacific) Australia Central 2\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"149.1244\",\"latitude\":\"-35.3075\",\"physicalLocation\":\"Canberra\",\"pairedRegion\":[{\"name\":\"australiacentral2\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast\",\"name\":\"australiasoutheast\",\"displayName\":\"Australia - Southeast\",\"regionalDisplayName\":\"(Asia Pacific) Australia Southeast\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"144.9631\",\"latitude\":\"-37.8136\",\"physicalLocation\":\"Victoria\",\"pairedRegion\":[{\"name\":\"australiaeast\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest\",\"name\":\"japanwest\",\"displayName\":\"Japan - West\",\"regionalDisplayName\":\"(Asia Pacific) Japan West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"135.5022\",\"latitude\":\"34.6939\",\"physicalLocation\":\"Osaka\",\"pairedRegion\":[{\"name\":\"japaneast\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiacentral\",\"name\":\"jioindiacentral\",\"displayName\":\"Jio - India Central\",\"regionalDisplayName\":\"(Asia Pacific) Jio India Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"79.08886\",\"latitude\":\"21.146633\",\"physicalLocation\":\"Nagpur\",\"pairedRegion\":[{\"name\":\"jioindiawest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiawest\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth\",\"name\":\"koreasouth\",\"displayName\":\"Korea - South\",\"regionalDisplayName\":\"(Asia Pacific) Korea South\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"129.0756\",\"latitude\":\"35.1796\",\"physicalLocation\":\"Busan\",\"pairedRegion\":[{\"name\":\"koreacentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia\",\"name\":\"southindia\",\"displayName\":\"South - India\",\"regionalDisplayName\":\"(Asia Pacific) South India\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"80.1636\",\"latitude\":\"12.9822\",\"physicalLocation\":\"Chennai\",\"pairedRegion\":[{\"name\":\"centralindia\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia\",\"name\":\"westindia\",\"displayName\":\"West - India\",\"regionalDisplayName\":\"(Asia Pacific) West India\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia - Pacific\",\"longitude\":\"72.868\",\"latitude\":\"19.088\",\"physicalLocation\":\"Mumbai\",\"pairedRegion\":[{\"name\":\"southindia\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast\",\"name\":\"canadaeast\",\"displayName\":\"Canada - East\",\"regionalDisplayName\":\"(Canada) Canada East\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Canada\",\"longitude\":\"-71.217\",\"latitude\":\"46.817\",\"physicalLocation\":\"Quebec\",\"pairedRegion\":[{\"name\":\"canadacentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth\",\"name\":\"francesouth\",\"displayName\":\"France - South\",\"regionalDisplayName\":\"(Europe) France South\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"2.1972\",\"latitude\":\"43.8345\",\"physicalLocation\":\"Marseille\",\"pairedRegion\":[{\"name\":\"francecentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth\",\"name\":\"germanynorth\",\"displayName\":\"Germany - North\",\"regionalDisplayName\":\"(Europe) Germany North\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"8.806422\",\"latitude\":\"53.073635\",\"physicalLocation\":\"Berlin\",\"pairedRegion\":[{\"name\":\"germanywestcentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest\",\"name\":\"norwaywest\",\"displayName\":\"Norway - West\",\"regionalDisplayName\":\"(Europe) Norway West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"5.733107\",\"latitude\":\"58.969975\",\"physicalLocation\":\"Norway\",\"pairedRegion\":[{\"name\":\"norwayeast\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest\",\"name\":\"switzerlandwest\",\"displayName\":\"Switzerland - West\",\"regionalDisplayName\":\"(Europe) Switzerland West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"6.143158\",\"latitude\":\"46.204391\",\"physicalLocation\":\"Geneva\",\"pairedRegion\":[{\"name\":\"switzerlandnorth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest\",\"name\":\"ukwest\",\"displayName\":\"UK - West\",\"regionalDisplayName\":\"(Europe) UK West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"-3.084\",\"latitude\":\"53.427\",\"physicalLocation\":\"Cardiff\",\"pairedRegion\":[{\"name\":\"uksouth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral\",\"name\":\"uaecentral\",\"displayName\":\"UAE - Central\",\"regionalDisplayName\":\"(Middle East) UAE Central\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"Middle - East\",\"longitude\":\"54.366669\",\"latitude\":\"24.466667\",\"physicalLocation\":\"Abu - Dhabi\",\"pairedRegion\":[{\"name\":\"uaenorth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth\"}]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsoutheast\",\"name\":\"brazilsoutheast\",\"displayName\":\"Brazil - Southeast\",\"regionalDisplayName\":\"(South America) Brazil Southeast\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"South - America\",\"longitude\":\"-43.2075\",\"latitude\":\"-22.90278\",\"physicalLocation\":\"Rio\",\"pairedRegion\":[{\"name\":\"brazilsouth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth\"}]}}]}" - headers: - cache-control: - - no-cache - content-length: - - '29470' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:07:54 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"name": "test-account-000002", "location": "westus2", "properties": {"sku": - {"name": "Basic"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation account create - Connection: - - keep-alive - Content-Length: - - '96' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --name --location - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 - response: - body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-08-26T03:08:02.76+00:00","lastModifiedAt":"2022-08-26T03:08:02.76+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://a8380925-d3cc-4d03-afc3-f5a88f2156e3.agentsvc.wus2.azure-automation.net/accounts/a8380925-d3cc-4d03-afc3-f5a88f2156e3","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://a8380925-d3cc-4d03-afc3-f5a88f2156e3.jrds.wus2.azure-automation.net/automationAccounts/a8380925-d3cc-4d03-afc3-f5a88f2156e3","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-08-26T03:08:02.76+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-26T03:08:02.76+00:00"}}' - headers: - cache-control: - - no-cache - content-length: - - '1143' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:08:03 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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: - - automation account update - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --tags - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 - response: - body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-08-26T03:08:02.76+00:00","lastModifiedAt":"2022-08-26T03:08:02.76+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://a8380925-d3cc-4d03-afc3-f5a88f2156e3.agentsvc.wus2.azure-automation.net/accounts/a8380925-d3cc-4d03-afc3-f5a88f2156e3","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://a8380925-d3cc-4d03-afc3-f5a88f2156e3.jrds.wus2.azure-automation.net/automationAccounts/a8380925-d3cc-4d03-afc3-f5a88f2156e3","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-08-26T03:08:02.76+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-26T03:08:02.76+00:00"}}' - headers: - cache-control: - - no-cache - content-length: - - '1175' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:08:04 GMT - expires: - - '-1' - ocp-automation-accountid: - - a8380925-d3cc-4d03-afc3-f5a88f2156e3 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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: '{"name": "test-account-000002", "tags": {"A": "a"}, "properties": {"sku": - {"name": "Basic"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation account update - Connection: - - keep-alive - Content-Length: - - '93' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --name --tags - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 - response: - body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-08-26T03:08:02.76+00:00","lastModifiedAt":"2022-08-26T03:08:07.7733333+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://a8380925-d3cc-4d03-afc3-f5a88f2156e3.agentsvc.wus2.azure-automation.net/accounts/a8380925-d3cc-4d03-afc3-f5a88f2156e3","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://a8380925-d3cc-4d03-afc3-f5a88f2156e3.jrds.wus2.azure-automation.net/automationAccounts/a8380925-d3cc-4d03-afc3-f5a88f2156e3","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-08-26T03:08:02.76+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-26T03:08:07.7733333+00:00"}}' - headers: - cache-control: - - no-cache - content-length: - - '1160' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:08:10 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - 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' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation account show - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 - response: - body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-08-26T03:08:02.76+00:00","lastModifiedAt":"2022-08-26T03:08:07.7733333+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://a8380925-d3cc-4d03-afc3-f5a88f2156e3.agentsvc.wus2.azure-automation.net/accounts/a8380925-d3cc-4d03-afc3-f5a88f2156e3","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://a8380925-d3cc-4d03-afc3-f5a88f2156e3.jrds.wus2.azure-automation.net/automationAccounts/a8380925-d3cc-4d03-afc3-f5a88f2156e3","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-08-26T03:08:02.76+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-26T03:08:07.7733333+00:00"}}' - headers: - cache-control: - - no-cache - content-length: - - '1192' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:08:11 GMT - expires: - - '-1' - ocp-automation-accountid: - - a8380925-d3cc-4d03-afc3-f5a88f2156e3 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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: - - automation account list - Connection: - - keep-alive - ParameterSetName: - - --resource-group - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts?api-version=2021-06-22 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","location":"westus2","name":"test-account-000002","type":"Microsoft.Automation/AutomationAccounts","tags":{"A":"a"},"properties":{"creationTime":"2022-08-26T03:08:02.76+00:00","lastModifiedTime":"2022-08-26T03:08:07.7733333+00:00","state":"Ok","disableLocalAuth":false}}]}' - headers: - cache-control: - - no-cache - content-length: - - '454' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:08:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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: - - automation runbook create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --automation-account-name --name --type - User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_000001?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001","name":"cli_test_automation_000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-08-26T03:07:48Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '331' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:08:13 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"name": "test-runbook-000003", "location": "westus2", "properties": {"runbookType": - "PowerShell", "draft": {}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation runbook create - Connection: - - keep-alive - Content-Length: - - '112' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --automation-account-name --name --type - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003?api-version=2018-06-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"637970801000700000\"","properties":{"description":null,"logVerbose":false,"logProgress":false,"logActivityTrace":0,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-08-26T03:08:20.07+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-26T03:08:20.07+00:00"}}' - headers: - cache-control: - - no-cache - content-length: - - '711' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:08:20 GMT - etag: - - '"637970801000700000"' - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003?api-version=2018-06-30 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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": {"logVerbose": true, "logProgress": true, "logActivityTrace": - 1}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation runbook update - Connection: - - keep-alive - Content-Length: - - '80' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --automation-account-name --name --log-activity-trace --log-verbose - --log-progress - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003?api-version=2018-06-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"637970801025333333\"","properties":{"description":null,"logVerbose":true,"logProgress":true,"logActivityTrace":1,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-08-26T03:08:20.07+00:00","lastModifiedBy":"{scrubbed}","lastModifiedTime":"2022-08-26T03:08:22.5333333+00:00"}}' - headers: - cache-control: - - no-cache - content-length: - - '722' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:08:22 GMT - etag: - - '"637970801025333333"' - expires: - - '-1' - pragma: - - no-cache - server: - - 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: - - '1199' - status: - code: 200 - message: OK -- request: - body: '@C:Usersv-jingszhangAppDataLocalTempPowerShell.ps' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation runbook replace-content - Connection: - - keep-alive - Content-Length: - - '49' - Content-Type: - - text/powershell - ParameterSetName: - - --resource-group --automation-account-name --name --content - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/draft/content?api-version=2018-06-30 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 26 Aug 2022 03:08:23 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/04e88edf-8cc0-4f74-83fe-621a1ccc182a?api-version=2018-06-30 - ocp-automation-operationresultid: - - 04e88edf-8cc0-4f74-83fe-621a1ccc182a - - 04e88edf-8cc0-4f74-83fe-621a1ccc182a - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - automation runbook replace-content - Connection: - - keep-alive - ParameterSetName: - - --resource-group --automation-account-name --name --content - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/04e88edf-8cc0-4f74-83fe-621a1ccc182a?api-version=2018-06-30 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - content-type: - - text/plain; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:08:29 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation runbook publish - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --resource-group --automation-account-name --name - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/publish?api-version=2018-06-30 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 26 Aug 2022 03:08:31 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/2a5b4a99-b765-4413-9d79-ddace074e5f9?api-version=2018-06-30 - ocp-automation-operationresultid: - - 2a5b4a99-b765-4413-9d79-ddace074e5f9 - - 2a5b4a99-b765-4413-9d79-ddace074e5f9 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - automation runbook publish - Connection: - - keep-alive - ParameterSetName: - - --resource-group --automation-account-name --name - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/2a5b4a99-b765-4413-9d79-ddace074e5f9?api-version=2018-06-30 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - content-type: - - text/plain; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:08:37 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"name": "hwg-000004"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation hrwg create - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --automation-account-name --name - User-Agent: - - AZURECLI/2.39.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-02-22 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-08-26T03:08:39.6229199+00:00","lastModifiedAt":"2022-08-26T03:08:39.6229199+00:00"}}' - headers: - cache-control: - - no-cache - content-length: - - '509' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:08:38 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-02-22 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1196' - status: - code: 201 - message: Created -- request: - body: '{"name": "hwg-000004"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation hrwg create - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --automation-account-name --name - User-Agent: - - AZURECLI/2.39.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-02-22 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-08-26T03:08:39.6229199+00:00","lastModifiedAt":"2022-08-26T03:08:40.575999+00:00"}}' - headers: - cache-control: - - no-cache - content-length: - - '508' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:08:40 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - 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' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation hrwg show - Connection: - - keep-alive - ParameterSetName: - - --resource-group --automation-account-name --name - User-Agent: - - AZURECLI/2.39.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-02-22 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-08-26T03:08:39.6229199+00:00","lastModifiedAt":"2022-08-26T03:08:40.575999+00:00"}}' - headers: - cache-control: - - no-cache - content-length: - - '508' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:08:41 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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: - - automation hrwg list - Connection: - - keep-alive - ParameterSetName: - - --resource-group --automation-account-name - User-Agent: - - AZURECLI/2.39.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups?api-version=2022-02-22 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-08-26T03:08:39.6229199+00:00","lastModifiedAt":"2022-08-26T03:08:40.575999+00:00"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '520' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:08:42 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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: - - automation hrwg hrw list - Connection: - - keep-alive - ParameterSetName: - - --automation-account-name --hybrid-runbook-worker-group-name -g - User-Agent: - - AZURECLI/2.39.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004/hybridRunbookWorkers?api-version=2021-06-22 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:08:57 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - automation hrwg delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --resource-group --automation-account-name --name --yes - User-Agent: - - AZURECLI/2.39.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-02-22 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 26 Aug 2022 03:08:59 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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: '{"properties": {"runbook": {"name": "test-runbook-000003"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation runbook start - Connection: - - keep-alive - Content-Length: - - '60' - Content-Type: - - application/json - ParameterSetName: - - --resource-group --automation-account-name --name - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2019-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"9ed4cf88-39bc-4bd1-9dc4-753832e24b17","creationTime":"2022-08-26T03:09:01.72+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":null,"startTime":null,"endTime":null,"lastModifiedTime":"2022-08-26T03:09:01.72+00:00","lastStatusModifiedTime":"2022-08-26T03:09:01.72+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' - headers: - cache-control: - - no-cache - content-length: - - '735' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:09:01 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2019-06-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '1999' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation job list - Connection: - - keep-alive - ParameterSetName: - - --resource-group --automation-account-name - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs?api-version=2019-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"9ed4cf88-39bc-4bd1-9dc4-753832e24b17","runbook":{"name":"test-runbook-000003"},"provisioningState":"Processing","status":"New","creationTime":"2022-08-26T03:09:01.7300573+00:00","startTime":null,"lastModifiedTime":"2022-08-26T03:09:01.7300573+00:00","endTime":null,"runOn":null}}]}' - headers: - cache-control: - - no-cache - content-length: - - '628' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:09:02 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - 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-resource-requests: - - '599' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation job show - Connection: - - keep-alive - ParameterSetName: - - --resource-group --automation-account-name --name - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2019-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"9ed4cf88-39bc-4bd1-9dc4-753832e24b17","creationTime":"2022-08-26T03:09:01.7300573+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":"{scrubbed}","startTime":null,"endTime":null,"lastModifiedTime":"2022-08-26T03:09:01.7300573+00:00","lastStatusModifiedTime":"2022-08-26T03:09:01.7300573+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' - headers: - cache-control: - - no-cache - content-length: - - '758' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 26 Aug 2022 03:09:04 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - 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-resource-requests: - - '599' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation account delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --resource-group --name -y - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 26 Aug 2022 03:09:12 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 200 - message: OK -version: 1 +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - unknown + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-11-01 + response: + body: + string: "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus\"\ + ,\"name\":\"eastus\",\"displayName\":\"East US\",\"regionalDisplayName\":\"\ + (US) East US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-79.8164\",\"latitude\"\ + :\"37.3719\",\"physicalLocation\":\"Virginia\",\"pairedRegion\":[{\"name\"\ + :\"westus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2\"\ + ,\"name\":\"eastus2\",\"displayName\":\"East US 2\",\"regionalDisplayName\"\ + :\"(US) East US 2\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-78.3889\",\"latitude\"\ + :\"36.6681\",\"physicalLocation\":\"Virginia\",\"pairedRegion\":[{\"name\"\ + :\"centralus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus\"\ + ,\"name\":\"southcentralus\",\"displayName\":\"South Central US\",\"regionalDisplayName\"\ + :\"(US) South Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-98.5\",\"latitude\"\ + :\"29.4167\",\"physicalLocation\":\"Texas\",\"pairedRegion\":[{\"name\":\"\ + northcentralus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2\"\ + ,\"name\":\"westus2\",\"displayName\":\"West US 2\",\"regionalDisplayName\"\ + :\"(US) West US 2\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-119.852\",\"latitude\"\ + :\"47.233\",\"physicalLocation\":\"Washington\",\"pairedRegion\":[{\"name\"\ + :\"westcentralus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus3\"\ + ,\"name\":\"westus3\",\"displayName\":\"West US 3\",\"regionalDisplayName\"\ + :\"(US) West US 3\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-112.074036\",\"\ + latitude\":\"33.448376\",\"physicalLocation\":\"Phoenix\",\"pairedRegion\"\ + :[{\"name\":\"eastus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast\"\ + ,\"name\":\"australiaeast\",\"displayName\":\"Australia East\",\"regionalDisplayName\"\ + :\"(Asia Pacific) Australia East\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia Pacific\",\"\ + longitude\":\"151.2094\",\"latitude\":\"-33.86\",\"physicalLocation\":\"New\ + \ South Wales\",\"pairedRegion\":[{\"name\":\"australiasoutheast\",\"id\"\ + :\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia\"\ + ,\"name\":\"southeastasia\",\"displayName\":\"Southeast Asia\",\"regionalDisplayName\"\ + :\"(Asia Pacific) Southeast Asia\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia Pacific\",\"\ + longitude\":\"103.833\",\"latitude\":\"1.283\",\"physicalLocation\":\"Singapore\"\ + ,\"pairedRegion\":[{\"name\":\"eastasia\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope\"\ + ,\"name\":\"northeurope\",\"displayName\":\"North Europe\",\"regionalDisplayName\"\ + :\"(Europe) North Europe\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"-6.2597\",\"\ + latitude\":\"53.3478\",\"physicalLocation\":\"Ireland\",\"pairedRegion\":[{\"\ + name\":\"westeurope\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/swedencentral\"\ + ,\"name\":\"swedencentral\",\"displayName\":\"Sweden Central\",\"regionalDisplayName\"\ + :\"(Europe) Sweden Central\",\"metadata\":{\"regionType\":\"Physical\",\"\ + regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\"\ + :\"17.14127\",\"latitude\":\"60.67488\",\"physicalLocation\":\"G\xE4vle\"\ + ,\"pairedRegion\":[{\"name\":\"swedensouth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/swedensouth\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth\"\ + ,\"name\":\"uksouth\",\"displayName\":\"UK South\",\"regionalDisplayName\"\ + :\"(Europe) UK South\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"-0.799\",\"\ + latitude\":\"50.941\",\"physicalLocation\":\"London\",\"pairedRegion\":[{\"\ + name\":\"ukwest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope\"\ + ,\"name\":\"westeurope\",\"displayName\":\"West Europe\",\"regionalDisplayName\"\ + :\"(Europe) West Europe\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"4.9\",\"latitude\"\ + :\"52.3667\",\"physicalLocation\":\"Netherlands\",\"pairedRegion\":[{\"name\"\ + :\"northeurope\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus\"\ + ,\"name\":\"centralus\",\"displayName\":\"Central US\",\"regionalDisplayName\"\ + :\"(US) Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-93.6208\",\"latitude\"\ + :\"41.5908\",\"physicalLocation\":\"Iowa\",\"pairedRegion\":[{\"name\":\"\ + eastus2\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth\"\ + ,\"name\":\"southafricanorth\",\"displayName\":\"South Africa North\",\"regionalDisplayName\"\ + :\"(Africa) South Africa North\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Africa\",\"longitude\"\ + :\"28.218370\",\"latitude\":\"-25.731340\",\"physicalLocation\":\"Johannesburg\"\ + ,\"pairedRegion\":[{\"name\":\"southafricawest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia\"\ + ,\"name\":\"centralindia\",\"displayName\":\"Central India\",\"regionalDisplayName\"\ + :\"(Asia Pacific) Central India\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia Pacific\",\"\ + longitude\":\"73.9197\",\"latitude\":\"18.5822\",\"physicalLocation\":\"Pune\"\ + ,\"pairedRegion\":[{\"name\":\"southindia\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia\"\ + ,\"name\":\"eastasia\",\"displayName\":\"East Asia\",\"regionalDisplayName\"\ + :\"(Asia Pacific) East Asia\",\"metadata\":{\"regionType\":\"Physical\",\"\ + regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia Pacific\",\"longitude\"\ + :\"114.188\",\"latitude\":\"22.267\",\"physicalLocation\":\"Hong Kong\",\"\ + pairedRegion\":[{\"name\":\"southeastasia\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast\"\ + ,\"name\":\"japaneast\",\"displayName\":\"Japan East\",\"regionalDisplayName\"\ + :\"(Asia Pacific) Japan East\",\"metadata\":{\"regionType\":\"Physical\",\"\ + regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia Pacific\",\"longitude\"\ + :\"139.77\",\"latitude\":\"35.68\",\"physicalLocation\":\"Tokyo, Saitama\"\ + ,\"pairedRegion\":[{\"name\":\"japanwest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral\"\ + ,\"name\":\"koreacentral\",\"displayName\":\"Korea Central\",\"regionalDisplayName\"\ + :\"(Asia Pacific) Korea Central\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Asia Pacific\",\"\ + longitude\":\"126.9780\",\"latitude\":\"37.5665\",\"physicalLocation\":\"\ + Seoul\",\"pairedRegion\":[{\"name\":\"koreasouth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral\"\ + ,\"name\":\"canadacentral\",\"displayName\":\"Canada Central\",\"regionalDisplayName\"\ + :\"(Canada) Canada Central\",\"metadata\":{\"regionType\":\"Physical\",\"\ + regionCategory\":\"Recommended\",\"geographyGroup\":\"Canada\",\"longitude\"\ + :\"-79.383\",\"latitude\":\"43.653\",\"physicalLocation\":\"Toronto\",\"pairedRegion\"\ + :[{\"name\":\"canadaeast\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral\"\ + ,\"name\":\"francecentral\",\"displayName\":\"France Central\",\"regionalDisplayName\"\ + :\"(Europe) France Central\",\"metadata\":{\"regionType\":\"Physical\",\"\ + regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\"\ + :\"2.3730\",\"latitude\":\"46.3772\",\"physicalLocation\":\"Paris\",\"pairedRegion\"\ + :[{\"name\":\"francesouth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral\"\ + ,\"name\":\"germanywestcentral\",\"displayName\":\"Germany West Central\"\ + ,\"regionalDisplayName\":\"(Europe) Germany West Central\",\"metadata\":{\"\ + regionType\":\"Physical\",\"regionCategory\":\"Recommended\",\"geographyGroup\"\ + :\"Europe\",\"longitude\":\"8.682127\",\"latitude\":\"50.110924\",\"physicalLocation\"\ + :\"Frankfurt\",\"pairedRegion\":[{\"name\":\"germanynorth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast\"\ + ,\"name\":\"norwayeast\",\"displayName\":\"Norway East\",\"regionalDisplayName\"\ + :\"(Europe) Norway East\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\":\"10.752245\"\ + ,\"latitude\":\"59.913868\",\"physicalLocation\":\"Norway\",\"pairedRegion\"\ + :[{\"name\":\"norwaywest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth\"\ + ,\"name\":\"switzerlandnorth\",\"displayName\":\"Switzerland North\",\"regionalDisplayName\"\ + :\"(Europe) Switzerland North\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Europe\",\"longitude\"\ + :\"8.564572\",\"latitude\":\"47.451542\",\"physicalLocation\":\"Zurich\",\"\ + pairedRegion\":[{\"name\":\"switzerlandwest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth\"\ + ,\"name\":\"uaenorth\",\"displayName\":\"UAE North\",\"regionalDisplayName\"\ + :\"(Middle East) UAE North\",\"metadata\":{\"regionType\":\"Physical\",\"\ + regionCategory\":\"Recommended\",\"geographyGroup\":\"Middle East\",\"longitude\"\ + :\"55.316666\",\"latitude\":\"25.266666\",\"physicalLocation\":\"Dubai\",\"\ + pairedRegion\":[{\"name\":\"uaecentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth\"\ + ,\"name\":\"brazilsouth\",\"displayName\":\"Brazil South\",\"regionalDisplayName\"\ + :\"(South America) Brazil South\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Recommended\",\"geographyGroup\":\"South America\",\"\ + longitude\":\"-46.633\",\"latitude\":\"-23.55\",\"physicalLocation\":\"Sao\ + \ Paulo State\",\"pairedRegion\":[{\"name\":\"southcentralus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2euap\"\ + ,\"name\":\"eastus2euap\",\"displayName\":\"East US 2 EUAP\",\"regionalDisplayName\"\ + :\"(US) East US 2 EUAP\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Recommended\",\"geographyGroup\":\"US\",\"longitude\":\"-78.3889\",\"latitude\"\ + :\"36.6681\",\"pairedRegion\":[{\"name\":\"centraluseuap\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centraluseuap\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/qatarcentral\"\ + ,\"name\":\"qatarcentral\",\"displayName\":\"Qatar Central\",\"regionalDisplayName\"\ + :\"(Middle East) Qatar Central\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Recommended\",\"geographyGroup\":\"Middle East\",\"\ + longitude\":\"51.439327\",\"latitude\":\"25.551462\",\"physicalLocation\"\ + :\"Doha\",\"pairedRegion\":[{\"name\":\"westeurope\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralusstage\"\ + ,\"name\":\"centralusstage\",\"displayName\":\"Central US (Stage)\",\"regionalDisplayName\"\ + :\"(US) Central US (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastusstage\"\ + ,\"name\":\"eastusstage\",\"displayName\":\"East US (Stage)\",\"regionalDisplayName\"\ + :\"(US) East US (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2stage\"\ + ,\"name\":\"eastus2stage\",\"displayName\":\"East US 2 (Stage)\",\"regionalDisplayName\"\ + :\"(US) East US 2 (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralusstage\"\ + ,\"name\":\"northcentralusstage\",\"displayName\":\"North Central US (Stage)\"\ + ,\"regionalDisplayName\":\"(US) North Central US (Stage)\",\"metadata\":{\"\ + regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"\ + US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralusstage\"\ + ,\"name\":\"southcentralusstage\",\"displayName\":\"South Central US (Stage)\"\ + ,\"regionalDisplayName\":\"(US) South Central US (Stage)\",\"metadata\":{\"\ + regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"\ + US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westusstage\"\ + ,\"name\":\"westusstage\",\"displayName\":\"West US (Stage)\",\"regionalDisplayName\"\ + :\"(US) West US (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2stage\"\ + ,\"name\":\"westus2stage\",\"displayName\":\"West US 2 (Stage)\",\"regionalDisplayName\"\ + :\"(US) West US 2 (Stage)\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"US\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/asia\"\ + ,\"name\":\"asia\",\"displayName\":\"Asia\",\"regionalDisplayName\":\"Asia\"\ + ,\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"\ + id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/asiapacific\"\ + ,\"name\":\"asiapacific\",\"displayName\":\"Asia Pacific\",\"regionalDisplayName\"\ + :\"Asia Pacific\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\"\ + :\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australia\"\ + ,\"name\":\"australia\",\"displayName\":\"Australia\",\"regionalDisplayName\"\ + :\"Australia\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\"\ + :\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazil\"\ + ,\"name\":\"brazil\",\"displayName\":\"Brazil\",\"regionalDisplayName\":\"\ + Brazil\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"\ + }},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canada\"\ + ,\"name\":\"canada\",\"displayName\":\"Canada\",\"regionalDisplayName\":\"\ + Canada\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"\ + }},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/europe\"\ + ,\"name\":\"europe\",\"displayName\":\"Europe\",\"regionalDisplayName\":\"\ + Europe\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"\ + }},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/france\"\ + ,\"name\":\"france\",\"displayName\":\"France\",\"regionalDisplayName\":\"\ + France\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"\ + }},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germany\"\ + ,\"name\":\"germany\",\"displayName\":\"Germany\",\"regionalDisplayName\"\ + :\"Germany\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"\ + Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/global\"\ + ,\"name\":\"global\",\"displayName\":\"Global\",\"regionalDisplayName\":\"\ + Global\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"\ + }},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/india\"\ + ,\"name\":\"india\",\"displayName\":\"India\",\"regionalDisplayName\":\"India\"\ + ,\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"\ + id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japan\"\ + ,\"name\":\"japan\",\"displayName\":\"Japan\",\"regionalDisplayName\":\"Japan\"\ + ,\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"\ + id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/korea\"\ + ,\"name\":\"korea\",\"displayName\":\"Korea\",\"regionalDisplayName\":\"Korea\"\ + ,\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"}},{\"\ + id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norway\"\ + ,\"name\":\"norway\",\"displayName\":\"Norway\",\"regionalDisplayName\":\"\ + Norway\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\":\"Other\"\ + }},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/singapore\"\ + ,\"name\":\"singapore\",\"displayName\":\"Singapore\",\"regionalDisplayName\"\ + :\"Singapore\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\"\ + :\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafrica\"\ + ,\"name\":\"southafrica\",\"displayName\":\"South Africa\",\"regionalDisplayName\"\ + :\"South Africa\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\"\ + :\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerland\"\ + ,\"name\":\"switzerland\",\"displayName\":\"Switzerland\",\"regionalDisplayName\"\ + :\"Switzerland\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\"\ + :\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uae\"\ + ,\"name\":\"uae\",\"displayName\":\"United Arab Emirates\",\"regionalDisplayName\"\ + :\"United Arab Emirates\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\"\ + :\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uk\"\ + ,\"name\":\"uk\",\"displayName\":\"United Kingdom\",\"regionalDisplayName\"\ + :\"United Kingdom\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\"\ + :\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/unitedstates\"\ + ,\"name\":\"unitedstates\",\"displayName\":\"United States\",\"regionalDisplayName\"\ + :\"United States\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\"\ + :\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/unitedstateseuap\"\ + ,\"name\":\"unitedstateseuap\",\"displayName\":\"United States EUAP\",\"regionalDisplayName\"\ + :\"United States EUAP\",\"metadata\":{\"regionType\":\"Logical\",\"regionCategory\"\ + :\"Other\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasiastage\"\ + ,\"name\":\"eastasiastage\",\"displayName\":\"East Asia (Stage)\",\"regionalDisplayName\"\ + :\"(Asia Pacific) East Asia (Stage)\",\"metadata\":{\"regionType\":\"Logical\"\ + ,\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia Pacific\"}},{\"id\"\ + :\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasiastage\"\ + ,\"name\":\"southeastasiastage\",\"displayName\":\"Southeast Asia (Stage)\"\ + ,\"regionalDisplayName\":\"(Asia Pacific) Southeast Asia (Stage)\",\"metadata\"\ + :{\"regionType\":\"Logical\",\"regionCategory\":\"Other\",\"geographyGroup\"\ + :\"Asia Pacific\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastusstg\"\ + ,\"name\":\"eastusstg\",\"displayName\":\"East US STG\",\"regionalDisplayName\"\ + :\"(US) East US STG\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"US\",\"longitude\":\"-79.8164\",\"latitude\"\ + :\"37.3719\",\"physicalLocation\":\"Virginia\",\"pairedRegion\":[{\"name\"\ + :\"southcentralusstg\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralusstg\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralusstg\"\ + ,\"name\":\"southcentralusstg\",\"displayName\":\"South Central US STG\",\"\ + regionalDisplayName\":\"(US) South Central US STG\",\"metadata\":{\"regionType\"\ + :\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\":\"US\",\"longitude\"\ + :\"-98.5\",\"latitude\":\"29.4167\",\"physicalLocation\":\"Texas\",\"pairedRegion\"\ + :[{\"name\":\"eastusstg\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastusstg\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus\"\ + ,\"name\":\"northcentralus\",\"displayName\":\"North Central US\",\"regionalDisplayName\"\ + :\"(US) North Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"US\",\"longitude\":\"-87.6278\",\"latitude\"\ + :\"41.8819\",\"physicalLocation\":\"Illinois\",\"pairedRegion\":[{\"name\"\ + :\"southcentralus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus\"\ + ,\"name\":\"westus\",\"displayName\":\"West US\",\"regionalDisplayName\":\"\ + (US) West US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"US\",\"longitude\":\"-122.417\",\"latitude\"\ + :\"37.783\",\"physicalLocation\":\"California\",\"pairedRegion\":[{\"name\"\ + :\"eastus\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiawest\"\ + ,\"name\":\"jioindiawest\",\"displayName\":\"Jio India West\",\"regionalDisplayName\"\ + :\"(Asia Pacific) Jio India West\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia Pacific\",\"longitude\"\ + :\"70.05773\",\"latitude\":\"22.470701\",\"physicalLocation\":\"Jamnagar\"\ + ,\"pairedRegion\":[{\"name\":\"jioindiacentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiacentral\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centraluseuap\"\ + ,\"name\":\"centraluseuap\",\"displayName\":\"Central US EUAP\",\"regionalDisplayName\"\ + :\"(US) Central US EUAP\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"US\",\"longitude\":\"-93.6208\",\"latitude\"\ + :\"41.5908\",\"pairedRegion\":[{\"name\":\"eastus2euap\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2euap\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus\"\ + ,\"name\":\"westcentralus\",\"displayName\":\"West Central US\",\"regionalDisplayName\"\ + :\"(US) West Central US\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"US\",\"longitude\":\"-110.234\",\"latitude\"\ + :\"40.890\",\"physicalLocation\":\"Wyoming\",\"pairedRegion\":[{\"name\":\"\ + westus2\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest\"\ + ,\"name\":\"southafricawest\",\"displayName\":\"South Africa West\",\"regionalDisplayName\"\ + :\"(Africa) South Africa West\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Other\",\"geographyGroup\":\"Africa\",\"longitude\"\ + :\"18.843266\",\"latitude\":\"-34.075691\",\"physicalLocation\":\"Cape Town\"\ + ,\"pairedRegion\":[{\"name\":\"southafricanorth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral\"\ + ,\"name\":\"australiacentral\",\"displayName\":\"Australia Central\",\"regionalDisplayName\"\ + :\"(Asia Pacific) Australia Central\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia Pacific\",\"longitude\"\ + :\"149.1244\",\"latitude\":\"-35.3075\",\"physicalLocation\":\"Canberra\"\ + ,\"pairedRegion\":[{\"name\":\"australiacentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2\"\ + ,\"name\":\"australiacentral2\",\"displayName\":\"Australia Central 2\",\"\ + regionalDisplayName\":\"(Asia Pacific) Australia Central 2\",\"metadata\"\ + :{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\"\ + :\"Asia Pacific\",\"longitude\":\"149.1244\",\"latitude\":\"-35.3075\",\"\ + physicalLocation\":\"Canberra\",\"pairedRegion\":[{\"name\":\"australiacentral2\"\ + ,\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast\"\ + ,\"name\":\"australiasoutheast\",\"displayName\":\"Australia Southeast\",\"\ + regionalDisplayName\":\"(Asia Pacific) Australia Southeast\",\"metadata\"\ + :{\"regionType\":\"Physical\",\"regionCategory\":\"Other\",\"geographyGroup\"\ + :\"Asia Pacific\",\"longitude\":\"144.9631\",\"latitude\":\"-37.8136\",\"\ + physicalLocation\":\"Victoria\",\"pairedRegion\":[{\"name\":\"australiaeast\"\ + ,\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest\"\ + ,\"name\":\"japanwest\",\"displayName\":\"Japan West\",\"regionalDisplayName\"\ + :\"(Asia Pacific) Japan West\",\"metadata\":{\"regionType\":\"Physical\",\"\ + regionCategory\":\"Other\",\"geographyGroup\":\"Asia Pacific\",\"longitude\"\ + :\"135.5022\",\"latitude\":\"34.6939\",\"physicalLocation\":\"Osaka\",\"pairedRegion\"\ + :[{\"name\":\"japaneast\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiacentral\"\ + ,\"name\":\"jioindiacentral\",\"displayName\":\"Jio India Central\",\"regionalDisplayName\"\ + :\"(Asia Pacific) Jio India Central\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia Pacific\",\"longitude\"\ + :\"79.08886\",\"latitude\":\"21.146633\",\"physicalLocation\":\"Nagpur\",\"\ + pairedRegion\":[{\"name\":\"jioindiawest\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiawest\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth\"\ + ,\"name\":\"koreasouth\",\"displayName\":\"Korea South\",\"regionalDisplayName\"\ + :\"(Asia Pacific) Korea South\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia Pacific\",\"longitude\"\ + :\"129.0756\",\"latitude\":\"35.1796\",\"physicalLocation\":\"Busan\",\"pairedRegion\"\ + :[{\"name\":\"koreacentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia\"\ + ,\"name\":\"southindia\",\"displayName\":\"South India\",\"regionalDisplayName\"\ + :\"(Asia Pacific) South India\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Other\",\"geographyGroup\":\"Asia Pacific\",\"longitude\"\ + :\"80.1636\",\"latitude\":\"12.9822\",\"physicalLocation\":\"Chennai\",\"\ + pairedRegion\":[{\"name\":\"centralindia\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia\"\ + ,\"name\":\"westindia\",\"displayName\":\"West India\",\"regionalDisplayName\"\ + :\"(Asia Pacific) West India\",\"metadata\":{\"regionType\":\"Physical\",\"\ + regionCategory\":\"Other\",\"geographyGroup\":\"Asia Pacific\",\"longitude\"\ + :\"72.868\",\"latitude\":\"19.088\",\"physicalLocation\":\"Mumbai\",\"pairedRegion\"\ + :[{\"name\":\"southindia\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast\"\ + ,\"name\":\"canadaeast\",\"displayName\":\"Canada East\",\"regionalDisplayName\"\ + :\"(Canada) Canada East\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"Canada\",\"longitude\":\"-71.217\",\"latitude\"\ + :\"46.817\",\"physicalLocation\":\"Quebec\",\"pairedRegion\":[{\"name\":\"\ + canadacentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth\"\ + ,\"name\":\"francesouth\",\"displayName\":\"France South\",\"regionalDisplayName\"\ + :\"(Europe) France South\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"2.1972\",\"latitude\"\ + :\"43.8345\",\"physicalLocation\":\"Marseille\",\"pairedRegion\":[{\"name\"\ + :\"francecentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth\"\ + ,\"name\":\"germanynorth\",\"displayName\":\"Germany North\",\"regionalDisplayName\"\ + :\"(Europe) Germany North\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"8.806422\",\"latitude\"\ + :\"53.073635\",\"physicalLocation\":\"Berlin\",\"pairedRegion\":[{\"name\"\ + :\"germanywestcentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest\"\ + ,\"name\":\"norwaywest\",\"displayName\":\"Norway West\",\"regionalDisplayName\"\ + :\"(Europe) Norway West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"5.733107\",\"latitude\"\ + :\"58.969975\",\"physicalLocation\":\"Norway\",\"pairedRegion\":[{\"name\"\ + :\"norwayeast\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/swedensouth\"\ + ,\"name\":\"swedensouth\",\"displayName\":\"Sweden South\",\"regionalDisplayName\"\ + :\"(Europe) Sweden South\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"13.0007\",\"latitude\"\ + :\"55.6059\",\"physicalLocation\":\"Malmo\",\"pairedRegion\":[{\"name\":\"\ + swedencentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/swedencentral\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest\"\ + ,\"name\":\"switzerlandwest\",\"displayName\":\"Switzerland West\",\"regionalDisplayName\"\ + :\"(Europe) Switzerland West\",\"metadata\":{\"regionType\":\"Physical\",\"\ + regionCategory\":\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"\ + 6.143158\",\"latitude\":\"46.204391\",\"physicalLocation\":\"Geneva\",\"pairedRegion\"\ + :[{\"name\":\"switzerlandnorth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest\"\ + ,\"name\":\"ukwest\",\"displayName\":\"UK West\",\"regionalDisplayName\":\"\ + (Europe) UK West\",\"metadata\":{\"regionType\":\"Physical\",\"regionCategory\"\ + :\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"-3.084\",\"latitude\"\ + :\"53.427\",\"physicalLocation\":\"Cardiff\",\"pairedRegion\":[{\"name\":\"\ + uksouth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral\"\ + ,\"name\":\"uaecentral\",\"displayName\":\"UAE Central\",\"regionalDisplayName\"\ + :\"(Middle East) UAE Central\",\"metadata\":{\"regionType\":\"Physical\",\"\ + regionCategory\":\"Other\",\"geographyGroup\":\"Middle East\",\"longitude\"\ + :\"54.366669\",\"latitude\":\"24.466667\",\"physicalLocation\":\"Abu Dhabi\"\ + ,\"pairedRegion\":[{\"name\":\"uaenorth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsoutheast\"\ + ,\"name\":\"brazilsoutheast\",\"displayName\":\"Brazil Southeast\",\"regionalDisplayName\"\ + :\"(South America) Brazil Southeast\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Other\",\"geographyGroup\":\"South America\",\"longitude\"\ + :\"-43.2075\",\"latitude\":\"-22.90278\",\"physicalLocation\":\"Rio\",\"pairedRegion\"\ + :[{\"name\":\"brazilsouth\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastusslv\"\ + ,\"name\":\"eastusslv\",\"displayName\":\"East US SLV\",\"regionalDisplayName\"\ + :\"(South America) East US SLV\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Other\",\"geographyGroup\":\"South America\",\"longitude\"\ + :\"-43.2075\",\"latitude\":\"-22.90278\",\"physicalLocation\":\"Silverstone\"\ + ,\"pairedRegion\":[{\"name\":\"eastusslv\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastusslv\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/polandcentral\"\ + ,\"name\":\"polandcentral\",\"displayName\":\"Poland Central\",\"regionalDisplayName\"\ + :\"(Europe) Poland Central\",\"metadata\":{\"regionType\":\"Physical\",\"\ + regionCategory\":\"Other\",\"geographyGroup\":\"Europe\",\"longitude\":\"\ + 14.6512702\",\"latitude\":\"51.8685079\",\"physicalLocation\":\"Warsaw\",\"\ + pairedRegion\":[{\"name\":\"swedencentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/swedencentral\"\ + }]}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/israelcentral\"\ + ,\"name\":\"israelcentral\",\"displayName\":\"Israel Central\",\"regionalDisplayName\"\ + :\"(Middle East) Israel Central\",\"metadata\":{\"regionType\":\"Physical\"\ + ,\"regionCategory\":\"Other\",\"geographyGroup\":\"Middle East\",\"longitude\"\ + :\"33.4506633\",\"latitude\":\"31.2655698\",\"physicalLocation\":\"Israel\"\ + ,\"pairedRegion\":[{\"name\":\"swedencentral\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/locations/swedencentral\"\ + }]}}]}" + headers: + cache-control: + - no-cache + content-length: + - '32299' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "test-account-000002", "location": "westus2", "properties": {"sku": + {"name": "Basic"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation account create + Connection: + - keep-alive + Content-Length: + - '96' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 + response: + body: + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T06:24:20.66+00:00","lastModifiedAt":"2022-10-18T06:24:20.66+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.agentsvc.wus2.azure-automation.net/accounts/baf3974b-b144-4a73-a20d-eeb434f74932","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.jrds.wus2.azure-automation.net/automationAccounts/baf3974b-b144-4a73-a20d-eeb434f74932","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T06:24:20.66+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T06:24:20.66+00:00"}}' + headers: + cache-control: + - no-cache + content-length: + - '1143' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24:22 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - automation account update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --tags + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 + response: + body: + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T06:24:20.66+00:00","lastModifiedAt":"2022-10-18T06:24:20.66+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.agentsvc.wus2.azure-automation.net/accounts/baf3974b-b144-4a73-a20d-eeb434f74932","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.jrds.wus2.azure-automation.net/automationAccounts/baf3974b-b144-4a73-a20d-eeb434f74932","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T06:24:20.66+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T06:24:20.66+00:00"}}' + headers: + cache-control: + - no-cache + content-length: + - '1175' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24:24 GMT + expires: + - '-1' + ocp-automation-accountid: + - baf3974b-b144-4a73-a20d-eeb434f74932 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: '{"name": "test-account-000002", "tags": {"A": "a"}, "properties": {"sku": + {"name": "Basic"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation account update + Connection: + - keep-alive + Content-Length: + - '93' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --tags + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 + response: + body: + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T06:24:20.66+00:00","lastModifiedAt":"2022-10-18T06:24:26.48+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.agentsvc.wus2.azure-automation.net/accounts/baf3974b-b144-4a73-a20d-eeb434f74932","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.jrds.wus2.azure-automation.net/automationAccounts/baf3974b-b144-4a73-a20d-eeb434f74932","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T06:24:20.66+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T06:24:26.48+00:00"}}' + headers: + cache-control: + - no-cache + content-length: + - '1150' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - 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: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation account show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 + response: + body: + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T06:24:20.66+00:00","lastModifiedAt":"2022-10-18T06:24:26.48+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.agentsvc.wus2.azure-automation.net/accounts/baf3974b-b144-4a73-a20d-eeb434f74932","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.jrds.wus2.azure-automation.net/automationAccounts/baf3974b-b144-4a73-a20d-eeb434f74932","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T06:24:20.66+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T06:24:26.48+00:00"}}' + headers: + cache-control: + - no-cache + content-length: + - '1182' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24:32 GMT + expires: + - '-1' + ocp-automation-accountid: + - baf3974b-b144-4a73-a20d-eeb434f74932 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - automation account list + Connection: + - keep-alive + ParameterSetName: + - --resource-group + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts?api-version=2021-06-22 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","location":"westus2","name":"test-account-000002","type":"Microsoft.Automation/AutomationAccounts","tags":{"A":"a"},"properties":{"creationTime":"2022-10-18T06:24:20.66+00:00","lastModifiedTime":"2022-10-18T06:24:26.48+00:00","state":"Ok","disableLocalAuth":false}}]}' + headers: + cache-control: + - no-cache + content-length: + - '449' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - automation runbook create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --automation-account-name --name --type + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001","name":"cli_test_automation_000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T06:24:06Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '331' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24: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: '{"name": "test-runbook-000003", "location": "westus2", "properties": {"runbookType": + "PowerShell", "draft": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation runbook create + Connection: + - keep-alive + Content-Length: + - '112' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --automation-account-name --name --type + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003?api-version=2018-06-30 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"638016710813833333\"","properties":{"description":null,"logVerbose":false,"logProgress":false,"logActivityTrace":0,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-10-18T06:24:41.3833333+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T06:24:41.3833333+00:00"}}' + headers: + cache-control: + - no-cache + content-length: + - '721' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24:42 GMT + etag: + - '"638016710813833333"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003?api-version=2018-06-30 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: '{"properties": {"logVerbose": true, "logProgress": true, "logActivityTrace": + 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation runbook update + Connection: + - keep-alive + Content-Length: + - '80' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --automation-account-name --name --log-activity-trace --log-verbose + --log-progress + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003?api-version=2018-06-30 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"638016710869100000\"","properties":{"description":null,"logVerbose":true,"logProgress":true,"logActivityTrace":1,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-10-18T06:24:41.3833333+00:00","lastModifiedBy":"{scrubbed}","lastModifiedTime":"2022-10-18T06:24:46.91+00:00"}}' + headers: + cache-control: + - no-cache + content-length: + - '722' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24:46 GMT + etag: + - '"638016710869100000"' + expires: + - '-1' + pragma: + - no-cache + server: + - 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' + status: + code: 200 + message: OK +- request: + body: '@C:UserssupadhyayAppDataLocalTempPowerShell.ps' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation runbook replace-content + Connection: + - keep-alive + Content-Length: + - '46' + Content-Type: + - text/powershell + ParameterSetName: + - --resource-group --automation-account-name --name --content + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/draft/content?api-version=2018-06-30 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 18 Oct 2022 06:24:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/60728611-4384-459a-a72e-3e64f89e547b?api-version=2018-06-30 + ocp-automation-operationresultid: + - 60728611-4384-459a-a72e-3e64f89e547b + - 60728611-4384-459a-a72e-3e64f89e547b + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - automation runbook replace-content + Connection: + - keep-alive + ParameterSetName: + - --resource-group --automation-account-name --name --content + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/60728611-4384-459a-a72e-3e64f89e547b?api-version=2018-06-30 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation runbook publish + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --automation-account-name --name + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/publish?api-version=2018-06-30 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 18 Oct 2022 06:24:55 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/7bbcc544-7525-420e-b687-58010c62cdf4?api-version=2018-06-30 + ocp-automation-operationresultid: + - 7bbcc544-7525-420e-b687-58010c62cdf4 + - 7bbcc544-7525-420e-b687-58010c62cdf4 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - automation runbook publish + Connection: + - keep-alive + ParameterSetName: + - --resource-group --automation-account-name --name + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/7bbcc544-7525-420e-b687-58010c62cdf4?api-version=2018-06-30 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:25:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "hwg-000004"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation hrwg create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --automation-account-name --name + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-08-08 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T06:25:06.1676327+00:00","lastModifiedAt":"2022-10-18T06:25:06.1676327+00:00"}}' + headers: + cache-control: + - no-cache + content-length: + - '509' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:25:06 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-08-08 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: '{"name": "hwg-000004"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation hrwg create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --automation-account-name --name + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-08-08 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T06:25:06.1676327+00:00","lastModifiedAt":"2022-10-18T06:25:11.4334035+00:00"}}' + headers: + cache-control: + - no-cache + content-length: + - '509' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:25:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - 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: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation hrwg show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --automation-account-name --name + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-08-08 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T06:25:06.1676327+00:00","lastModifiedAt":"2022-10-18T06:25:11.4334035+00:00"}}' + headers: + cache-control: + - no-cache + content-length: + - '509' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:25:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - automation hrwg list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --automation-account-name + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups?api-version=2022-08-08 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T06:25:06.1676327+00:00","lastModifiedAt":"2022-10-18T06:25:11.4334035+00:00"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '521' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:25:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - automation hrwg hrw list + Connection: + - keep-alive + ParameterSetName: + - --automation-account-name --hybrid-runbook-worker-group-name -g + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004/hybridRunbookWorkers?api-version=2022-08-08 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:25:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - automation hrwg delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --automation-account-name --name --yes + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-08-08 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 18 Oct 2022 06:25:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: '{"properties": {"contentLink": {"uri": "https://files.pythonhosted.org/packages/7f/e2/85dfb9f7364cbd7a9213caea0e91fc948da3c912a2b222a3e43bc9cc6432/requires.io-0.2.6-py2.py3-none-any.whl"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation python3-package create + Connection: + - keep-alive + Content-Length: + - '189' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --automation-account-name --name --content-link + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T06:25:20.1+00:00","lastModifiedTime":"2022-10-18T06:25:20.2166667+00:00","error":{"code":null,"message":null},"provisioningState":"Creating","isComposite":false}}' + headers: + cache-control: + - no-cache + content-length: + - '612' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:25:20 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - automation python3-package update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --automation-account-name --name --content-link + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T06:25:20.1+00:00","lastModifiedTime":"2022-10-18T06:25:20.2166667+00:00","error":{"code":null,"message":""},"provisioningState":"Creating","isComposite":false}}' + headers: + cache-control: + - no-cache + content-length: + - '610' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:25:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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": "westus2", "properties": {"activityCount": 0, "contentLink": + {"uri": "https://files.pythonhosted.org/packages/7f/e2/85dfb9f7364cbd7a9213caea0e91fc948da3c912a2b222a3e43bc9cc6432/requires.io-0.2.6-py2.py3-none-any.whl"}, + "creationTime": "2022-10-18T06:25:20.1+00:00", "error": {"message": ""}, "isComposite": + false, "isGlobal": false, "lastModifiedTime": "2022-10-18T06:25:20.2166667+00:00", + "provisioningState": "Creating", "sizeInBytes": 0}, "tags": {}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation python3-package update + Connection: + - keep-alive + Content-Length: + - '466' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --automation-account-name --name --content-link + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T06:25:20.1+00:00","lastModifiedTime":"2022-10-18T06:25:23.16+00:00","error":{"code":null,"message":null},"provisioningState":"Creating","isComposite":false}}' + headers: + cache-control: + - no-cache + content-length: + - '607' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:25:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - 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: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation python3-package show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --automation-account-name --name + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 + response: + body: + string: '{"name":"py3-package-000005","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T06:25:20.1+00:00","lastModifiedTime":"2022-10-18T06:25:23.16+00:00","error":{"code":null,"message":""},"provisioningState":"Creating","isComposite":false}}' + headers: + cache-control: + - no-cache + content-length: + - '605' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:25:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - automation python3-package list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --automation-account-name + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages?api-version=2022-08-08 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T06:25:20.1+00:00","lastModifiedTime":"2022-10-18T06:25:23.16+00:00","provisioningState":"Creating","isComposite":false}}]}' + headers: + cache-control: + - no-cache + content-length: + - '474' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:25:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - automation python3-package delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --automation-account-name --name --yes + User-Agent: + - AZURECLI/2.41.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 18 Oct 2022 06:25:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: '{"properties": {"runbook": {"name": "test-runbook-000003"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation runbook start + Connection: + - keep-alive + Content-Length: + - '60' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --automation-account-name --name + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2019-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"910205c2-1325-465e-b3a8-73fbdcf3cfd4","creationTime":"2022-10-18T06:25:30.51+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":null,"startTime":null,"endTime":null,"lastModifiedTime":"2022-10-18T06:25:30.51+00:00","lastStatusModifiedTime":"2022-10-18T06:25:30.51+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' + headers: + cache-control: + - no-cache + content-length: + - '735' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:25:29 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2019-06-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '1999' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation job list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --automation-account-name + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs?api-version=2019-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"910205c2-1325-465e-b3a8-73fbdcf3cfd4","runbook":{"name":"test-runbook-000003"},"provisioningState":"Processing","status":"New","creationTime":"2022-10-18T06:25:30.52046+00:00","startTime":null,"lastModifiedTime":"2022-10-18T06:25:30.52046+00:00","endTime":null,"runOn":null}}]}' + headers: + cache-control: + - no-cache + content-length: + - '624' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:25:32 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - 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-resource-requests: + - '599' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation job show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --automation-account-name --name + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2019-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"910205c2-1325-465e-b3a8-73fbdcf3cfd4","creationTime":"2022-10-18T06:25:30.52046+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":"{scrubbed}","startTime":null,"endTime":null,"lastModifiedTime":"2022-10-18T06:25:30.52046+00:00","lastStatusModifiedTime":"2022-10-18T06:25:30.52046+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' + headers: + cache-control: + - no-cache + content-length: + - '752' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:25:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - 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-resource-requests: + - '599' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation account delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 18 Oct 2022 06:25:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 200 + message: OK +version: 1 diff --git a/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml b/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml index 2165be28aaa..4cf48f597e7 100644 --- a/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml +++ b/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml @@ -1,337 +1,337 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation account create - Connection: - - keep-alive - ParameterSetName: - - -n -g - User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_schedule000001?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001","name":"cli_test_automation_schedule000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-08-22T02:10:38Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '346' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 02:10:40 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"name": "account-000002", "location": "westus", "properties": {"sku": - {"name": "Basic"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation account create - Connection: - - keep-alive - Content-Length: - - '90' - Content-Type: - - application/json - ParameterSetName: - - -n -g - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002?api-version=2021-06-22 - response: - body: - string: '{"name":"account-000002","systemData":{"createdAt":"2022-08-22T02:10:48.5+00:00","lastModifiedAt":"2022-08-22T02:10:48.5+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://87b4f14f-867a-40e9-bc31-280aafe76a13.agentsvc.wus.azure-automation.net/accounts/87b4f14f-867a-40e9-bc31-280aafe76a13","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://87b4f14f-867a-40e9-bc31-280aafe76a13.jrds.wus.azure-automation.net/automationAccounts/87b4f14f-867a-40e9-bc31-280aafe76a13","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-08-22T02:10:48.5+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-22T02:10:48.5+00:00"}}' - headers: - cache-control: - - no-cache - content-length: - - '1134' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 02:10:50 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002?api-version=2021-06-22 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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: '{"name": "schedule-000003", "properties": {"description": "test", "startTime": - "2022-08-30T10:00:00.000Z", "interval": 1, "frequency": "Hour", "timeZone": - "UTC+08:00"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation schedule create - Connection: - - keep-alive - Content-Length: - - '168' - Content-Type: - - application/json - ParameterSetName: - - -n -g --automation-account-name --description --frequency --interval --start-time - --time-zone - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test","startTime":"2022-08-30T18:00:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":true,"nextRun":"2022-08-30T18:00:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-08-22T02:10:51.9833333+00:00","lastModifiedTime":"2022-08-22T02:10:51.9833333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' - headers: - cache-control: - - no-cache - content-length: - - '740' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 02:10:51 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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: '{"name": "schedule-000003", "properties": {"description": "test1", "isEnabled": - false}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation schedule update - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - ParameterSetName: - - -n -g --automation-account-name --description --is-enabled - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-08-30T18:00:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-08-30T18:00:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-08-22T02:10:51.9833333+00:00","lastModifiedTime":"2022-08-22T02:10:51.9833333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' - headers: - cache-control: - - no-cache - content-length: - - '742' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 02:10:52 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - 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: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation schedule list - Connection: - - keep-alive - ParameterSetName: - - -g --automation-account-name - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules?api-version=2020-01-13-preview - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-08-30T18:00:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-08-30T18:00:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-08-22T02:10:51.9833333+00:00","lastModifiedTime":"2022-08-22T02:10:52.7933333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}]}' - headers: - cache-control: - - no-cache - content-length: - - '754' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 02:10:53 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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: - - automation schedule show - Connection: - - keep-alive - ParameterSetName: - - -n -g --automation-account-name - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-08-30T18:00:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-08-30T18:00:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-08-22T02:10:51.9833333+00:00","lastModifiedTime":"2022-08-22T02:10:52.7933333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' - headers: - cache-control: - - no-cache - content-length: - - '742' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 02:10:55 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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: - - automation schedule delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -n -g --automation-account-name -y - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Mon, 22 Aug 2022 02:10:56 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 200 - message: OK -version: 1 +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation account create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_schedule000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001","name":"cli_test_automation_schedule000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T06:24:06Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '346' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "account-000002", "location": "westus", "properties": {"sku": + {"name": "Basic"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation account create + Connection: + - keep-alive + Content-Length: + - '90' + Content-Type: + - application/json + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002?api-version=2021-06-22 + response: + body: + string: '{"name":"account-000002","systemData":{"createdAt":"2022-10-18T06:24:20.85+00:00","lastModifiedAt":"2022-10-18T06:24:20.85+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://0016186c-31c5-4790-80d2-7ca4cbd3281c.agentsvc.wus.azure-automation.net/accounts/0016186c-31c5-4790-80d2-7ca4cbd3281c","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://0016186c-31c5-4790-80d2-7ca4cbd3281c.jrds.wus.azure-automation.net/automationAccounts/0016186c-31c5-4790-80d2-7ca4cbd3281c","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T06:24:20.85+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T06:24:20.85+00:00"}}' + headers: + cache-control: + - no-cache + content-length: + - '1138' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24:22 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002?api-version=2021-06-22 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: '{"name": "schedule-000003", "properties": {"description": "test", "startTime": + "2022-10-18T09:08:00.000Z", "interval": 1, "frequency": "Hour", "timeZone": + "UTC+08:00"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation schedule create + Connection: + - keep-alive + Content-Length: + - '168' + Content-Type: + - application/json + ParameterSetName: + - -n -g --automation-account-name --description --frequency --interval --start-time + --time-zone + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test","startTime":"2022-10-18T17:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":true,"nextRun":"2022-10-18T17:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T06:24:25.3333333+00:00","lastModifiedTime":"2022-10-18T06:24:25.3333333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' + headers: + cache-control: + - no-cache + content-length: + - '740' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24:24 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 201 + message: Created +- request: + body: '{"name": "schedule-000003", "properties": {"description": "test1", "isEnabled": + false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation schedule update + Connection: + - keep-alive + Content-Length: + - '87' + Content-Type: + - application/json + ParameterSetName: + - -n -g --automation-account-name --description --is-enabled + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-18T17:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-18T17:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T06:24:25.3333333+00:00","lastModifiedTime":"2022-10-18T06:24:25.3333333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' + headers: + cache-control: + - no-cache + content-length: + - '742' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - 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' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation schedule list + Connection: + - keep-alive + ParameterSetName: + - -g --automation-account-name + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules?api-version=2020-01-13-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-18T17:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-18T17:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T06:24:25.3333333+00:00","lastModifiedTime":"2022-10-18T06:24:27.3633333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}]}' + headers: + cache-control: + - no-cache + content-length: + - '754' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24:30 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - automation schedule show + Connection: + - keep-alive + ParameterSetName: + - -n -g --automation-account-name + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-18T17:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-18T17:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T06:24:25.3333333+00:00","lastModifiedTime":"2022-10-18T06:24:27.3633333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' + headers: + cache-control: + - no-cache + content-length: + - '742' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 06:24:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - automation schedule delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g --automation-account-name -y + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 18 Oct 2022 06:24:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 200 + message: OK +version: 1 diff --git a/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py b/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py index e6f9a383b20..da816634717 100644 --- a/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py +++ b/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py @@ -6,6 +6,7 @@ import os from unittest import mock +from azure.cli.testsdk.scenario_tests import AllowLargeResponse import tempfile from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer @@ -64,7 +65,7 @@ def _uuid(): class AutomationScenarioTest(ScenarioTest): - + @AllowLargeResponse() @ResourceGroupPreparer(name_prefix='cli_test_automation_', key='rg', location='westus2') def test_automation(self, resource_group): self.kwargs.update({ @@ -134,7 +135,7 @@ def test_automation(self, resource_group): self.cmd('automation python3-package update --resource-group {rg} --automation-account-name {account_name} --name {python3Package_name} --content-link {python3PackageContentUri}', checks=[self.check('name', '{python3Package_name}')]) - self.cmd('automation python3package show --resource-group {rg} --automation-account-name {account_name} --name {python3Package_name}', + self.cmd('automation python3-package show --resource-group {rg} --automation-account-name {account_name} --name {python3Package_name}', checks=[self.check('name', '{python3Package_name}')]) self.cmd('automation python3-package list --resource-group {rg} --automation-account-name {account_name} ', @@ -158,6 +159,7 @@ def test_automation(self, resource_group): self.cmd('automation account delete --resource-group {rg} --name {account_name} -y') @ResourceGroupPreparer(name_prefix='cli_test_automation_schedule') + @AllowLargeResponse() def test_automation_schedule(self, resource_group): self.kwargs.update({ 'account_name': self.create_random_name('account-', 15), @@ -165,10 +167,10 @@ def test_automation_schedule(self, resource_group): }) self.cmd('automation account create -n {account_name} -g {rg}') - self.cmd('automation schedule create -n {schedule_name} -g {rg} --automation-account-name {account_name} --description test --frequency Hour --interval 1 --start-time 2022-08-30 18:00:00 --time-zone UTC+08:00', checks=[ + self.cmd('automation schedule create -n {schedule_name} -g {rg} --automation-account-name {account_name} --description test --frequency Hour --interval 1 --start-time 2022-10-18 14:38:00 --time-zone UTC+08:00', checks=[ self.check('frequency', 'Hour'), self.check('interval', '1'), - self.check('startTime', '2022-08-30T18:00:00+08:00'), + self.check('startTime', '2022-10-18T17:08:00+08:00'), self.check('timeZone', 'UTC+08:00'), self.check('description', 'test'), self.check('isEnabled', True) @@ -176,7 +178,7 @@ def test_automation_schedule(self, resource_group): self.cmd('automation schedule update -n {schedule_name} -g {rg} --automation-account-name {account_name} --description test1 --is-enabled false', checks=[ self.check('frequency', 'Hour'), self.check('interval', '1'), - self.check('startTime', '2022-08-30T18:00:00+08:00'), + self.check('startTime', '2022-10-18T17:08:00+08:00'), self.check('timeZone', 'UTC+08:00'), self.check('description', 'test1'), self.check('isEnabled', False) @@ -184,7 +186,7 @@ def test_automation_schedule(self, resource_group): self.cmd('automation schedule list -g {rg} --automation-account-name {account_name} ', checks=[ self.check('[0].frequency', 'Hour'), self.check('[0].interval', '1'), - self.check('[0].startTime', '2022-08-30T18:00:00+08:00'), + self.check('[0].startTime', '2022-10-18T17:08:00+08:00'), self.check('[0].timeZone', 'UTC+08:00'), self.check('[0].description', 'test1'), self.check('[0].isEnabled', False) @@ -192,7 +194,7 @@ def test_automation_schedule(self, resource_group): self.cmd('automation schedule show -n {schedule_name} -g {rg} --automation-account-name {account_name} ', checks=[ self.check('frequency', 'Hour'), self.check('interval', '1'), - self.check('startTime', '2022-08-30T18:00:00+08:00'), + self.check('startTime', '2022-10-18T17:08:00+08:00'), self.check('timeZone', 'UTC+08:00'), self.check('description', 'test1'), self.check('isEnabled', False), @@ -200,6 +202,7 @@ def test_automation_schedule(self, resource_group): self.cmd('automation schedule delete -n {schedule_name} -g {rg} --automation-account-name {account_name} -y') @ResourceGroupPreparer(name_prefix='cli_test_automation_software_update_configuration') + @AllowLargeResponse() def test_automation_software_update_configuration(self, resource_group): self.kwargs.update({ 'account_name': self.create_random_name('account-', 15), From 990ab6008abc07d70cf26470b4c62de5d31052a9 Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Tue, 18 Oct 2022 13:29:24 +0530 Subject: [PATCH 05/10] Updated Test cases recording with latest test cases --- .../latest/recordings/test_automation.yaml | 176 +- .../recordings/test_automation_schedule.yaml | 42 +- ...omation_software_update_configuration.yaml | 2255 +++++++++-------- .../latest/test_automation_scenario_manual.py | 22 +- 4 files changed, 1258 insertions(+), 1237 deletions(-) diff --git a/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml b/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml index 29233a6b678..e0267fce1f8 100644 --- a/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml +++ b/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml @@ -441,7 +441,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:14 GMT + - Tue, 18 Oct 2022 07:51:10 GMT expires: - '-1' pragma: @@ -479,16 +479,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 response: body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T06:24:20.66+00:00","lastModifiedAt":"2022-10-18T06:24:20.66+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.agentsvc.wus2.azure-automation.net/accounts/baf3974b-b144-4a73-a20d-eeb434f74932","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.jrds.wus2.azure-automation.net/automationAccounts/baf3974b-b144-4a73-a20d-eeb434f74932","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T06:24:20.66+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T06:24:20.66+00:00"}}' + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T07:51:16.9+00:00","lastModifiedAt":"2022-10-18T07:51:16.9+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.agentsvc.wus2.azure-automation.net/accounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.jrds.wus2.azure-automation.net/automationAccounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T07:51:16.9+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:51:16.9+00:00"}}' headers: cache-control: - no-cache content-length: - - '1143' + - '1139' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:22 GMT + - Tue, 18 Oct 2022 07:51:18 GMT expires: - '-1' location: @@ -502,7 +502,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -525,20 +525,20 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 response: body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T06:24:20.66+00:00","lastModifiedAt":"2022-10-18T06:24:20.66+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.agentsvc.wus2.azure-automation.net/accounts/baf3974b-b144-4a73-a20d-eeb434f74932","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.jrds.wus2.azure-automation.net/automationAccounts/baf3974b-b144-4a73-a20d-eeb434f74932","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T06:24:20.66+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T06:24:20.66+00:00"}}' + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T07:51:16.9+00:00","lastModifiedAt":"2022-10-18T07:51:16.9+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.agentsvc.wus2.azure-automation.net/accounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.jrds.wus2.azure-automation.net/automationAccounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T07:51:16.9+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:51:16.9+00:00"}}' headers: cache-control: - no-cache content-length: - - '1175' + - '1171' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:24 GMT + - Tue, 18 Oct 2022 07:51:20 GMT expires: - '-1' ocp-automation-accountid: - - baf3974b-b144-4a73-a20d-eeb434f74932 + - a2daec85-fc79-4ce2-bfc6-c830540d235e pragma: - no-cache server: @@ -578,16 +578,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 response: body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T06:24:20.66+00:00","lastModifiedAt":"2022-10-18T06:24:26.48+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.agentsvc.wus2.azure-automation.net/accounts/baf3974b-b144-4a73-a20d-eeb434f74932","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.jrds.wus2.azure-automation.net/automationAccounts/baf3974b-b144-4a73-a20d-eeb434f74932","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T06:24:20.66+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T06:24:26.48+00:00"}}' + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T07:51:16.9+00:00","lastModifiedAt":"2022-10-18T07:51:23.18+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.agentsvc.wus2.azure-automation.net/accounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.jrds.wus2.azure-automation.net/automationAccounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T07:51:16.9+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:51:23.18+00:00"}}' headers: cache-control: - no-cache content-length: - - '1150' + - '1148' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:28 GMT + - Tue, 18 Oct 2022 07:51:27 GMT expires: - '-1' pragma: @@ -626,20 +626,20 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 response: body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T06:24:20.66+00:00","lastModifiedAt":"2022-10-18T06:24:26.48+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.agentsvc.wus2.azure-automation.net/accounts/baf3974b-b144-4a73-a20d-eeb434f74932","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://baf3974b-b144-4a73-a20d-eeb434f74932.jrds.wus2.azure-automation.net/automationAccounts/baf3974b-b144-4a73-a20d-eeb434f74932","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T06:24:20.66+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T06:24:26.48+00:00"}}' + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T07:51:16.9+00:00","lastModifiedAt":"2022-10-18T07:51:23.18+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.agentsvc.wus2.azure-automation.net/accounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.jrds.wus2.azure-automation.net/automationAccounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T07:51:16.9+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:51:23.18+00:00"}}' headers: cache-control: - no-cache content-length: - - '1182' + - '1180' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:32 GMT + - Tue, 18 Oct 2022 07:51:29 GMT expires: - '-1' ocp-automation-accountid: - - baf3974b-b144-4a73-a20d-eeb434f74932 + - a2daec85-fc79-4ce2-bfc6-c830540d235e pragma: - no-cache server: @@ -674,16 +674,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts?api-version=2021-06-22 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","location":"westus2","name":"test-account-000002","type":"Microsoft.Automation/AutomationAccounts","tags":{"A":"a"},"properties":{"creationTime":"2022-10-18T06:24:20.66+00:00","lastModifiedTime":"2022-10-18T06:24:26.48+00:00","state":"Ok","disableLocalAuth":false}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","location":"westus2","name":"test-account-000002","type":"Microsoft.Automation/AutomationAccounts","tags":{"A":"a"},"properties":{"creationTime":"2022-10-18T07:51:16.9+00:00","lastModifiedTime":"2022-10-18T07:51:23.18+00:00","state":"Ok","disableLocalAuth":false}}]}' headers: cache-control: - no-cache content-length: - - '449' + - '448' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:34 GMT + - Tue, 18 Oct 2022 07:51:30 GMT expires: - '-1' pragma: @@ -720,7 +720,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001","name":"cli_test_automation_000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T06:24:06Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001","name":"cli_test_automation_000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:51:03Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -729,7 +729,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:34 GMT + - Tue, 18 Oct 2022 07:51:31 GMT expires: - '-1' pragma: @@ -767,18 +767,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003?api-version=2018-06-30 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"638016710813833333\"","properties":{"description":null,"logVerbose":false,"logProgress":false,"logActivityTrace":0,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-10-18T06:24:41.3833333+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T06:24:41.3833333+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"638016762987800000\"","properties":{"description":null,"logVerbose":false,"logProgress":false,"logActivityTrace":0,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-10-18T07:51:38.78+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:51:38.78+00:00"}}' headers: cache-control: - no-cache content-length: - - '721' + - '711' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:42 GMT + - Tue, 18 Oct 2022 07:51:40 GMT etag: - - '"638016710813833333"' + - '"638016762987800000"' expires: - '-1' location: @@ -821,7 +821,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003?api-version=2018-06-30 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"638016710869100000\"","properties":{"description":null,"logVerbose":true,"logProgress":true,"logActivityTrace":1,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-10-18T06:24:41.3833333+00:00","lastModifiedBy":"{scrubbed}","lastModifiedTime":"2022-10-18T06:24:46.91+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"638016763018333333\"","properties":{"description":null,"logVerbose":true,"logProgress":true,"logActivityTrace":1,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-10-18T07:51:38.78+00:00","lastModifiedBy":"{scrubbed}","lastModifiedTime":"2022-10-18T07:51:41.8333333+00:00"}}' headers: cache-control: - no-cache @@ -830,9 +830,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:46 GMT + - Tue, 18 Oct 2022 07:51:41 GMT etag: - - '"638016710869100000"' + - '"638016763018333333"' expires: - '-1' pragma: @@ -848,7 +848,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -882,14 +882,14 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 06:24:47 GMT + - Tue, 18 Oct 2022 07:51:43 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/60728611-4384-459a-a72e-3e64f89e547b?api-version=2018-06-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/75955a22-5b9e-4384-a688-1e1b8d1c5a29?api-version=2018-06-30 ocp-automation-operationresultid: - - 60728611-4384-459a-a72e-3e64f89e547b - - 60728611-4384-459a-a72e-3e64f89e547b + - 75955a22-5b9e-4384-a688-1e1b8d1c5a29 + - 75955a22-5b9e-4384-a688-1e1b8d1c5a29 pragma: - no-cache server: @@ -899,7 +899,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -919,7 +919,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/60728611-4384-459a-a72e-3e64f89e547b?api-version=2018-06-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/75955a22-5b9e-4384-a688-1e1b8d1c5a29?api-version=2018-06-30 response: body: string: '' @@ -931,7 +931,7 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:53 GMT + - Tue, 18 Oct 2022 07:51:50 GMT expires: - '-1' pragma: @@ -973,14 +973,14 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 06:24:55 GMT + - Tue, 18 Oct 2022 07:51:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/7bbcc544-7525-420e-b687-58010c62cdf4?api-version=2018-06-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/3a7b0639-5c77-47d2-ba80-efe08d1a4922?api-version=2018-06-30 ocp-automation-operationresultid: - - 7bbcc544-7525-420e-b687-58010c62cdf4 - - 7bbcc544-7525-420e-b687-58010c62cdf4 + - 3a7b0639-5c77-47d2-ba80-efe08d1a4922 + - 3a7b0639-5c77-47d2-ba80-efe08d1a4922 pragma: - no-cache server: @@ -1010,7 +1010,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/7bbcc544-7525-420e-b687-58010c62cdf4?api-version=2018-06-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/3a7b0639-5c77-47d2-ba80-efe08d1a4922?api-version=2018-06-30 response: body: string: '' @@ -1022,7 +1022,7 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 18 Oct 2022 06:25:01 GMT + - Tue, 18 Oct 2022 07:51:58 GMT expires: - '-1' pragma: @@ -1059,7 +1059,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T06:25:06.1676327+00:00","lastModifiedAt":"2022-10-18T06:25:06.1676327+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T07:52:01.0221744+00:00","lastModifiedAt":"2022-10-18T07:52:01.0221744+00:00"}}' headers: cache-control: - no-cache @@ -1068,7 +1068,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:25:06 GMT + - Tue, 18 Oct 2022 07:52:01 GMT expires: - '-1' location: @@ -1082,7 +1082,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -1109,16 +1109,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T06:25:06.1676327+00:00","lastModifiedAt":"2022-10-18T06:25:11.4334035+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T07:52:01.0221744+00:00","lastModifiedAt":"2022-10-18T07:52:03.037821+00:00"}}' headers: cache-control: - no-cache content-length: - - '509' + - '508' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:25:10 GMT + - Tue, 18 Oct 2022 07:52:02 GMT expires: - '-1' pragma: @@ -1134,7 +1134,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -1157,16 +1157,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T06:25:06.1676327+00:00","lastModifiedAt":"2022-10-18T06:25:11.4334035+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T07:52:01.0221744+00:00","lastModifiedAt":"2022-10-18T07:52:03.037821+00:00"}}' headers: cache-control: - no-cache content-length: - - '509' + - '508' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:25:12 GMT + - Tue, 18 Oct 2022 07:52:04 GMT expires: - '-1' pragma: @@ -1203,16 +1203,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups?api-version=2022-08-08 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T06:25:06.1676327+00:00","lastModifiedAt":"2022-10-18T06:25:11.4334035+00:00"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T07:52:01.0221744+00:00","lastModifiedAt":"2022-10-18T07:52:03.037821+00:00"}}]}' headers: cache-control: - no-cache content-length: - - '521' + - '520' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:25:14 GMT + - Tue, 18 Oct 2022 07:52:06 GMT expires: - '-1' pragma: @@ -1258,7 +1258,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:25:15 GMT + - Tue, 18 Oct 2022 07:52:08 GMT expires: - '-1' pragma: @@ -1304,7 +1304,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 06:25:17 GMT + - Tue, 18 Oct 2022 07:52:11 GMT expires: - '-1' pragma: @@ -1343,16 +1343,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T06:25:20.1+00:00","lastModifiedTime":"2022-10-18T06:25:20.2166667+00:00","error":{"code":null,"message":null},"provisioningState":"Creating","isComposite":false}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T07:52:12.95+00:00","lastModifiedTime":"2022-10-18T07:52:13.0166667+00:00","error":{"code":null,"message":null},"provisioningState":"Creating","isComposite":false}}' headers: cache-control: - no-cache content-length: - - '612' + - '613' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:25:20 GMT + - Tue, 18 Oct 2022 07:52:13 GMT expires: - '-1' location: @@ -1389,16 +1389,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T06:25:20.1+00:00","lastModifiedTime":"2022-10-18T06:25:20.2166667+00:00","error":{"code":null,"message":""},"provisioningState":"Creating","isComposite":false}}' + string: '{"name":"py3-package-000005","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T07:52:12.95+00:00","lastModifiedTime":"2022-10-18T07:52:13.0166667+00:00","error":{"code":null,"message":""},"provisioningState":"Creating","isComposite":false}}' headers: cache-control: - no-cache content-length: - - '610' + - '611' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:25:21 GMT + - Tue, 18 Oct 2022 07:52:13 GMT expires: - '-1' pragma: @@ -1419,8 +1419,8 @@ interactions: - request: body: '{"location": "westus2", "properties": {"activityCount": 0, "contentLink": {"uri": "https://files.pythonhosted.org/packages/7f/e2/85dfb9f7364cbd7a9213caea0e91fc948da3c912a2b222a3e43bc9cc6432/requires.io-0.2.6-py2.py3-none-any.whl"}, - "creationTime": "2022-10-18T06:25:20.1+00:00", "error": {"message": ""}, "isComposite": - false, "isGlobal": false, "lastModifiedTime": "2022-10-18T06:25:20.2166667+00:00", + "creationTime": "2022-10-18T07:52:12.95+00:00", "error": {"message": ""}, "isComposite": + false, "isGlobal": false, "lastModifiedTime": "2022-10-18T07:52:13.0166667+00:00", "provisioningState": "Creating", "sizeInBytes": 0}, "tags": {}}' headers: Accept: @@ -1432,7 +1432,7 @@ interactions: Connection: - keep-alive Content-Length: - - '466' + - '467' Content-Type: - application/json ParameterSetName: @@ -1443,16 +1443,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T06:25:20.1+00:00","lastModifiedTime":"2022-10-18T06:25:23.16+00:00","error":{"code":null,"message":null},"provisioningState":"Creating","isComposite":false}}' + string: '{"name":"py3-package-000005","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T07:52:12.95+00:00","lastModifiedTime":"2022-10-18T07:52:15.1266667+00:00","error":{"code":null,"message":null},"provisioningState":"Creating","isComposite":false}}' headers: cache-control: - no-cache content-length: - - '607' + - '613' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:25:23 GMT + - Tue, 18 Oct 2022 07:52:14 GMT expires: - '-1' pragma: @@ -1468,7 +1468,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK @@ -1491,16 +1491,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 response: body: - string: '{"name":"py3-package-000005","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T06:25:20.1+00:00","lastModifiedTime":"2022-10-18T06:25:23.16+00:00","error":{"code":null,"message":""},"provisioningState":"Creating","isComposite":false}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T07:52:12.95+00:00","lastModifiedTime":"2022-10-18T07:52:15.1266667+00:00","error":{"code":null,"message":""},"provisioningState":"Creating","isComposite":false}}' headers: cache-control: - no-cache content-length: - - '605' + - '611' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:25:25 GMT + - Tue, 18 Oct 2022 07:52:16 GMT expires: - '-1' pragma: @@ -1537,16 +1537,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages?api-version=2022-08-08 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T06:25:20.1+00:00","lastModifiedTime":"2022-10-18T06:25:23.16+00:00","provisioningState":"Creating","isComposite":false}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T07:52:12.95+00:00","lastModifiedTime":"2022-10-18T07:52:15.1266667+00:00","provisioningState":"Creating","isComposite":false}}]}' headers: cache-control: - no-cache content-length: - - '474' + - '480' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:25:26 GMT + - Tue, 18 Oct 2022 07:52:18 GMT expires: - '-1' pragma: @@ -1592,7 +1592,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 06:25:28 GMT + - Tue, 18 Oct 2022 07:52:19 GMT expires: - '-1' pragma: @@ -1604,7 +1604,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 200 message: OK @@ -1631,16 +1631,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2019-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"910205c2-1325-465e-b3a8-73fbdcf3cfd4","creationTime":"2022-10-18T06:25:30.51+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":null,"startTime":null,"endTime":null,"lastModifiedTime":"2022-10-18T06:25:30.51+00:00","lastStatusModifiedTime":"2022-10-18T06:25:30.51+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"5062d867-fe93-49d0-a3d4-a6d9e0130787","creationTime":"2022-10-18T07:52:22.2+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":null,"startTime":null,"endTime":null,"lastModifiedTime":"2022-10-18T07:52:22.2+00:00","lastStatusModifiedTime":"2022-10-18T07:52:22.2+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' headers: cache-control: - no-cache content-length: - - '735' + - '732' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:25:29 GMT + - Tue, 18 Oct 2022 07:52:22 GMT expires: - '-1' location: @@ -1677,16 +1677,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs?api-version=2019-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"910205c2-1325-465e-b3a8-73fbdcf3cfd4","runbook":{"name":"test-runbook-000003"},"provisioningState":"Processing","status":"New","creationTime":"2022-10-18T06:25:30.52046+00:00","startTime":null,"lastModifiedTime":"2022-10-18T06:25:30.52046+00:00","endTime":null,"runOn":null}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"5062d867-fe93-49d0-a3d4-a6d9e0130787","runbook":{"name":"test-runbook-000003"},"provisioningState":"Processing","status":"New","creationTime":"2022-10-18T07:52:22.2148966+00:00","startTime":null,"lastModifiedTime":"2022-10-18T07:52:22.2148966+00:00","endTime":null,"runOn":null}}]}' headers: cache-control: - no-cache content-length: - - '624' + - '628' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:25:32 GMT + - Tue, 18 Oct 2022 07:52:24 GMT expires: - '-1' pragma: @@ -1725,16 +1725,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2019-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"910205c2-1325-465e-b3a8-73fbdcf3cfd4","creationTime":"2022-10-18T06:25:30.52046+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":"{scrubbed}","startTime":null,"endTime":null,"lastModifiedTime":"2022-10-18T06:25:30.52046+00:00","lastStatusModifiedTime":"2022-10-18T06:25:30.52046+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"5062d867-fe93-49d0-a3d4-a6d9e0130787","creationTime":"2022-10-18T07:52:22.2148966+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":"{scrubbed}","startTime":null,"endTime":null,"lastModifiedTime":"2022-10-18T07:52:22.2148966+00:00","lastStatusModifiedTime":"2022-10-18T07:52:22.2148966+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' headers: cache-control: - no-cache content-length: - - '752' + - '758' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:25:34 GMT + - Tue, 18 Oct 2022 07:52:26 GMT expires: - '-1' pragma: @@ -1782,7 +1782,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 06:25:47 GMT + - Tue, 18 Oct 2022 07:52:39 GMT expires: - '-1' pragma: diff --git a/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml b/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml index 4cf48f597e7..6ee03fbf636 100644 --- a/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml +++ b/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml @@ -18,7 +18,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_schedule000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001","name":"cli_test_automation_schedule000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T06:24:06Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001","name":"cli_test_automation_schedule000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:51:03Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:13 GMT + - Tue, 18 Oct 2022 07:51:07 GMT expires: - '-1' pragma: @@ -65,7 +65,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002?api-version=2021-06-22 response: body: - string: '{"name":"account-000002","systemData":{"createdAt":"2022-10-18T06:24:20.85+00:00","lastModifiedAt":"2022-10-18T06:24:20.85+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://0016186c-31c5-4790-80d2-7ca4cbd3281c.agentsvc.wus.azure-automation.net/accounts/0016186c-31c5-4790-80d2-7ca4cbd3281c","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://0016186c-31c5-4790-80d2-7ca4cbd3281c.jrds.wus.azure-automation.net/automationAccounts/0016186c-31c5-4790-80d2-7ca4cbd3281c","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T06:24:20.85+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T06:24:20.85+00:00"}}' + string: '{"name":"account-000002","systemData":{"createdAt":"2022-10-18T07:51:13.36+00:00","lastModifiedAt":"2022-10-18T07:51:13.36+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://f670520d-04b5-4d74-87c0-98188397a743.agentsvc.wus.azure-automation.net/accounts/f670520d-04b5-4d74-87c0-98188397a743","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://f670520d-04b5-4d74-87c0-98188397a743.jrds.wus.azure-automation.net/automationAccounts/f670520d-04b5-4d74-87c0-98188397a743","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T07:51:13.36+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:51:13.36+00:00"}}' headers: cache-control: - no-cache @@ -74,7 +74,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:22 GMT + - Tue, 18 Oct 2022 07:51:15 GMT expires: - '-1' location: @@ -94,7 +94,7 @@ interactions: message: Created - request: body: '{"name": "schedule-000003", "properties": {"description": "test", "startTime": - "2022-10-18T09:08:00.000Z", "interval": 1, "frequency": "Hour", "timeZone": + "2022-10-19T10:08:00.000Z", "interval": 1, "frequency": "Hour", "timeZone": "UTC+08:00"}}' headers: Accept: @@ -118,16 +118,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test","startTime":"2022-10-18T17:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":true,"nextRun":"2022-10-18T17:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T06:24:25.3333333+00:00","lastModifiedTime":"2022-10-18T06:24:25.3333333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":true,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T07:51:19.17+00:00","lastModifiedTime":"2022-10-18T07:51:19.17+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' headers: cache-control: - no-cache content-length: - - '740' + - '730' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:24 GMT + - Tue, 18 Oct 2022 07:51:19 GMT expires: - '-1' location: @@ -141,7 +141,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 201 message: Created @@ -169,16 +169,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-18T17:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-18T17:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T06:24:25.3333333+00:00","lastModifiedTime":"2022-10-18T06:24:25.3333333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T07:51:19.17+00:00","lastModifiedTime":"2022-10-18T07:51:19.17+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' headers: cache-control: - no-cache content-length: - - '742' + - '732' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:26 GMT + - Tue, 18 Oct 2022 07:51:22 GMT expires: - '-1' pragma: @@ -194,7 +194,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -217,16 +217,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules?api-version=2020-01-13-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-18T17:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-18T17:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T06:24:25.3333333+00:00","lastModifiedTime":"2022-10-18T06:24:27.3633333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T07:51:19.17+00:00","lastModifiedTime":"2022-10-18T07:51:23.4633333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}]}' headers: cache-control: - no-cache content-length: - - '754' + - '749' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:30 GMT + - Tue, 18 Oct 2022 07:51:26 GMT expires: - '-1' pragma: @@ -263,16 +263,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-18T17:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-18T17:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T06:24:25.3333333+00:00","lastModifiedTime":"2022-10-18T06:24:27.3633333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T07:51:19.17+00:00","lastModifiedTime":"2022-10-18T07:51:23.4633333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' headers: cache-control: - no-cache content-length: - - '742' + - '737' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 06:24:33 GMT + - Tue, 18 Oct 2022 07:51:29 GMT expires: - '-1' pragma: @@ -318,7 +318,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 06:24:35 GMT + - Tue, 18 Oct 2022 07:51:30 GMT expires: - '-1' pragma: @@ -330,7 +330,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 200 message: OK diff --git a/src/automation/azext_automation/tests/latest/recordings/test_automation_software_update_configuration.yaml b/src/automation/azext_automation/tests/latest/recordings/test_automation_software_update_configuration.yaml index 82cee3964d1..d69e2b39759 100644 --- a/src/automation/azext_automation/tests/latest/recordings/test_automation_software_update_configuration.yaml +++ b/src/automation/azext_automation/tests/latest/recordings/test_automation_software_update_configuration.yaml @@ -1,1117 +1,1138 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -n -g --image --generate-ssh-key --nsg-rule - User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001","name":"cli_test_automation_software_update_configuration000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-08-22T05:39:51Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '388' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:39:54 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - 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: - - Mon, 22 Aug 2022 05:39:54 GMT - etag: - - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" - expires: - - Mon, 22 Aug 2022 05:44:54 GMT - source-age: - - '251' - 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: - - 12f92d5b2dd218f325ab8e4f300ecedbc968129e - x-frame-options: - - deny - x-github-request-id: - - 33FC:5BE0:2C6A2C:3D3004:63026BCF - x-served-by: - - cache-qpg1252-QPG - x-timer: - - S1661146795.997334,VS0,VE1 - 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 --generate-ssh-key --nsg-rule - User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-03-01 - response: - body: - string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"18.04.202208100\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202208100\"\r\n - \ }\r\n]" - headers: - cache-control: - - no-cache - content-length: - - '286' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:39:55 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 --image --generate-ssh-key --nsg-rule - User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202208100?api-version=2022-03-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\"\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\": - \"westus\",\r\n \"name\": \"18.04.202208100\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202208100\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1042' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:39:57 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;73999 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json, text/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -n -g --image --generate-ssh-key --nsg-rule - User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:39: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: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": - [{"name": "vm-000004VNET", "type": "Microsoft.Network/virtualNetworks", "location": - "westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties": - {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name": - "vm-000004Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"type": - "Microsoft.Network/networkSecurityGroups", "name": "vm-000004NSG", "apiVersion": - "2015-06-15", "location": "westus", "tags": {}, "dependsOn": []}, {"apiVersion": - "2018-01-01", "type": "Microsoft.Network/publicIPAddresses", "name": "vm-000004PublicIP", - "location": "westus", "tags": {}, "dependsOn": [], "properties": {"publicIPAllocationMethod": - null}}, {"apiVersion": "2015-06-15", "type": "Microsoft.Network/networkInterfaces", - "name": "vm-000004VMNic", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/vm-000004VNET", - "Microsoft.Network/networkSecurityGroups/vm-000004NSG", "Microsoft.Network/publicIpAddresses/vm-000004PublicIP"], - "properties": {"ipConfigurations": [{"name": "ipconfigvm-000004", "properties": - {"privateIPAllocationMethod": "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET/subnets/vm-000004Subnet"}, - "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP"}}}], - "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG"}}}, - {"apiVersion": "2022-03-01", "type": "Microsoft.Compute/virtualMachines", "name": - "vm-000004", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/vm-000004VMNic"], - "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": - {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic", - "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": "vm-000004", - "adminUsername": "v-jingszhang", "linuxConfiguration": {"disablePasswordAuthentication": - true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDL2PtV5sp++a43U/dRJ2Fyjso9qDFNbWEnbYk7mA4CfXy0gvxm65oYVd90JysNmGBF/89hIvCTN3ul4aEIuPkzywozRbdyWiJngSd/7OrNBJzpQQSjsGXwoVNDRAJSzlvuQVUR2vwBHeN2xMIvufSvzO3LGI3xcSIWIYlSvU9urnV+Pefd4T6x/OXgTpE02AgMWOspdZTzg0ZKsSU3sG5nYSNoq+8qrHQSXLbLLdWzz5lYKe8p64fQC/xhXrNa3/Nw5vy8YGsyqGueM/Rj6gCI+ivgBlQg908Aa50yQLvwsMLIKxhgPlj73Am8zm27PS3DKVjkr0nTjbEp/3FzZnyB", - "path": "/home/v-jingszhang/.ssh/authorized_keys"}]}}}}}], "outputs": {}}, "parameters": - {}, "mode": "incremental"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - Content-Length: - - '3448' - Content-Type: - - application/json - ParameterSetName: - - -n -g --image --generate-ssh-key --nsg-rule - User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_IOAZZ7McLeUT3c5qKWwSrOypoBRZRJfA","name":"vm_deploy_IOAZZ7McLeUT3c5qKWwSrOypoBRZRJfA","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16179749164063259327","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-08-22T05:40:03.6785827Z","duration":"PT0.0007205S","correlationId":"0024d00d-2f01-4d2b-8ffb-545e7103edd9","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-000004"}]}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_IOAZZ7McLeUT3c5qKWwSrOypoBRZRJfA/operationStatuses/08585404600848431998?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '2675' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:40:04 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -n -g --image --generate-ssh-key --nsg-rule - User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585404600848431998?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, 22 Aug 2022 05:40:34 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -n -g --image --generate-ssh-key --nsg-rule - User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585404600848431998?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: - - Mon, 22 Aug 2022 05:41:05 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -n -g --image --generate-ssh-key --nsg-rule - User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_IOAZZ7McLeUT3c5qKWwSrOypoBRZRJfA","name":"vm_deploy_IOAZZ7McLeUT3c5qKWwSrOypoBRZRJfA","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16179749164063259327","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-08-22T05:40:45.7082565Z","duration":"PT42.0303943S","correlationId":"0024d00d-2f01-4d2b-8ffb-545e7103edd9","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-000004"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET"}]}}' - headers: - cache-control: - - no-cache - content-length: - - '3670' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:41:06 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -n -g --image --generate-ssh-key --nsg-rule - User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004?$expand=instanceView&api-version=2022-03-01 - response: - body: - string: "{\r\n \"name\": \"vm-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"68f120c5-6029-4df3-875a-c571965e804f\",\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.202208100\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm-000004_disk1_13000f9122ad4d23909fe5ecae19ae6d\",\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/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/disks/vm-000004_disk1_13000f9122ad4d23909fe5ecae19ae6d\"\r\n - \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": - 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": - {\r\n \"computerName\": \"vm-000004\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n - \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": - true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n - \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDL2PtV5sp++a43U/dRJ2Fyjso9qDFNbWEnbYk7mA4CfXy0gvxm65oYVd90JysNmGBF/89hIvCTN3ul4aEIuPkzywozRbdyWiJngSd/7OrNBJzpQQSjsGXwoVNDRAJSzlvuQVUR2vwBHeN2xMIvufSvzO3LGI3xcSIWIYlSvU9urnV+Pefd4T6x/OXgTpE02AgMWOspdZTzg0ZKsSU3sG5nYSNoq+8qrHQSXLbLLdWzz5lYKe8p64fQC/xhXrNa3/Nw5vy8YGsyqGueM/Rj6gCI+ivgBlQg908Aa50yQLvwsMLIKxhgPlj73Am8zm27PS3DKVjkr0nTjbEp/3FzZnyB\"\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/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"computerName\": - \"vm-000004\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n - \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.8.0.9\",\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-08-22T05:40:53+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm-000004_disk1_13000f9122ad4d23909fe5ecae19ae6d\",\r\n - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-08-22T05:40:29.4866822+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-08-22T05:40:38.752419+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-08-22T05:40:28.2366178+00:00\"\r\n - \ }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '4001' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:41:06 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;3996,Microsoft.Compute/LowCostGet30Min;31989 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json, text/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -n -g --image --generate-ssh-key --nsg-rule - User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic?api-version=2018-01-01 - response: - body: - string: "{\r\n \"name\": \"vm-000004VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic\",\r\n - \ \"etag\": \"W/\\\"155461a8-a571-47c6-92e7-8aff2f06b28b\\\"\",\r\n \"tags\": - {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"d5d2f63f-6d6f-4e95-a194-bfc0c5e9a232\",\r\n \"ipConfigurations\": - [\r\n {\r\n \"name\": \"ipconfigvm-000004\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic/ipConfigurations/ipconfigvm-000004\",\r\n - \ \"etag\": \"W/\\\"155461a8-a571-47c6-92e7-8aff2f06b28b\\\"\",\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/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP\"\r\n - \ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET/subnets/vm-000004Subnet\"\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\": - \"4or4apske5qudpbba1cbg520jh.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-22-48-09-F9-A2\",\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG\"\r\n - \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004\"\r\n - \ }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\",\r\n - \ \"location\": \"westus\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '2465' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:41:08 GMT - etag: - - W/"155461a8-a571-47c6-92e7-8aff2f06b28b" - 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: - - 27b92bb6-5efd-45fa-a6ab-44ee39c15155 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json, text/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -n -g --image --generate-ssh-key --nsg-rule - User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP?api-version=2018-01-01 - response: - body: - string: "{\r\n \"name\": \"vm-000004PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP\",\r\n - \ \"etag\": \"W/\\\"35e7b165-cc9c-46dd-95b2-077382326dd0\\\"\",\r\n \"location\": - \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"2fa0cf63-b303-4b87-97cc-3e152076d054\",\r\n - \ \"ipAddress\": \"20.245.59.182\",\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/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic/ipConfigurations/ipconfigvm-000004\"\r\n - \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n - \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '981' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:41:08 GMT - etag: - - W/"35e7b165-cc9c-46dd-95b2-077382326dd0" - 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: - - 271f83fb-f68d-4114-b7e6-db7dc6034209 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation account create - Connection: - - keep-alive - ParameterSetName: - - -n -g - User-Agent: - - AZURECLI/2.39.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001","name":"cli_test_automation_software_update_configuration000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-08-22T05:39:51Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '388' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:41:08 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"name": "account-000002", "location": "westus", "properties": {"sku": - {"name": "Basic"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation account create - Connection: - - keep-alive - Content-Length: - - '90' - Content-Type: - - application/json - ParameterSetName: - - -n -g - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002?api-version=2021-06-22 - response: - body: - string: '{"name":"account-000002","systemData":{"createdAt":"2022-08-22T05:41:14.2666667+00:00","lastModifiedAt":"2022-08-22T05:41:14.2666667+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://f2174187-6b34-4d5c-9c5b-a16beb6fbbec.agentsvc.wus.azure-automation.net/accounts/f2174187-6b34-4d5c-9c5b-a16beb6fbbec","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://f2174187-6b34-4d5c-9c5b-a16beb6fbbec.jrds.wus.azure-automation.net/automationAccounts/f2174187-6b34-4d5c-9c5b-a16beb6fbbec","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-08-22T05:41:14.2666667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-22T05:41:14.2666667+00:00"}}' - headers: - cache-control: - - no-cache - content-length: - - '1179' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:41:16 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002?api-version=2021-06-22 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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": {"updateConfiguration": {"operatingSystem": "Windows", "windows": - {"includedUpdateClassifications": "Critical", "excludedKbNumbers": ["16800", - "16800"], "includedKbNumbers": ["15000", "15000"], "rebootSetting": "IfRequired"}, - "duration": "PT2H", "azureVirtualMachines": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"], - "nonAzureComputerNames": ["nonvm1", "nonvm2"], "targets": {"azureQueries": [{"scope": - ["/subscriptions/00000000-0000-0000-0000-000000000000"], "locations": ["eastus", - "westus"], "tagSettings": {"tags": {"tag": ["tag1", "tag2"]}}}]}}, "scheduleInfo": - {"startTime": "2022-08-23T10:00:00.000Z", "expiryTime": "2022-08-30T10:00:00.000Z", - "nextRun": "2022-08-25T10:00:00.000Z", "interval": 1, "frequency": "Hour", "timeZone": - "UTC+08:00", "description": "test"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation software-update-configuration create - Connection: - - keep-alive - Content-Length: - - '925' - Content-Type: - - application/json - ParameterSetName: - - -n -g --automation-account-name --description --frequency --interval --operating-system - --excluded-kb-numbers --included-kb-numbers --included-update-classifications - --duration --azure-virtual-machines --time-zone --start-time --expiry-time - --next-run --non-azure-computer-names --reboot-setting --azure-queries-scope - --azure-queries-location --tags - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003?api-version=2019-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"scheduleInfo":{"description":"test","startTime":"2022-08-23T10:00:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"2022-08-30T10:00:00+08:00","expiryTimeOffsetMinutes":480.0,"isEnabled":true,"nextRun":"2022-08-23T10:00:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-08-22T05:41:17.8133333+00:00","lastModifiedTime":"2022-08-22T05:41:17.8133333+00:00","timeZone":"UTC+08:00","advancedSchedule":null},"provisioningState":"Provisioning","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2022-08-22T05:41:17.8933333+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-22T05:41:17.8933333+00:00"}}' - headers: - cache-control: - - no-cache - content-length: - - '1657' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:41:17 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003?api-version=2019-06-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - automation software-update-configuration list - Connection: - - keep-alive - ParameterSetName: - - -g --automation-account-name - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations?api-version=2019-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"frequency":"Hour","startTime":"2022-08-23T10:00:00+08:00","creationTime":"2022-08-22T05:41:17.8933333+00:00","lastModifiedTime":"2022-08-22T05:41:17.8933333+00:00","provisioningState":"Provisioning","nextRun":"2022-08-23T10:00:00+08:00","tasks":null}}]}' - headers: - cache-control: - - no-cache - content-length: - - '1243' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:41:18 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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: - - automation software-update-configuration show - Connection: - - keep-alive - ParameterSetName: - - -n -g --automation-account-name -n - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003?api-version=2019-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"scheduleInfo":{"description":"test","startTime":"2022-08-23T10:00:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"2022-08-30T10:00:00+08:00","expiryTimeOffsetMinutes":480.0,"isEnabled":true,"nextRun":"2022-08-23T10:00:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-08-22T05:41:17.8133333+00:00","lastModifiedTime":"2022-08-22T05:41:17.8133333+00:00","timeZone":"UTC+08:00","advancedSchedule":null},"provisioningState":"Provisioning","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2022-08-22T05:41:17.8933333+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-08-22T05:41:17.8933333+00:00"}}' - headers: - cache-control: - - no-cache - content-length: - - '1657' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:41:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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: - - automation software-update-configuration runs list - Connection: - - keep-alive - ParameterSetName: - - -g --automation-account-name - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurationRuns?api-version=2019-06-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:41:21 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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: - - automation software-update-configuration machine-runs list - Connection: - - keep-alive - ParameterSetName: - - -g --automation-account-name - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurationMachineRuns?api-version=2019-06-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 22 Aug 2022 05:41:23 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - 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: - - automation software-update-configuration delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -n -g --automation-account-name -y - User-Agent: - - AZURECLI/2.39.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.8.9 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003?api-version=2019-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Mon, 22 Aug 2022 05:41:24 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' - status: - code: 200 - message: OK -version: 1 +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --generate-ssh-key --nsg-rule + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001","name":"cli_test_automation_software_update_configuration000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:51:03Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '388' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:51:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: 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: + - Tue, 18 Oct 2022 07:51:10 GMT + etag: + - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" + expires: + - Tue, 18 Oct 2022 07:56:10 GMT + source-age: + - '203' + 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: + - dbd8c3ff85c927bd8097205ad069fa8c39bba714 + x-frame-options: + - deny + x-github-request-id: + - 0802:27E7:2B5028:3A34D4:634E3D7C + x-served-by: + - cache-ccu830027-CCU + x-timer: + - S1666079470.074945,VS0,VE1 + 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 --generate-ssh-key --nsg-rule + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-compute/28.0.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/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\": \"westus\",\r\n \"name\": \"18.04.202210140\"\ + ,\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202210140\"\ + \r\n }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '286' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:51:10 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;43992 + 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-key --nsg-rule + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-compute/28.0.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/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\": \"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\": \"westus\",\r\ + \n \"name\": \"18.04.202210140\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202210140\"\ + \r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1048' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:51:12 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;73992 + 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-key --nsg-rule + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-network/21.0.1 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/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: + - Tue, 18 Oct 2022 07:51:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": + [{"name": "vm-000004VNET", "type": "Microsoft.Network/virtualNetworks", "location": + "westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties": + {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name": + "vm-000004Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"type": + "Microsoft.Network/networkSecurityGroups", "name": "vm-000004NSG", "apiVersion": + "2015-06-15", "location": "westus", "tags": {}, "dependsOn": []}, {"apiVersion": + "2022-01-01", "type": "Microsoft.Network/publicIPAddresses", "name": "vm-000004PublicIP", + "location": "westus", "tags": {}, "dependsOn": [], "properties": {"publicIPAllocationMethod": + null}}, {"apiVersion": "2015-06-15", "type": "Microsoft.Network/networkInterfaces", + "name": "vm-000004VMNic", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/vm-000004VNET", + "Microsoft.Network/networkSecurityGroups/vm-000004NSG", "Microsoft.Network/publicIpAddresses/vm-000004PublicIP"], + "properties": {"ipConfigurations": [{"name": "ipconfigvm-000004", "properties": + {"privateIPAllocationMethod": "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET/subnets/vm-000004Subnet"}, + "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP"}}}], + "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG"}}}, + {"apiVersion": "2022-08-01", "type": "Microsoft.Compute/virtualMachines", "name": + "vm-000004", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/vm-000004VMNic"], + "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": + {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic", + "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": "vm-000004", + "adminUsername": "supadhyay", "linuxConfiguration": {"disablePasswordAuthentication": + true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7DmFgToC3d0MlE8SOOFXZCK6SJ04QBWWBRvspL+shVcWsv0ufvwDZ74ewurSf23eWNs+NgWazMeg9GEjVuQVGS+1+UBHZZMm1bE7WTymA6Opck730pz5EEXj5+l0oSJVFqChEqYVZH9Umc9TThF0s+jqpajA8mFuAYPwT/sxK8xbz9/zglGUaGSeQ2xyyZh7APJkJVTkRrgHf61YX6v3NfkJKjnfy2bU8Lw/N1fLhcrtMLOYT55dDEMLvIrDD+SvYp3uA8pXsQm/UXzVtu+88v0lVgVXv09FAKzC1lDDYUbo3NYKIYJNRlnTt6M6sVEszQH23p7V+6erOC6syejCv", + "path": "/home/supadhyay/.ssh/authorized_keys"}]}}}}}], "outputs": {}}, "parameters": + {}, "mode": "incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + Content-Length: + - '3442' + Content-Type: + - application/json + ParameterSetName: + - -n -g --image --generate-ssh-key --nsg-rule + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_IeJh2MhstFvJh0o6OVqSKRW9ZzleXVez","name":"vm_deploy_IeJh2MhstFvJh0o6OVqSKRW9ZzleXVez","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16474579529235530068","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-18T07:51:25.9089884Z","duration":"PT0.0008907S","correlationId":"93101d3c-c0f5-4253-bda5-892a4ad420d8","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-000004"}]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_IeJh2MhstFvJh0o6OVqSKRW9ZzleXVez/operationStatuses/08585355274063004537?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '2675' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:51:27 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --generate-ssh-key --nsg-rule + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585355274063004537?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: + - Tue, 18 Oct 2022 07:51:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --generate-ssh-key --nsg-rule + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585355274063004537?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: + - Tue, 18 Oct 2022 07:52:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --generate-ssh-key --nsg-rule + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_IeJh2MhstFvJh0o6OVqSKRW9ZzleXVez","name":"vm_deploy_IeJh2MhstFvJh0o6OVqSKRW9ZzleXVez","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16474579529235530068","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-18T07:52:18.9048791Z","duration":"PT52.9967814S","correlationId":"93101d3c-c0f5-4253-bda5-892a4ad420d8","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-000004"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '3670' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:52:29 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --generate-ssh-key --nsg-rule + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-compute/28.0.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004?$expand=instanceView&api-version=2022-08-01 + response: + body: + string: "{\r\n \"name\": \"vm-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004\"\ + ,\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\"\ + : \"westus\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"\ + platformsettings.host_environment.service.platform_optedin_for_rootcerts\"\ + : \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"da707865-f2d1-4c50-9333-671ee4da4ada\"\ + ,\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\": \"vm-000004_disk1_9d2e891fe8d0456e92bd8207385a245c\"\ + ,\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/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/disks/vm-000004_disk1_9d2e891fe8d0456e92bd8207385a245c\"\ + \r\n },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\"\ + : 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\"\ + : {\r\n \"computerName\": \"vm-000004\",\r\n \"adminUsername\":\ + \ \"supadhyay\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\ + : true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n \ + \ {\r\n \"path\": \"/home/supadhyay/.ssh/authorized_keys\"\ + ,\r\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7DmFgToC3d0MlE8SOOFXZCK6SJ04QBWWBRvspL+shVcWsv0ufvwDZ74ewurSf23eWNs+NgWazMeg9GEjVuQVGS+1+UBHZZMm1bE7WTymA6Opck730pz5EEXj5+l0oSJVFqChEqYVZH9Umc9TThF0s+jqpajA8mFuAYPwT/sxK8xbz9/zglGUaGSeQ2xyyZh7APJkJVTkRrgHf61YX6v3NfkJKjnfy2bU8Lw/N1fLhcrtMLOYT55dDEMLvIrDD+SvYp3uA8pXsQm/UXzVtu+88v0lVgVXv09FAKzC1lDDYUbo3NYKIYJNRlnTt6M6sVEszQH23p7V+6erOC6syejCv\"\ + \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/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic\"\ + }]},\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\"\ + : {\r\n \"computerName\": \"vm-000004\",\r\n \"osName\": \"ubuntu\"\ + ,\r\n \"osVersion\": \"18.04\",\r\n \"vmAgent\": {\r\n \"\ + vmAgentVersion\": \"2.8.0.11\",\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:52:18+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\"\ + : []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\"\ + : \"vm-000004_disk1_9d2e891fe8d0456e92bd8207385a245c\",\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:51:56.9696645+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:52:09.0010204+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:51:55.4071971+00:00\"\r\n\ + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4118' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:52:31 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;31961 + 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-key --nsg-rule + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-network/21.0.1 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic?api-version=2022-01-01 + response: + body: + string: "{\r\n \"name\": \"vm-000004VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic\"\ + ,\r\n \"etag\": \"W/\\\"7b8389af-7612-4ac6-938d-07f9c0435f58\\\"\",\r\n \ + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"resourceGuid\": \"16377b40-aaee-40aa-b8fa-fc6162d04c2b\",\r\n \ + \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm-000004\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic/ipConfigurations/ipconfigvm-000004\"\ + ,\r\n \"etag\": \"W/\\\"7b8389af-7612-4ac6-938d-07f9c0435f58\\\"\"\ + ,\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/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP\"\ + \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET/subnets/vm-000004Subnet\"\ + \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\": \"sw1400jvwzeepca4p0zmx4qylc.dx.internal.cloudapp.net\"\ + \r\n },\r\n \"macAddress\": \"00-0D-3A-33-07-E4\",\r\n \"vnetEncryptionSupported\"\ + : false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\"\ + : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG\"\ + \r\n },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004\"\ + \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\":\ + \ \"westus\",\r\n \"kind\": \"Regular\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2641' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:52:33 GMT + etag: + - W/"7b8389af-7612-4ac6-938d-07f9c0435f58" + 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: + - 6d6ec5fb-9ce9-42d4-bbbe-c1cb7f597cad + 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-key --nsg-rule + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-network/21.0.1 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP?api-version=2022-01-01 + response: + body: + string: "{\r\n \"name\": \"vm-000004PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP\"\ + ,\r\n \"etag\": \"W/\\\"db946bf8-32eb-4195-9fb4-c4285558c6a9\\\"\",\r\n \ + \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\ + \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"fdca5354-b4da-4038-9bba-824a611d7245\"\ + ,\r\n \"ipAddress\": \"20.245.112.101\",\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/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic/ipConfigurations/ipconfigvm-000004\"\ + \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: + - '1007' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:52:35 GMT + etag: + - W/"db946bf8-32eb-4195-9fb4-c4285558c6a9" + 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: + - 5fbd51c5-1aa9-40df-83d4-daf6c0ae8f68 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation account create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001","name":"cli_test_automation_software_update_configuration000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:51:03Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '388' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:52:35 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "account-000002", "location": "westus", "properties": {"sku": + {"name": "Basic"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation account create + Connection: + - keep-alive + Content-Length: + - '90' + Content-Type: + - application/json + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002?api-version=2021-06-22 + response: + body: + string: '{"name":"account-000002","systemData":{"createdAt":"2022-10-18T07:52:43.65+00:00","lastModifiedAt":"2022-10-18T07:52:43.65+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://e099e221-e5ed-4760-872d-af02d0f63324.agentsvc.wus.azure-automation.net/accounts/e099e221-e5ed-4760-872d-af02d0f63324","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://e099e221-e5ed-4760-872d-af02d0f63324.jrds.wus.azure-automation.net/automationAccounts/e099e221-e5ed-4760-872d-af02d0f63324","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T07:52:43.65+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:52:43.65+00:00"}}' + headers: + cache-control: + - no-cache + content-length: + - '1159' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:52:45 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002?api-version=2021-06-22 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: '{"properties": {"updateConfiguration": {"operatingSystem": "Windows", "windows": + {"includedUpdateClassifications": "Critical", "excludedKbNumbers": ["16800", + "16800"], "includedKbNumbers": ["15000", "15000"], "rebootSetting": "IfRequired"}, + "duration": "PT2H", "azureVirtualMachines": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"], + "nonAzureComputerNames": ["nonvm1", "nonvm2"], "targets": {"azureQueries": [{"scope": + ["/subscriptions/00000000-0000-0000-0000-000000000000"], "locations": ["eastus", + "westus"], "tagSettings": {"tags": {"tag": ["tag1", "tag2"]}}}]}}, "scheduleInfo": + {"startTime": "2022-10-23T12:30:00.000Z", "expiryTime": "2022-10-30T12:30:00.000Z", + "nextRun": "2022-10-25T12:30:00.000Z", "interval": 1, "frequency": "Hour", "timeZone": + "UTC+08:00", "description": "test"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation software-update-configuration create + Connection: + - keep-alive + Content-Length: + - '925' + Content-Type: + - application/json + ParameterSetName: + - -n -g --automation-account-name --description --frequency --interval --operating-system + --excluded-kb-numbers --included-kb-numbers --included-update-classifications + --duration --azure-virtual-machines --time-zone --start-time --expiry-time + --next-run --non-azure-computer-names --reboot-setting --azure-queries-scope + --azure-queries-location --azure-queries-tags + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003?api-version=2019-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"scheduleInfo":{"description":"test","startTime":"2022-10-23T12:30:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"2022-10-30T12:30:00+08:00","expiryTimeOffsetMinutes":480.0,"isEnabled":true,"nextRun":"2022-10-23T12:30:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T07:52:47.3866667+00:00","lastModifiedTime":"2022-10-18T07:52:47.3866667+00:00","timeZone":"UTC+08:00","advancedSchedule":null},"provisioningState":"Provisioning","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2022-10-18T07:52:47.45+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:52:47.45+00:00"}}' + headers: + cache-control: + - no-cache + content-length: + - '1647' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:52:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003?api-version=2019-06-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - automation software-update-configuration list + Connection: + - keep-alive + ParameterSetName: + - -g --automation-account-name + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations?api-version=2019-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"frequency":"Hour","startTime":"2022-10-23T12:30:00+08:00","creationTime":"2022-10-18T07:52:47.45+00:00","lastModifiedTime":"2022-10-18T07:52:47.45+00:00","provisioningState":"Provisioning","nextRun":"2022-10-23T12:30:00+08:00","tasks":null}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1233' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:52:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - automation software-update-configuration show + Connection: + - keep-alive + ParameterSetName: + - -n -g --automation-account-name -n + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003?api-version=2019-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"scheduleInfo":{"description":"test","startTime":"2022-10-23T12:30:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"2022-10-30T12:30:00+08:00","expiryTimeOffsetMinutes":480.0,"isEnabled":true,"nextRun":"2022-10-23T12:30:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T07:52:47.3866667+00:00","lastModifiedTime":"2022-10-18T07:52:47.3866667+00:00","timeZone":"UTC+08:00","advancedSchedule":null},"provisioningState":"Provisioning","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2022-10-18T07:52:47.45+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:52:47.45+00:00"}}' + headers: + cache-control: + - no-cache + content-length: + - '1647' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:52:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - automation software-update-configuration runs list + Connection: + - keep-alive + ParameterSetName: + - -g --automation-account-name + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurationRuns?api-version=2019-06-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:52:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - automation software-update-configuration machine-runs list + Connection: + - keep-alive + ParameterSetName: + - -g --automation-account-name + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurationMachineRuns?api-version=2019-06-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Oct 2022 07:52:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + 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: + - automation software-update-configuration delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g --automation-account-name -y + User-Agent: + - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003?api-version=2019-06-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 18 Oct 2022 07:52:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' + status: + code: 200 + message: OK +version: 1 diff --git a/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py b/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py index da816634717..9dac00d1b8e 100644 --- a/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py +++ b/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py @@ -167,10 +167,10 @@ def test_automation_schedule(self, resource_group): }) self.cmd('automation account create -n {account_name} -g {rg}') - self.cmd('automation schedule create -n {schedule_name} -g {rg} --automation-account-name {account_name} --description test --frequency Hour --interval 1 --start-time 2022-10-18 14:38:00 --time-zone UTC+08:00', checks=[ + self.cmd('automation schedule create -n {schedule_name} -g {rg} --automation-account-name {account_name} --description test --frequency Hour --interval 1 --start-time 2022-10-19 15:38:00 --time-zone UTC+08:00', checks=[ self.check('frequency', 'Hour'), self.check('interval', '1'), - self.check('startTime', '2022-10-18T17:08:00+08:00'), + self.check('startTime', '2022-10-19T18:08:00+08:00'), self.check('timeZone', 'UTC+08:00'), self.check('description', 'test'), self.check('isEnabled', True) @@ -178,7 +178,7 @@ def test_automation_schedule(self, resource_group): self.cmd('automation schedule update -n {schedule_name} -g {rg} --automation-account-name {account_name} --description test1 --is-enabled false', checks=[ self.check('frequency', 'Hour'), self.check('interval', '1'), - self.check('startTime', '2022-10-18T17:08:00+08:00'), + self.check('startTime', '2022-10-19T18:08:00+08:00'), self.check('timeZone', 'UTC+08:00'), self.check('description', 'test1'), self.check('isEnabled', False) @@ -186,7 +186,7 @@ def test_automation_schedule(self, resource_group): self.cmd('automation schedule list -g {rg} --automation-account-name {account_name} ', checks=[ self.check('[0].frequency', 'Hour'), self.check('[0].interval', '1'), - self.check('[0].startTime', '2022-10-18T17:08:00+08:00'), + self.check('[0].startTime', '2022-10-19T18:08:00+08:00'), self.check('[0].timeZone', 'UTC+08:00'), self.check('[0].description', 'test1'), self.check('[0].isEnabled', False) @@ -194,7 +194,7 @@ def test_automation_schedule(self, resource_group): self.cmd('automation schedule show -n {schedule_name} -g {rg} --automation-account-name {account_name} ', checks=[ self.check('frequency', 'Hour'), self.check('interval', '1'), - self.check('startTime', '2022-10-18T17:08:00+08:00'), + self.check('startTime', '2022-10-19T18:08:00+08:00'), self.check('timeZone', 'UTC+08:00'), self.check('description', 'test1'), self.check('isEnabled', False), @@ -215,12 +215,12 @@ def test_automation_software_update_configuration(self, resource_group): 'vm_id': vm_id }) self.cmd('automation account create -n {account_name} -g {rg}') - self.cmd('automation software-update-configuration create -n {conf_name} -g {rg} --automation-account-name {account_name} --description test --frequency Hour --interval 1 --operating-system windows --excluded-kb-numbers 16800 16800 --included-kb-numbers 15000 15000 --included-update-classifications Critical --duration pT2H0M --azure-virtual-machines {vm_id} --time-zone UTC+08:00 --start-time 2022-08-23 18:00:00 --expiry-time 2022-08-30 18:00:00 --next-run 2022-08-25 18:00:00 --non-azure-computer-names nonvm1 nonvm2 --reboot-setting IfRequired --azure-queries-scope /subscriptions/00000000-0000-0000-0000-000000000000 --azure-queries-location eastus westus --azure-queries-tags tag1 tag2', checks=[ + self.cmd('automation software-update-configuration create -n {conf_name} -g {rg} --automation-account-name {account_name} --description test --frequency Hour --interval 1 --operating-system windows --excluded-kb-numbers 16800 16800 --included-kb-numbers 15000 15000 --included-update-classifications Critical --duration pT2H0M --azure-virtual-machines {vm_id} --time-zone UTC+08:00 --start-time 2022-10-23 18:00:00 --expiry-time 2022-10-30 18:00:00 --next-run 2022-10-25 18:00:00 --non-azure-computer-names nonvm1 nonvm2 --reboot-setting IfRequired --azure-queries-scope /subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a --azure-queries-location eastus westus --azure-queries-tags tag1 tag2', checks=[ self.check('name', '{conf_name}'), self.check('scheduleInfo.description', 'test'), self.check('scheduleInfo.frequency', 'Hour'), self.check('scheduleInfo.interval', '1'), - self.check('scheduleInfo.startTime', '2022-08-23T10:00:00+08:00'), + self.check('scheduleInfo.startTime', '2022-10-23T12:30:00+08:00'), self.check('scheduleInfo.timeZone', 'UTC+08:00'), self.check('scheduleInfo.description', 'test'), self.check('scheduleInfo.isEnabled', True), @@ -229,7 +229,7 @@ def test_automation_software_update_configuration(self, resource_group): self.check('updateConfiguration.nonAzureComputerNames', ['nonvm1', 'nonvm2']), self.check('updateConfiguration.operatingSystem', 'Windows'), self.check('updateConfiguration.targets.azureQueries[0].locations', ['eastus', 'westus']), - self.check('updateConfiguration.targets.azureQueries[0].scope', ['/subscriptions/00000000-0000-0000-0000-000000000000']), + self.check('updateConfiguration.targets.azureQueries[0].scope', ['/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a']), self.check('updateConfiguration.targets.azureQueries[0].tagSettings.tags.tag', ['tag1','tag2']), self.check('updateConfiguration.windows.excludedKbNumbers', ['16800', '16800']), self.check('updateConfiguration.windows.includedKbNumbers', ['15000', '15000']), @@ -243,7 +243,7 @@ def test_automation_software_update_configuration(self, resource_group): self.check('value[0].updateConfiguration.nonAzureComputerNames', ['nonvm1', 'nonvm2']), self.check('value[0].updateConfiguration.operatingSystem', 'Windows'), self.check('value[0].updateConfiguration.targets.azureQueries[0].locations', ['eastus', 'westus']), - self.check('value[0].updateConfiguration.targets.azureQueries[0].scope', ['/subscriptions/00000000-0000-0000-0000-000000000000']), + self.check('value[0].updateConfiguration.targets.azureQueries[0].scope', ['/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a']), self.check('value[0].updateConfiguration.targets.azureQueries[0].tagSettings.tags.tag', ['tag1', 'tag2']), self.check('value[0].updateConfiguration.windows.excludedKbNumbers', ['16800', '16800']), self.check('value[0].updateConfiguration.windows.includedKbNumbers', ['15000', '15000']), @@ -255,7 +255,7 @@ def test_automation_software_update_configuration(self, resource_group): self.check('scheduleInfo.description', 'test'), self.check('scheduleInfo.frequency', 'Hour'), self.check('scheduleInfo.interval', '1'), - self.check('scheduleInfo.startTime', '2022-08-23T10:00:00+08:00'), + self.check('scheduleInfo.startTime', '2022-10-23T12:30:00+08:00'), self.check('scheduleInfo.timeZone', 'UTC+08:00'), self.check('scheduleInfo.description', 'test'), self.check('scheduleInfo.isEnabled', True), @@ -264,7 +264,7 @@ def test_automation_software_update_configuration(self, resource_group): self.check('updateConfiguration.nonAzureComputerNames', ['nonvm1', 'nonvm2']), self.check('updateConfiguration.operatingSystem', 'Windows'), self.check('updateConfiguration.targets.azureQueries[0].locations', ['eastus', 'westus']), - self.check('updateConfiguration.targets.azureQueries[0].scope', ['/subscriptions/00000000-0000-0000-0000-000000000000']), + self.check('updateConfiguration.targets.azureQueries[0].scope', ['/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a']), self.check('updateConfiguration.targets.azureQueries[0].tagSettings.tags.tag', ['tag1', 'tag2']), self.check('updateConfiguration.windows.excludedKbNumbers', ['16800', '16800']), self.check('updateConfiguration.windows.includedKbNumbers', ['15000', '15000']), From 06f9a99c1e87c681d410d47642b75c59ddecf3d3 Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Tue, 18 Oct 2022 14:03:26 +0530 Subject: [PATCH 06/10] Updated Test cases recording with latest test cases --- .../latest/recordings/test_automation.yaml | 178 +++++++++--------- .../recordings/test_automation_schedule.yaml | 34 ++-- ...omation_software_update_configuration.yaml | 136 ++++++------- 3 files changed, 174 insertions(+), 174 deletions(-) diff --git a/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml b/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml index e0267fce1f8..7957d8c43ae 100644 --- a/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml +++ b/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml @@ -441,7 +441,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:10 GMT + - Tue, 18 Oct 2022 08:13:02 GMT expires: - '-1' pragma: @@ -479,16 +479,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 response: body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T07:51:16.9+00:00","lastModifiedAt":"2022-10-18T07:51:16.9+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.agentsvc.wus2.azure-automation.net/accounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.jrds.wus2.azure-automation.net/automationAccounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T07:51:16.9+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:51:16.9+00:00"}}' + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T08:13:08.8266667+00:00","lastModifiedAt":"2022-10-18T08:13:08.8266667+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.agentsvc.wus2.azure-automation.net/accounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.jrds.wus2.azure-automation.net/automationAccounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T08:13:08.8266667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:13:08.8266667+00:00"}}' headers: cache-control: - no-cache content-length: - - '1139' + - '1163' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:18 GMT + - Tue, 18 Oct 2022 08:13:10 GMT expires: - '-1' location: @@ -502,7 +502,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 201 message: Created @@ -525,20 +525,20 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 response: body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T07:51:16.9+00:00","lastModifiedAt":"2022-10-18T07:51:16.9+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.agentsvc.wus2.azure-automation.net/accounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.jrds.wus2.azure-automation.net/automationAccounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T07:51:16.9+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:51:16.9+00:00"}}' + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T08:13:08.8266667+00:00","lastModifiedAt":"2022-10-18T08:13:08.8266667+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.agentsvc.wus2.azure-automation.net/accounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.jrds.wus2.azure-automation.net/automationAccounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T08:13:08.8266667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:13:08.8266667+00:00"}}' headers: cache-control: - no-cache content-length: - - '1171' + - '1195' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:20 GMT + - Tue, 18 Oct 2022 08:13:13 GMT expires: - '-1' ocp-automation-accountid: - - a2daec85-fc79-4ce2-bfc6-c830540d235e + - 2b67e50d-93f5-4381-a0df-0265a410c8b7 pragma: - no-cache server: @@ -578,16 +578,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 response: body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T07:51:16.9+00:00","lastModifiedAt":"2022-10-18T07:51:23.18+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.agentsvc.wus2.azure-automation.net/accounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.jrds.wus2.azure-automation.net/automationAccounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T07:51:16.9+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:51:23.18+00:00"}}' + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T08:13:08.8266667+00:00","lastModifiedAt":"2022-10-18T08:13:14.92+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.agentsvc.wus2.azure-automation.net/accounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.jrds.wus2.azure-automation.net/automationAccounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T08:13:08.8266667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:13:14.92+00:00"}}' headers: cache-control: - no-cache content-length: - - '1148' + - '1160' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:27 GMT + - Tue, 18 Oct 2022 08:13:18 GMT expires: - '-1' pragma: @@ -603,7 +603,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK @@ -626,20 +626,20 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 response: body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T07:51:16.9+00:00","lastModifiedAt":"2022-10-18T07:51:23.18+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.agentsvc.wus2.azure-automation.net/accounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://a2daec85-fc79-4ce2-bfc6-c830540d235e.jrds.wus2.azure-automation.net/automationAccounts/a2daec85-fc79-4ce2-bfc6-c830540d235e","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T07:51:16.9+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:51:23.18+00:00"}}' + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T08:13:08.8266667+00:00","lastModifiedAt":"2022-10-18T08:13:14.92+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.agentsvc.wus2.azure-automation.net/accounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.jrds.wus2.azure-automation.net/automationAccounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T08:13:08.8266667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:13:14.92+00:00"}}' headers: cache-control: - no-cache content-length: - - '1180' + - '1192' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:29 GMT + - Tue, 18 Oct 2022 08:13:19 GMT expires: - '-1' ocp-automation-accountid: - - a2daec85-fc79-4ce2-bfc6-c830540d235e + - 2b67e50d-93f5-4381-a0df-0265a410c8b7 pragma: - no-cache server: @@ -674,16 +674,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts?api-version=2021-06-22 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","location":"westus2","name":"test-account-000002","type":"Microsoft.Automation/AutomationAccounts","tags":{"A":"a"},"properties":{"creationTime":"2022-10-18T07:51:16.9+00:00","lastModifiedTime":"2022-10-18T07:51:23.18+00:00","state":"Ok","disableLocalAuth":false}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","location":"westus2","name":"test-account-000002","type":"Microsoft.Automation/AutomationAccounts","tags":{"A":"a"},"properties":{"creationTime":"2022-10-18T08:13:08.8266667+00:00","lastModifiedTime":"2022-10-18T08:13:14.92+00:00","state":"Ok","disableLocalAuth":false}}]}' headers: cache-control: - no-cache content-length: - - '448' + - '454' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:30 GMT + - Tue, 18 Oct 2022 08:13:20 GMT expires: - '-1' pragma: @@ -720,7 +720,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001","name":"cli_test_automation_000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:51:03Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001","name":"cli_test_automation_000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T08:12:52Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -729,7 +729,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:31 GMT + - Tue, 18 Oct 2022 08:13:21 GMT expires: - '-1' pragma: @@ -767,18 +767,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003?api-version=2018-06-30 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"638016762987800000\"","properties":{"description":null,"logVerbose":false,"logProgress":false,"logActivityTrace":0,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-10-18T07:51:38.78+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:51:38.78+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"638016776108066667\"","properties":{"description":null,"logVerbose":false,"logProgress":false,"logActivityTrace":0,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-10-18T08:13:30.8066667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:13:30.8066667+00:00"}}' headers: cache-control: - no-cache content-length: - - '711' + - '721' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:40 GMT + - Tue, 18 Oct 2022 08:13:31 GMT etag: - - '"638016762987800000"' + - '"638016776108066667"' expires: - '-1' location: @@ -792,7 +792,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1195' status: code: 201 message: Created @@ -821,18 +821,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003?api-version=2018-06-30 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"638016763018333333\"","properties":{"description":null,"logVerbose":true,"logProgress":true,"logActivityTrace":1,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-10-18T07:51:38.78+00:00","lastModifiedBy":"{scrubbed}","lastModifiedTime":"2022-10-18T07:51:41.8333333+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"638016776159866667\"","properties":{"description":null,"logVerbose":true,"logProgress":true,"logActivityTrace":1,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-10-18T08:13:30.8066667+00:00","lastModifiedBy":"{scrubbed}","lastModifiedTime":"2022-10-18T08:13:35.9866667+00:00"}}' headers: cache-control: - no-cache content-length: - - '722' + - '727' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:41 GMT + - Tue, 18 Oct 2022 08:13:35 GMT etag: - - '"638016763018333333"' + - '"638016776159866667"' expires: - '-1' pragma: @@ -848,7 +848,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK @@ -882,14 +882,14 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 07:51:43 GMT + - Tue, 18 Oct 2022 08:13:37 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/75955a22-5b9e-4384-a688-1e1b8d1c5a29?api-version=2018-06-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/8239e13c-b828-453f-ba69-c3e04e87b90d?api-version=2018-06-30 ocp-automation-operationresultid: - - 75955a22-5b9e-4384-a688-1e1b8d1c5a29 - - 75955a22-5b9e-4384-a688-1e1b8d1c5a29 + - 8239e13c-b828-453f-ba69-c3e04e87b90d + - 8239e13c-b828-453f-ba69-c3e04e87b90d pragma: - no-cache server: @@ -919,7 +919,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/75955a22-5b9e-4384-a688-1e1b8d1c5a29?api-version=2018-06-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/8239e13c-b828-453f-ba69-c3e04e87b90d?api-version=2018-06-30 response: body: string: '' @@ -931,7 +931,7 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:50 GMT + - Tue, 18 Oct 2022 08:13:45 GMT expires: - '-1' pragma: @@ -973,14 +973,14 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 07:51:53 GMT + - Tue, 18 Oct 2022 08:13:47 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/3a7b0639-5c77-47d2-ba80-efe08d1a4922?api-version=2018-06-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/7980626a-cb04-450b-95c2-ab940f79bb65?api-version=2018-06-30 ocp-automation-operationresultid: - - 3a7b0639-5c77-47d2-ba80-efe08d1a4922 - - 3a7b0639-5c77-47d2-ba80-efe08d1a4922 + - 7980626a-cb04-450b-95c2-ab940f79bb65 + - 7980626a-cb04-450b-95c2-ab940f79bb65 pragma: - no-cache server: @@ -1010,7 +1010,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/3a7b0639-5c77-47d2-ba80-efe08d1a4922?api-version=2018-06-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/7980626a-cb04-450b-95c2-ab940f79bb65?api-version=2018-06-30 response: body: string: '' @@ -1022,7 +1022,7 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:58 GMT + - Tue, 18 Oct 2022 08:13:52 GMT expires: - '-1' pragma: @@ -1059,7 +1059,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T07:52:01.0221744+00:00","lastModifiedAt":"2022-10-18T07:52:01.0221744+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T08:13:55.7558192+00:00","lastModifiedAt":"2022-10-18T08:13:55.7558192+00:00"}}' headers: cache-control: - no-cache @@ -1068,7 +1068,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:01 GMT + - Tue, 18 Oct 2022 08:13:55 GMT expires: - '-1' location: @@ -1082,7 +1082,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 201 message: Created @@ -1109,16 +1109,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T07:52:01.0221744+00:00","lastModifiedAt":"2022-10-18T07:52:03.037821+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T08:13:55.7558192+00:00","lastModifiedAt":"2022-10-18T08:13:57.6464527+00:00"}}' headers: cache-control: - no-cache content-length: - - '508' + - '509' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:02 GMT + - Tue, 18 Oct 2022 08:13:57 GMT expires: - '-1' pragma: @@ -1157,16 +1157,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T07:52:01.0221744+00:00","lastModifiedAt":"2022-10-18T07:52:03.037821+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T08:13:55.7558192+00:00","lastModifiedAt":"2022-10-18T08:13:57.6464527+00:00"}}' headers: cache-control: - no-cache content-length: - - '508' + - '509' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:04 GMT + - Tue, 18 Oct 2022 08:13:58 GMT expires: - '-1' pragma: @@ -1203,16 +1203,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups?api-version=2022-08-08 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T07:52:01.0221744+00:00","lastModifiedAt":"2022-10-18T07:52:03.037821+00:00"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T08:13:55.7558192+00:00","lastModifiedAt":"2022-10-18T08:13:57.6464527+00:00"}}]}' headers: cache-control: - no-cache content-length: - - '520' + - '521' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:06 GMT + - Tue, 18 Oct 2022 08:13:59 GMT expires: - '-1' pragma: @@ -1258,7 +1258,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:08 GMT + - Tue, 18 Oct 2022 08:14:01 GMT expires: - '-1' pragma: @@ -1304,7 +1304,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 07:52:11 GMT + - Tue, 18 Oct 2022 08:14:02 GMT expires: - '-1' pragma: @@ -1316,7 +1316,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 200 message: OK @@ -1343,16 +1343,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T07:52:12.95+00:00","lastModifiedTime":"2022-10-18T07:52:13.0166667+00:00","error":{"code":null,"message":null},"provisioningState":"Creating","isComposite":false}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T08:14:04.9+00:00","lastModifiedTime":"2022-10-18T08:14:04.96+00:00","error":{"code":null,"message":null},"provisioningState":"Creating","isComposite":false}}' headers: cache-control: - no-cache content-length: - - '613' + - '607' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:13 GMT + - Tue, 18 Oct 2022 08:14:05 GMT expires: - '-1' location: @@ -1366,7 +1366,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -1389,16 +1389,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 response: body: - string: '{"name":"py3-package-000005","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T07:52:12.95+00:00","lastModifiedTime":"2022-10-18T07:52:13.0166667+00:00","error":{"code":null,"message":""},"provisioningState":"Creating","isComposite":false}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T08:14:04.9+00:00","lastModifiedTime":"2022-10-18T08:14:04.96+00:00","error":{"code":null,"message":""},"provisioningState":"Creating","isComposite":false}}' headers: cache-control: - no-cache content-length: - - '611' + - '605' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:13 GMT + - Tue, 18 Oct 2022 08:14:08 GMT expires: - '-1' pragma: @@ -1419,8 +1419,8 @@ interactions: - request: body: '{"location": "westus2", "properties": {"activityCount": 0, "contentLink": {"uri": "https://files.pythonhosted.org/packages/7f/e2/85dfb9f7364cbd7a9213caea0e91fc948da3c912a2b222a3e43bc9cc6432/requires.io-0.2.6-py2.py3-none-any.whl"}, - "creationTime": "2022-10-18T07:52:12.95+00:00", "error": {"message": ""}, "isComposite": - false, "isGlobal": false, "lastModifiedTime": "2022-10-18T07:52:13.0166667+00:00", + "creationTime": "2022-10-18T08:14:04.9+00:00", "error": {"message": ""}, "isComposite": + false, "isGlobal": false, "lastModifiedTime": "2022-10-18T08:14:04.96+00:00", "provisioningState": "Creating", "sizeInBytes": 0}, "tags": {}}' headers: Accept: @@ -1432,7 +1432,7 @@ interactions: Connection: - keep-alive Content-Length: - - '467' + - '461' Content-Type: - application/json ParameterSetName: @@ -1443,16 +1443,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 response: body: - string: '{"name":"py3-package-000005","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T07:52:12.95+00:00","lastModifiedTime":"2022-10-18T07:52:15.1266667+00:00","error":{"code":null,"message":null},"provisioningState":"Creating","isComposite":false}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T08:14:04.9+00:00","lastModifiedTime":"2022-10-18T08:14:12.89+00:00","error":{"code":null,"message":null},"provisioningState":"Creating","isComposite":false}}' headers: cache-control: - no-cache content-length: - - '613' + - '607' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:14 GMT + - Tue, 18 Oct 2022 08:14:12 GMT expires: - '-1' pragma: @@ -1468,7 +1468,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 200 message: OK @@ -1491,16 +1491,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T07:52:12.95+00:00","lastModifiedTime":"2022-10-18T07:52:15.1266667+00:00","error":{"code":null,"message":""},"provisioningState":"Creating","isComposite":false}}' + string: '{"name":"py3-package-000005","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T08:14:04.9+00:00","lastModifiedTime":"2022-10-18T08:14:12.89+00:00","error":{"code":null,"message":""},"provisioningState":"Creating","isComposite":false}}' headers: cache-control: - no-cache content-length: - - '611' + - '605' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:16 GMT + - Tue, 18 Oct 2022 08:14:15 GMT expires: - '-1' pragma: @@ -1537,16 +1537,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages?api-version=2022-08-08 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T07:52:12.95+00:00","lastModifiedTime":"2022-10-18T07:52:15.1266667+00:00","provisioningState":"Creating","isComposite":false}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T08:14:04.9+00:00","lastModifiedTime":"2022-10-18T08:14:12.89+00:00","provisioningState":"Creating","isComposite":false}}]}' headers: cache-control: - no-cache content-length: - - '480' + - '474' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:18 GMT + - Tue, 18 Oct 2022 08:14:18 GMT expires: - '-1' pragma: @@ -1592,7 +1592,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 07:52:19 GMT + - Tue, 18 Oct 2022 08:14:20 GMT expires: - '-1' pragma: @@ -1631,16 +1631,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2019-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"5062d867-fe93-49d0-a3d4-a6d9e0130787","creationTime":"2022-10-18T07:52:22.2+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":null,"startTime":null,"endTime":null,"lastModifiedTime":"2022-10-18T07:52:22.2+00:00","lastStatusModifiedTime":"2022-10-18T07:52:22.2+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"01042994-570c-49f4-8510-7756e9fa20d5","creationTime":"2022-10-18T08:14:21.39+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":null,"startTime":null,"endTime":null,"lastModifiedTime":"2022-10-18T08:14:21.39+00:00","lastStatusModifiedTime":"2022-10-18T08:14:21.39+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' headers: cache-control: - no-cache content-length: - - '732' + - '735' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:22 GMT + - Tue, 18 Oct 2022 08:14:20 GMT expires: - '-1' location: @@ -1677,7 +1677,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs?api-version=2019-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"5062d867-fe93-49d0-a3d4-a6d9e0130787","runbook":{"name":"test-runbook-000003"},"provisioningState":"Processing","status":"New","creationTime":"2022-10-18T07:52:22.2148966+00:00","startTime":null,"lastModifiedTime":"2022-10-18T07:52:22.2148966+00:00","endTime":null,"runOn":null}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"01042994-570c-49f4-8510-7756e9fa20d5","runbook":{"name":"test-runbook-000003"},"provisioningState":"Processing","status":"New","creationTime":"2022-10-18T08:14:21.4035459+00:00","startTime":null,"lastModifiedTime":"2022-10-18T08:14:21.4035459+00:00","endTime":null,"runOn":null}}]}' headers: cache-control: - no-cache @@ -1686,7 +1686,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:24 GMT + - Tue, 18 Oct 2022 08:14:22 GMT expires: - '-1' pragma: @@ -1725,7 +1725,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2019-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"5062d867-fe93-49d0-a3d4-a6d9e0130787","creationTime":"2022-10-18T07:52:22.2148966+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":"{scrubbed}","startTime":null,"endTime":null,"lastModifiedTime":"2022-10-18T07:52:22.2148966+00:00","lastStatusModifiedTime":"2022-10-18T07:52:22.2148966+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"01042994-570c-49f4-8510-7756e9fa20d5","creationTime":"2022-10-18T08:14:21.4035459+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":"{scrubbed}","startTime":null,"endTime":null,"lastModifiedTime":"2022-10-18T08:14:21.4035459+00:00","lastStatusModifiedTime":"2022-10-18T08:14:21.4035459+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' headers: cache-control: - no-cache @@ -1734,7 +1734,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:26 GMT + - Tue, 18 Oct 2022 08:14:25 GMT expires: - '-1' pragma: @@ -1782,7 +1782,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 07:52:39 GMT + - Tue, 18 Oct 2022 08:14:36 GMT expires: - '-1' pragma: @@ -1794,7 +1794,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14997' status: code: 200 message: OK diff --git a/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml b/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml index 6ee03fbf636..3e110d7d54f 100644 --- a/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml +++ b/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml @@ -18,7 +18,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_schedule000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001","name":"cli_test_automation_schedule000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:51:03Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001","name":"cli_test_automation_schedule000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T08:12:52Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:07 GMT + - Tue, 18 Oct 2022 08:12:59 GMT expires: - '-1' pragma: @@ -65,7 +65,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002?api-version=2021-06-22 response: body: - string: '{"name":"account-000002","systemData":{"createdAt":"2022-10-18T07:51:13.36+00:00","lastModifiedAt":"2022-10-18T07:51:13.36+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://f670520d-04b5-4d74-87c0-98188397a743.agentsvc.wus.azure-automation.net/accounts/f670520d-04b5-4d74-87c0-98188397a743","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://f670520d-04b5-4d74-87c0-98188397a743.jrds.wus.azure-automation.net/automationAccounts/f670520d-04b5-4d74-87c0-98188397a743","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T07:51:13.36+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:51:13.36+00:00"}}' + string: '{"name":"account-000002","systemData":{"createdAt":"2022-10-18T08:13:05.56+00:00","lastModifiedAt":"2022-10-18T08:13:05.56+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://d1ae90ee-2861-40c3-93b5-ed23a20f2750.agentsvc.wus.azure-automation.net/accounts/d1ae90ee-2861-40c3-93b5-ed23a20f2750","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://d1ae90ee-2861-40c3-93b5-ed23a20f2750.jrds.wus.azure-automation.net/automationAccounts/d1ae90ee-2861-40c3-93b5-ed23a20f2750","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T08:13:05.56+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:13:05.56+00:00"}}' headers: cache-control: - no-cache @@ -74,7 +74,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:15 GMT + - Tue, 18 Oct 2022 08:13:07 GMT expires: - '-1' location: @@ -88,7 +88,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/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":true,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T07:51:19.17+00:00","lastModifiedTime":"2022-10-18T07:51:19.17+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":true,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T08:13:12.81+00:00","lastModifiedTime":"2022-10-18T08:13:12.81+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' headers: cache-control: - no-cache @@ -127,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:19 GMT + - Tue, 18 Oct 2022 08:13:11 GMT expires: - '-1' location: @@ -141,7 +141,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -169,7 +169,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T07:51:19.17+00:00","lastModifiedTime":"2022-10-18T07:51:19.17+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T08:13:12.81+00:00","lastModifiedTime":"2022-10-18T08:13:12.81+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' headers: cache-control: - no-cache @@ -178,7 +178,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:22 GMT + - Tue, 18 Oct 2022 08:13:16 GMT expires: - '-1' pragma: @@ -194,7 +194,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK @@ -217,7 +217,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules?api-version=2020-01-13-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T07:51:19.17+00:00","lastModifiedTime":"2022-10-18T07:51:23.4633333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T08:13:12.81+00:00","lastModifiedTime":"2022-10-18T08:13:16.6733333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}]}' headers: cache-control: - no-cache @@ -226,7 +226,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:26 GMT + - Tue, 18 Oct 2022 08:13:18 GMT expires: - '-1' pragma: @@ -263,7 +263,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T07:51:19.17+00:00","lastModifiedTime":"2022-10-18T07:51:23.4633333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T08:13:12.81+00:00","lastModifiedTime":"2022-10-18T08:13:16.6733333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' headers: cache-control: - no-cache @@ -272,7 +272,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:29 GMT + - Tue, 18 Oct 2022 08:13:21 GMT expires: - '-1' pragma: @@ -318,7 +318,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 07:51:30 GMT + - Tue, 18 Oct 2022 08:13:23 GMT expires: - '-1' pragma: @@ -330,7 +330,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14999' status: code: 200 message: OK diff --git a/src/automation/azext_automation/tests/latest/recordings/test_automation_software_update_configuration.yaml b/src/automation/azext_automation/tests/latest/recordings/test_automation_software_update_configuration.yaml index d69e2b39759..133fbd03afc 100644 --- a/src/automation/azext_automation/tests/latest/recordings/test_automation_software_update_configuration.yaml +++ b/src/automation/azext_automation/tests/latest/recordings/test_automation_software_update_configuration.yaml @@ -18,7 +18,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001","name":"cli_test_automation_software_update_configuration000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:51:03Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001","name":"cli_test_automation_software_update_configuration000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T08:12:52Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:08 GMT + - Tue, 18 Oct 2022 08:13:01 GMT expires: - '-1' pragma: @@ -124,13 +124,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:10 GMT + - Tue, 18 Oct 2022 08:13:02 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Tue, 18 Oct 2022 07:56:10 GMT + - Tue, 18 Oct 2022 08:18:02 GMT source-age: - - '203' + - '0' strict-transport-security: - max-age=31536000 vary: @@ -144,15 +144,15 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - dbd8c3ff85c927bd8097205ad069fa8c39bba714 + - 2ee83d2393733d6caca5fc715d1df7f2784efd93 x-frame-options: - deny x-github-request-id: - 0802:27E7:2B5028:3A34D4:634E3D7C x-served-by: - - cache-ccu830027-CCU + - cache-ccu830021-CCU x-timer: - - S1666079470.074945,VS0,VE1 + - S1666080782.305508,VS0,VE314 x-xss-protection: - 1; mode=block status: @@ -188,7 +188,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:10 GMT + - Tue, 18 Oct 2022 08:13:03 GMT expires: - '-1' pragma: @@ -205,7 +205,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43992 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43995 status: code: 200 message: OK @@ -251,7 +251,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:12 GMT + - Tue, 18 Oct 2022 08:13:05 GMT expires: - '-1' pragma: @@ -268,7 +268,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73992 + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73995 status: code: 200 message: OK @@ -300,7 +300,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:13 GMT + - Tue, 18 Oct 2022 08:13:06 GMT expires: - '-1' pragma: @@ -365,18 +365,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_IeJh2MhstFvJh0o6OVqSKRW9ZzleXVez","name":"vm_deploy_IeJh2MhstFvJh0o6OVqSKRW9ZzleXVez","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16474579529235530068","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-18T07:51:25.9089884Z","duration":"PT0.0008907S","correlationId":"93101d3c-c0f5-4253-bda5-892a4ad420d8","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-000004"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_w7mPFnAaMYBDJD0f3uPvJyjJ5E9sXLLJ","name":"vm_deploy_w7mPFnAaMYBDJD0f3uPvJyjJ5E9sXLLJ","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3403735216624841103","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-18T08:13:16.4662816Z","duration":"PT0.0001194S","correlationId":"f47379ab-0ece-4426-9968-d461a32ab661","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-000004"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_IeJh2MhstFvJh0o6OVqSKRW9ZzleXVez/operationStatuses/08585355274063004537?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_w7mPFnAaMYBDJD0f3uPvJyjJ5E9sXLLJ/operationStatuses/08585355260935743887?api-version=2021-04-01 cache-control: - no-cache content-length: - - '2675' + - '2674' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:27 GMT + - Tue, 18 Oct 2022 08:13:18 GMT expires: - '-1' pragma: @@ -386,7 +386,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -406,7 +406,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585355274063004537?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585355260935743887?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -418,7 +418,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:51:58 GMT + - Tue, 18 Oct 2022 08:13:48 GMT expires: - '-1' pragma: @@ -448,7 +448,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585355274063004537?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585355260935743887?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -460,7 +460,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:28 GMT + - Tue, 18 Oct 2022 08:14:19 GMT expires: - '-1' pragma: @@ -493,16 +493,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_IeJh2MhstFvJh0o6OVqSKRW9ZzleXVez","name":"vm_deploy_IeJh2MhstFvJh0o6OVqSKRW9ZzleXVez","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16474579529235530068","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-18T07:52:18.9048791Z","duration":"PT52.9967814S","correlationId":"93101d3c-c0f5-4253-bda5-892a4ad420d8","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-000004"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_w7mPFnAaMYBDJD0f3uPvJyjJ5E9sXLLJ","name":"vm_deploy_w7mPFnAaMYBDJD0f3uPvJyjJ5E9sXLLJ","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3403735216624841103","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-18T08:14:04.6151431Z","duration":"PT48.1489809S","correlationId":"f47379ab-0ece-4426-9968-d461a32ab661","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-000004"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3670' + - '3669' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:29 GMT + - Tue, 18 Oct 2022 08:14:20 GMT expires: - '-1' pragma: @@ -539,16 +539,16 @@ interactions: ,\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\"\ : \"westus\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"\ platformsettings.host_environment.service.platform_optedin_for_rootcerts\"\ - : \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"da707865-f2d1-4c50-9333-671ee4da4ada\"\ + : \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"a4cfe0c6-f792-4c43-9570-b520c89fde0c\"\ ,\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\": \"vm-000004_disk1_9d2e891fe8d0456e92bd8207385a245c\"\ + : {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm-000004_disk1_01558f5b511345c48fe0d1fbb443ba92\"\ ,\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/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/disks/vm-000004_disk1_9d2e891fe8d0456e92bd8207385a245c\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/disks/vm-000004_disk1_01558f5b511345c48fe0d1fbb443ba92\"\ \r\n },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\"\ : 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\"\ : {\r\n \"computerName\": \"vm-000004\",\r\n \"adminUsername\":\ @@ -570,30 +570,30 @@ interactions: \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:52:18+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\"\ + 2022-10-18T08:14:15+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\"\ : []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\"\ - : \"vm-000004_disk1_9d2e891fe8d0456e92bd8207385a245c\",\r\n \"statuses\"\ + : \"vm-000004_disk1_01558f5b511345c48fe0d1fbb443ba92\",\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:51:56.9696645+00:00\"\ + : \"Provisioning succeeded\",\r\n \"time\": \"2022-10-18T08:13:50.372899+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:52:09.0010204+00:00\"\r\n },\r\n {\r\n \ + : \"2022-10-18T08:14:00.4823724+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:51:55.4071971+00:00\"\r\n\ + \n },\r\n \"timeCreated\": \"2022-10-18T08:13:48.4978856+00:00\"\r\n\ \ }\r\n}" headers: cache-control: - no-cache content-length: - - '4118' + - '4117' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:31 GMT + - Tue, 18 Oct 2022 08:14:21 GMT expires: - '-1' pragma: @@ -610,7 +610,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31961 + - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31963 status: code: 200 message: OK @@ -634,12 +634,12 @@ interactions: response: body: string: "{\r\n \"name\": \"vm-000004VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic\"\ - ,\r\n \"etag\": \"W/\\\"7b8389af-7612-4ac6-938d-07f9c0435f58\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"4cb40556-5a96-4e31-8951-0c0d1a14e213\\\"\",\r\n \ \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ - ,\r\n \"resourceGuid\": \"16377b40-aaee-40aa-b8fa-fc6162d04c2b\",\r\n \ + ,\r\n \"resourceGuid\": \"d81b832b-adde-4bcc-a536-685df5a1b5f3\",\r\n \ \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm-000004\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic/ipConfigurations/ipconfigvm-000004\"\ - ,\r\n \"etag\": \"W/\\\"7b8389af-7612-4ac6-938d-07f9c0435f58\\\"\"\ + ,\r\n \"etag\": \"W/\\\"4cb40556-5a96-4e31-8951-0c0d1a14e213\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\"\ @@ -649,8 +649,8 @@ interactions: \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\": \"sw1400jvwzeepca4p0zmx4qylc.dx.internal.cloudapp.net\"\ - \r\n },\r\n \"macAddress\": \"00-0D-3A-33-07-E4\",\r\n \"vnetEncryptionSupported\"\ + internalDomainNameSuffix\": \"pjku2orcmpaezatpcgqmgoxiba.dx.internal.cloudapp.net\"\ + \r\n },\r\n \"macAddress\": \"00-22-48-08-38-D7\",\r\n \"vnetEncryptionSupported\"\ : false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\"\ : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG\"\ \r\n },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \ @@ -667,9 +667,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:33 GMT + - Tue, 18 Oct 2022 08:14:24 GMT etag: - - W/"7b8389af-7612-4ac6-938d-07f9c0435f58" + - W/"4cb40556-5a96-4e31-8951-0c0d1a14e213" expires: - '-1' pragma: @@ -686,7 +686,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 6d6ec5fb-9ce9-42d4-bbbe-c1cb7f597cad + - 450ce819-cd2e-4eaa-912c-0bd0e2369d65 status: code: 200 message: OK @@ -710,10 +710,10 @@ interactions: response: body: string: "{\r\n \"name\": \"vm-000004PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP\"\ - ,\r\n \"etag\": \"W/\\\"db946bf8-32eb-4195-9fb4-c4285558c6a9\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"5b029160-0d23-4fa2-85cb-8be9beaccdae\\\"\",\r\n \ \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\ - \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"fdca5354-b4da-4038-9bba-824a611d7245\"\ - ,\r\n \"ipAddress\": \"20.245.112.101\",\r\n \"publicIPAddressVersion\"\ + \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"edf20841-47ea-4c19-8ec9-0b81ce3634ab\"\ + ,\r\n \"ipAddress\": \"20.245.224.61\",\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/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic/ipConfigurations/ipconfigvm-000004\"\ @@ -724,13 +724,13 @@ interactions: cache-control: - no-cache content-length: - - '1007' + - '1006' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:35 GMT + - Tue, 18 Oct 2022 08:14:25 GMT etag: - - W/"db946bf8-32eb-4195-9fb4-c4285558c6a9" + - W/"5b029160-0d23-4fa2-85cb-8be9beaccdae" expires: - '-1' pragma: @@ -747,7 +747,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 5fbd51c5-1aa9-40df-83d4-daf6c0ae8f68 + - 3ddffb40-6447-49cc-aeb7-5cb4e3e29f41 status: code: 200 message: OK @@ -770,7 +770,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001","name":"cli_test_automation_software_update_configuration000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T07:51:03Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001","name":"cli_test_automation_software_update_configuration000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T08:12:52Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -779,7 +779,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:35 GMT + - Tue, 18 Oct 2022 08:14:26 GMT expires: - '-1' pragma: @@ -817,16 +817,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002?api-version=2021-06-22 response: body: - string: '{"name":"account-000002","systemData":{"createdAt":"2022-10-18T07:52:43.65+00:00","lastModifiedAt":"2022-10-18T07:52:43.65+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://e099e221-e5ed-4760-872d-af02d0f63324.agentsvc.wus.azure-automation.net/accounts/e099e221-e5ed-4760-872d-af02d0f63324","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://e099e221-e5ed-4760-872d-af02d0f63324.jrds.wus.azure-automation.net/automationAccounts/e099e221-e5ed-4760-872d-af02d0f63324","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T07:52:43.65+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:52:43.65+00:00"}}' + string: '{"name":"account-000002","systemData":{"createdAt":"2022-10-18T08:14:32.6+00:00","lastModifiedAt":"2022-10-18T08:14:32.6+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://2b24ca75-2f5a-4e0a-b65f-7543f8d8948b.agentsvc.wus.azure-automation.net/accounts/2b24ca75-2f5a-4e0a-b65f-7543f8d8948b","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://2b24ca75-2f5a-4e0a-b65f-7543f8d8948b.jrds.wus.azure-automation.net/automationAccounts/2b24ca75-2f5a-4e0a-b65f-7543f8d8948b","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T08:14:32.6+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:14:32.6+00:00"}}' headers: cache-control: - no-cache content-length: - - '1159' + - '1155' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:45 GMT + - Tue, 18 Oct 2022 08:14:33 GMT expires: - '-1' location: @@ -840,7 +840,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 201 message: Created @@ -880,16 +880,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003?api-version=2019-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"scheduleInfo":{"description":"test","startTime":"2022-10-23T12:30:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"2022-10-30T12:30:00+08:00","expiryTimeOffsetMinutes":480.0,"isEnabled":true,"nextRun":"2022-10-23T12:30:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T07:52:47.3866667+00:00","lastModifiedTime":"2022-10-18T07:52:47.3866667+00:00","timeZone":"UTC+08:00","advancedSchedule":null},"provisioningState":"Provisioning","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2022-10-18T07:52:47.45+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:52:47.45+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"scheduleInfo":{"description":"test","startTime":"2022-10-23T12:30:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"2022-10-30T12:30:00+08:00","expiryTimeOffsetMinutes":480.0,"isEnabled":true,"nextRun":"2022-10-23T12:30:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T08:14:38.47+00:00","lastModifiedTime":"2022-10-18T08:14:38.47+00:00","timeZone":"UTC+08:00","advancedSchedule":null},"provisioningState":"Provisioning","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2022-10-18T08:14:38.53+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:14:38.53+00:00"}}' headers: cache-control: - no-cache content-length: - - '1647' + - '1637' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:47 GMT + - Tue, 18 Oct 2022 08:14:37 GMT expires: - '-1' location: @@ -926,7 +926,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations?api-version=2019-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"frequency":"Hour","startTime":"2022-10-23T12:30:00+08:00","creationTime":"2022-10-18T07:52:47.45+00:00","lastModifiedTime":"2022-10-18T07:52:47.45+00:00","provisioningState":"Provisioning","nextRun":"2022-10-23T12:30:00+08:00","tasks":null}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"frequency":"Hour","startTime":"2022-10-23T12:30:00+08:00","creationTime":"2022-10-18T08:14:38.53+00:00","lastModifiedTime":"2022-10-18T08:14:38.53+00:00","provisioningState":"Provisioning","nextRun":"2022-10-23T12:30:00+08:00","tasks":null}}]}' headers: cache-control: - no-cache @@ -935,7 +935,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:48 GMT + - Tue, 18 Oct 2022 08:14:40 GMT expires: - '-1' pragma: @@ -972,16 +972,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003?api-version=2019-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"scheduleInfo":{"description":"test","startTime":"2022-10-23T12:30:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"2022-10-30T12:30:00+08:00","expiryTimeOffsetMinutes":480.0,"isEnabled":true,"nextRun":"2022-10-23T12:30:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T07:52:47.3866667+00:00","lastModifiedTime":"2022-10-18T07:52:47.3866667+00:00","timeZone":"UTC+08:00","advancedSchedule":null},"provisioningState":"Provisioning","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2022-10-18T07:52:47.45+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T07:52:47.45+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"scheduleInfo":{"description":"test","startTime":"2022-10-23T12:30:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"2022-10-30T12:30:00+08:00","expiryTimeOffsetMinutes":480.0,"isEnabled":true,"nextRun":"2022-10-23T12:30:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T08:14:38.47+00:00","lastModifiedTime":"2022-10-18T08:14:38.47+00:00","timeZone":"UTC+08:00","advancedSchedule":null},"provisioningState":"Provisioning","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2022-10-18T08:14:38.53+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:14:38.53+00:00"}}' headers: cache-control: - no-cache content-length: - - '1647' + - '1637' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:51 GMT + - Tue, 18 Oct 2022 08:14:44 GMT expires: - '-1' pragma: @@ -1027,7 +1027,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:53 GMT + - Tue, 18 Oct 2022 08:14:46 GMT expires: - '-1' pragma: @@ -1073,7 +1073,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 07:52:55 GMT + - Tue, 18 Oct 2022 08:14:49 GMT expires: - '-1' pragma: @@ -1119,7 +1119,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 07:52:58 GMT + - Tue, 18 Oct 2022 08:14:55 GMT expires: - '-1' pragma: From 60497cfbc13c8fc06c942132ce39387b463219de Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Wed, 19 Oct 2022 13:48:30 +0530 Subject: [PATCH 07/10] Updated Test cases recording with latest test cases --- .../latest/recordings/test_automation.yaml | 162 +++++++++--------- .../recordings/test_automation_schedule.yaml | 36 ++-- ...omation_software_update_configuration.yaml | 144 ++++++++-------- .../latest/test_automation_scenario_manual.py | 12 +- 4 files changed, 178 insertions(+), 176 deletions(-) diff --git a/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml b/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml index 7957d8c43ae..2dc956b1abb 100644 --- a/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml +++ b/src/automation/azext_automation/tests/latest/recordings/test_automation.yaml @@ -441,7 +441,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:02 GMT + - Wed, 19 Oct 2022 08:11:51 GMT expires: - '-1' pragma: @@ -479,7 +479,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 response: body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T08:13:08.8266667+00:00","lastModifiedAt":"2022-10-18T08:13:08.8266667+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.agentsvc.wus2.azure-automation.net/accounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.jrds.wus2.azure-automation.net/automationAccounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T08:13:08.8266667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:13:08.8266667+00:00"}}' + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-19T08:11:57.4033333+00:00","lastModifiedAt":"2022-10-19T08:11:57.4033333+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://0ff783fa-f9d8-49dd-9d0a-abd183083726.agentsvc.wus2.azure-automation.net/accounts/0ff783fa-f9d8-49dd-9d0a-abd183083726","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://0ff783fa-f9d8-49dd-9d0a-abd183083726.jrds.wus2.azure-automation.net/automationAccounts/0ff783fa-f9d8-49dd-9d0a-abd183083726","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-19T08:11:57.4033333+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-19T08:11:57.4033333+00:00"}}' headers: cache-control: - no-cache @@ -488,7 +488,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:10 GMT + - Wed, 19 Oct 2022 08:11:59 GMT expires: - '-1' location: @@ -502,7 +502,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1195' status: code: 201 message: Created @@ -525,7 +525,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 response: body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T08:13:08.8266667+00:00","lastModifiedAt":"2022-10-18T08:13:08.8266667+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.agentsvc.wus2.azure-automation.net/accounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.jrds.wus2.azure-automation.net/automationAccounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T08:13:08.8266667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:13:08.8266667+00:00"}}' + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-19T08:11:57.4033333+00:00","lastModifiedAt":"2022-10-19T08:11:57.4033333+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://0ff783fa-f9d8-49dd-9d0a-abd183083726.agentsvc.wus2.azure-automation.net/accounts/0ff783fa-f9d8-49dd-9d0a-abd183083726","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://0ff783fa-f9d8-49dd-9d0a-abd183083726.jrds.wus2.azure-automation.net/automationAccounts/0ff783fa-f9d8-49dd-9d0a-abd183083726","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-19T08:11:57.4033333+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-19T08:11:57.4033333+00:00"}}' headers: cache-control: - no-cache @@ -534,11 +534,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:13 GMT + - Wed, 19 Oct 2022 08:12:00 GMT expires: - '-1' ocp-automation-accountid: - - 2b67e50d-93f5-4381-a0df-0265a410c8b7 + - 0ff783fa-f9d8-49dd-9d0a-abd183083726 pragma: - no-cache server: @@ -578,7 +578,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 response: body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T08:13:08.8266667+00:00","lastModifiedAt":"2022-10-18T08:13:14.92+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.agentsvc.wus2.azure-automation.net/accounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.jrds.wus2.azure-automation.net/automationAccounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T08:13:08.8266667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:13:14.92+00:00"}}' + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-19T08:11:57.4033333+00:00","lastModifiedAt":"2022-10-19T08:12:01.98+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://0ff783fa-f9d8-49dd-9d0a-abd183083726.agentsvc.wus2.azure-automation.net/accounts/0ff783fa-f9d8-49dd-9d0a-abd183083726","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://0ff783fa-f9d8-49dd-9d0a-abd183083726.jrds.wus2.azure-automation.net/automationAccounts/0ff783fa-f9d8-49dd-9d0a-abd183083726","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-19T08:11:57.4033333+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-19T08:12:01.98+00:00"}}' headers: cache-control: - no-cache @@ -587,7 +587,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:18 GMT + - Wed, 19 Oct 2022 08:12:03 GMT expires: - '-1' pragma: @@ -626,7 +626,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002?api-version=2021-06-22 response: body: - string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-18T08:13:08.8266667+00:00","lastModifiedAt":"2022-10-18T08:13:14.92+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.agentsvc.wus2.azure-automation.net/accounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://2b67e50d-93f5-4381-a0df-0265a410c8b7.jrds.wus2.azure-automation.net/automationAccounts/2b67e50d-93f5-4381-a0df-0265a410c8b7","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T08:13:08.8266667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:13:14.92+00:00"}}' + string: '{"name":"test-account-000002","systemData":{"createdAt":"2022-10-19T08:11:57.4033333+00:00","lastModifiedAt":"2022-10-19T08:12:01.98+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus2","tags":{"A":"a"},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://0ff783fa-f9d8-49dd-9d0a-abd183083726.agentsvc.wus2.azure-automation.net/accounts/0ff783fa-f9d8-49dd-9d0a-abd183083726","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"privateEndpointConnections":[],"automationHybridServiceUrl":"https://0ff783fa-f9d8-49dd-9d0a-abd183083726.jrds.wus2.azure-automation.net/automationAccounts/0ff783fa-f9d8-49dd-9d0a-abd183083726","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-19T08:11:57.4033333+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-19T08:12:01.98+00:00"}}' headers: cache-control: - no-cache @@ -635,11 +635,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:19 GMT + - Wed, 19 Oct 2022 08:12:04 GMT expires: - '-1' ocp-automation-accountid: - - 2b67e50d-93f5-4381-a0df-0265a410c8b7 + - 0ff783fa-f9d8-49dd-9d0a-abd183083726 pragma: - no-cache server: @@ -674,7 +674,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts?api-version=2021-06-22 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","location":"westus2","name":"test-account-000002","type":"Microsoft.Automation/AutomationAccounts","tags":{"A":"a"},"properties":{"creationTime":"2022-10-18T08:13:08.8266667+00:00","lastModifiedTime":"2022-10-18T08:13:14.92+00:00","state":"Ok","disableLocalAuth":false}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002","location":"westus2","name":"test-account-000002","type":"Microsoft.Automation/AutomationAccounts","tags":{"A":"a"},"properties":{"creationTime":"2022-10-19T08:11:57.4033333+00:00","lastModifiedTime":"2022-10-19T08:12:01.98+00:00","state":"Ok","disableLocalAuth":false}}]}' headers: cache-control: - no-cache @@ -683,7 +683,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:20 GMT + - Wed, 19 Oct 2022 08:12:06 GMT expires: - '-1' pragma: @@ -720,7 +720,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001","name":"cli_test_automation_000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T08:12:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001","name":"cli_test_automation_000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-10-19T08:11:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -729,7 +729,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:21 GMT + - Wed, 19 Oct 2022 08:12:06 GMT expires: - '-1' pragma: @@ -767,7 +767,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003?api-version=2018-06-30 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"638016776108066667\"","properties":{"description":null,"logVerbose":false,"logProgress":false,"logActivityTrace":0,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-10-18T08:13:30.8066667+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:13:30.8066667+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"638017639321533333\"","properties":{"description":null,"logVerbose":false,"logProgress":false,"logActivityTrace":0,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-10-19T08:12:12.1533333+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-19T08:12:12.1533333+00:00"}}' headers: cache-control: - no-cache @@ -776,9 +776,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:31 GMT + - Wed, 19 Oct 2022 08:12:12 GMT etag: - - '"638016776108066667"' + - '"638017639321533333"' expires: - '-1' location: @@ -792,7 +792,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1199' status: code: 201 message: Created @@ -821,18 +821,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003?api-version=2018-06-30 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"638016776159866667\"","properties":{"description":null,"logVerbose":true,"logProgress":true,"logActivityTrace":1,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-10-18T08:13:30.8066667+00:00","lastModifiedBy":"{scrubbed}","lastModifiedTime":"2022-10-18T08:13:35.9866667+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003","name":"test-runbook-000003","type":"Microsoft.Automation/AutomationAccounts/Runbooks","location":"westus2","tags":{},"etag":"\"638017639348900000\"","properties":{"description":null,"logVerbose":true,"logProgress":true,"logActivityTrace":1,"runbookType":"PowerShell","parameters":{},"state":"New","jobCount":0,"provisioningState":"Succeeded","serviceManagementTags":null,"outputTypes":[],"creationTime":"2022-10-19T08:12:12.1533333+00:00","lastModifiedBy":"{scrubbed}","lastModifiedTime":"2022-10-19T08:12:14.89+00:00"}}' headers: cache-control: - no-cache content-length: - - '727' + - '722' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:35 GMT + - Wed, 19 Oct 2022 08:12:14 GMT etag: - - '"638016776159866667"' + - '"638017639348900000"' expires: - '-1' pragma: @@ -848,7 +848,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 200 message: OK @@ -882,14 +882,14 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 08:13:37 GMT + - Wed, 19 Oct 2022 08:12:15 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/8239e13c-b828-453f-ba69-c3e04e87b90d?api-version=2018-06-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/9822976c-fa29-4199-a837-8dcf4ebeb129?api-version=2018-06-30 ocp-automation-operationresultid: - - 8239e13c-b828-453f-ba69-c3e04e87b90d - - 8239e13c-b828-453f-ba69-c3e04e87b90d + - 9822976c-fa29-4199-a837-8dcf4ebeb129 + - 9822976c-fa29-4199-a837-8dcf4ebeb129 pragma: - no-cache server: @@ -919,7 +919,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/8239e13c-b828-453f-ba69-c3e04e87b90d?api-version=2018-06-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/9822976c-fa29-4199-a837-8dcf4ebeb129?api-version=2018-06-30 response: body: string: '' @@ -931,7 +931,7 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:45 GMT + - Wed, 19 Oct 2022 08:12:22 GMT expires: - '-1' pragma: @@ -973,14 +973,14 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 08:13:47 GMT + - Wed, 19 Oct 2022 08:12:24 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/7980626a-cb04-450b-95c2-ab940f79bb65?api-version=2018-06-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/d36523b8-0a10-483b-948b-86c157f24ee4?api-version=2018-06-30 ocp-automation-operationresultid: - - 7980626a-cb04-450b-95c2-ab940f79bb65 - - 7980626a-cb04-450b-95c2-ab940f79bb65 + - d36523b8-0a10-483b-948b-86c157f24ee4 + - d36523b8-0a10-483b-948b-86c157f24ee4 pragma: - no-cache server: @@ -1010,7 +1010,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-mgmt-automation/1.1.0b2 Python/3.10.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/7980626a-cb04-450b-95c2-ab940f79bb65?api-version=2018-06-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/runbooks/test-runbook-000003/operationResults/d36523b8-0a10-483b-948b-86c157f24ee4?api-version=2018-06-30 response: body: string: '' @@ -1022,7 +1022,7 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:52 GMT + - Wed, 19 Oct 2022 08:12:30 GMT expires: - '-1' pragma: @@ -1059,7 +1059,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T08:13:55.7558192+00:00","lastModifiedAt":"2022-10-18T08:13:55.7558192+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-19T08:12:33.4464471+00:00","lastModifiedAt":"2022-10-19T08:12:33.4464471+00:00"}}' headers: cache-control: - no-cache @@ -1068,7 +1068,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:55 GMT + - Wed, 19 Oct 2022 08:12:33 GMT expires: - '-1' location: @@ -1082,7 +1082,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 201 message: Created @@ -1109,7 +1109,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T08:13:55.7558192+00:00","lastModifiedAt":"2022-10-18T08:13:57.6464527+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-19T08:12:33.4464471+00:00","lastModifiedAt":"2022-10-19T08:12:35.2433953+00:00"}}' headers: cache-control: - no-cache @@ -1118,7 +1118,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:57 GMT + - Wed, 19 Oct 2022 08:12:35 GMT expires: - '-1' pragma: @@ -1134,7 +1134,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1196' status: code: 200 message: OK @@ -1157,7 +1157,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T08:13:55.7558192+00:00","lastModifiedAt":"2022-10-18T08:13:57.6464527+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-19T08:12:33.4464471+00:00","lastModifiedAt":"2022-10-19T08:12:35.2433953+00:00"}}' headers: cache-control: - no-cache @@ -1166,7 +1166,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:58 GMT + - Wed, 19 Oct 2022 08:12:36 GMT expires: - '-1' pragma: @@ -1203,7 +1203,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups?api-version=2022-08-08 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-18T08:13:55.7558192+00:00","lastModifiedAt":"2022-10-18T08:13:57.6464527+00:00"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/hybridRunbookWorkerGroups/hwg-000004","name":"hwg-000004","type":"Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups","properties":{"groupType":"User","credential":{"name":null},"hybridRunbookWorkers":null},"systemData":{"createdAt":"2022-10-19T08:12:33.4464471+00:00","lastModifiedAt":"2022-10-19T08:12:35.2433953+00:00"}}]}' headers: cache-control: - no-cache @@ -1212,7 +1212,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:59 GMT + - Wed, 19 Oct 2022 08:12:38 GMT expires: - '-1' pragma: @@ -1258,7 +1258,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:01 GMT + - Wed, 19 Oct 2022 08:12:41 GMT expires: - '-1' pragma: @@ -1304,7 +1304,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 08:14:02 GMT + - Wed, 19 Oct 2022 08:12:42 GMT expires: - '-1' pragma: @@ -1316,7 +1316,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14997' status: code: 200 message: OK @@ -1343,16 +1343,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T08:14:04.9+00:00","lastModifiedTime":"2022-10-18T08:14:04.96+00:00","error":{"code":null,"message":null},"provisioningState":"Creating","isComposite":false}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-19T08:12:44.83+00:00","lastModifiedTime":"2022-10-19T08:12:44.8866667+00:00","error":{"code":null,"message":null},"provisioningState":"Creating","isComposite":false}}' headers: cache-control: - no-cache content-length: - - '607' + - '613' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:05 GMT + - Wed, 19 Oct 2022 08:12:44 GMT expires: - '-1' location: @@ -1366,7 +1366,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -1389,16 +1389,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T08:14:04.9+00:00","lastModifiedTime":"2022-10-18T08:14:04.96+00:00","error":{"code":null,"message":""},"provisioningState":"Creating","isComposite":false}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-19T08:12:44.83+00:00","lastModifiedTime":"2022-10-19T08:12:44.8866667+00:00","error":{"code":null,"message":""},"provisioningState":"Creating","isComposite":false}}' headers: cache-control: - no-cache content-length: - - '605' + - '611' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:08 GMT + - Wed, 19 Oct 2022 08:12:46 GMT expires: - '-1' pragma: @@ -1419,8 +1419,8 @@ interactions: - request: body: '{"location": "westus2", "properties": {"activityCount": 0, "contentLink": {"uri": "https://files.pythonhosted.org/packages/7f/e2/85dfb9f7364cbd7a9213caea0e91fc948da3c912a2b222a3e43bc9cc6432/requires.io-0.2.6-py2.py3-none-any.whl"}, - "creationTime": "2022-10-18T08:14:04.9+00:00", "error": {"message": ""}, "isComposite": - false, "isGlobal": false, "lastModifiedTime": "2022-10-18T08:14:04.96+00:00", + "creationTime": "2022-10-19T08:12:44.83+00:00", "error": {"message": ""}, "isComposite": + false, "isGlobal": false, "lastModifiedTime": "2022-10-19T08:12:44.8866667+00:00", "provisioningState": "Creating", "sizeInBytes": 0}, "tags": {}}' headers: Accept: @@ -1432,7 +1432,7 @@ interactions: Connection: - keep-alive Content-Length: - - '461' + - '467' Content-Type: - application/json ParameterSetName: @@ -1443,16 +1443,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T08:14:04.9+00:00","lastModifiedTime":"2022-10-18T08:14:12.89+00:00","error":{"code":null,"message":null},"provisioningState":"Creating","isComposite":false}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-19T08:12:44.83+00:00","lastModifiedTime":"2022-10-19T08:12:47.3733333+00:00","error":{"code":null,"message":null},"provisioningState":"Creating","isComposite":false}}' headers: cache-control: - no-cache content-length: - - '607' + - '613' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:12 GMT + - Wed, 19 Oct 2022 08:12:46 GMT expires: - '-1' pragma: @@ -1468,7 +1468,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 200 message: OK @@ -1491,16 +1491,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005?api-version=2022-08-08 response: body: - string: '{"name":"py3-package-000005","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T08:14:04.9+00:00","lastModifiedTime":"2022-10-18T08:14:12.89+00:00","error":{"code":null,"message":""},"provisioningState":"Creating","isComposite":false}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","type":"Microsoft.Automation/AutomationAccounts/Python3Packages","location":"westus2","tags":{},"etag":null,"properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-19T08:12:44.83+00:00","lastModifiedTime":"2022-10-19T08:12:47.3733333+00:00","error":{"code":null,"message":""},"provisioningState":"Creating","isComposite":false}}' headers: cache-control: - no-cache content-length: - - '605' + - '611' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:15 GMT + - Wed, 19 Oct 2022 08:12:48 GMT expires: - '-1' pragma: @@ -1537,16 +1537,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages?api-version=2022-08-08 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-18T08:14:04.9+00:00","lastModifiedTime":"2022-10-18T08:14:12.89+00:00","provisioningState":"Creating","isComposite":false}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/python3Packages/py3-package-000005","name":"py3-package-000005","properties":{"isGlobal":false,"version":null,"sizeInBytes":0,"activityCount":0,"creationTime":"2022-10-19T08:12:44.83+00:00","lastModifiedTime":"2022-10-19T08:12:47.3733333+00:00","provisioningState":"Creating","isComposite":false}}]}' headers: cache-control: - no-cache content-length: - - '474' + - '480' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:18 GMT + - Wed, 19 Oct 2022 08:12:49 GMT expires: - '-1' pragma: @@ -1592,7 +1592,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 08:14:20 GMT + - Wed, 19 Oct 2022 08:12:52 GMT expires: - '-1' pragma: @@ -1604,7 +1604,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14999' status: code: 200 message: OK @@ -1631,16 +1631,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2019-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"01042994-570c-49f4-8510-7756e9fa20d5","creationTime":"2022-10-18T08:14:21.39+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":null,"startTime":null,"endTime":null,"lastModifiedTime":"2022-10-18T08:14:21.39+00:00","lastStatusModifiedTime":"2022-10-18T08:14:21.39+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"0f8e8dbc-426f-4dcf-beef-4aff5e8d3a63","creationTime":"2022-10-19T08:12:56.1766667+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":null,"startTime":null,"endTime":null,"lastModifiedTime":"2022-10-19T08:12:56.1766667+00:00","lastStatusModifiedTime":"2022-10-19T08:12:56.1766667+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' headers: cache-control: - no-cache content-length: - - '735' + - '750' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:20 GMT + - Wed, 19 Oct 2022 08:12:56 GMT expires: - '-1' location: @@ -1677,7 +1677,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs?api-version=2019-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"01042994-570c-49f4-8510-7756e9fa20d5","runbook":{"name":"test-runbook-000003"},"provisioningState":"Processing","status":"New","creationTime":"2022-10-18T08:14:21.4035459+00:00","startTime":null,"lastModifiedTime":"2022-10-18T08:14:21.4035459+00:00","endTime":null,"runOn":null}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"0f8e8dbc-426f-4dcf-beef-4aff5e8d3a63","runbook":{"name":"test-runbook-000003"},"provisioningState":"Processing","status":"New","creationTime":"2022-10-19T08:12:56.1906698+00:00","startTime":null,"lastModifiedTime":"2022-10-19T08:12:56.1906698+00:00","endTime":null,"runOn":null}}]}' headers: cache-control: - no-cache @@ -1686,7 +1686,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:22 GMT + - Wed, 19 Oct 2022 08:12:57 GMT expires: - '-1' pragma: @@ -1725,7 +1725,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e?api-version=2019-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"01042994-570c-49f4-8510-7756e9fa20d5","creationTime":"2022-10-18T08:14:21.4035459+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":"{scrubbed}","startTime":null,"endTime":null,"lastModifiedTime":"2022-10-18T08:14:21.4035459+00:00","lastStatusModifiedTime":"2022-10-18T08:14:21.4035459+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_000001/providers/Microsoft.Automation/automationAccounts/test-account-000002/jobs/ef6919bf-b827-4b18-8475-8d4a03a49d0e","name":"ef6919bf-b827-4b18-8475-8d4a03a49d0e","type":"Microsoft.Automation/AutomationAccounts/Jobs","properties":{"jobId":"0f8e8dbc-426f-4dcf-beef-4aff5e8d3a63","creationTime":"2022-10-19T08:12:56.1906698+00:00","provisioningState":"Processing","status":"New","statusDetails":"None","startedBy":"{scrubbed}","startTime":null,"endTime":null,"lastModifiedTime":"2022-10-19T08:12:56.1906698+00:00","lastStatusModifiedTime":"2022-10-19T08:12:56.1906698+00:00","exception":null,"parameters":{},"runOn":null,"runbook":{"name":"test-runbook-000003"}}}' headers: cache-control: - no-cache @@ -1734,7 +1734,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:25 GMT + - Wed, 19 Oct 2022 08:12:59 GMT expires: - '-1' pragma: @@ -1782,7 +1782,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 08:14:36 GMT + - Wed, 19 Oct 2022 08:13:12 GMT expires: - '-1' pragma: @@ -1794,7 +1794,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14997' + - '14999' status: code: 200 message: OK diff --git a/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml b/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml index 3e110d7d54f..ec367de5216 100644 --- a/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml +++ b/src/automation/azext_automation/tests/latest/recordings/test_automation_schedule.yaml @@ -18,7 +18,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_schedule000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001","name":"cli_test_automation_schedule000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T08:12:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001","name":"cli_test_automation_schedule000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-19T08:11:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:12:59 GMT + - Wed, 19 Oct 2022 08:11:47 GMT expires: - '-1' pragma: @@ -65,7 +65,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002?api-version=2021-06-22 response: body: - string: '{"name":"account-000002","systemData":{"createdAt":"2022-10-18T08:13:05.56+00:00","lastModifiedAt":"2022-10-18T08:13:05.56+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://d1ae90ee-2861-40c3-93b5-ed23a20f2750.agentsvc.wus.azure-automation.net/accounts/d1ae90ee-2861-40c3-93b5-ed23a20f2750","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://d1ae90ee-2861-40c3-93b5-ed23a20f2750.jrds.wus.azure-automation.net/automationAccounts/d1ae90ee-2861-40c3-93b5-ed23a20f2750","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T08:13:05.56+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:13:05.56+00:00"}}' + string: '{"name":"account-000002","systemData":{"createdAt":"2022-10-19T08:11:54.79+00:00","lastModifiedAt":"2022-10-19T08:11:54.79+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://7b780971-74f5-4e6a-b810-2678be066970.agentsvc.wus.azure-automation.net/accounts/7b780971-74f5-4e6a-b810-2678be066970","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://7b780971-74f5-4e6a-b810-2678be066970.jrds.wus.azure-automation.net/automationAccounts/7b780971-74f5-4e6a-b810-2678be066970","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-19T08:11:54.79+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-19T08:11:54.79+00:00"}}' headers: cache-control: - no-cache @@ -74,7 +74,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:07 GMT + - Wed, 19 Oct 2022 08:11:56 GMT expires: - '-1' location: @@ -88,7 +88,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 201 message: Created @@ -118,16 +118,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":true,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T08:13:12.81+00:00","lastModifiedTime":"2022-10-18T08:13:12.81+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":true,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-19T08:12:00.7566667+00:00","lastModifiedTime":"2022-10-19T08:12:00.7566667+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' headers: cache-control: - no-cache content-length: - - '730' + - '740' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:11 GMT + - Wed, 19 Oct 2022 08:11:59 GMT expires: - '-1' location: @@ -141,7 +141,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 201 message: Created @@ -169,16 +169,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T08:13:12.81+00:00","lastModifiedTime":"2022-10-18T08:13:12.81+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-19T08:12:00.7566667+00:00","lastModifiedTime":"2022-10-19T08:12:00.7566667+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' headers: cache-control: - no-cache content-length: - - '732' + - '742' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:16 GMT + - Wed, 19 Oct 2022 08:12:01 GMT expires: - '-1' pragma: @@ -194,7 +194,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 200 message: OK @@ -217,7 +217,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules?api-version=2020-01-13-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T08:13:12.81+00:00","lastModifiedTime":"2022-10-18T08:13:16.6733333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-19T08:12:00.7566667+00:00","lastModifiedTime":"2022-10-19T08:12:02.37+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}]}' headers: cache-control: - no-cache @@ -226,7 +226,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:18 GMT + - Wed, 19 Oct 2022 08:12:04 GMT expires: - '-1' pragma: @@ -263,7 +263,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003?api-version=2020-01-13-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T08:13:12.81+00:00","lastModifiedTime":"2022-10-18T08:13:16.6733333+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_schedule000001/providers/Microsoft.Automation/automationAccounts/account-000002/schedules/schedule-000003","name":"schedule-000003","type":"Microsoft.Automation/AutomationAccounts/Schedules","properties":{"description":"test1","startTime":"2022-10-19T18:08:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"9999-12-31T23:59:59.9999999+00:00","expiryTimeOffsetMinutes":0.0,"isEnabled":false,"nextRun":"2022-10-19T18:08:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-19T08:12:00.7566667+00:00","lastModifiedTime":"2022-10-19T08:12:02.37+00:00","timeZone":"UTC+08:00","advancedSchedule":null}}' headers: cache-control: - no-cache @@ -272,7 +272,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:21 GMT + - Wed, 19 Oct 2022 08:12:06 GMT expires: - '-1' pragma: @@ -318,7 +318,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 08:13:23 GMT + - Wed, 19 Oct 2022 08:12:07 GMT expires: - '-1' pragma: diff --git a/src/automation/azext_automation/tests/latest/recordings/test_automation_software_update_configuration.yaml b/src/automation/azext_automation/tests/latest/recordings/test_automation_software_update_configuration.yaml index 133fbd03afc..4ca4908f183 100644 --- a/src/automation/azext_automation/tests/latest/recordings/test_automation_software_update_configuration.yaml +++ b/src/automation/azext_automation/tests/latest/recordings/test_automation_software_update_configuration.yaml @@ -18,7 +18,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001","name":"cli_test_automation_software_update_configuration000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T08:12:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001","name":"cli_test_automation_software_update_configuration000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-19T08:11:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:01 GMT + - Wed, 19 Oct 2022 08:11:49 GMT expires: - '-1' pragma: @@ -124,13 +124,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:02 GMT + - Wed, 19 Oct 2022 08:11:50 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Tue, 18 Oct 2022 08:18:02 GMT + - Wed, 19 Oct 2022 08:16:50 GMT source-age: - - '0' + - '129' strict-transport-security: - max-age=31536000 vary: @@ -144,15 +144,15 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - 2ee83d2393733d6caca5fc715d1df7f2784efd93 + - 303979f6af52df95605c456c80ed2c63178fe06c x-frame-options: - deny x-github-request-id: - 0802:27E7:2B5028:3A34D4:634E3D7C x-served-by: - - cache-ccu830021-CCU + - cache-ccu830044-CCU x-timer: - - S1666080782.305508,VS0,VE314 + - S1666167110.162744,VS0,VE1 x-xss-protection: - 1; mode=block status: @@ -177,8 +177,8 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/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\": \"westus\",\r\n \"name\": \"18.04.202210140\"\ - ,\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202210140\"\ + string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"18.04.202210180\"\ + ,\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202210180\"\ \r\n }\r\n]" headers: cache-control: @@ -188,7 +188,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:03 GMT + - Wed, 19 Oct 2022 08:11:50 GMT expires: - '-1' pragma: @@ -205,7 +205,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43995 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15997,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43989 status: code: 200 message: OK @@ -225,7 +225,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-azure-mgmt-compute/28.0.0 Python/3.10.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/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/westus/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 \ @@ -241,7 +241,7 @@ interactions: \ ],\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\": \"westus\",\r\ - \n \"name\": \"18.04.202210140\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202210140\"\ + \n \"name\": \"18.04.202210180\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202210180\"\ \r\n}" headers: cache-control: @@ -251,7 +251,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:05 GMT + - Wed, 19 Oct 2022 08:11:52 GMT expires: - '-1' pragma: @@ -268,7 +268,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73995 + - Microsoft.Compute/GetVMImageFromLocation3Min;12997,Microsoft.Compute/GetVMImageFromLocation30Min;73991 status: code: 200 message: OK @@ -300,7 +300,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:06 GMT + - Wed, 19 Oct 2022 08:11:52 GMT expires: - '-1' pragma: @@ -365,10 +365,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_w7mPFnAaMYBDJD0f3uPvJyjJ5E9sXLLJ","name":"vm_deploy_w7mPFnAaMYBDJD0f3uPvJyjJ5E9sXLLJ","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3403735216624841103","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-18T08:13:16.4662816Z","duration":"PT0.0001194S","correlationId":"f47379ab-0ece-4426-9968-d461a32ab661","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-000004"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_32b1BvaCQGJrrsW9Of4i9R9YI5GV1lKp","name":"vm_deploy_32b1BvaCQGJrrsW9Of4i9R9YI5GV1lKp","type":"Microsoft.Resources/deployments","properties":{"templateHash":"9949138699710208634","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-10-19T08:12:01.2424159Z","duration":"PT0.0004949S","correlationId":"9844566b-59ca-40f1-9db4-67039879c29c","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-000004"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_w7mPFnAaMYBDJD0f3uPvJyjJ5E9sXLLJ/operationStatuses/08585355260935743887?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_32b1BvaCQGJrrsW9Of4i9R9YI5GV1lKp/operationStatuses/08585354397684869414?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -376,7 +376,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:18 GMT + - Wed, 19 Oct 2022 08:12:02 GMT expires: - '-1' pragma: @@ -386,7 +386,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 201 message: Created @@ -406,7 +406,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585355260935743887?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585354397684869414?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -418,7 +418,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:13:48 GMT + - Wed, 19 Oct 2022 08:12:33 GMT expires: - '-1' pragma: @@ -448,7 +448,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585355260935743887?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585354397684869414?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -460,7 +460,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:19 GMT + - Wed, 19 Oct 2022 08:13:04 GMT expires: - '-1' pragma: @@ -493,16 +493,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_w7mPFnAaMYBDJD0f3uPvJyjJ5E9sXLLJ","name":"vm_deploy_w7mPFnAaMYBDJD0f3uPvJyjJ5E9sXLLJ","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3403735216624841103","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-18T08:14:04.6151431Z","duration":"PT48.1489809S","correlationId":"f47379ab-0ece-4426-9968-d461a32ab661","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-000004"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Resources/deployments/vm_deploy_32b1BvaCQGJrrsW9Of4i9R9YI5GV1lKp","name":"vm_deploy_32b1BvaCQGJrrsW9Of4i9R9YI5GV1lKp","type":"Microsoft.Resources/deployments","properties":{"templateHash":"9949138699710208634","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-10-19T08:12:48.265627Z","duration":"PT47.023706S","correlationId":"9844566b-59ca-40f1-9db4-67039879c29c","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-000004"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/virtualNetworks/vm-000004VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3669' + - '3667' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:20 GMT + - Wed, 19 Oct 2022 08:13:04 GMT expires: - '-1' pragma: @@ -539,16 +539,16 @@ interactions: ,\r\n \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\"\ : \"westus\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"\ platformsettings.host_environment.service.platform_optedin_for_rootcerts\"\ - : \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"a4cfe0c6-f792-4c43-9570-b520c89fde0c\"\ + : \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"137faf30-d19f-4d56-927b-4602e372090b\"\ ,\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\": \"vm-000004_disk1_01558f5b511345c48fe0d1fbb443ba92\"\ + \n \"exactVersion\": \"18.04.202210180\"\r\n },\r\n \"osDisk\"\ + : {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm-000004_disk1_5135dbb675364ec5915a8922e897103f\"\ ,\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/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/disks/vm-000004_disk1_01558f5b511345c48fe0d1fbb443ba92\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/disks/vm-000004_disk1_5135dbb675364ec5915a8922e897103f\"\ \r\n },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\"\ : 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\"\ : {\r\n \"computerName\": \"vm-000004\",\r\n \"adminUsername\":\ @@ -570,30 +570,30 @@ interactions: \n \"code\": \"ProvisioningState/succeeded\",\r\n \"\ level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \ \ \"message\": \"Guest Agent is running\",\r\n \"time\": \"\ - 2022-10-18T08:14:15+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\"\ + 2022-10-19T08:12:56+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\"\ : []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\"\ - : \"vm-000004_disk1_01558f5b511345c48fe0d1fbb443ba92\",\r\n \"statuses\"\ + : \"vm-000004_disk1_5135dbb675364ec5915a8922e897103f\",\r\n \"statuses\"\ : [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\"\ ,\r\n \"level\": \"Info\",\r\n \"displayStatus\"\ - : \"Provisioning succeeded\",\r\n \"time\": \"2022-10-18T08:13:50.372899+00:00\"\ + : \"Provisioning succeeded\",\r\n \"time\": \"2022-10-19T08:12:31.4725121+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-18T08:14:00.4823724+00:00\"\r\n },\r\n {\r\n \ + : \"2022-10-19T08:12:44.2226469+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-18T08:13:48.4978856+00:00\"\r\n\ + \n },\r\n \"timeCreated\": \"2022-10-19T08:12:30.2537515+00:00\"\r\n\ \ }\r\n}" headers: cache-control: - no-cache content-length: - - '4117' + - '4118' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:21 GMT + - Wed, 19 Oct 2022 08:13:06 GMT expires: - '-1' pragma: @@ -610,7 +610,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31963 + - Microsoft.Compute/LowCostGet3Min;3990,Microsoft.Compute/LowCostGet30Min;31947 status: code: 200 message: OK @@ -634,12 +634,12 @@ interactions: response: body: string: "{\r\n \"name\": \"vm-000004VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic\"\ - ,\r\n \"etag\": \"W/\\\"4cb40556-5a96-4e31-8951-0c0d1a14e213\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"d3a2eae0-7a80-4220-a29b-a0bd2e71a899\\\"\",\r\n \ \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ - ,\r\n \"resourceGuid\": \"d81b832b-adde-4bcc-a536-685df5a1b5f3\",\r\n \ + ,\r\n \"resourceGuid\": \"35efe0bd-6651-4d62-8f7c-c012005df769\",\r\n \ \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm-000004\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic/ipConfigurations/ipconfigvm-000004\"\ - ,\r\n \"etag\": \"W/\\\"4cb40556-5a96-4e31-8951-0c0d1a14e213\\\"\"\ + ,\r\n \"etag\": \"W/\\\"d3a2eae0-7a80-4220-a29b-a0bd2e71a899\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\"\ @@ -649,8 +649,8 @@ interactions: \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\": \"pjku2orcmpaezatpcgqmgoxiba.dx.internal.cloudapp.net\"\ - \r\n },\r\n \"macAddress\": \"00-22-48-08-38-D7\",\r\n \"vnetEncryptionSupported\"\ + internalDomainNameSuffix\": \"1ukvbqp11cuele5hwoqwj514wh.dx.internal.cloudapp.net\"\ + \r\n },\r\n \"macAddress\": \"00-22-48-08-E7-53\",\r\n \"vnetEncryptionSupported\"\ : false,\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\"\ : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkSecurityGroups/vm-000004NSG\"\ \r\n },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \ @@ -667,9 +667,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:24 GMT + - Wed, 19 Oct 2022 08:13:08 GMT etag: - - W/"4cb40556-5a96-4e31-8951-0c0d1a14e213" + - W/"d3a2eae0-7a80-4220-a29b-a0bd2e71a899" expires: - '-1' pragma: @@ -686,7 +686,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 450ce819-cd2e-4eaa-912c-0bd0e2369d65 + - 1e59a065-f210-4284-9c4f-08e687bd270b status: code: 200 message: OK @@ -710,10 +710,10 @@ interactions: response: body: string: "{\r\n \"name\": \"vm-000004PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/publicIPAddresses/vm-000004PublicIP\"\ - ,\r\n \"etag\": \"W/\\\"5b029160-0d23-4fa2-85cb-8be9beaccdae\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"d84373da-b1e2-4916-8cf4-e4ce89bcd646\\\"\",\r\n \ \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n\ - \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"edf20841-47ea-4c19-8ec9-0b81ce3634ab\"\ - ,\r\n \"ipAddress\": \"20.245.224.61\",\r\n \"publicIPAddressVersion\"\ + \ \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"9e84ed36-3452-4d69-8957-b317e105e542\"\ + ,\r\n \"ipAddress\": \"20.253.130.91\",\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/cli_test_automation_software_update_configuration000001/providers/Microsoft.Network/networkInterfaces/vm-000004VMNic/ipConfigurations/ipconfigvm-000004\"\ @@ -728,9 +728,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:25 GMT + - Wed, 19 Oct 2022 08:13:08 GMT etag: - - W/"5b029160-0d23-4fa2-85cb-8be9beaccdae" + - W/"d84373da-b1e2-4916-8cf4-e4ce89bcd646" expires: - '-1' pragma: @@ -747,7 +747,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 3ddffb40-6447-49cc-aeb7-5cb4e3e29f41 + - bca317d7-e114-4358-8f46-ee572c70c605 status: code: 200 message: OK @@ -770,7 +770,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_automation_software_update_configuration000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001","name":"cli_test_automation_software_update_configuration000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-18T08:12:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001","name":"cli_test_automation_software_update_configuration000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-10-19T08:11:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -779,7 +779,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:26 GMT + - Wed, 19 Oct 2022 08:13:09 GMT expires: - '-1' pragma: @@ -817,16 +817,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002?api-version=2021-06-22 response: body: - string: '{"name":"account-000002","systemData":{"createdAt":"2022-10-18T08:14:32.6+00:00","lastModifiedAt":"2022-10-18T08:14:32.6+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://2b24ca75-2f5a-4e0a-b65f-7543f8d8948b.agentsvc.wus.azure-automation.net/accounts/2b24ca75-2f5a-4e0a-b65f-7543f8d8948b","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://2b24ca75-2f5a-4e0a-b65f-7543f8d8948b.jrds.wus.azure-automation.net/automationAccounts/2b24ca75-2f5a-4e0a-b65f-7543f8d8948b","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-18T08:14:32.6+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:14:32.6+00:00"}}' + string: '{"name":"account-000002","systemData":{"createdAt":"2022-10-19T08:13:16.3533333+00:00","lastModifiedAt":"2022-10-19T08:13:16.3533333+00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002","type":"Microsoft.Automation/AutomationAccounts","location":"westus","tags":{},"etag":null,"properties":{"disableLocalAuth":false,"sku":{"name":"Basic","family":null,"capacity":null},"state":"Ok","RegistrationUrl":"https://d5b5a4bb-3247-4f99-b63d-2d13097def43.agentsvc.wus.azure-automation.net/accounts/d5b5a4bb-3247-4f99-b63d-2d13097def43","encryption":{"keySource":"Microsoft.Automation","identity":{"userAssignedIdentity":null}},"automationHybridServiceUrl":"https://d5b5a4bb-3247-4f99-b63d-2d13097def43.jrds.wus.azure-automation.net/automationAccounts/d5b5a4bb-3247-4f99-b63d-2d13097def43","RuntimeConfiguration":{"powershell":{"builtinModules":{"Az":"8.0.0"}},"powershell7":{"builtinModules":{"Az":"8.0.0"}}},"creationTime":"2022-10-19T08:13:16.3533333+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-19T08:13:16.3533333+00:00"}}' headers: cache-control: - no-cache content-length: - - '1155' + - '1179' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:33 GMT + - Wed, 19 Oct 2022 08:13:18 GMT expires: - '-1' location: @@ -840,7 +840,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 201 message: Created @@ -880,16 +880,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003?api-version=2019-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"scheduleInfo":{"description":"test","startTime":"2022-10-23T12:30:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"2022-10-30T12:30:00+08:00","expiryTimeOffsetMinutes":480.0,"isEnabled":true,"nextRun":"2022-10-23T12:30:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T08:14:38.47+00:00","lastModifiedTime":"2022-10-18T08:14:38.47+00:00","timeZone":"UTC+08:00","advancedSchedule":null},"provisioningState":"Provisioning","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2022-10-18T08:14:38.53+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:14:38.53+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"scheduleInfo":{"description":"test","startTime":"2022-10-23T12:30:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"2022-10-30T12:30:00+08:00","expiryTimeOffsetMinutes":480.0,"isEnabled":true,"nextRun":"2022-10-23T12:30:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-19T08:13:21.3133333+00:00","lastModifiedTime":"2022-10-19T08:13:21.3133333+00:00","timeZone":"UTC+08:00","advancedSchedule":null},"provisioningState":"Provisioning","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2022-10-19T08:13:21.4+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-19T08:13:21.4+00:00"}}' headers: cache-control: - no-cache content-length: - - '1637' + - '1645' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:37 GMT + - Wed, 19 Oct 2022 08:13:21 GMT expires: - '-1' location: @@ -926,16 +926,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations?api-version=2019-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"frequency":"Hour","startTime":"2022-10-23T12:30:00+08:00","creationTime":"2022-10-18T08:14:38.53+00:00","lastModifiedTime":"2022-10-18T08:14:38.53+00:00","provisioningState":"Provisioning","nextRun":"2022-10-23T12:30:00+08:00","tasks":null}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"frequency":"Hour","startTime":"2022-10-23T12:30:00+08:00","creationTime":"2022-10-19T08:13:21.4+00:00","lastModifiedTime":"2022-10-19T08:13:21.4+00:00","provisioningState":"Provisioning","nextRun":"2022-10-23T12:30:00+08:00","tasks":null}}]}' headers: cache-control: - no-cache content-length: - - '1233' + - '1231' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:40 GMT + - Wed, 19 Oct 2022 08:13:22 GMT expires: - '-1' pragma: @@ -972,16 +972,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003?api-version=2019-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"scheduleInfo":{"description":"test","startTime":"2022-10-23T12:30:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"2022-10-30T12:30:00+08:00","expiryTimeOffsetMinutes":480.0,"isEnabled":true,"nextRun":"2022-10-23T12:30:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-18T08:14:38.47+00:00","lastModifiedTime":"2022-10-18T08:14:38.47+00:00","timeZone":"UTC+08:00","advancedSchedule":null},"provisioningState":"Provisioning","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2022-10-18T08:14:38.53+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-18T08:14:38.53+00:00"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Automation/automationAccounts/account-000002/softwareUpdateConfigurations/conf-000003","name":"conf-000003","type":null,"properties":{"updateConfiguration":{"operatingSystem":"Windows","windows":{"includedUpdateClassifications":"Critical","excludedKbNumbers":["16800","16800"],"includedKbNumbers":["15000","15000"],"rebootSetting":"IfRequired"},"linux":null,"targets":{"azureQueries":[{"scope":["/subscriptions/00000000-0000-0000-0000-000000000000"],"tagSettings":{"tags":{"tag":["tag1","tag2"]},"filterOperator":0},"locations":["eastus","westus"]}],"nonAzureQueries":null},"duration":"PT2H","azureVirtualMachines":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_automation_software_update_configuration000001/providers/Microsoft.Compute/virtualMachines/vm-000004"],"nonAzureComputerNames":["nonvm1","nonvm2"]},"scheduleInfo":{"description":"test","startTime":"2022-10-23T12:30:00+08:00","startTimeOffsetMinutes":480.0,"expiryTime":"2022-10-30T12:30:00+08:00","expiryTimeOffsetMinutes":480.0,"isEnabled":true,"nextRun":"2022-10-23T12:30:00+08:00","nextRunOffsetMinutes":480.0,"interval":1,"frequency":"Hour","creationTime":"2022-10-19T08:13:21.3133333+00:00","lastModifiedTime":"2022-10-19T08:13:21.3133333+00:00","timeZone":"UTC+08:00","advancedSchedule":null},"provisioningState":"Provisioning","createdBy":"{scrubbed}","error":null,"tasks":null,"creationTime":"2022-10-19T08:13:21.4+00:00","lastModifiedBy":null,"lastModifiedTime":"2022-10-19T08:13:21.4+00:00"}}' headers: cache-control: - no-cache content-length: - - '1637' + - '1645' content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:44 GMT + - Wed, 19 Oct 2022 08:13:24 GMT expires: - '-1' pragma: @@ -1027,7 +1027,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:46 GMT + - Wed, 19 Oct 2022 08:13:26 GMT expires: - '-1' pragma: @@ -1073,7 +1073,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 18 Oct 2022 08:14:49 GMT + - Wed, 19 Oct 2022 08:13:28 GMT expires: - '-1' pragma: @@ -1119,7 +1119,7 @@ interactions: content-length: - '0' date: - - Tue, 18 Oct 2022 08:14:55 GMT + - Wed, 19 Oct 2022 08:13:30 GMT expires: - '-1' pragma: diff --git a/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py b/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py index 9dac00d1b8e..10246a35798 100644 --- a/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py +++ b/src/automation/azext_automation/tests/latest/test_automation_scenario_manual.py @@ -210,12 +210,14 @@ def test_automation_software_update_configuration(self, resource_group): 'vm_name':self.create_random_name('vm-', 15), }) + sub = '/subscriptions/' + self.get_subscription_id() vm_id = self.cmd('vm create -n {vm_name} -g {rg} --image ubuntults --generate-ssh-key --nsg-rule NONE').get_output_in_json()['id'] self.kwargs.update({ - 'vm_id': vm_id + 'vm_id': vm_id, + 'sub': sub }) self.cmd('automation account create -n {account_name} -g {rg}') - self.cmd('automation software-update-configuration create -n {conf_name} -g {rg} --automation-account-name {account_name} --description test --frequency Hour --interval 1 --operating-system windows --excluded-kb-numbers 16800 16800 --included-kb-numbers 15000 15000 --included-update-classifications Critical --duration pT2H0M --azure-virtual-machines {vm_id} --time-zone UTC+08:00 --start-time 2022-10-23 18:00:00 --expiry-time 2022-10-30 18:00:00 --next-run 2022-10-25 18:00:00 --non-azure-computer-names nonvm1 nonvm2 --reboot-setting IfRequired --azure-queries-scope /subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a --azure-queries-location eastus westus --azure-queries-tags tag1 tag2', checks=[ + self.cmd('automation software-update-configuration create -n {conf_name} -g {rg} --automation-account-name {account_name} --description test --frequency Hour --interval 1 --operating-system windows --excluded-kb-numbers 16800 16800 --included-kb-numbers 15000 15000 --included-update-classifications Critical --duration pT2H0M --azure-virtual-machines {vm_id} --time-zone UTC+08:00 --start-time 2022-10-23 18:00:00 --expiry-time 2022-10-30 18:00:00 --next-run 2022-10-25 18:00:00 --non-azure-computer-names nonvm1 nonvm2 --reboot-setting IfRequired --azure-queries-scope {sub} --azure-queries-location eastus westus --azure-queries-tags tag1 tag2', checks=[ self.check('name', '{conf_name}'), self.check('scheduleInfo.description', 'test'), self.check('scheduleInfo.frequency', 'Hour'), @@ -229,7 +231,7 @@ def test_automation_software_update_configuration(self, resource_group): self.check('updateConfiguration.nonAzureComputerNames', ['nonvm1', 'nonvm2']), self.check('updateConfiguration.operatingSystem', 'Windows'), self.check('updateConfiguration.targets.azureQueries[0].locations', ['eastus', 'westus']), - self.check('updateConfiguration.targets.azureQueries[0].scope', ['/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a']), + self.check('updateConfiguration.targets.azureQueries[0].scope', [sub]), self.check('updateConfiguration.targets.azureQueries[0].tagSettings.tags.tag', ['tag1','tag2']), self.check('updateConfiguration.windows.excludedKbNumbers', ['16800', '16800']), self.check('updateConfiguration.windows.includedKbNumbers', ['15000', '15000']), @@ -243,7 +245,7 @@ def test_automation_software_update_configuration(self, resource_group): self.check('value[0].updateConfiguration.nonAzureComputerNames', ['nonvm1', 'nonvm2']), self.check('value[0].updateConfiguration.operatingSystem', 'Windows'), self.check('value[0].updateConfiguration.targets.azureQueries[0].locations', ['eastus', 'westus']), - self.check('value[0].updateConfiguration.targets.azureQueries[0].scope', ['/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a']), + self.check('value[0].updateConfiguration.targets.azureQueries[0].scope', [sub]), self.check('value[0].updateConfiguration.targets.azureQueries[0].tagSettings.tags.tag', ['tag1', 'tag2']), self.check('value[0].updateConfiguration.windows.excludedKbNumbers', ['16800', '16800']), self.check('value[0].updateConfiguration.windows.includedKbNumbers', ['15000', '15000']), @@ -264,7 +266,7 @@ def test_automation_software_update_configuration(self, resource_group): self.check('updateConfiguration.nonAzureComputerNames', ['nonvm1', 'nonvm2']), self.check('updateConfiguration.operatingSystem', 'Windows'), self.check('updateConfiguration.targets.azureQueries[0].locations', ['eastus', 'westus']), - self.check('updateConfiguration.targets.azureQueries[0].scope', ['/subscriptions/cd45f23b-b832-4fa4-a434-1bf7e6f14a5a']), + self.check('updateConfiguration.targets.azureQueries[0].scope', [sub]), self.check('updateConfiguration.targets.azureQueries[0].tagSettings.tags.tag', ['tag1', 'tag2']), self.check('updateConfiguration.windows.excludedKbNumbers', ['16800', '16800']), self.check('updateConfiguration.windows.includedKbNumbers', ['15000', '15000']), From 86d24b00d788f4ba2a8ff5eb71cb7defaab748fb Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Thu, 20 Oct 2022 16:39:42 +0530 Subject: [PATCH 08/10] Updated Command with examples --- .../latest/automation/hrwg/hrw/__init__.py | 1 - .../aaz/latest/automation/hrwg/hrw/_create.py | 3 + .../aaz/latest/automation/hrwg/hrw/_delete.py | 3 + .../aaz/latest/automation/hrwg/hrw/_list.py | 3 + .../aaz/latest/automation/hrwg/hrw/_move.py | 3 + .../aaz/latest/automation/hrwg/hrw/_show.py | 3 + .../aaz/latest/automation/hrwg/hrw/_update.py | 416 ------------------ 7 files changed, 15 insertions(+), 417 deletions(-) delete mode 100644 src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_update.py diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/__init__.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/__init__.py index 6c85c17d26b..ad9df666711 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/__init__.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/__init__.py @@ -14,4 +14,3 @@ from ._list import * from ._move import * from ._show import * -from ._update import * diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_create.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_create.py index c5a35883f95..c5579094087 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_create.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_create.py @@ -16,6 +16,9 @@ ) class Create(AAZCommand): """Create a hybrid runbook worker. + + :example: Create a hybrid runbook worker + az automation hrwg hrw create --automation-account-name accountName --resource-group groupName --hybrid-runbook-worker-group-name hybridRunbookWorkerGroupName --hybrid-runbook-worker-id hybridRunbookWorkerId --vm-resource-id vmResourceId """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_delete.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_delete.py index 6139ec86e0f..a1fec9c7079 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_delete.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_delete.py @@ -17,6 +17,9 @@ ) class Delete(AAZCommand): """Delete a hybrid runbook worker. + + :example: Delete a hybrid worker + az automation hrwg hrw delete --automation-account-name accountName --resource-group groupName --hybrid-runbook-worker-group-name hybridRunbookWorkerGroupName --hybrid-runbook-worker-id hybridRunbookWorkerId """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_list.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_list.py index ec21202e00d..d23cbbe405a 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_list.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_list.py @@ -16,6 +16,9 @@ ) class List(AAZCommand): """List a list of hybrid runbook workers. + + :example: List all hybrid runbook workers in a worker group + az automation hrwg hrw list --automation-account-name accountName --resource-group groupName --hybrid-runbook-worker-group-name hybridRunbookWorkerGroupName """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_move.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_move.py index d27b1b02468..0ec1ee79b3c 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_move.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_move.py @@ -16,6 +16,9 @@ ) class Move(AAZCommand): """Move a hybrid worker to a different group. + + :example: Move a hybrid runbook worker to a different hybrid runbook worker group + az automation hrwg hrw move --automation-account-name accountName --resource-group groupName --hybrid-runbook-worker-group-name hybridRunbookWorkerGroupName --target-hybrid-runbook-worker-group-name targetHybridWorkerGroupName --hybrid-runbook-worker-id hybridRunbookWorkerId """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_show.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_show.py index 7530d4bb88d..c59aba8f436 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_show.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_show.py @@ -16,6 +16,9 @@ ) class Show(AAZCommand): """Get a hybrid runbook worker. + + :example: Get hybrid runbook worker + az automation hrwg hrw show --automation-account-name accountName --resource-group groupName --hybrid-runbook-worker-group-name hybridRunbookWorkerGroupName --hybrid-runbook-worker-id hybridRunbookWorkerId """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_update.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_update.py deleted file mode 100644 index 75d1af9d009..00000000000 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_update.py +++ /dev/null @@ -1,416 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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( - "automation hrwg hrw update", -) -class Update(AAZCommand): - """Update a hybrid runbook worker. - """ - - _aaz_info = { - "version": "2022-08-08", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.automation/automationaccounts/{}/hybridrunbookworkergroups/{}/hybridrunbookworkers/{}", "2022-08-08"], - ] - } - - 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.automation_account_name = AAZStrArg( - options=["--automation-account-name"], - help="The name of the automation account.", - required=True, - id_part="name", - ) - _args_schema.hybrid_runbook_worker_group_name = AAZStrArg( - options=["--hybrid-runbook-worker-group-name"], - help="The hybrid runbook worker group name", - required=True, - id_part="child_name_1", - ) - _args_schema.hybrid_runbook_worker_id = AAZStrArg( - options=["-n", "--name", "--hybrid-runbook-worker-id"], - help="The hybrid runbook worker id", - required=True, - id_part="child_name_2", - ) - _args_schema.resource_group = AAZResourceGroupNameArg( - required=True, - ) - - # define Arg Group "Properties" - - _args_schema = cls._args_schema - _args_schema.vm_resource_id = AAZStrArg( - options=["--vm-resource-id"], - arg_group="Properties", - help="Azure Resource Manager Id for a virtual machine.", - nullable=True, - ) - return cls._args_schema - - def _execute_operations(self): - self.pre_operations() - self.HybridRunbookWorkersGet(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.HybridRunbookWorkersCreate(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 HybridRunbookWorkersGet(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", - **self.url_parameters - ) - - @property - def method(self): - return "GET" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerId", self.ctx.args.hybrid_runbook_worker_id, - 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-08-08", - 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_hybrid_runbook_worker_read(cls._schema_on_200) - - return cls._schema_on_200 - - class HybridRunbookWorkersCreate(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.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", - **self.url_parameters - ) - - @property - def method(self): - return "PUT" - - @property - def error_format(self): - return "ODataV4Format" - - @property - def url_parameters(self): - parameters = { - **self.serialize_url_param( - "automationAccountName", self.ctx.args.automation_account_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerGroupName", self.ctx.args.hybrid_runbook_worker_group_name, - required=True, - ), - **self.serialize_url_param( - "hybridRunbookWorkerId", self.ctx.args.hybrid_runbook_worker_id, - 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-08-08", - 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_hybrid_runbook_worker_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("name", AAZStrType, ".hybrid_runbook_worker_id") - _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) - - properties = _builder.get(".properties") - if properties is not None: - properties.set_prop("vmResourceId", AAZStrType, ".vm_resource_id") - - 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_hybrid_runbook_worker_read = None - - -def _build_schema_hybrid_runbook_worker_read(_schema): - global _schema_hybrid_runbook_worker_read - if _schema_hybrid_runbook_worker_read is not None: - _schema.id = _schema_hybrid_runbook_worker_read.id - _schema.name = _schema_hybrid_runbook_worker_read.name - _schema.properties = _schema_hybrid_runbook_worker_read.properties - _schema.system_data = _schema_hybrid_runbook_worker_read.system_data - _schema.type = _schema_hybrid_runbook_worker_read.type - return - - _schema_hybrid_runbook_worker_read = AAZObjectType() - - hybrid_runbook_worker_read = _schema_hybrid_runbook_worker_read - hybrid_runbook_worker_read.id = AAZStrType( - flags={"read_only": True}, - ) - hybrid_runbook_worker_read.name = AAZStrType( - flags={"read_only": True}, - ) - hybrid_runbook_worker_read.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - hybrid_runbook_worker_read.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - hybrid_runbook_worker_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_hybrid_runbook_worker_read.properties - properties.ip = AAZStrType() - properties.last_seen_date_time = AAZStrType( - serialized_name="lastSeenDateTime", - ) - properties.registered_date_time = AAZStrType( - serialized_name="registeredDateTime", - ) - properties.vm_resource_id = AAZStrType( - serialized_name="vmResourceId", - ) - properties.worker_name = AAZStrType( - serialized_name="workerName", - ) - properties.worker_type = AAZStrType( - serialized_name="workerType", - ) - - system_data = _schema_hybrid_runbook_worker_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_hybrid_runbook_worker_read.id - _schema.name = _schema_hybrid_runbook_worker_read.name - _schema.properties = _schema_hybrid_runbook_worker_read.properties - _schema.system_data = _schema_hybrid_runbook_worker_read.system_data - _schema.type = _schema_hybrid_runbook_worker_read.type - - -__all__ = ["Update"] From ab5b2bdae13d4ae8eb636672dcba6482cdce101a Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Fri, 21 Oct 2022 11:42:47 +0530 Subject: [PATCH 09/10] Updated Command with examples --- src/automation/HISTORY.rst | 4 ++++ .../aaz/latest/automation/hrwg/__cmd_group.py | 2 +- .../azext_automation/aaz/latest/automation/hrwg/_create.py | 5 ++++- .../azext_automation/aaz/latest/automation/hrwg/_delete.py | 3 +++ .../azext_automation/aaz/latest/automation/hrwg/_list.py | 5 ++++- .../azext_automation/aaz/latest/automation/hrwg/_show.py | 5 ++++- .../azext_automation/aaz/latest/automation/hrwg/_update.py | 3 +++ .../aaz/latest/automation/python3_package/_create.py | 2 +- src/automation/setup.py | 2 +- 9 files changed, 25 insertions(+), 6 deletions(-) diff --git a/src/automation/HISTORY.rst b/src/automation/HISTORY.rst index fd67c685688..8c4de81396d 100644 --- a/src/automation/HISTORY.rst +++ b/src/automation/HISTORY.rst @@ -3,6 +3,10 @@ Release History =============== +0.2.1 +++++++ +* `az automation python3-package`: Add new command group to support managing python3 Package operations. + 0.2.0 ++++++ * `az automation schedule`: Add new command group to support managing schedule diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/__cmd_group.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/__cmd_group.py index 388c5bc53a9..57348b15fe5 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/__cmd_group.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/__cmd_group.py @@ -15,7 +15,7 @@ "automation hrwg", ) class __CMDGroup(AAZCommandGroup): - """Hrwg + """Automation Hybrid Runbook Worker Group """ pass diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/_create.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/_create.py index 99fe6f96bd3..d1ae9cf84dd 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/_create.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/_create.py @@ -15,7 +15,10 @@ "automation hrwg create", ) class Create(AAZCommand): - """Create a hybrid runbook worker group. + """Create a hybrid runbook worker group + + :example: Create a hybrid runbook worker group + az automation hrwg create --automation-account-name accountName --resource-group groupName --name hybridrunbookworkergroupName """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/_delete.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/_delete.py index 2f9afd9aa7b..6852544f81e 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/_delete.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/_delete.py @@ -17,6 +17,9 @@ ) class Delete(AAZCommand): """Delete a hybrid runbook worker group. + + :example: Delete hybrid worker group + az automation hrwg delete --automation-account-name accountName --resource-group groupName --name hybridrunbookworkergroupName """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/_list.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/_list.py index e3b1af3a419..720360d68bf 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/_list.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/_list.py @@ -15,7 +15,10 @@ "automation hrwg list", ) class List(AAZCommand): - """List a list of hybrid runbook worker groups. + """List all hybrid runbook worker groups + + :example: List all hybrid runbook worker groups + az automation hrwg list --automation-account-name accountName --resource-group groupName """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/_show.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/_show.py index 71ca1b57165..851618b5405 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/_show.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/_show.py @@ -15,7 +15,10 @@ "automation hrwg show", ) class Show(AAZCommand): - """Get a hybrid runbook worker group. + """Get hybrid worker group + + :example: Get hybrid worker group + az automation hrwg show --automation-account-name accountName --resource-group groupName --name hybridrunbookworkergroupName """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/_update.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/_update.py index 9bc0136f147..3ed004e0c20 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/_update.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/_update.py @@ -16,6 +16,9 @@ ) class Update(AAZCommand): """Update a hybrid runbook worker group. + + :example: Update hybrid worker group + az automation hrwg update --automation-account-name accountName --resource-group groupName --name hybridrunbookworkergroupName --credential "{name: credentialname}" """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/python3_package/_create.py b/src/automation/azext_automation/aaz/latest/automation/python3_package/_create.py index 4ae08150a87..4961be427da 100644 --- a/src/automation/azext_automation/aaz/latest/automation/python3_package/_create.py +++ b/src/automation/azext_automation/aaz/latest/automation/python3_package/_create.py @@ -18,7 +18,7 @@ class Create(AAZCommand): """Create or Update the python 3 package identified by package name. :example: Add Python3 Package to automation account - az automation python3-package create --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup" --name "PackageName" --content-link "uri=https://PackageUri.com" + az automation python3-package create --automation-account-name "MyAutomationAccount" --resource-group "MyResourceGroup" --name "PackageName" --content-link "uri=https://PackageUri.com" """ _aaz_info = { diff --git a/src/automation/setup.py b/src/automation/setup.py index ae416c9d979..d1ad108c545 100644 --- a/src/automation/setup.py +++ b/src/automation/setup.py @@ -10,7 +10,7 @@ from setuptools import setup, find_packages # HISTORY.rst entry. -VERSION = '0.2.0' +VERSION = '0.2.1' try: from azext_automation.manual.version import VERSION except ImportError: From 7c9128400fc49498b76186cfee2b009bade81746 Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Fri, 21 Oct 2022 13:03:37 +0530 Subject: [PATCH 10/10] Updated Command with examples --- src/automation/HISTORY.rst | 2 +- .../azext_automation/aaz/latest/automation/hrwg/_delete.py | 2 +- .../azext_automation/aaz/latest/automation/hrwg/_show.py | 2 +- .../azext_automation/aaz/latest/automation/hrwg/_update.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/automation/HISTORY.rst b/src/automation/HISTORY.rst index 8c4de81396d..54e332efde1 100644 --- a/src/automation/HISTORY.rst +++ b/src/automation/HISTORY.rst @@ -5,7 +5,7 @@ Release History 0.2.1 ++++++ -* `az automation python3-package`: Add new command group to support managing python3 Package operations. +* `az automation python3-package`: Add new command group to support managing python3 package operations. 0.2.0 ++++++ diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/_delete.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/_delete.py index 6852544f81e..7f2ca5c3a7a 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/_delete.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/_delete.py @@ -19,7 +19,7 @@ class Delete(AAZCommand): """Delete a hybrid runbook worker group. :example: Delete hybrid worker group - az automation hrwg delete --automation-account-name accountName --resource-group groupName --name hybridrunbookworkergroupName + az automation hrwg delete --automation-account-name accountName --resource-group groupName --name hybridrunbookworkergroupName """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/_show.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/_show.py index 851618b5405..54e1f3e29cb 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/_show.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/_show.py @@ -18,7 +18,7 @@ class Show(AAZCommand): """Get hybrid worker group :example: Get hybrid worker group - az automation hrwg show --automation-account-name accountName --resource-group groupName --name hybridrunbookworkergroupName + az automation hrwg show --automation-account-name accountName --resource-group groupName --name hybridrunbookworkergroupName """ _aaz_info = { diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/_update.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/_update.py index 3ed004e0c20..8246ddfe9e5 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/_update.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/_update.py @@ -18,7 +18,7 @@ class Update(AAZCommand): """Update a hybrid runbook worker group. :example: Update hybrid worker group - az automation hrwg update --automation-account-name accountName --resource-group groupName --name hybridrunbookworkergroupName --credential "{name: credentialname}" + az automation hrwg update --automation-account-name accountName --resource-group groupName --name hybridrunbookworkergroupName --credential "{name: credentialname}" """ _aaz_info = {