From 69c62ef820b373b5c4cc0e722ce1253875cdd902 Mon Sep 17 00:00:00 2001 From: william Date: Thu, 3 Sep 2026 12:48:44 +0800 Subject: [PATCH 1/7] Removed vmss extension image list-version & show, generated 2026-04-01 aaz for vm extension image list-version & show --- .../vm/extension/image/_list_versions.py | 72 +++++- .../vm/aaz/latest/vm/extension/image/_show.py | 64 ++++- .../latest/vmss/extension/image/__init__.py | 2 - .../vmss/extension/image/_list_versions.py | 235 ------------------ .../aaz/latest/vmss/extension/image/_show.py | 221 ---------------- 5 files changed, 130 insertions(+), 464 deletions(-) delete mode 100644 src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/extension/image/_list_versions.py delete mode 100644 src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/extension/image/_show.py diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/extension/image/_list_versions.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/extension/image/_list_versions.py index 1a9fed030fa..224fb930a54 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/extension/image/_list_versions.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/extension/image/_list_versions.py @@ -22,9 +22,9 @@ class ListVersions(AAZCommand): """ _aaz_info = { - "version": "2024-11-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmextension/types/{}/versions", "2024-11-01"], + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmextension/types/{}/versions", "2026-04-01"], ] } @@ -60,6 +60,11 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_3", ) + _args_schema.expand = AAZStrArg( + options=["--expand"], + help="Expand the response to include additional read-only metadata. Allowed values: `properties` — returns extended metadata (`releaseCategory`, `urgencyLevel`, `runProfile`).", + enum={"properties": "properties"}, + ) _args_schema.filter = AAZStrArg( options=["--filter"], help="The filter to apply on the operation. Default value is None.", @@ -142,6 +147,9 @@ def url_parameters(self): @property def query_parameters(self): parameters = { + **self.serialize_query_param( + "$expand", self.ctx.args.expand, + ), **self.serialize_query_param( "$filter", self.ctx.args.filter, ), @@ -152,7 +160,7 @@ def query_parameters(self): "$top", self.ctx.args.top, ), **self.serialize_query_param( - "api-version", "2024-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -200,6 +208,10 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.tags = AAZDictType() _element.type = AAZStrType( flags={"read_only": True}, @@ -210,6 +222,10 @@ def _build_schema_on_200(cls): serialized_name="computeRole", flags={"required": True}, ) + properties.extension_feature_metadata = AAZObjectType( + serialized_name="extensionFeatureMetadata", + flags={"read_only": True}, + ) properties.handler_schema = AAZStrType( serialized_name="handlerSchema", flags={"required": True}, @@ -218,13 +234,63 @@ def _build_schema_on_200(cls): serialized_name="operatingSystem", flags={"required": True}, ) + properties.release_category = AAZStrType( + serialized_name="releaseCategory", + flags={"read_only": True}, + ) + properties.release_notes = AAZStrType( + serialized_name="releaseNotes", + flags={"read_only": True}, + ) + properties.run_profile = AAZStrType( + serialized_name="runProfile", + flags={"read_only": True}, + ) properties.supports_multiple_extensions = AAZBoolType( serialized_name="supportsMultipleExtensions", ) + properties.urgency_level = AAZStrType( + serialized_name="urgencyLevel", + flags={"read_only": True}, + ) properties.vm_scale_set_enabled = AAZBoolType( serialized_name="vmScaleSetEnabled", ) + extension_feature_metadata = cls._schema_on_200.Element.properties.extension_feature_metadata + extension_feature_metadata.extension_feature_tags = AAZListType( + serialized_name="extensionFeatureTags", + ) + + extension_feature_tags = cls._schema_on_200.Element.properties.extension_feature_metadata.extension_feature_tags + extension_feature_tags.Element = AAZObjectType() + + _element = cls._schema_on_200.Element.properties.extension_feature_metadata.extension_feature_tags.Element + _element.key = AAZStrType( + flags={"required": True}, + ) + _element.value = AAZStrType() + + system_data = cls._schema_on_200.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + tags = cls._schema_on_200.Element.tags tags.Element = AAZStrType() diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/extension/image/_show.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/extension/image/_show.py index 03c0e45e1a6..89a30f8f305 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/extension/image/_show.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/extension/image/_show.py @@ -26,9 +26,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2024-11-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmextension/types/{}/versions/{}", "2024-11-01"], + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmextension/types/{}/versions/{}", "2026-04-01"], ] } @@ -145,7 +145,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2024-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -190,6 +190,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.tags = AAZDictType() _schema_on_200.type = AAZStrType( flags={"read_only": True}, @@ -200,6 +204,10 @@ def _build_schema_on_200(cls): serialized_name="computeRole", flags={"required": True}, ) + properties.extension_feature_metadata = AAZObjectType( + serialized_name="extensionFeatureMetadata", + flags={"read_only": True}, + ) properties.handler_schema = AAZStrType( serialized_name="handlerSchema", flags={"required": True}, @@ -208,13 +216,63 @@ def _build_schema_on_200(cls): serialized_name="operatingSystem", flags={"required": True}, ) + properties.release_category = AAZStrType( + serialized_name="releaseCategory", + flags={"read_only": True}, + ) + properties.release_notes = AAZStrType( + serialized_name="releaseNotes", + flags={"read_only": True}, + ) + properties.run_profile = AAZStrType( + serialized_name="runProfile", + flags={"read_only": True}, + ) properties.supports_multiple_extensions = AAZBoolType( serialized_name="supportsMultipleExtensions", ) + properties.urgency_level = AAZStrType( + serialized_name="urgencyLevel", + flags={"read_only": True}, + ) properties.vm_scale_set_enabled = AAZBoolType( serialized_name="vmScaleSetEnabled", ) + extension_feature_metadata = cls._schema_on_200.properties.extension_feature_metadata + extension_feature_metadata.extension_feature_tags = AAZListType( + serialized_name="extensionFeatureTags", + ) + + extension_feature_tags = cls._schema_on_200.properties.extension_feature_metadata.extension_feature_tags + extension_feature_tags.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.extension_feature_metadata.extension_feature_tags.Element + _element.key = AAZStrType( + flags={"required": True}, + ) + _element.value = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + tags = cls._schema_on_200.tags tags.Element = AAZStrType() diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/extension/image/__init__.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/extension/image/__init__.py index 4b2012758a6..6bfb2f2b86b 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/extension/image/__init__.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/extension/image/__init__.py @@ -10,5 +10,3 @@ from .__cmd_group import * from ._list_names import * -from ._list_versions import * -from ._show import * diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/extension/image/_list_versions.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/extension/image/_list_versions.py deleted file mode 100644 index cf97506cf17..00000000000 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/extension/image/_list_versions.py +++ /dev/null @@ -1,235 +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( - "vmss extension image list-versions", -) -class ListVersions(AAZCommand): - """List virtual machine extension image versions. - """ - - _aaz_info = { - "version": "2022-08-01", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmextension/types/{}/versions", "2022-08-01"], - ] - } - - 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.location = AAZResourceLocationArg( - required=True, - id_part="name", - ) - _args_schema.publisher_name = AAZStrArg( - options=["-p", "--publisher", "--publisher-name"], - help="Image publisher name.", - required=True, - id_part="child_name_1", - ) - _args_schema.name = AAZStrArg( - options=["-n", "--name", "--type"], - help="Name of the extension.", - required=True, - id_part="child_name_3", - ) - _args_schema.filter = AAZStrArg( - options=["--filter"], - help="The filter to apply on the operation. Default value is None.", - ) - _args_schema.orderby = AAZStrArg( - options=["--orderby"], - help="The $orderby odata query option.", - ) - _args_schema.top = AAZIntArg( - options=["--top"], - help="The $top odata query option.", - ) - return cls._args_schema - - def _execute_operations(self): - self.pre_operations() - self.VirtualMachineExtensionImagesListVersions(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 VirtualMachineExtensionImagesListVersions(AAZHttpOperation): - CLIENT_TYPE = "MgmtClient" - - def __call__(self, *args, **kwargs): - request = self.make_request() - session = self.client.send_request(request=request, stream=False, **kwargs) - if session.http_response.status_code in [200]: - return self.on_200(session) - - return self.on_error(session.http_response) - - @property - def url(self): - return self.client.format_url( - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions", - **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( - "location", self.ctx.args.location, - required=True, - ), - **self.serialize_url_param( - "publisherName", self.ctx.args.publisher_name, - required=True, - ), - **self.serialize_url_param( - "subscriptionId", self.ctx.subscription_id, - required=True, - ), - **self.serialize_url_param( - "type", self.ctx.args.name, - required=True, - ), - } - return parameters - - @property - def query_parameters(self): - parameters = { - **self.serialize_query_param( - "$filter", self.ctx.args.filter, - ), - **self.serialize_query_param( - "$orderby", self.ctx.args.orderby, - ), - **self.serialize_query_param( - "$top", self.ctx.args.top, - ), - **self.serialize_query_param( - "api-version", "2022-08-01", - 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 = AAZListType() - - _schema_on_200 = cls._schema_on_200 - _schema_on_200.Element = AAZObjectType() - - _element = cls._schema_on_200.Element - _element.id = AAZStrType( - flags={"read_only": True}, - ) - _element.location = AAZStrType( - flags={"required": True}, - ) - _element.name = AAZStrType( - flags={"required": True, "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.Element.properties - properties.compute_role = AAZStrType( - serialized_name="computeRole", - flags={"required": True}, - ) - properties.handler_schema = AAZStrType( - serialized_name="handlerSchema", - flags={"required": True}, - ) - properties.operating_system = AAZStrType( - serialized_name="operatingSystem", - flags={"required": True}, - ) - properties.supports_multiple_extensions = AAZBoolType( - serialized_name="supportsMultipleExtensions", - ) - properties.vm_scale_set_enabled = AAZBoolType( - serialized_name="vmScaleSetEnabled", - ) - - tags = cls._schema_on_200.Element.tags - tags.Element = AAZStrType() - - return cls._schema_on_200 - - -class _ListVersionsHelper: - """Helper class for ListVersions""" - - -__all__ = ["ListVersions"] diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/extension/image/_show.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/extension/image/_show.py deleted file mode 100644 index aac023d52e1..00000000000 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/extension/image/_show.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( - "vmss extension image show", -) -class Show(AAZCommand): - """Get a virtual machine extension image. - """ - - _aaz_info = { - "version": "2022-08-01", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmextension/types/{}/versions/{}", "2022-08-01"], - ] - } - - 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.location = AAZResourceLocationArg( - required=True, - id_part="name", - ) - _args_schema.publisher_name = AAZStrArg( - options=["-p", "--publisher", "--publisher-name"], - help="Image publisher name.", - required=True, - id_part="child_name_1", - ) - _args_schema.name = AAZStrArg( - options=["-n", "--name", "--type"], - help="Name of the extension.", - required=True, - id_part="child_name_3", - ) - _args_schema.version = AAZStrArg( - options=["--version"], - help="Extension version", - required=True, - id_part="child_name_4", - ) - return cls._args_schema - - def _execute_operations(self): - self.pre_operations() - self.VirtualMachineExtensionImagesGet(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 VirtualMachineExtensionImagesGet(AAZHttpOperation): - CLIENT_TYPE = "MgmtClient" - - def __call__(self, *args, **kwargs): - request = self.make_request() - session = self.client.send_request(request=request, stream=False, **kwargs) - if session.http_response.status_code in [200]: - return self.on_200(session) - - return self.on_error(session.http_response) - - @property - def url(self): - return self.client.format_url( - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}", - **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( - "location", self.ctx.args.location, - required=True, - ), - **self.serialize_url_param( - "publisherName", self.ctx.args.publisher_name, - required=True, - ), - **self.serialize_url_param( - "subscriptionId", self.ctx.subscription_id, - required=True, - ), - **self.serialize_url_param( - "type", self.ctx.args.name, - required=True, - ), - **self.serialize_url_param( - "version", self.ctx.args.version, - required=True, - ), - } - return parameters - - @property - def query_parameters(self): - parameters = { - **self.serialize_query_param( - "api-version", "2022-08-01", - required=True, - ), - } - return parameters - - @property - def header_parameters(self): - parameters = { - **self.serialize_header_param( - "Accept", "application/json", - ), - } - return parameters - - def on_200(self, session): - data = self.deserialize_http_content(session) - self.ctx.set_var( - "instance", - data, - schema_builder=self._build_schema_on_200 - ) - - _schema_on_200 = None - - @classmethod - def _build_schema_on_200(cls): - if cls._schema_on_200 is not None: - return cls._schema_on_200 - - cls._schema_on_200 = AAZObjectType() - - _schema_on_200 = cls._schema_on_200 - _schema_on_200.id = AAZStrType( - flags={"read_only": True}, - ) - _schema_on_200.location = AAZStrType( - flags={"required": True}, - ) - _schema_on_200.name = AAZStrType( - flags={"required": True, "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.compute_role = AAZStrType( - serialized_name="computeRole", - flags={"required": True}, - ) - properties.handler_schema = AAZStrType( - serialized_name="handlerSchema", - flags={"required": True}, - ) - properties.operating_system = AAZStrType( - serialized_name="operatingSystem", - flags={"required": True}, - ) - properties.supports_multiple_extensions = AAZBoolType( - serialized_name="supportsMultipleExtensions", - ) - properties.vm_scale_set_enabled = AAZBoolType( - serialized_name="vmScaleSetEnabled", - ) - - tags = cls._schema_on_200.tags - tags.Element = AAZStrType() - - return cls._schema_on_200 - - -class _ShowHelper: - """Helper class for Show""" - - -__all__ = ["Show"] From 331f262098199e24a7a23b8d4b84aea6fafab902 Mon Sep 17 00:00:00 2001 From: william Date: Thu, 3 Sep 2026 12:49:34 +0800 Subject: [PATCH 2/7] Added custom command for vmss extension image list-version & show --- .../azure/cli/command_modules/vm/commands.py | 3 +++ .../vm/operations/vmss_extension_image.py | 23 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/azure-cli/azure/cli/command_modules/vm/operations/vmss_extension_image.py diff --git a/src/azure-cli/azure/cli/command_modules/vm/commands.py b/src/azure-cli/azure/cli/command_modules/vm/commands.py index d6d3d66ffdb..35591e8b9ed 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/commands.py @@ -329,6 +329,9 @@ def load_command_table(self, _): with self.command_group('vmss extension image') as g: g.custom_command('list', 'list_vm_extension_images') + from .operations.vmss_extension_image import VMSSExtensionImageListVersions, VMSSExtensionImageShow + self.command_table['vmss extension image list-versions'] = VMSSExtensionImageListVersions(loader=self) + self.command_table['vmss extension image show'] = VMSSExtensionImageShow(loader=self) with self.command_group('vmss run-command') as g: g.custom_command('invoke', 'vmss_run_command_invoke') diff --git a/src/azure-cli/azure/cli/command_modules/vm/operations/vmss_extension_image.py b/src/azure-cli/azure/cli/command_modules/vm/operations/vmss_extension_image.py new file mode 100644 index 00000000000..b8bd59864b2 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/operations/vmss_extension_image.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. +# -------------------------------------------------------------------------------------------- + +from azure.cli.core.aaz import register_command + +from ..aaz.latest.vm.extension.image import ListVersions as _VMExtensionImageListVersions +from ..aaz.latest.vm.extension.image import Show as _VMExtensionImageShow + + +@register_command( + "vmss extension image list-versions", +) +class VMSSExtensionImageListVersions(_VMExtensionImageListVersions): + """List the versions for available extensions.""" + + +@register_command( + "vmss extension image show", +) +class VMSSExtensionImageShow(_VMExtensionImageShow): + """Display information for an extension.""" From 46b6b46ce518a2f90abd5c4910472cc6b9ed1403 Mon Sep 17 00:00:00 2001 From: william Date: Thu, 3 Sep 2026 12:49:59 +0800 Subject: [PATCH 3/7] Add test case --- .../vm/tests/latest/test_vm_commands.py | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index 046a162be2f..563b9ad4898 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py @@ -2564,6 +2564,32 @@ def test_vm_machine_extension_image(self): self.check("contains(id, '/Providers/Microsoft.Compute/Locations/{loc}/Publishers/{pub}/ArtifactTypes/VMExtension/Types/{ext}/Versions/{ver}')", True) ]) + @live_only() + def test_vmss_extension_image_matches_vm_commands(self): + self.kwargs.update({ + 'loc': 'eastus', + 'pub': 'Microsoft.Compute', + 'ext': 'CustomScriptExtension' + }) + + command_results = {} + for command_group in ('vm', 'vmss'): + versions = self.cmd( + '{} extension image list-versions --location {{loc}} --publisher {{pub}} ' + '--name {{ext}}'.format(command_group) + ).get_output_in_json() + self.assertTrue(versions) + + self.kwargs['ver'] = versions[0]['name'] + image = self.cmd( + '{} extension image show --location {{loc}} --publisher {{pub}} ' + '--name {{ext}} --version {{ver}}'.format(command_group) + ).get_output_in_json() + self.assertEqual(image['name'], self.kwargs['ver']) + command_results[command_group] = (versions, image) + + self.assertEqual(command_results['vm'], command_results['vmss']) + class VMExtensionImageSearchScenarioTest(LiveScenarioTest): From d745e300a0d49469fb22a7b6e3208c6bbe0821c8 Mon Sep 17 00:00:00 2001 From: william Date: Thu, 3 Sep 2026 12:50:16 +0800 Subject: [PATCH 4/7] Update recording version --- .../latest/recordings/test_vm_machine_extension_image.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_machine_extension_image.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_machine_extension_image.yaml index 3816644f348..f650379aa75 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_machine_extension_image.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_machine_extension_image.yaml @@ -72,7 +72,7 @@ interactions: User-Agent: - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (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/Microsoft.Azure.Diagnostics/artifacttypes/vmextension/types/IaaSDiagnostics/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.Diagnostics/artifacttypes/vmextension/types/IaaSDiagnostics/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"1.1.0.0\"\ @@ -223,7 +223,7 @@ interactions: User-Agent: - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (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/Microsoft.Azure.Diagnostics/artifacttypes/vmextension/types/IaaSDiagnostics/versions/1.6.4.0?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.Diagnostics/artifacttypes/vmextension/types/IaaSDiagnostics/versions/1.6.4.0?api-version=2026-04-01 response: body: string: "{\r\n \"properties\": {\r\n \"operatingSystem\": \"Windows\",\r\ From 849f10dab955d72a852c9138e6cf4a14b3f8b1b5 Mon Sep 17 00:00:00 2001 From: william Date: Thu, 3 Sep 2026 13:01:37 +0800 Subject: [PATCH 5/7] update test case name --- .../cli/command_modules/vm/tests/latest/test_vm_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index 563b9ad4898..50cb97acf4f 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py @@ -2565,7 +2565,7 @@ def test_vm_machine_extension_image(self): ]) @live_only() - def test_vmss_extension_image_matches_vm_commands(self): + def test_vm_vmss_extension_image(self): self.kwargs.update({ 'loc': 'eastus', 'pub': 'Microsoft.Compute', From 939719a9d1ac7a887c8e5762db4af090cd970c5f Mon Sep 17 00:00:00 2001 From: william Date: Thu, 3 Sep 2026 13:55:39 +0800 Subject: [PATCH 6/7] Update test case --- .../vm/tests/latest/test_vm_commands.py | 35 ++++++++++++++++--- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index 50cb97acf4f..c315d9d42ce 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py @@ -2574,19 +2574,46 @@ def test_vm_vmss_extension_image(self): command_results = {} for command_group in ('vm', 'vmss'): - versions = self.cmd( + versions_without_expand = self.cmd( '{} extension image list-versions --location {{loc}} --publisher {{pub}} ' '--name {{ext}}'.format(command_group) ).get_output_in_json() - self.assertTrue(versions) + self.assertTrue(versions_without_expand) - self.kwargs['ver'] = versions[0]['name'] + versions_with_metadata = self.cmd( + '{} extension image list-versions --location {{loc}} --publisher {{pub}} ' + '--name {{ext}} --expand properties'.format(command_group) + ).get_output_in_json() + self.assertTrue(versions_with_metadata) + self.assertEqual( + [version['name'] for version in versions_without_expand], + [version['name'] for version in versions_with_metadata] + ) + self.assertTrue(all( + field in version + for version in versions_with_metadata + for field in ('releaseCategory', 'urgencyLevel', 'runProfile') + )) + + self.kwargs['ver'] = self.cmd( + '{} extension image list-versions --location {{loc}} --publisher {{pub}} ' + '--name {{ext}} --expand properties ' + '--query "[?releaseCategory==\'SecurityFix\' && urgencyLevel==\'Emergency\'].name | [0]" ' + '--output tsv'.format(command_group) + ).output.strip() + self.assertTrue(self.kwargs['ver']) image = self.cmd( '{} extension image show --location {{loc}} --publisher {{pub}} ' '--name {{ext}} --version {{ver}}'.format(command_group) ).get_output_in_json() self.assertEqual(image['name'], self.kwargs['ver']) - command_results[command_group] = (versions, image) + for field in ('releaseNotes', 'releaseCategory', 'urgencyLevel', 'runProfile'): + self.assertIn(field, image) + + feature_tags = image['extensionFeatureMetadata']['extensionFeatureTags'] + self.assertTrue(feature_tags) + self.assertTrue(all('key' in tag and 'value' in tag for tag in feature_tags)) + command_results[command_group] = (versions_without_expand, versions_with_metadata, image) self.assertEqual(command_results['vm'], command_results['vmss']) From 6b68c68f537f850654b15587f99ba57933a54f0f Mon Sep 17 00:00:00 2001 From: william Date: Thu, 3 Sep 2026 14:49:25 +0800 Subject: [PATCH 7/7] Update test case recording version --- .../recordings/test_network_watcher_packet_capture.yaml | 2 +- ...est_network_watcher_packet_capture_vmss_as_target.yaml | 2 +- .../tests/latest/recordings/test_network_watcher_vm.yaml | 2 +- .../recordings/test_nw_connection_monitor_output.yaml | 4 ++-- ...st_nw_connection_monitor_output_type_as_workspace.yaml | 2 +- .../test_nw_connection_monitor_v2_creation.yaml | 4 ++-- .../test_nw_connection_monitor_v2_endpoint.yaml | 4 ++-- .../test_guest_attestation_extension_and_msi.yaml | 4 ++-- .../vm/tests/latest/recordings/test_vm_extension.yaml | 4 ++-- .../recordings/test_vm_vmss_extension_autoupgrade.yaml | 8 ++++---- .../vm/tests/latest/recordings/test_vmss_extension.yaml | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_watcher_packet_capture.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_watcher_packet_capture.yaml index 9e1d782ae9d..f0229c4d01f 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_watcher_packet_capture.yaml +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_watcher_packet_capture.yaml @@ -11249,7 +11249,7 @@ interactions: User-Agent: - AZURECLI/2.84.0 azsdk-python-core/1.38.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"westus2\",\r\n \"name\": \"1.4.105.0\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_watcher_packet_capture_vmss_as_target.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_watcher_packet_capture_vmss_as_target.yaml index 8a28133aff9..0651a966d93 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_watcher_packet_capture_vmss_as_target.yaml +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_watcher_packet_capture_vmss_as_target.yaml @@ -5941,7 +5941,7 @@ interactions: User-Agent: - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"westcentralus\",\r\n \"name\": \"1.4.105.0\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_watcher_vm.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_watcher_vm.yaml index 88c87640c86..f4b93bb87c4 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_watcher_vm.yaml +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_watcher_vm.yaml @@ -10588,7 +10588,7 @@ interactions: User-Agent: - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"westcentralus\",\r\n \"name\": \"1.4.105.0\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_output.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_output.yaml index e38d29121f9..f9ccc93cad6 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_output.yaml +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_output.yaml @@ -7122,7 +7122,7 @@ interactions: User-Agent: - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"1.4.105.0\",\r\n @@ -14603,7 +14603,7 @@ interactions: User-Agent: - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"1.4.105.0\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_output_type_as_workspace.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_output_type_as_workspace.yaml index 6a7efdab48d..c0d753df9a3 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_output_type_as_workspace.yaml +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_output_type_as_workspace.yaml @@ -7123,7 +7123,7 @@ interactions: User-Agent: - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"1.4.105.0\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_v2_creation.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_v2_creation.yaml index c2e8ae29db7..33d9d8bba08 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_v2_creation.yaml +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_v2_creation.yaml @@ -7169,7 +7169,7 @@ interactions: User-Agent: - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.12.1 (Linux-6.8.0-1026-azure-x86_64-with-glibc2.31) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"1.4.105.0\",\r\n @@ -14696,7 +14696,7 @@ interactions: User-Agent: - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.12.1 (Linux-6.8.0-1026-azure-x86_64-with-glibc2.31) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"1.4.105.0\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_v2_endpoint.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_v2_endpoint.yaml index 740a3489dbb..88b5b78beb5 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_v2_endpoint.yaml +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_nw_connection_monitor_v2_endpoint.yaml @@ -7343,7 +7343,7 @@ interactions: User-Agent: - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"1.4.105.0\",\r\n @@ -15044,7 +15044,7 @@ interactions: User-Agent: - AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.NetworkWatcher/artifacttypes/vmextension/types/NetworkWatcherAgentLinux/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"1.4.105.0\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_guest_attestation_extension_and_msi.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_guest_attestation_extension_and_msi.yaml index b8ecc1e33b5..b8ee3d38e27 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_guest_attestation_extension_and_msi.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_guest_attestation_extension_and_msi.yaml @@ -9050,7 +9050,7 @@ interactions: User-Agent: - AZURECLI/2.80.0 azsdk-python-core/1.35.0 Python/3.11.9 (Windows-10-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.Security.LinuxAttestation/artifacttypes/vmextension/types/GuestAttestation/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.Security.LinuxAttestation/artifacttypes/vmextension/types/GuestAttestation/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"1.0.1.10\",\r\n @@ -25287,7 +25287,7 @@ interactions: User-Agent: - AZURECLI/2.80.0 azsdk-python-core/1.35.0 Python/3.11.9 (Windows-10-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.Security.LinuxAttestation/artifacttypes/vmextension/types/GuestAttestation/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.Security.LinuxAttestation/artifacttypes/vmextension/types/GuestAttestation/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"1.0.1.10\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_extension.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_extension.yaml index e73e18a4f97..abd3295c880 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_extension.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_extension.yaml @@ -6717,7 +6717,7 @@ interactions: User-Agent: - AZURECLI/2.80.0 azsdk-python-core/1.35.0 Python/3.11.9 (Windows-10-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.Security.LinuxAttestation/artifacttypes/vmextension/types/GuestAttestation/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.Security.LinuxAttestation/artifacttypes/vmextension/types/GuestAttestation/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"1.0.1.10\",\r\n @@ -13598,7 +13598,7 @@ interactions: User-Agent: - AZURECLI/2.80.0 azsdk-python-core/1.35.0 Python/3.11.9 (Windows-10-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.Security.WindowsCodeIntegrity/artifacttypes/vmextension/types/CodeIntegrityAgent/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.Security.WindowsCodeIntegrity/artifacttypes/vmextension/types/CodeIntegrityAgent/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"1.0.0.0\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_extension_autoupgrade.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_extension_autoupgrade.yaml index 58209973045..557304ae668 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_extension_autoupgrade.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_extension_autoupgrade.yaml @@ -7696,7 +7696,7 @@ interactions: User-Agent: - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.Security.LinuxAttestation/artifacttypes/vmextension/types/GuestAttestation/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.Security.LinuxAttestation/artifacttypes/vmextension/types/GuestAttestation/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"1.0.1.10\",\r\n @@ -14532,7 +14532,7 @@ interactions: User-Agent: - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.Security.LinuxAttestation/artifacttypes/vmextension/types/GuestAttestation/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.Security.LinuxAttestation/artifacttypes/vmextension/types/GuestAttestation/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"1.0.1.10\",\r\n @@ -21283,7 +21283,7 @@ interactions: User-Agent: - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.Security.LinuxAttestation/artifacttypes/vmextension/types/GuestAttestation/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.Security.LinuxAttestation/artifacttypes/vmextension/types/GuestAttestation/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"1.0.1.10\",\r\n @@ -27755,7 +27755,7 @@ interactions: User-Agent: - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.Security.LinuxAttestation/artifacttypes/vmextension/types/GuestAttestation/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Azure.Security.LinuxAttestation/artifacttypes/vmextension/types/GuestAttestation/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"1.0.1.10\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_extension.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_extension.yaml index a0f46590fc4..9122f830643 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_extension.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_extension.yaml @@ -7451,7 +7451,7 @@ interactions: User-Agent: - AZURECLI/2.86.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.Security.WindowsCodeIntegrity/artifacttypes/vmextension/types/CodeIntegrityAgent/versions?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Microsoft.Azure.Security.WindowsCodeIntegrity/artifacttypes/vmextension/types/CodeIntegrityAgent/versions?api-version=2026-04-01 response: body: string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"1.0.0.0\",\r\n