From 2a82e669653d2e114df983e27407c59a9d4008b7 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 10 Aug 2026 14:43:32 +0800 Subject: [PATCH 01/22] Generate aaz code for capacity reservation group --- .../capacity/reservation/group/_create.py | 23 +++- .../capacity/reservation/group/_list.py | 105 ++++++++++++++---- .../capacity/reservation/group/_show.py | 16 ++- .../capacity/reservation/group/_update.py | 23 +++- 4 files changed, 138 insertions(+), 29 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_create.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_create.py index d3443642833..6cebb63b022 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_create.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_create.py @@ -16,9 +16,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2024-11-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}", "2024-11-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}", "2026-04-01"], ] } @@ -78,6 +78,12 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema + _args_schema.reservation_type = AAZStrArg( + options=["--reservation-type"], + arg_group="Properties", + help="Indicates the type of capacity reservation. Allowed values are 'Block' for block capacity reservations that enable a VM to consume capacity only from this capacity block when it is associated using a capacity reservation group, 'Targeted' for reservations that enable a VM to consume capacity from an explicitly associated capacity reservation group and fall back to the publicly available capacity if the reservation is full, and 'Open' for reservations that a VM consumes when it is eligible from an implicitly associated capacity reservation group with the matching VM size and zone without associating that capacity reservation group and fall back to the publicly available capacity if the reservation is full. The reservation type is immutable and cannot be changed after the capacity reservation group is created.", + enum={"Block": "Block", "Open": "Open", "Targeted": "Targeted"}, + ) _args_schema.sharing_profile = AAZObjectArg( options=["--sharing-profile"], arg_group="Properties", @@ -165,7 +171,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, ), } @@ -197,6 +203,7 @@ def content(self): properties = _builder.get(".properties") if properties is not None: + properties.set_prop("reservationType", AAZStrType, ".reservation_type") properties.set_prop("sharingProfile", AAZObjectType, ".sharing_profile") sharing_profile = _builder.get(".properties.sharingProfile") @@ -270,6 +277,9 @@ def _build_schema_on_200_201(cls): serialized_name="instanceView", flags={"read_only": True}, ) + properties.reservation_type = AAZStrType( + serialized_name="reservationType", + ) properties.sharing_profile = AAZObjectType( serialized_name="sharingProfile", ) @@ -321,11 +331,18 @@ def _build_schema_on_200_201(cls): serialized_name="currentCapacity", flags={"read_only": True}, ) + utilization_info.used_reserved_count_by_subscription = AAZDictType( + serialized_name="usedReservedCountBySubscription", + flags={"read_only": True}, + ) utilization_info.virtual_machines_allocated = AAZListType( serialized_name="virtualMachinesAllocated", flags={"read_only": True}, ) + used_reserved_count_by_subscription = cls._schema_on_200_201.properties.instance_view.capacity_reservations.Element.utilization_info.used_reserved_count_by_subscription + used_reserved_count_by_subscription.Element = AAZIntType() + virtual_machines_allocated = cls._schema_on_200_201.properties.instance_view.capacity_reservations.Element.utilization_info.virtual_machines_allocated virtual_machines_allocated.Element = AAZObjectType() _CreateHelper._build_schema_sub_resource_read_only_read(virtual_machines_allocated.Element) diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_list.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_list.py index 0d8796f5f6e..125c7377d06 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_list.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_list.py @@ -25,10 +25,10 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2024-03-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.compute/capacityreservationgroups", "2024-03-01"], - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups", "2024-03-01"], + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.compute/capacityreservationgroups", "2026-04-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups", "2026-04-01"], ] } @@ -64,12 +64,12 @@ def _build_arguments_schema(cls, *args, **kwargs): def _execute_operations(self): self.pre_operations() - condition_0 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True - condition_1 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) + condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) + condition_1 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True if condition_0: - self.CapacityReservationGroupsListBySubscription(ctx=self.ctx)() - if condition_1: self.CapacityReservationGroupsListByResourceGroup(ctx=self.ctx)() + if condition_1: + self.CapacityReservationGroupsListBySubscription(ctx=self.ctx)() self.post_operations() @register_callback @@ -85,7 +85,7 @@ def _output(self, *args, **kwargs): next_link = self.deserialize_output(self.ctx.vars.instance.next_link) return result, next_link - class CapacityReservationGroupsListBySubscription(AAZHttpOperation): + class CapacityReservationGroupsListByResourceGroup(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): @@ -99,7 +99,7 @@ def __call__(self, *args, **kwargs): @property def url(self): return self.client.format_url( - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups", **self.url_parameters ) @@ -114,6 +114,10 @@ def error_format(self): @property def url_parameters(self): parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, @@ -128,10 +132,7 @@ def query_parameters(self): "$expand", self.ctx.args.expand, ), **self.serialize_query_param( - "resourceIdsOnly", self.ctx.args.resource_ids_only, - ), - **self.serialize_query_param( - "api-version", "2024-03-01", + "api-version", "2026-04-01", required=True, ), } @@ -187,6 +188,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}, @@ -202,6 +207,9 @@ def _build_schema_on_200(cls): serialized_name="instanceView", flags={"read_only": True}, ) + properties.reservation_type = AAZStrType( + serialized_name="reservationType", + ) properties.sharing_profile = AAZObjectType( serialized_name="sharingProfile", ) @@ -253,11 +261,18 @@ def _build_schema_on_200(cls): serialized_name="currentCapacity", flags={"read_only": True}, ) + utilization_info.used_reserved_count_by_subscription = AAZDictType( + serialized_name="usedReservedCountBySubscription", + flags={"read_only": True}, + ) utilization_info.virtual_machines_allocated = AAZListType( serialized_name="virtualMachinesAllocated", flags={"read_only": True}, ) + used_reserved_count_by_subscription = cls._schema_on_200.value.Element.properties.instance_view.capacity_reservations.Element.utilization_info.used_reserved_count_by_subscription + used_reserved_count_by_subscription.Element = AAZIntType() + virtual_machines_allocated = cls._schema_on_200.value.Element.properties.instance_view.capacity_reservations.Element.utilization_info.virtual_machines_allocated virtual_machines_allocated.Element = AAZObjectType() _ListHelper._build_schema_sub_resource_read_only_read(virtual_machines_allocated.Element) @@ -281,6 +296,26 @@ def _build_schema_on_200(cls): virtual_machines_associated.Element = AAZObjectType() _ListHelper._build_schema_sub_resource_read_only_read(virtual_machines_associated.Element) + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + tags = cls._schema_on_200.value.Element.tags tags.Element = AAZStrType() @@ -289,7 +324,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 - class CapacityReservationGroupsListByResourceGroup(AAZHttpOperation): + class CapacityReservationGroupsListBySubscription(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): @@ -303,7 +338,7 @@ def __call__(self, *args, **kwargs): @property def url(self): return self.client.format_url( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups", + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", **self.url_parameters ) @@ -318,10 +353,6 @@ def error_format(self): @property def url_parameters(self): parameters = { - **self.serialize_url_param( - "resourceGroupName", self.ctx.args.resource_group, - required=True, - ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, @@ -336,7 +367,7 @@ def query_parameters(self): "$expand", self.ctx.args.expand, ), **self.serialize_query_param( - "api-version", "2024-03-01", + "api-version", "2026-04-01", required=True, ), } @@ -392,6 +423,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}, @@ -407,6 +442,9 @@ def _build_schema_on_200(cls): serialized_name="instanceView", flags={"read_only": True}, ) + properties.reservation_type = AAZStrType( + serialized_name="reservationType", + ) properties.sharing_profile = AAZObjectType( serialized_name="sharingProfile", ) @@ -458,11 +496,18 @@ def _build_schema_on_200(cls): serialized_name="currentCapacity", flags={"read_only": True}, ) + utilization_info.used_reserved_count_by_subscription = AAZDictType( + serialized_name="usedReservedCountBySubscription", + flags={"read_only": True}, + ) utilization_info.virtual_machines_allocated = AAZListType( serialized_name="virtualMachinesAllocated", flags={"read_only": True}, ) + used_reserved_count_by_subscription = cls._schema_on_200.value.Element.properties.instance_view.capacity_reservations.Element.utilization_info.used_reserved_count_by_subscription + used_reserved_count_by_subscription.Element = AAZIntType() + virtual_machines_allocated = cls._schema_on_200.value.Element.properties.instance_view.capacity_reservations.Element.utilization_info.virtual_machines_allocated virtual_machines_allocated.Element = AAZObjectType() _ListHelper._build_schema_sub_resource_read_only_read(virtual_machines_allocated.Element) @@ -486,6 +531,26 @@ def _build_schema_on_200(cls): virtual_machines_associated.Element = AAZObjectType() _ListHelper._build_schema_sub_resource_read_only_read(virtual_machines_associated.Element) + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + tags = cls._schema_on_200.value.Element.tags tags.Element = AAZStrType() diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_show.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_show.py index a23cc452d8e..8cfa5b25b70 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_show.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_show.py @@ -16,9 +16,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2024-11-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}", "2024-11-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}", "2026-04-01"], ] } @@ -122,7 +122,7 @@ def query_parameters(self): "$expand", self.ctx.args.expand, ), **self.serialize_query_param( - "api-version", "2024-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -186,6 +186,9 @@ def _build_schema_on_200(cls): serialized_name="instanceView", flags={"read_only": True}, ) + properties.reservation_type = AAZStrType( + serialized_name="reservationType", + ) properties.sharing_profile = AAZObjectType( serialized_name="sharingProfile", ) @@ -237,11 +240,18 @@ def _build_schema_on_200(cls): serialized_name="currentCapacity", flags={"read_only": True}, ) + utilization_info.used_reserved_count_by_subscription = AAZDictType( + serialized_name="usedReservedCountBySubscription", + flags={"read_only": True}, + ) utilization_info.virtual_machines_allocated = AAZListType( serialized_name="virtualMachinesAllocated", flags={"read_only": True}, ) + used_reserved_count_by_subscription = cls._schema_on_200.properties.instance_view.capacity_reservations.Element.utilization_info.used_reserved_count_by_subscription + used_reserved_count_by_subscription.Element = AAZIntType() + virtual_machines_allocated = cls._schema_on_200.properties.instance_view.capacity_reservations.Element.utilization_info.virtual_machines_allocated virtual_machines_allocated.Element = AAZObjectType() _ShowHelper._build_schema_sub_resource_read_only_read(virtual_machines_allocated.Element) diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_update.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_update.py index 531d64854ee..d783ab323c5 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_update.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_update.py @@ -16,9 +16,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2024-11-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}", "2024-11-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}", "2026-04-01"], ] } @@ -63,6 +63,12 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema + _args_schema.reservation_type = AAZStrArg( + options=["--reservation-type"], + arg_group="Properties", + help="Indicates the type of capacity reservation. Allowed values are 'Block' for block capacity reservations that enable a VM to consume capacity only from this capacity block when it is associated using a capacity reservation group, 'Targeted' for reservations that enable a VM to consume capacity from an explicitly associated capacity reservation group and fall back to the publicly available capacity if the reservation is full, and 'Open' for reservations that a VM consumes when it is eligible from an implicitly associated capacity reservation group with the matching VM size and zone without associating that capacity reservation group and fall back to the publicly available capacity if the reservation is full. The reservation type is immutable and cannot be changed after the capacity reservation group is created.", + enum={"Block": "Block", "Open": "Open", "Targeted": "Targeted"}, + ) _args_schema.sharing_profile = AAZObjectArg( options=["--sharing-profile"], arg_group="Properties", @@ -150,7 +156,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, ), } @@ -180,6 +186,7 @@ def content(self): properties = _builder.get(".properties") if properties is not None: + properties.set_prop("reservationType", AAZStrType, ".reservation_type") properties.set_prop("sharingProfile", AAZObjectType, ".sharing_profile") sharing_profile = _builder.get(".properties.sharingProfile") @@ -249,6 +256,9 @@ def _build_schema_on_200(cls): serialized_name="instanceView", flags={"read_only": True}, ) + properties.reservation_type = AAZStrType( + serialized_name="reservationType", + ) properties.sharing_profile = AAZObjectType( serialized_name="sharingProfile", ) @@ -300,11 +310,18 @@ def _build_schema_on_200(cls): serialized_name="currentCapacity", flags={"read_only": True}, ) + utilization_info.used_reserved_count_by_subscription = AAZDictType( + serialized_name="usedReservedCountBySubscription", + flags={"read_only": True}, + ) utilization_info.virtual_machines_allocated = AAZListType( serialized_name="virtualMachinesAllocated", flags={"read_only": True}, ) + used_reserved_count_by_subscription = cls._schema_on_200.properties.instance_view.capacity_reservations.Element.utilization_info.used_reserved_count_by_subscription + used_reserved_count_by_subscription.Element = AAZIntType() + virtual_machines_allocated = cls._schema_on_200.properties.instance_view.capacity_reservations.Element.utilization_info.virtual_machines_allocated virtual_machines_allocated.Element = AAZObjectType() _UpdateHelper._build_schema_sub_resource_read_only_read(virtual_machines_allocated.Element) From 3dfc19baf637f1ae7f894f22c0bff33ad6751885 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 10 Aug 2026 14:53:02 +0800 Subject: [PATCH 02/22] agent gen code v1 --- .../azure/cli/command_modules/vm/_help.py | 4 +++ .../azure/cli/command_modules/vm/_params.py | 2 ++ .../azure/cli/command_modules/vm/custom.py | 10 +++--- .../vm/operations/capacity_reservation.py | 33 ++++++++++++++++++- 4 files changed, 44 insertions(+), 5 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index e85bbc86b0a..698989c7c1a 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -2932,6 +2932,8 @@ text: | az capacity reservation group create -n ReservationGroupName -l centraluseuap \\ -g MyResourceGroup --tags key=val --zones 1 2 + - name: Create an open capacity reservation group. + text: az capacity reservation group create -n ReservationGroupName -g MyResourceGroup --reservation-type Open """ helps['capacity reservation group update'] = """ @@ -2940,6 +2942,8 @@ examples: - name: Update a capacity reservation group. text: az capacity reservation group update -n ReservationGroupName -g MyResourceGroup --tags key=val + - name: Update an open capacity reservation group. + text: az capacity reservation group update -n ReservationGroupName -g MyResourceGroup --reservation-type Open """ helps['capacity reservation group show'] = """ diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index 6729b8cb4fe..4e7661c6d22 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -76,6 +76,7 @@ def load_arguments(self, _): PublicNetworkAccess = ['Disabled', 'Enabled'] RepairAction = ['Replace', 'Restart', 'Reimage'] ReplicationMode = ['Full', 'Shallow'] + ReservationType = ['Block', 'Open', 'Targeted'] SecurityEncryptionType = ['VMGuestStateOnly', 'DiskWithVMGuestState', 'NonPersistedTPM'] SecurityType = ['TrustedLaunch', 'Standard', 'ConfidentialVM'] SnapshotStorageAccountTypes = ['Premium_LRS', 'Standard_LRS', 'Standard_ZRS'] @@ -1598,6 +1599,7 @@ def load_arguments(self, _): help='The name of the capacity reservation group.') c.argument('tags', tags_type) c.argument('sharing_profile', nargs='*', help='Space-separated subscription resource IDs or nothing. Specify the settings to enable sharing across subscriptions for the capacity reservation group resource. Specify it to nothing to unsharing.') + c.argument('reservation_type', arg_type=get_enum_type(ReservationType), help='The capacity reservation type. The reservation type cannot be changed after the capacity reservation group is created.') with self.argument_context('capacity reservation group create') as c: c.argument('zones', zones_type, help='Availability Zones to use for this capacity reservation group. If not provided, the group supports only regional resources in the region. If provided, enforces each capacity reservation in the group to be in one of the zones.') diff --git a/src/azure-cli/azure/cli/command_modules/vm/custom.py b/src/azure-cli/azure/cli/command_modules/vm/custom.py index b1b55aab17d..8b61ff30c96 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -6336,14 +6336,15 @@ def gallery_application_version_update(client, def create_capacity_reservation_group(cmd, resource_group_name, capacity_reservation_group_name, location=None, - tags=None, zones=None, sharing_profile=None): + tags=None, zones=None, sharing_profile=None, reservation_type=None): from .aaz.latest.capacity.reservation.group import Create as CapacityReservationGroupCreate command_args = { 'capacity_reservation_group_name': capacity_reservation_group_name, 'resource_group': resource_group_name, 'location': location, 'tags': tags, - 'zones': zones + 'zones': zones, + 'reservation_type': reservation_type } if sharing_profile is not None: @@ -6356,12 +6357,13 @@ def create_capacity_reservation_group(cmd, resource_group_name, capacity_reserva def update_capacity_reservation_group(cmd, resource_group_name, capacity_reservation_group_name, tags=None, - sharing_profile=None): + sharing_profile=None, reservation_type=None): from .aaz.latest.capacity.reservation.group import Update as CapacityReservationGroupUpdate command_args = { 'capacity_reservation_group_name': capacity_reservation_group_name, 'resource_group': resource_group_name, - 'tags': tags + 'tags': tags, + 'reservation_type': reservation_type } if sharing_profile is not None: diff --git a/src/azure-cli/azure/cli/command_modules/vm/operations/capacity_reservation.py b/src/azure-cli/azure/cli/command_modules/vm/operations/capacity_reservation.py index d7d299de597..5ebd682dab3 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/operations/capacity_reservation.py +++ b/src/azure-cli/azure/cli/command_modules/vm/operations/capacity_reservation.py @@ -5,7 +5,7 @@ # pylint: disable=no-self-use, line-too-long, protected-access, too-few-public-methods, unused-argument from knack.log import get_logger -from azure.cli.core.aaz import register_command, has_value, AAZBoolArg +from azure.cli.core.aaz import register_command, has_value, AAZBoolArg, AAZDictType, AAZIntType from ..aaz.latest.capacity.reservation import Update as _CapacityReservationUpdate, Show as _CapacityReservationShow logger = get_logger(__name__) @@ -45,6 +45,13 @@ class CapacityReservationShow(_CapacityReservationShow): az capacity reservation show -c ReservationGroupName -n ReservationName -g MyResourceGroup --instance-view """ + _aaz_info = { + "version": "2026-04-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}/capacityreservations/{}", "2026-04-01"], + ] + } + @classmethod def _build_arguments_schema(cls, *args, **kwargs): args_schema = super()._build_arguments_schema(*args, **kwargs) @@ -61,3 +68,27 @@ def pre_operations(self): args = self.ctx.args if has_value(args.instance_view) and args.instance_view.to_serialized_data() is True: args.expand = 'instanceView' + + class CapacityReservationsGet(_CapacityReservationShow.CapacityReservationsGet): + _schema_on_200 = None + + @property + def query_parameters(self): + parameters = super().query_parameters + parameters.update(self.serialize_query_param( + "api-version", "2026-04-01", required=True)) + return parameters + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = super()._build_schema_on_200() + utilization_info = cls._schema_on_200.properties.instance_view.utilization_info + utilization_info.used_reserved_count_by_subscription = AAZDictType( + serialized_name="usedReservedCountBySubscription", + flags={"read_only": True}, + ) + utilization_info.used_reserved_count_by_subscription.Element = AAZIntType() + return cls._schema_on_200 From adc4c520f6a8e8dc430be0da70ffb122af11958a Mon Sep 17 00:00:00 2001 From: william Date: Mon, 10 Aug 2026 15:16:12 +0800 Subject: [PATCH 03/22] Revert extra change --- .../vm/operations/capacity_reservation.py | 33 +------------------ 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/operations/capacity_reservation.py b/src/azure-cli/azure/cli/command_modules/vm/operations/capacity_reservation.py index 5ebd682dab3..d7d299de597 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/operations/capacity_reservation.py +++ b/src/azure-cli/azure/cli/command_modules/vm/operations/capacity_reservation.py @@ -5,7 +5,7 @@ # pylint: disable=no-self-use, line-too-long, protected-access, too-few-public-methods, unused-argument from knack.log import get_logger -from azure.cli.core.aaz import register_command, has_value, AAZBoolArg, AAZDictType, AAZIntType +from azure.cli.core.aaz import register_command, has_value, AAZBoolArg from ..aaz.latest.capacity.reservation import Update as _CapacityReservationUpdate, Show as _CapacityReservationShow logger = get_logger(__name__) @@ -45,13 +45,6 @@ class CapacityReservationShow(_CapacityReservationShow): az capacity reservation show -c ReservationGroupName -n ReservationName -g MyResourceGroup --instance-view """ - _aaz_info = { - "version": "2026-04-01", - "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}/capacityreservations/{}", "2026-04-01"], - ] - } - @classmethod def _build_arguments_schema(cls, *args, **kwargs): args_schema = super()._build_arguments_schema(*args, **kwargs) @@ -68,27 +61,3 @@ def pre_operations(self): args = self.ctx.args if has_value(args.instance_view) and args.instance_view.to_serialized_data() is True: args.expand = 'instanceView' - - class CapacityReservationsGet(_CapacityReservationShow.CapacityReservationsGet): - _schema_on_200 = None - - @property - def query_parameters(self): - parameters = super().query_parameters - parameters.update(self.serialize_query_param( - "api-version", "2026-04-01", required=True)) - return parameters - - @classmethod - def _build_schema_on_200(cls): - if cls._schema_on_200 is not None: - return cls._schema_on_200 - - cls._schema_on_200 = super()._build_schema_on_200() - utilization_info = cls._schema_on_200.properties.instance_view.utilization_info - utilization_info.used_reserved_count_by_subscription = AAZDictType( - serialized_name="usedReservedCountBySubscription", - flags={"read_only": True}, - ) - utilization_info.used_reserved_count_by_subscription.Element = AAZIntType() - return cls._schema_on_200 From e29de3b811e90be9c13593f4d944a2687ca6a02f Mon Sep 17 00:00:00 2001 From: william Date: Tue, 11 Aug 2026 08:50:07 +0800 Subject: [PATCH 04/22] Generate aaz code for 2026-04-01 vm operations --- .../vm/aaz/latest/vm/_create.py | 330 +++++++++++++++- .../command_modules/vm/aaz/latest/vm/_list.py | 247 +++++++++++- .../vm/aaz/latest/vm/_list_all.py | 247 +++++++++++- .../command_modules/vm/aaz/latest/vm/_show.py | 127 ++++++- .../vm/aaz/latest/vm/_update.py | 358 +++++++++++++++++- .../command_modules/vm/aaz/latest/vm/_wait.py | 125 +++++- 6 files changed, 1364 insertions(+), 70 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_create.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_create.py index 3e3e5ade1b9..23bca8e0b63 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_create.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_create.py @@ -16,9 +16,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2025-11-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}", "2025-11-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}", "2026-04-01"], ] } @@ -230,6 +230,11 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Specifies information about the dedicated host group that the virtual machine resides in. **Note:** User cannot specify both host and hostGroup properties. Minimum api-version: 2020-06-01.", ) cls._build_args_sub_resource_create(_args_schema.host_group) + _args_schema.interconnect_block_profile = AAZObjectArg( + options=["--interconnect-block-profile"], + arg_group="Properties", + help="Specifies information about the Interconnect Block that is used to allocate the Virtual Machine. Minimum api-version: 2026-03-01.", + ) _args_schema.license_type = AAZStrArg( options=["--license-type"], arg_group="Properties", @@ -254,7 +259,7 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["--priority"], arg_group="Properties", help="Specifies the priority for the virtual machine. Minimum api-version: 2019-03-01", - enum={"Low": "Low", "Regular": "Regular", "Spot": "Spot"}, + enum={"Low": "Low", "Regular": "Regular", "Spot": "Spot", "SpotPlus": "SpotPlus"}, ) _args_schema.proximity_placement_group = AAZObjectArg( options=["--proximity-placement-group"], @@ -361,6 +366,10 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved. Please refer to https://aka.ms/CapacityReservation for more details.", ) cls._build_args_sub_resource_create(capacity_reservation.capacity_reservation_group) + capacity_reservation.disable_capacity_reservation_assignment = AAZBoolArg( + options=["disable-capacity-reservation-assignment"], + help="Specifies whether the virtual machine is explicitly opted out from being associated with any capacity reservation. When set to true, the virtual machine will not be allowed to implicitly or explicitly associate with any type of capacity reservation and will consume capacity from the publicly available capacity. Minimum api-version: 2026-04-01.", + ) diagnostics_profile = cls._args_schema.diagnostics_profile diagnostics_profile.boot_diagnostics = AAZObjectArg( @@ -379,6 +388,11 @@ def _build_arguments_schema(cls, *args, **kwargs): ) hardware_profile = cls._args_schema.hardware_profile + hardware_profile.processor_mode = AAZStrArg( + options=["processor-mode"], + help="Specifies the processor mode for the virtual machine or virtual machine scale set. Optional; if omitted, the platform default applies (currently Deterministic). This property can be updated on a running VM or VMSS without deallocation or reboot. Minimum api-version: 2026-04-01.", + enum={"Deterministic": "Deterministic", "Opportunistic": "Opportunistic"}, + ) hardware_profile.vm_size = AAZStrArg( options=["vm-size"], help="Specifies the size of the virtual machine. The enum data type is currently deprecated and will be removed by December 23rd 2023. The recommended way to get the list of available sizes is using these APIs: [List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes), [List all available virtual machine sizes in a region]( https://docs.microsoft.com/rest/api/compute/resourceskus/list), [List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/sizes). The available VM sizes depend on region and availability set.", @@ -399,7 +413,18 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Specifies the vCPU to physical core ratio. When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list). **Setting this property to 1 also means that hyper-threading is disabled.**", ) + interconnect_block_profile = cls._args_schema.interconnect_block_profile + interconnect_block_profile.interconnect_block = AAZObjectArg( + options=["interconnect-block"], + help="Specifies the Interconnect Block resource ID that should be used for allocating the Virtual Machine or Scale Set VM instances provided enough capacity has been reserved.", + ) + cls._build_args_api_entity_reference_create(interconnect_block_profile.interconnect_block) + network_profile = cls._args_schema.network_profile + network_profile.interconnect_group_profile = AAZObjectArg( + options=["interconnect-group-profile"], + help="Specifies the interconnect group profile to associate with the virtual machine. Minimum api-version: 2026-03-01.", + ) network_profile.network_api_version = AAZStrArg( options=["network-api-version"], help="specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations", @@ -414,6 +439,21 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Specifies the list of resource Ids for the network interfaces associated with the virtual machine.", ) + interconnect_group_profile = cls._args_schema.network_profile.interconnect_group_profile + interconnect_group_profile.interconnect_group = AAZObjectArg( + options=["interconnect-group"], + help="Reference to the interconnect group resource.", + ) + cls._build_args_sub_resource_create(interconnect_group_profile.interconnect_group) + interconnect_group_profile.subgroups = AAZListArg( + options=["subgroups"], + help="The list of subgroup references within the interconnect group.", + ) + + subgroups = cls._args_schema.network_profile.interconnect_group_profile.subgroups + subgroups.Element = AAZObjectArg() + cls._build_args_sub_resource_create(subgroups.Element) + network_interface_configurations = cls._args_schema.network_profile.network_interface_configurations network_interface_configurations.Element = AAZObjectArg() @@ -604,6 +644,10 @@ def _build_arguments_schema(cls, *args, **kwargs): ip_tags.Element = AAZObjectArg() _element = cls._args_schema.network_profile.network_interface_configurations.Element.ip_configurations.Element.public_ip_address_configuration.ip_tags.Element + _element.first_party_service_tag_id = AAZResourceIdArg( + options=["first-party-service-tag-id"], + help="The first party service tag resource identifier associated with the public IP address.", + ) _element.ip_tag_type = AAZStrArg( options=["ip-tag-type"], help="IP tag type. Example: FirstPartyUsage.", @@ -635,7 +679,7 @@ def _build_arguments_schema(cls, *args, **kwargs): network_interfaces.Element = AAZObjectArg() _element = cls._args_schema.network_profile.network_interfaces.Element - _element.id = AAZResourceIdArg( + _element.id = AAZStrArg( options=["id"], help="Resource Id", ) @@ -1057,6 +1101,11 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["data-disks"], help="Specifies the parameters that are used to add a data disk to a virtual machine. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).", ) + storage_profile.disk_api_version = AAZStrArg( + options=["disk-api-version"], + help="Specifies the Disk API version used when applying additionalDiskProperties to managed disks. The value must be in the format YYYY-MM-DD (e.g., \"2026-03-02\").", + enum={"2025-01-02": "2025-01-02", "2026-03-02": "2026-03-02"}, + ) storage_profile.disk_controller_type = AAZStrArg( options=["disk-controller-type"], help="Specifies the disk controller type configured for the VM. **Note:** This property will be set to the default disk controller type if not specified provided virtual machine is being created with 'hyperVGeneration' set to V2 based on the capabilities of the operating system disk and VM size from the the specified minimum api version. You need to deallocate the VM before updating its disk controller type unless you are updating the VM size in the VM configuration which implicitly deallocates and reallocates the VM. Minimum api-version: 2022-08-01.", @@ -1161,7 +1210,7 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["community-gallery-image-id"], help="Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET call.", ) - image_reference.id = AAZResourceIdArg( + image_reference.id = AAZStrArg( options=["id"], help="Resource Id", ) @@ -1306,6 +1355,24 @@ def _build_arguments_schema(cls, *args, **kwargs): cls._build_args_sub_resource_create(key_encryption_key.source_vault) return cls._args_schema + _args_api_entity_reference_create = None + + @classmethod + def _build_args_api_entity_reference_create(cls, _schema): + if cls._args_api_entity_reference_create is not None: + _schema.id = cls._args_api_entity_reference_create.id + return + + cls._args_api_entity_reference_create = AAZObjectArg() + + api_entity_reference_create = cls._args_api_entity_reference_create + api_entity_reference_create.id = AAZStrArg( + options=["id"], + help="The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...", + ) + + _schema.id = cls._args_api_entity_reference_create.id + _args_disk_encryption_set_parameters_create = None @classmethod @@ -1317,7 +1384,7 @@ def _build_args_disk_encryption_set_parameters_create(cls, _schema): cls._args_disk_encryption_set_parameters_create = AAZObjectArg() disk_encryption_set_parameters_create = cls._args_disk_encryption_set_parameters_create - disk_encryption_set_parameters_create.id = AAZResourceIdArg( + disk_encryption_set_parameters_create.id = AAZStrArg( options=["id"], help="Resource Id", ) @@ -1331,6 +1398,7 @@ def _build_args_host_endpoint_settings_create(cls, _schema): if cls._args_host_endpoint_settings_create is not None: _schema.in_vm_access_control_profile_reference_id = cls._args_host_endpoint_settings_create.in_vm_access_control_profile_reference_id _schema.mode = cls._args_host_endpoint_settings_create.mode + _schema.use_local_file_rules = cls._args_host_endpoint_settings_create.use_local_file_rules return cls._args_host_endpoint_settings_create = AAZObjectArg() @@ -1345,15 +1413,21 @@ def _build_args_host_endpoint_settings_create(cls, _schema): help="Specifies the execution mode. In Audit mode, the system acts as if it is enforcing the access control policy, including emitting access denial entries in the logs but it does not actually deny any requests to host endpoints. In Enforce mode, the system will enforce the access control and it is the recommended mode of operation.", enum={"Audit": "Audit", "Disabled": "Disabled", "Enforce": "Enforce"}, ) + host_endpoint_settings_create.use_local_file_rules = AAZBoolArg( + options=["use-local-file-rules"], + help="When set to true, instructs the GuestProxyAgent inside the VM to load additional access control rules defined in a local file on the VM.", + ) _schema.in_vm_access_control_profile_reference_id = cls._args_host_endpoint_settings_create.in_vm_access_control_profile_reference_id _schema.mode = cls._args_host_endpoint_settings_create.mode + _schema.use_local_file_rules = cls._args_host_endpoint_settings_create.use_local_file_rules _args_managed_disk_parameters_create = None @classmethod def _build_args_managed_disk_parameters_create(cls, _schema): if cls._args_managed_disk_parameters_create is not None: + _schema.additional_disk_properties = cls._args_managed_disk_parameters_create.additional_disk_properties _schema.disk_encryption_set = cls._args_managed_disk_parameters_create.disk_encryption_set _schema.id = cls._args_managed_disk_parameters_create.id _schema.security_profile = cls._args_managed_disk_parameters_create.security_profile @@ -1363,12 +1437,16 @@ def _build_args_managed_disk_parameters_create(cls, _schema): cls._args_managed_disk_parameters_create = AAZObjectArg() managed_disk_parameters_create = cls._args_managed_disk_parameters_create + managed_disk_parameters_create.additional_disk_properties = AAZObjectArg( + options=["additional-disk-properties"], + help="Specifies additional properties for the managed disk that can be set at the time of implicit creation of the disk. This property is not captured for Restore Points.", + ) managed_disk_parameters_create.disk_encryption_set = AAZObjectArg( options=["disk-encryption-set"], help="Specifies the customer managed disk encryption set resource id for the managed disk.", ) cls._build_args_disk_encryption_set_parameters_create(managed_disk_parameters_create.disk_encryption_set) - managed_disk_parameters_create.id = AAZResourceIdArg( + managed_disk_parameters_create.id = AAZStrArg( options=["id"], help="Resource Id", ) @@ -1382,6 +1460,69 @@ def _build_args_managed_disk_parameters_create(cls, _schema): enum={"PremiumV2_LRS": "PremiumV2_LRS", "Premium_LRS": "Premium_LRS", "Premium_ZRS": "Premium_ZRS", "StandardSSD_LRS": "StandardSSD_LRS", "StandardSSD_ZRS": "StandardSSD_ZRS", "Standard_LRS": "Standard_LRS", "UltraSSD_LRS": "UltraSSD_LRS"}, ) + additional_disk_properties = cls._args_managed_disk_parameters_create.additional_disk_properties + additional_disk_properties.managed_disk_properties = AAZObjectArg( + options=["managed-disk-properties"], + help="Specifies the managed disk properties that can be set at the time of implicit creation of the disk.", + ) + + managed_disk_properties = cls._args_managed_disk_parameters_create.additional_disk_properties.managed_disk_properties + managed_disk_properties.availability_policy = AAZObjectArg( + options=["availability-policy"], + help="In the case of an availability or connectivity issue with the disk, specify the behavior of your VM.", + ) + managed_disk_properties.bursting_enabled = AAZBoolArg( + options=["bursting-enabled"], + help="Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.", + ) + managed_disk_properties.disk_access_id = AAZStrArg( + options=["disk-access-id"], + help="Azure resource Id of the DiskAccess resource for using private endpoints on disks.", + ) + managed_disk_properties.disk_iops_read_only = AAZIntArg( + options=["disk-iops-read-only"], + help="The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.", + ) + managed_disk_properties.disk_m_bps_read_only = AAZIntArg( + options=["disk-m-bps-read-only"], + help="The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.", + ) + managed_disk_properties.logical_sector_size = AAZIntArg( + options=["logical-sector-size"], + help="Logical sector size in bytes for Ultra Disks. Supported values are 512 and 4096. 4096 is the default.", + ) + managed_disk_properties.max_shares = AAZIntArg( + options=["max-shares"], + help="The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. Applies to data disks only.", + fmt=AAZIntArgFormat( + minimum=1, + ), + ) + managed_disk_properties.network_access_policy = AAZStrArg( + options=["network-access-policy"], + help="Policy for accessing the disk via network.", + enum={"AllowAll": "AllowAll", "AllowPrivate": "AllowPrivate", "DenyAll": "DenyAll"}, + ) + managed_disk_properties.optimized_for_frequent_attach = AAZBoolArg( + options=["optimized-for-frequent-attach"], + help="Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine.", + ) + managed_disk_properties.performance_plus = AAZBoolArg( + options=["performance-plus"], + help="Set this flag to true to get a boost on the performance target of the disk deployed. This flag can only be set on disk creation time and cannot be disabled after enabled.", + ) + managed_disk_properties.tier = AAZStrArg( + options=["tier"], + help="Performance tier of the disk (e.g., P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.", + ) + + availability_policy = cls._args_managed_disk_parameters_create.additional_disk_properties.managed_disk_properties.availability_policy + availability_policy.action_on_disk_delay = AAZStrArg( + options=["action-on-disk-delay"], + help="Determines how to handle disks with slow I/O.", + enum={"AutomaticReattach": "AutomaticReattach", "None": "None"}, + ) + security_profile = cls._args_managed_disk_parameters_create.security_profile security_profile.disk_encryption_set = AAZObjectArg( options=["disk-encryption-set"], @@ -1394,6 +1535,7 @@ def _build_args_managed_disk_parameters_create(cls, _schema): enum={"DiskWithVMGuestState": "DiskWithVMGuestState", "NonPersistedTPM": "NonPersistedTPM", "VMGuestStateOnly": "VMGuestStateOnly"}, ) + _schema.additional_disk_properties = cls._args_managed_disk_parameters_create.additional_disk_properties _schema.disk_encryption_set = cls._args_managed_disk_parameters_create.disk_encryption_set _schema.id = cls._args_managed_disk_parameters_create.id _schema.security_profile = cls._args_managed_disk_parameters_create.security_profile @@ -1410,7 +1552,7 @@ def _build_args_sub_resource_create(cls, _schema): cls._args_sub_resource_create = AAZObjectArg() sub_resource_create = cls._args_sub_resource_create - sub_resource_create.id = AAZResourceIdArg( + sub_resource_create.id = AAZStrArg( options=["id"], help="Resource Id", ) @@ -1516,7 +1658,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -1604,6 +1746,7 @@ def content(self): properties.set_prop("hardwareProfile", AAZObjectType, ".hardware_profile") _CreateHelper._build_schema_sub_resource_create(properties.set_prop("host", AAZObjectType, ".host")) _CreateHelper._build_schema_sub_resource_create(properties.set_prop("hostGroup", AAZObjectType, ".host_group")) + properties.set_prop("interconnectBlockProfile", AAZObjectType, ".interconnect_block_profile") properties.set_prop("licenseType", AAZStrType, ".license_type") properties.set_prop("networkProfile", AAZObjectType, ".network_profile") properties.set_prop("osProfile", AAZObjectType, ".os_profile") @@ -1648,6 +1791,7 @@ def content(self): capacity_reservation = _builder.get(".properties.capacityReservation") if capacity_reservation is not None: _CreateHelper._build_schema_sub_resource_create(capacity_reservation.set_prop("capacityReservationGroup", AAZObjectType, ".capacity_reservation_group")) + capacity_reservation.set_prop("disableCapacityReservationAssignment", AAZBoolType, ".disable_capacity_reservation_assignment") diagnostics_profile = _builder.get(".properties.diagnosticsProfile") if diagnostics_profile is not None: @@ -1660,6 +1804,7 @@ def content(self): hardware_profile = _builder.get(".properties.hardwareProfile") if hardware_profile is not None: + hardware_profile.set_prop("processorMode", AAZStrType, ".processor_mode") hardware_profile.set_prop("vmSize", AAZStrType, ".vm_size") hardware_profile.set_prop("vmSizeProperties", AAZObjectType, ".vm_size_properties") @@ -1668,12 +1813,26 @@ def content(self): vm_size_properties.set_prop("vCPUsAvailable", AAZIntType, ".v_cp_us_available") vm_size_properties.set_prop("vCPUsPerCore", AAZIntType, ".v_cp_us_per_core") + interconnect_block_profile = _builder.get(".properties.interconnectBlockProfile") + if interconnect_block_profile is not None: + _CreateHelper._build_schema_api_entity_reference_create(interconnect_block_profile.set_prop("interconnectBlock", AAZObjectType, ".interconnect_block")) + network_profile = _builder.get(".properties.networkProfile") if network_profile is not None: + network_profile.set_prop("interconnectGroupProfile", AAZObjectType, ".interconnect_group_profile") network_profile.set_prop("networkApiVersion", AAZStrType, ".network_api_version") network_profile.set_prop("networkInterfaceConfigurations", AAZListType, ".network_interface_configurations") network_profile.set_prop("networkInterfaces", AAZListType, ".network_interfaces") + interconnect_group_profile = _builder.get(".properties.networkProfile.interconnectGroupProfile") + if interconnect_group_profile is not None: + _CreateHelper._build_schema_sub_resource_create(interconnect_group_profile.set_prop("interconnectGroup", AAZObjectType, ".interconnect_group")) + interconnect_group_profile.set_prop("subgroups", AAZListType, ".subgroups") + + subgroups = _builder.get(".properties.networkProfile.interconnectGroupProfile.subgroups") + if subgroups is not None: + _CreateHelper._build_schema_sub_resource_create(subgroups.set_elements(AAZObjectType, ".")) + network_interface_configurations = _builder.get(".properties.networkProfile.networkInterfaceConfigurations") if network_interface_configurations is not None: network_interface_configurations.set_elements(AAZObjectType, ".") @@ -1766,6 +1925,7 @@ def content(self): _elements = _builder.get(".properties.networkProfile.networkInterfaceConfigurations[].properties.ipConfigurations[].properties.publicIPAddressConfiguration.properties.ipTags[]") if _elements is not None: + _elements.set_prop("firstPartyServiceTagId", AAZStrType, ".first_party_service_tag_id") _elements.set_prop("ipTagType", AAZStrType, ".ip_tag_type") _elements.set_prop("tag", AAZStrType, ".tag") @@ -1984,6 +2144,7 @@ def content(self): if storage_profile is not None: storage_profile.set_prop("alignRegionalDisksToVMZone", AAZBoolType, ".align_regional_disks_to_vm_zone") storage_profile.set_prop("dataDisks", AAZListType, ".data_disks") + storage_profile.set_prop("diskApiVersion", AAZStrType, ".disk_api_version") storage_profile.set_prop("diskControllerType", AAZStrType, ".disk_controller_type") storage_profile.set_prop("imageReference", AAZObjectType, ".image_reference") storage_profile.set_prop("osDisk", AAZObjectType, ".os_disk") @@ -2225,6 +2386,9 @@ def _build_schema_on_200_201(cls): serialized_name="instanceView", flags={"read_only": True}, ) + properties.interconnect_block_profile = AAZObjectType( + serialized_name="interconnectBlockProfile", + ) properties.license_type = AAZStrType( serialized_name="licenseType", ) @@ -2323,6 +2487,9 @@ def _build_schema_on_200_201(cls): serialized_name="capacityReservationGroup", ) _CreateHelper._build_schema_sub_resource_read(capacity_reservation.capacity_reservation_group) + capacity_reservation.disable_capacity_reservation_assignment = AAZBoolType( + serialized_name="disableCapacityReservationAssignment", + ) diagnostics_profile = cls._schema_on_200_201.properties.diagnostics_profile diagnostics_profile.boot_diagnostics = AAZObjectType( @@ -2336,6 +2503,9 @@ def _build_schema_on_200_201(cls): ) hardware_profile = cls._schema_on_200_201.properties.hardware_profile + hardware_profile.processor_mode = AAZStrType( + serialized_name="processorMode", + ) hardware_profile.vm_size = AAZStrType( serialized_name="vmSize", ) @@ -2359,6 +2529,10 @@ def _build_schema_on_200_201(cls): instance_view.boot_diagnostics = AAZObjectType( serialized_name="bootDiagnostics", ) + instance_view.capacity_reservation_type = AAZStrType( + serialized_name="capacityReservationType", + flags={"read_only": True}, + ) instance_view.computer_name = AAZStrType( serialized_name="computerName", ) @@ -2367,6 +2541,10 @@ def _build_schema_on_200_201(cls): instance_view.hyper_v_generation = AAZStrType( serialized_name="hyperVGeneration", ) + instance_view.interconnect_instance_view = AAZObjectType( + serialized_name="interconnectInstanceView", + flags={"read_only": True}, + ) instance_view.is_vm_in_standby_pool = AAZBoolType( serialized_name="isVMInStandbyPool", flags={"read_only": True}, @@ -2440,6 +2618,12 @@ def _build_schema_on_200_201(cls): extensions.Element = AAZObjectType() _CreateHelper._build_schema_virtual_machine_extension_instance_view_read(extensions.Element) + interconnect_instance_view = cls._schema_on_200_201.properties.instance_view.interconnect_instance_view + interconnect_instance_view.interconnect_subgroup_id = AAZStrType( + serialized_name="interconnectSubgroupId", + flags={"read_only": True}, + ) + maintenance_redeploy_status = cls._schema_on_200_201.properties.instance_view.maintenance_redeploy_status maintenance_redeploy_status.is_customer_initiated_maintenance_allowed = AAZBoolType( serialized_name="isCustomerInitiatedMaintenanceAllowed", @@ -2591,7 +2775,16 @@ def _build_schema_on_200_201(cls): ) _CreateHelper._build_schema_instance_view_status_read(vm_health.status) + interconnect_block_profile = cls._schema_on_200_201.properties.interconnect_block_profile + interconnect_block_profile.interconnect_block = AAZObjectType( + serialized_name="interconnectBlock", + ) + _CreateHelper._build_schema_api_entity_reference_read(interconnect_block_profile.interconnect_block) + network_profile = cls._schema_on_200_201.properties.network_profile + network_profile.interconnect_group_profile = AAZObjectType( + serialized_name="interconnectGroupProfile", + ) network_profile.network_api_version = AAZStrType( serialized_name="networkApiVersion", ) @@ -2602,6 +2795,17 @@ def _build_schema_on_200_201(cls): serialized_name="networkInterfaces", ) + interconnect_group_profile = cls._schema_on_200_201.properties.network_profile.interconnect_group_profile + interconnect_group_profile.interconnect_group = AAZObjectType( + serialized_name="interconnectGroup", + ) + _CreateHelper._build_schema_sub_resource_read(interconnect_group_profile.interconnect_group) + interconnect_group_profile.subgroups = AAZListType() + + subgroups = cls._schema_on_200_201.properties.network_profile.interconnect_group_profile.subgroups + subgroups.Element = AAZObjectType() + _CreateHelper._build_schema_sub_resource_read(subgroups.Element) + network_interface_configurations = cls._schema_on_200_201.properties.network_profile.network_interface_configurations network_interface_configurations.Element = AAZObjectType() @@ -2751,6 +2955,9 @@ def _build_schema_on_200_201(cls): ip_tags.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties.ip_tags.Element + _element.first_party_service_tag_id = AAZStrType( + serialized_name="firstPartyServiceTagId", + ) _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) @@ -3076,6 +3283,9 @@ def _build_schema_on_200_201(cls): storage_profile.data_disks = AAZListType( serialized_name="dataDisks", ) + storage_profile.disk_api_version = AAZStrType( + serialized_name="diskApiVersion", + ) storage_profile.disk_controller_type = AAZStrType( serialized_name="diskControllerType", ) @@ -3123,6 +3333,7 @@ def _build_schema_on_200_201(cls): _element.source_resource = AAZObjectType( serialized_name="sourceResource", ) + _CreateHelper._build_schema_api_entity_reference_read(_element.source_resource) _element.storage_fault_domain_alignment = AAZStrType( serialized_name="storageFaultDomainAlignment", ) @@ -3135,9 +3346,6 @@ def _build_schema_on_200_201(cls): serialized_name="writeAcceleratorEnabled", ) - source_resource = cls._schema_on_200_201.properties.storage_profile.data_disks.Element.source_resource - source_resource.id = AAZStrType() - image_reference = cls._schema_on_200_201.properties.storage_profile.image_reference image_reference.community_gallery_image_id = AAZStrType( serialized_name="communityGalleryImageId", @@ -3282,6 +3490,12 @@ def _build_schema_on_200_201(cls): class _CreateHelper: """Helper class for Create""" + @classmethod + def _build_schema_api_entity_reference_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("id", AAZStrType, ".id") + @classmethod def _build_schema_disk_encryption_set_parameters_create(cls, _builder): if _builder is None: @@ -3294,16 +3508,40 @@ def _build_schema_host_endpoint_settings_create(cls, _builder): return _builder.set_prop("inVMAccessControlProfileReferenceId", AAZStrType, ".in_vm_access_control_profile_reference_id") _builder.set_prop("mode", AAZStrType, ".mode") + _builder.set_prop("useLocalFileRules", AAZBoolType, ".use_local_file_rules") @classmethod def _build_schema_managed_disk_parameters_create(cls, _builder): if _builder is None: return + _builder.set_prop("additionalDiskProperties", AAZObjectType, ".additional_disk_properties") cls._build_schema_disk_encryption_set_parameters_create(_builder.set_prop("diskEncryptionSet", AAZObjectType, ".disk_encryption_set")) _builder.set_prop("id", AAZStrType, ".id") _builder.set_prop("securityProfile", AAZObjectType, ".security_profile") _builder.set_prop("storageAccountType", AAZStrType, ".storage_account_type") + additional_disk_properties = _builder.get(".additionalDiskProperties") + if additional_disk_properties is not None: + additional_disk_properties.set_prop("managedDiskProperties", AAZObjectType, ".managed_disk_properties") + + managed_disk_properties = _builder.get(".additionalDiskProperties.managedDiskProperties") + if managed_disk_properties is not None: + managed_disk_properties.set_prop("availabilityPolicy", AAZObjectType, ".availability_policy") + managed_disk_properties.set_prop("burstingEnabled", AAZBoolType, ".bursting_enabled") + managed_disk_properties.set_prop("diskAccessId", AAZStrType, ".disk_access_id") + managed_disk_properties.set_prop("diskIOPSReadOnly", AAZIntType, ".disk_iops_read_only") + managed_disk_properties.set_prop("diskMBpsReadOnly", AAZIntType, ".disk_m_bps_read_only") + managed_disk_properties.set_prop("logicalSectorSize", AAZIntType, ".logical_sector_size") + managed_disk_properties.set_prop("maxShares", AAZIntType, ".max_shares") + managed_disk_properties.set_prop("networkAccessPolicy", AAZStrType, ".network_access_policy") + managed_disk_properties.set_prop("optimizedForFrequentAttach", AAZBoolType, ".optimized_for_frequent_attach") + managed_disk_properties.set_prop("performancePlus", AAZBoolType, ".performance_plus") + managed_disk_properties.set_prop("tier", AAZStrType, ".tier") + + availability_policy = _builder.get(".additionalDiskProperties.managedDiskProperties.availabilityPolicy") + if availability_policy is not None: + availability_policy.set_prop("actionOnDiskDelay", AAZStrType, ".action_on_disk_delay") + security_profile = _builder.get(".securityProfile") if security_profile is not None: cls._build_schema_disk_encryption_set_parameters_create(security_profile.set_prop("diskEncryptionSet", AAZObjectType, ".disk_encryption_set")) @@ -3321,6 +3559,21 @@ def _build_schema_virtual_hard_disk_create(cls, _builder): return _builder.set_prop("uri", AAZStrType, ".uri") + _schema_api_entity_reference_read = None + + @classmethod + def _build_schema_api_entity_reference_read(cls, _schema): + if cls._schema_api_entity_reference_read is not None: + _schema.id = cls._schema_api_entity_reference_read.id + return + + cls._schema_api_entity_reference_read = _schema_api_entity_reference_read = AAZObjectType() + + api_entity_reference_read = _schema_api_entity_reference_read + api_entity_reference_read.id = AAZStrType() + + _schema.id = cls._schema_api_entity_reference_read.id + _schema_api_error_read = None @classmethod @@ -3421,6 +3674,7 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): if cls._schema_host_endpoint_settings_read is not None: _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules return cls._schema_host_endpoint_settings_read = _schema_host_endpoint_settings_read = AAZObjectType() @@ -3430,9 +3684,13 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): serialized_name="inVMAccessControlProfileReferenceId", ) host_endpoint_settings_read.mode = AAZStrType() + host_endpoint_settings_read.use_local_file_rules = AAZBoolType( + serialized_name="useLocalFileRules", + ) _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules _schema_instance_view_status_read = None @@ -3493,6 +3751,7 @@ def _build_schema_key_vault_secret_reference_read(cls, _schema): @classmethod def _build_schema_managed_disk_parameters_read(cls, _schema): if cls._schema_managed_disk_parameters_read is not None: + _schema.additional_disk_properties = cls._schema_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_managed_disk_parameters_read.disk_encryption_set _schema.id = cls._schema_managed_disk_parameters_read.id _schema.security_profile = cls._schema_managed_disk_parameters_read.security_profile @@ -3502,6 +3761,9 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): cls._schema_managed_disk_parameters_read = _schema_managed_disk_parameters_read = AAZObjectType() managed_disk_parameters_read = _schema_managed_disk_parameters_read + managed_disk_parameters_read.additional_disk_properties = AAZObjectType( + serialized_name="additionalDiskProperties", + ) managed_disk_parameters_read.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", ) @@ -3514,6 +3776,49 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): serialized_name="storageAccountType", ) + additional_disk_properties = _schema_managed_disk_parameters_read.additional_disk_properties + additional_disk_properties.managed_disk_properties = AAZObjectType( + serialized_name="managedDiskProperties", + ) + + managed_disk_properties = _schema_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties + managed_disk_properties.availability_policy = AAZObjectType( + serialized_name="availabilityPolicy", + ) + managed_disk_properties.bursting_enabled = AAZBoolType( + serialized_name="burstingEnabled", + ) + managed_disk_properties.disk_access_id = AAZStrType( + serialized_name="diskAccessId", + ) + managed_disk_properties.disk_iops_read_only = AAZIntType( + serialized_name="diskIOPSReadOnly", + ) + managed_disk_properties.disk_m_bps_read_only = AAZIntType( + serialized_name="diskMBpsReadOnly", + ) + managed_disk_properties.logical_sector_size = AAZIntType( + serialized_name="logicalSectorSize", + ) + managed_disk_properties.max_shares = AAZIntType( + serialized_name="maxShares", + ) + managed_disk_properties.network_access_policy = AAZStrType( + serialized_name="networkAccessPolicy", + ) + managed_disk_properties.optimized_for_frequent_attach = AAZBoolType( + serialized_name="optimizedForFrequentAttach", + ) + managed_disk_properties.performance_plus = AAZBoolType( + serialized_name="performancePlus", + ) + managed_disk_properties.tier = AAZStrType() + + availability_policy = _schema_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties.availability_policy + availability_policy.action_on_disk_delay = AAZStrType( + serialized_name="actionOnDiskDelay", + ) + security_profile = _schema_managed_disk_parameters_read.security_profile security_profile.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", @@ -3523,6 +3828,7 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): serialized_name="securityEncryptionType", ) + _schema.additional_disk_properties = cls._schema_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_managed_disk_parameters_read.disk_encryption_set _schema.id = cls._schema_managed_disk_parameters_read.id _schema.security_profile = cls._schema_managed_disk_parameters_read.security_profile diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_list.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_list.py index 63c47cb988b..5a43da8c8c6 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_list.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_list.py @@ -16,9 +16,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2024-11-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines", "2024-11-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines", "2026-04-01"], ] } @@ -121,7 +121,7 @@ def query_parameters(self): "$filter", self.ctx.args.filter, ), **self.serialize_query_param( - "api-version", "2024-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -193,6 +193,11 @@ def _build_schema_on_200(cls): _element.resources = AAZListType( flags={"read_only": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ListHelper._build_schema_system_data_read(_element.system_data) _element.tags = AAZDictType() _element.type = AAZStrType( flags={"read_only": True}, @@ -294,6 +299,9 @@ def _build_schema_on_200(cls): serialized_name="instanceView", flags={"read_only": True}, ) + properties.interconnect_block_profile = AAZObjectType( + serialized_name="interconnectBlockProfile", + ) properties.license_type = AAZStrType( serialized_name="licenseType", ) @@ -315,6 +323,9 @@ def _build_schema_on_200(cls): serialized_name="proximityPlacementGroup", ) _ListHelper._build_schema_sub_resource_read(properties.proximity_placement_group) + properties.resiliency_profile = AAZObjectType( + serialized_name="resiliencyProfile", + ) properties.scheduled_events_policy = AAZObjectType( serialized_name="scheduledEventsPolicy", ) @@ -344,6 +355,9 @@ def _build_schema_on_200(cls): ) additional_capabilities = cls._schema_on_200.value.Element.properties.additional_capabilities + additional_capabilities.enable_fips1403_encryption = AAZBoolType( + serialized_name="enableFips1403Encryption", + ) additional_capabilities.hibernation_enabled = AAZBoolType( serialized_name="hibernationEnabled", ) @@ -386,6 +400,9 @@ def _build_schema_on_200(cls): serialized_name="capacityReservationGroup", ) _ListHelper._build_schema_sub_resource_read(capacity_reservation.capacity_reservation_group) + capacity_reservation.disable_capacity_reservation_assignment = AAZBoolType( + serialized_name="disableCapacityReservationAssignment", + ) diagnostics_profile = cls._schema_on_200.value.Element.properties.diagnostics_profile diagnostics_profile.boot_diagnostics = AAZObjectType( @@ -399,6 +416,9 @@ def _build_schema_on_200(cls): ) hardware_profile = cls._schema_on_200.value.Element.properties.hardware_profile + hardware_profile.processor_mode = AAZStrType( + serialized_name="processorMode", + ) hardware_profile.vm_size = AAZStrType( serialized_name="vmSize", ) @@ -422,6 +442,10 @@ def _build_schema_on_200(cls): instance_view.boot_diagnostics = AAZObjectType( serialized_name="bootDiagnostics", ) + instance_view.capacity_reservation_type = AAZStrType( + serialized_name="capacityReservationType", + flags={"read_only": True}, + ) instance_view.computer_name = AAZStrType( serialized_name="computerName", ) @@ -430,6 +454,10 @@ def _build_schema_on_200(cls): instance_view.hyper_v_generation = AAZStrType( serialized_name="hyperVGeneration", ) + instance_view.interconnect_instance_view = AAZObjectType( + serialized_name="interconnectInstanceView", + flags={"read_only": True}, + ) instance_view.is_vm_in_standby_pool = AAZBoolType( serialized_name="isVMInStandbyPool", flags={"read_only": True}, @@ -487,6 +515,9 @@ def _build_schema_on_200(cls): ) _element.name = AAZStrType() _element.statuses = AAZListType() + _element.storage_alignment_status = AAZStrType( + serialized_name="storageAlignmentStatus", + ) encryption_settings = cls._schema_on_200.value.Element.properties.instance_view.disks.Element.encryption_settings encryption_settings.Element = AAZObjectType() @@ -500,6 +531,12 @@ def _build_schema_on_200(cls): extensions.Element = AAZObjectType() _ListHelper._build_schema_virtual_machine_extension_instance_view_read(extensions.Element) + interconnect_instance_view = cls._schema_on_200.value.Element.properties.instance_view.interconnect_instance_view + interconnect_instance_view.interconnect_subgroup_id = AAZStrType( + serialized_name="interconnectSubgroupId", + flags={"read_only": True}, + ) + maintenance_redeploy_status = cls._schema_on_200.value.Element.properties.instance_view.maintenance_redeploy_status maintenance_redeploy_status.is_customer_initiated_maintenance_allowed = AAZBoolType( serialized_name="isCustomerInitiatedMaintenanceAllowed", @@ -651,7 +688,16 @@ def _build_schema_on_200(cls): ) _ListHelper._build_schema_instance_view_status_read(vm_health.status) + interconnect_block_profile = cls._schema_on_200.value.Element.properties.interconnect_block_profile + interconnect_block_profile.interconnect_block = AAZObjectType( + serialized_name="interconnectBlock", + ) + _ListHelper._build_schema_api_entity_reference_read(interconnect_block_profile.interconnect_block) + network_profile = cls._schema_on_200.value.Element.properties.network_profile + network_profile.interconnect_group_profile = AAZObjectType( + serialized_name="interconnectGroupProfile", + ) network_profile.network_api_version = AAZStrType( serialized_name="networkApiVersion", ) @@ -662,6 +708,17 @@ def _build_schema_on_200(cls): serialized_name="networkInterfaces", ) + interconnect_group_profile = cls._schema_on_200.value.Element.properties.network_profile.interconnect_group_profile + interconnect_group_profile.interconnect_group = AAZObjectType( + serialized_name="interconnectGroup", + ) + _ListHelper._build_schema_sub_resource_read(interconnect_group_profile.interconnect_group) + interconnect_group_profile.subgroups = AAZListType() + + subgroups = cls._schema_on_200.value.Element.properties.network_profile.interconnect_group_profile.subgroups + subgroups.Element = AAZObjectType() + _ListHelper._build_schema_sub_resource_read(subgroups.Element) + network_interface_configurations = cls._schema_on_200.value.Element.properties.network_profile.network_interface_configurations network_interface_configurations.Element = AAZObjectType() @@ -672,6 +729,7 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.tags = AAZDictType() properties = cls._schema_on_200.value.Element.properties.network_profile.network_interface_configurations.Element.properties properties.auxiliary_mode = AAZStrType( @@ -771,6 +829,7 @@ def _build_schema_on_200(cls): flags={"client_flatten": True}, ) public_ip_address_configuration.sku = AAZObjectType() + public_ip_address_configuration.tags = AAZDictType() properties = cls._schema_on_200.value.Element.properties.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties properties.delete_option = AAZStrType( @@ -809,6 +868,9 @@ def _build_schema_on_200(cls): ip_tags.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties.ip_tags.Element + _element.first_party_service_tag_id = AAZStrType( + serialized_name="firstPartyServiceTagId", + ) _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) @@ -818,6 +880,12 @@ def _build_schema_on_200(cls): sku.name = AAZStrType() sku.tier = AAZStrType() + tags = cls._schema_on_200.value.Element.properties.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.tags + tags.Element = AAZStrType() + + tags = cls._schema_on_200.value.Element.properties.network_profile.network_interface_configurations.Element.tags + tags.Element = AAZStrType() + network_interfaces = cls._schema_on_200.value.Element.properties.network_profile.network_interfaces network_interfaces.Element = AAZObjectType() @@ -1005,7 +1073,20 @@ def _build_schema_on_200(cls): ) _element.protocol = AAZStrType() + resiliency_profile = cls._schema_on_200.value.Element.properties.resiliency_profile + resiliency_profile.zone_movement = AAZObjectType( + serialized_name="zoneMovement", + ) + + zone_movement = cls._schema_on_200.value.Element.properties.resiliency_profile.zone_movement + zone_movement.is_enabled = AAZBoolType( + serialized_name="isEnabled", + ) + scheduled_events_policy = cls._schema_on_200.value.Element.properties.scheduled_events_policy + scheduled_events_policy.all_instances_down = AAZObjectType( + serialized_name="allInstancesDown", + ) scheduled_events_policy.scheduled_events_additional_publishing_targets = AAZObjectType( serialized_name="scheduledEventsAdditionalPublishingTargets", ) @@ -1016,6 +1097,11 @@ def _build_schema_on_200(cls): serialized_name="userInitiatedRedeploy", ) + all_instances_down = cls._schema_on_200.value.Element.properties.scheduled_events_policy.all_instances_down + all_instances_down.automatically_approve = AAZBoolType( + serialized_name="automaticallyApprove", + ) + scheduled_events_additional_publishing_targets = cls._schema_on_200.value.Element.properties.scheduled_events_policy.scheduled_events_additional_publishing_targets scheduled_events_additional_publishing_targets.event_grid_and_resource_graph = AAZObjectType( serialized_name="eventGridAndResourceGraph", @@ -1023,6 +1109,9 @@ def _build_schema_on_200(cls): event_grid_and_resource_graph = cls._schema_on_200.value.Element.properties.scheduled_events_policy.scheduled_events_additional_publishing_targets.event_grid_and_resource_graph event_grid_and_resource_graph.enable = AAZBoolType() + event_grid_and_resource_graph.scheduled_events_api_version = AAZStrType( + serialized_name="scheduledEventsApiVersion", + ) user_initiated_reboot = cls._schema_on_200.value.Element.properties.scheduled_events_policy.user_initiated_reboot user_initiated_reboot.automatically_approve = AAZBoolType( @@ -1077,6 +1166,9 @@ def _build_schema_on_200(cls): ) proxy_agent_settings = cls._schema_on_200.value.Element.properties.security_profile.proxy_agent_settings + proxy_agent_settings.add_proxy_agent_extension = AAZBoolType( + serialized_name="addProxyAgentExtension", + ) proxy_agent_settings.enabled = AAZBoolType() proxy_agent_settings.imds = AAZObjectType() _ListHelper._build_schema_host_endpoint_settings_read(proxy_agent_settings.imds) @@ -1104,6 +1196,9 @@ def _build_schema_on_200(cls): storage_profile.data_disks = AAZListType( serialized_name="dataDisks", ) + storage_profile.disk_api_version = AAZStrType( + serialized_name="diskApiVersion", + ) storage_profile.disk_controller_type = AAZStrType( serialized_name="diskControllerType", ) @@ -1131,11 +1226,9 @@ def _build_schema_on_200(cls): ) _element.disk_iops_read_write = AAZIntType( serialized_name="diskIOPSReadWrite", - flags={"read_only": True}, ) _element.disk_m_bps_read_write = AAZIntType( serialized_name="diskMBpsReadWrite", - flags={"read_only": True}, ) _element.disk_size_gb = AAZIntType( serialized_name="diskSizeGB", @@ -1153,6 +1246,10 @@ def _build_schema_on_200(cls): _element.source_resource = AAZObjectType( serialized_name="sourceResource", ) + _ListHelper._build_schema_api_entity_reference_read(_element.source_resource) + _element.storage_fault_domain_alignment = AAZStrType( + serialized_name="storageFaultDomainAlignment", + ) _element.to_be_detached = AAZBoolType( serialized_name="toBeDetached", ) @@ -1162,9 +1259,6 @@ def _build_schema_on_200(cls): serialized_name="writeAcceleratorEnabled", ) - source_resource = cls._schema_on_200.value.Element.properties.storage_profile.data_disks.Element.source_resource - source_resource.id = AAZStrType() - image_reference = cls._schema_on_200.value.Element.properties.storage_profile.image_reference image_reference.community_gallery_image_id = AAZStrType( serialized_name="communityGalleryImageId", @@ -1211,6 +1305,9 @@ def _build_schema_on_200(cls): os_disk.os_type = AAZStrType( serialized_name="osType", ) + os_disk.storage_fault_domain_alignment = AAZStrType( + serialized_name="storageFaultDomainAlignment", + ) os_disk.vhd = AAZObjectType() _ListHelper._build_schema_virtual_hard_disk_read(os_disk.vhd) os_disk.write_accelerator_enabled = AAZBoolType( @@ -1218,6 +1315,9 @@ def _build_schema_on_200(cls): ) diff_disk_settings = cls._schema_on_200.value.Element.properties.storage_profile.os_disk.diff_disk_settings + diff_disk_settings.enable_full_caching = AAZBoolType( + serialized_name="enableFullCaching", + ) diff_disk_settings.option = AAZStrType() diff_disk_settings.placement = AAZStrType() @@ -1228,13 +1328,20 @@ def _build_schema_on_200(cls): _element.id = AAZStrType( flags={"read_only": True}, ) - _element.location = AAZStrType() + _element.location = AAZStrType( + flags={"required": True}, + ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ListHelper._build_schema_system_data_read(_element.system_data) _element.tags = AAZDictType() _element.type = AAZStrType( flags={"read_only": True}, @@ -1254,7 +1361,7 @@ def _build_schema_on_200(cls): serialized_name="instanceView", ) _ListHelper._build_schema_virtual_machine_extension_instance_view_read(properties.instance_view) - properties.protected_settings = AAZDictType( + properties.protected_settings = AAZAnyType( serialized_name="protectedSettings", ) properties.protected_settings_from_key_vault = AAZObjectType( @@ -1269,7 +1376,7 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) properties.publisher = AAZStrType() - properties.settings = AAZDictType() + properties.settings = AAZAnyType() properties.suppress_failures = AAZBoolType( serialized_name="suppressFailures", ) @@ -1278,15 +1385,9 @@ def _build_schema_on_200(cls): serialized_name="typeHandlerVersion", ) - protected_settings = cls._schema_on_200.value.Element.resources.Element.properties.protected_settings - protected_settings.Element = AAZAnyType() - provision_after_extensions = cls._schema_on_200.value.Element.resources.Element.properties.provision_after_extensions provision_after_extensions.Element = AAZStrType() - settings = cls._schema_on_200.value.Element.resources.Element.properties.settings - settings.Element = AAZAnyType() - tags = cls._schema_on_200.value.Element.resources.Element.tags tags.Element = AAZStrType() @@ -1302,6 +1403,21 @@ def _build_schema_on_200(cls): class _ListHelper: """Helper class for List""" + _schema_api_entity_reference_read = None + + @classmethod + def _build_schema_api_entity_reference_read(cls, _schema): + if cls._schema_api_entity_reference_read is not None: + _schema.id = cls._schema_api_entity_reference_read.id + return + + cls._schema_api_entity_reference_read = _schema_api_entity_reference_read = AAZObjectType() + + api_entity_reference_read = _schema_api_entity_reference_read + api_entity_reference_read.id = AAZStrType() + + _schema.id = cls._schema_api_entity_reference_read.id + _schema_api_error_read = None @classmethod @@ -1402,6 +1518,7 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): if cls._schema_host_endpoint_settings_read is not None: _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules return cls._schema_host_endpoint_settings_read = _schema_host_endpoint_settings_read = AAZObjectType() @@ -1411,9 +1528,13 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): serialized_name="inVMAccessControlProfileReferenceId", ) host_endpoint_settings_read.mode = AAZStrType() + host_endpoint_settings_read.use_local_file_rules = AAZBoolType( + serialized_name="useLocalFileRules", + ) _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules _schema_instance_view_status_read = None @@ -1474,6 +1595,7 @@ def _build_schema_key_vault_secret_reference_read(cls, _schema): @classmethod def _build_schema_managed_disk_parameters_read(cls, _schema): if cls._schema_managed_disk_parameters_read is not None: + _schema.additional_disk_properties = cls._schema_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_managed_disk_parameters_read.disk_encryption_set _schema.id = cls._schema_managed_disk_parameters_read.id _schema.security_profile = cls._schema_managed_disk_parameters_read.security_profile @@ -1483,6 +1605,9 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): cls._schema_managed_disk_parameters_read = _schema_managed_disk_parameters_read = AAZObjectType() managed_disk_parameters_read = _schema_managed_disk_parameters_read + managed_disk_parameters_read.additional_disk_properties = AAZObjectType( + serialized_name="additionalDiskProperties", + ) managed_disk_parameters_read.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", ) @@ -1495,6 +1620,49 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): serialized_name="storageAccountType", ) + additional_disk_properties = _schema_managed_disk_parameters_read.additional_disk_properties + additional_disk_properties.managed_disk_properties = AAZObjectType( + serialized_name="managedDiskProperties", + ) + + managed_disk_properties = _schema_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties + managed_disk_properties.availability_policy = AAZObjectType( + serialized_name="availabilityPolicy", + ) + managed_disk_properties.bursting_enabled = AAZBoolType( + serialized_name="burstingEnabled", + ) + managed_disk_properties.disk_access_id = AAZStrType( + serialized_name="diskAccessId", + ) + managed_disk_properties.disk_iops_read_only = AAZIntType( + serialized_name="diskIOPSReadOnly", + ) + managed_disk_properties.disk_m_bps_read_only = AAZIntType( + serialized_name="diskMBpsReadOnly", + ) + managed_disk_properties.logical_sector_size = AAZIntType( + serialized_name="logicalSectorSize", + ) + managed_disk_properties.max_shares = AAZIntType( + serialized_name="maxShares", + ) + managed_disk_properties.network_access_policy = AAZStrType( + serialized_name="networkAccessPolicy", + ) + managed_disk_properties.optimized_for_frequent_attach = AAZBoolType( + serialized_name="optimizedForFrequentAttach", + ) + managed_disk_properties.performance_plus = AAZBoolType( + serialized_name="performancePlus", + ) + managed_disk_properties.tier = AAZStrType() + + availability_policy = _schema_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties.availability_policy + availability_policy.action_on_disk_delay = AAZStrType( + serialized_name="actionOnDiskDelay", + ) + security_profile = _schema_managed_disk_parameters_read.security_profile security_profile.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", @@ -1504,6 +1672,7 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): serialized_name="securityEncryptionType", ) + _schema.additional_disk_properties = cls._schema_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_managed_disk_parameters_read.disk_encryption_set _schema.id = cls._schema_managed_disk_parameters_read.id _schema.security_profile = cls._schema_managed_disk_parameters_read.security_profile @@ -1524,6 +1693,50 @@ def _build_schema_sub_resource_read(cls, _schema): _schema.id = cls._schema_sub_resource_read.id + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + _schema_virtual_hard_disk_read = None @classmethod diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_list_all.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_list_all.py index 1e8992f921d..8b13df3d351 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_list_all.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_list_all.py @@ -16,9 +16,9 @@ class ListAll(AAZCommand): """ _aaz_info = { - "version": "2024-11-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.compute/virtualmachines", "2024-11-01"], + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.compute/virtualmachines", "2026-04-01"], ] } @@ -121,7 +121,7 @@ def query_parameters(self): "statusOnly", self.ctx.args.status_only, ), **self.serialize_query_param( - "api-version", "2024-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -193,6 +193,11 @@ def _build_schema_on_200(cls): _element.resources = AAZListType( flags={"read_only": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ListAllHelper._build_schema_system_data_read(_element.system_data) _element.tags = AAZDictType() _element.type = AAZStrType( flags={"read_only": True}, @@ -294,6 +299,9 @@ def _build_schema_on_200(cls): serialized_name="instanceView", flags={"read_only": True}, ) + properties.interconnect_block_profile = AAZObjectType( + serialized_name="interconnectBlockProfile", + ) properties.license_type = AAZStrType( serialized_name="licenseType", ) @@ -315,6 +323,9 @@ def _build_schema_on_200(cls): serialized_name="proximityPlacementGroup", ) _ListAllHelper._build_schema_sub_resource_read(properties.proximity_placement_group) + properties.resiliency_profile = AAZObjectType( + serialized_name="resiliencyProfile", + ) properties.scheduled_events_policy = AAZObjectType( serialized_name="scheduledEventsPolicy", ) @@ -344,6 +355,9 @@ def _build_schema_on_200(cls): ) additional_capabilities = cls._schema_on_200.value.Element.properties.additional_capabilities + additional_capabilities.enable_fips1403_encryption = AAZBoolType( + serialized_name="enableFips1403Encryption", + ) additional_capabilities.hibernation_enabled = AAZBoolType( serialized_name="hibernationEnabled", ) @@ -386,6 +400,9 @@ def _build_schema_on_200(cls): serialized_name="capacityReservationGroup", ) _ListAllHelper._build_schema_sub_resource_read(capacity_reservation.capacity_reservation_group) + capacity_reservation.disable_capacity_reservation_assignment = AAZBoolType( + serialized_name="disableCapacityReservationAssignment", + ) diagnostics_profile = cls._schema_on_200.value.Element.properties.diagnostics_profile diagnostics_profile.boot_diagnostics = AAZObjectType( @@ -399,6 +416,9 @@ def _build_schema_on_200(cls): ) hardware_profile = cls._schema_on_200.value.Element.properties.hardware_profile + hardware_profile.processor_mode = AAZStrType( + serialized_name="processorMode", + ) hardware_profile.vm_size = AAZStrType( serialized_name="vmSize", ) @@ -422,6 +442,10 @@ def _build_schema_on_200(cls): instance_view.boot_diagnostics = AAZObjectType( serialized_name="bootDiagnostics", ) + instance_view.capacity_reservation_type = AAZStrType( + serialized_name="capacityReservationType", + flags={"read_only": True}, + ) instance_view.computer_name = AAZStrType( serialized_name="computerName", ) @@ -430,6 +454,10 @@ def _build_schema_on_200(cls): instance_view.hyper_v_generation = AAZStrType( serialized_name="hyperVGeneration", ) + instance_view.interconnect_instance_view = AAZObjectType( + serialized_name="interconnectInstanceView", + flags={"read_only": True}, + ) instance_view.is_vm_in_standby_pool = AAZBoolType( serialized_name="isVMInStandbyPool", flags={"read_only": True}, @@ -487,6 +515,9 @@ def _build_schema_on_200(cls): ) _element.name = AAZStrType() _element.statuses = AAZListType() + _element.storage_alignment_status = AAZStrType( + serialized_name="storageAlignmentStatus", + ) encryption_settings = cls._schema_on_200.value.Element.properties.instance_view.disks.Element.encryption_settings encryption_settings.Element = AAZObjectType() @@ -500,6 +531,12 @@ def _build_schema_on_200(cls): extensions.Element = AAZObjectType() _ListAllHelper._build_schema_virtual_machine_extension_instance_view_read(extensions.Element) + interconnect_instance_view = cls._schema_on_200.value.Element.properties.instance_view.interconnect_instance_view + interconnect_instance_view.interconnect_subgroup_id = AAZStrType( + serialized_name="interconnectSubgroupId", + flags={"read_only": True}, + ) + maintenance_redeploy_status = cls._schema_on_200.value.Element.properties.instance_view.maintenance_redeploy_status maintenance_redeploy_status.is_customer_initiated_maintenance_allowed = AAZBoolType( serialized_name="isCustomerInitiatedMaintenanceAllowed", @@ -651,7 +688,16 @@ def _build_schema_on_200(cls): ) _ListAllHelper._build_schema_instance_view_status_read(vm_health.status) + interconnect_block_profile = cls._schema_on_200.value.Element.properties.interconnect_block_profile + interconnect_block_profile.interconnect_block = AAZObjectType( + serialized_name="interconnectBlock", + ) + _ListAllHelper._build_schema_api_entity_reference_read(interconnect_block_profile.interconnect_block) + network_profile = cls._schema_on_200.value.Element.properties.network_profile + network_profile.interconnect_group_profile = AAZObjectType( + serialized_name="interconnectGroupProfile", + ) network_profile.network_api_version = AAZStrType( serialized_name="networkApiVersion", ) @@ -662,6 +708,17 @@ def _build_schema_on_200(cls): serialized_name="networkInterfaces", ) + interconnect_group_profile = cls._schema_on_200.value.Element.properties.network_profile.interconnect_group_profile + interconnect_group_profile.interconnect_group = AAZObjectType( + serialized_name="interconnectGroup", + ) + _ListAllHelper._build_schema_sub_resource_read(interconnect_group_profile.interconnect_group) + interconnect_group_profile.subgroups = AAZListType() + + subgroups = cls._schema_on_200.value.Element.properties.network_profile.interconnect_group_profile.subgroups + subgroups.Element = AAZObjectType() + _ListAllHelper._build_schema_sub_resource_read(subgroups.Element) + network_interface_configurations = cls._schema_on_200.value.Element.properties.network_profile.network_interface_configurations network_interface_configurations.Element = AAZObjectType() @@ -672,6 +729,7 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.tags = AAZDictType() properties = cls._schema_on_200.value.Element.properties.network_profile.network_interface_configurations.Element.properties properties.auxiliary_mode = AAZStrType( @@ -771,6 +829,7 @@ def _build_schema_on_200(cls): flags={"client_flatten": True}, ) public_ip_address_configuration.sku = AAZObjectType() + public_ip_address_configuration.tags = AAZDictType() properties = cls._schema_on_200.value.Element.properties.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties properties.delete_option = AAZStrType( @@ -809,6 +868,9 @@ def _build_schema_on_200(cls): ip_tags.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties.ip_tags.Element + _element.first_party_service_tag_id = AAZStrType( + serialized_name="firstPartyServiceTagId", + ) _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) @@ -818,6 +880,12 @@ def _build_schema_on_200(cls): sku.name = AAZStrType() sku.tier = AAZStrType() + tags = cls._schema_on_200.value.Element.properties.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.tags + tags.Element = AAZStrType() + + tags = cls._schema_on_200.value.Element.properties.network_profile.network_interface_configurations.Element.tags + tags.Element = AAZStrType() + network_interfaces = cls._schema_on_200.value.Element.properties.network_profile.network_interfaces network_interfaces.Element = AAZObjectType() @@ -1005,7 +1073,20 @@ def _build_schema_on_200(cls): ) _element.protocol = AAZStrType() + resiliency_profile = cls._schema_on_200.value.Element.properties.resiliency_profile + resiliency_profile.zone_movement = AAZObjectType( + serialized_name="zoneMovement", + ) + + zone_movement = cls._schema_on_200.value.Element.properties.resiliency_profile.zone_movement + zone_movement.is_enabled = AAZBoolType( + serialized_name="isEnabled", + ) + scheduled_events_policy = cls._schema_on_200.value.Element.properties.scheduled_events_policy + scheduled_events_policy.all_instances_down = AAZObjectType( + serialized_name="allInstancesDown", + ) scheduled_events_policy.scheduled_events_additional_publishing_targets = AAZObjectType( serialized_name="scheduledEventsAdditionalPublishingTargets", ) @@ -1016,6 +1097,11 @@ def _build_schema_on_200(cls): serialized_name="userInitiatedRedeploy", ) + all_instances_down = cls._schema_on_200.value.Element.properties.scheduled_events_policy.all_instances_down + all_instances_down.automatically_approve = AAZBoolType( + serialized_name="automaticallyApprove", + ) + scheduled_events_additional_publishing_targets = cls._schema_on_200.value.Element.properties.scheduled_events_policy.scheduled_events_additional_publishing_targets scheduled_events_additional_publishing_targets.event_grid_and_resource_graph = AAZObjectType( serialized_name="eventGridAndResourceGraph", @@ -1023,6 +1109,9 @@ def _build_schema_on_200(cls): event_grid_and_resource_graph = cls._schema_on_200.value.Element.properties.scheduled_events_policy.scheduled_events_additional_publishing_targets.event_grid_and_resource_graph event_grid_and_resource_graph.enable = AAZBoolType() + event_grid_and_resource_graph.scheduled_events_api_version = AAZStrType( + serialized_name="scheduledEventsApiVersion", + ) user_initiated_reboot = cls._schema_on_200.value.Element.properties.scheduled_events_policy.user_initiated_reboot user_initiated_reboot.automatically_approve = AAZBoolType( @@ -1077,6 +1166,9 @@ def _build_schema_on_200(cls): ) proxy_agent_settings = cls._schema_on_200.value.Element.properties.security_profile.proxy_agent_settings + proxy_agent_settings.add_proxy_agent_extension = AAZBoolType( + serialized_name="addProxyAgentExtension", + ) proxy_agent_settings.enabled = AAZBoolType() proxy_agent_settings.imds = AAZObjectType() _ListAllHelper._build_schema_host_endpoint_settings_read(proxy_agent_settings.imds) @@ -1104,6 +1196,9 @@ def _build_schema_on_200(cls): storage_profile.data_disks = AAZListType( serialized_name="dataDisks", ) + storage_profile.disk_api_version = AAZStrType( + serialized_name="diskApiVersion", + ) storage_profile.disk_controller_type = AAZStrType( serialized_name="diskControllerType", ) @@ -1131,11 +1226,9 @@ def _build_schema_on_200(cls): ) _element.disk_iops_read_write = AAZIntType( serialized_name="diskIOPSReadWrite", - flags={"read_only": True}, ) _element.disk_m_bps_read_write = AAZIntType( serialized_name="diskMBpsReadWrite", - flags={"read_only": True}, ) _element.disk_size_gb = AAZIntType( serialized_name="diskSizeGB", @@ -1153,6 +1246,10 @@ def _build_schema_on_200(cls): _element.source_resource = AAZObjectType( serialized_name="sourceResource", ) + _ListAllHelper._build_schema_api_entity_reference_read(_element.source_resource) + _element.storage_fault_domain_alignment = AAZStrType( + serialized_name="storageFaultDomainAlignment", + ) _element.to_be_detached = AAZBoolType( serialized_name="toBeDetached", ) @@ -1162,9 +1259,6 @@ def _build_schema_on_200(cls): serialized_name="writeAcceleratorEnabled", ) - source_resource = cls._schema_on_200.value.Element.properties.storage_profile.data_disks.Element.source_resource - source_resource.id = AAZStrType() - image_reference = cls._schema_on_200.value.Element.properties.storage_profile.image_reference image_reference.community_gallery_image_id = AAZStrType( serialized_name="communityGalleryImageId", @@ -1211,6 +1305,9 @@ def _build_schema_on_200(cls): os_disk.os_type = AAZStrType( serialized_name="osType", ) + os_disk.storage_fault_domain_alignment = AAZStrType( + serialized_name="storageFaultDomainAlignment", + ) os_disk.vhd = AAZObjectType() _ListAllHelper._build_schema_virtual_hard_disk_read(os_disk.vhd) os_disk.write_accelerator_enabled = AAZBoolType( @@ -1218,6 +1315,9 @@ def _build_schema_on_200(cls): ) diff_disk_settings = cls._schema_on_200.value.Element.properties.storage_profile.os_disk.diff_disk_settings + diff_disk_settings.enable_full_caching = AAZBoolType( + serialized_name="enableFullCaching", + ) diff_disk_settings.option = AAZStrType() diff_disk_settings.placement = AAZStrType() @@ -1228,13 +1328,20 @@ def _build_schema_on_200(cls): _element.id = AAZStrType( flags={"read_only": True}, ) - _element.location = AAZStrType() + _element.location = AAZStrType( + flags={"required": True}, + ) _element.name = AAZStrType( flags={"read_only": True}, ) _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ListAllHelper._build_schema_system_data_read(_element.system_data) _element.tags = AAZDictType() _element.type = AAZStrType( flags={"read_only": True}, @@ -1254,7 +1361,7 @@ def _build_schema_on_200(cls): serialized_name="instanceView", ) _ListAllHelper._build_schema_virtual_machine_extension_instance_view_read(properties.instance_view) - properties.protected_settings = AAZDictType( + properties.protected_settings = AAZAnyType( serialized_name="protectedSettings", ) properties.protected_settings_from_key_vault = AAZObjectType( @@ -1269,7 +1376,7 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) properties.publisher = AAZStrType() - properties.settings = AAZDictType() + properties.settings = AAZAnyType() properties.suppress_failures = AAZBoolType( serialized_name="suppressFailures", ) @@ -1278,15 +1385,9 @@ def _build_schema_on_200(cls): serialized_name="typeHandlerVersion", ) - protected_settings = cls._schema_on_200.value.Element.resources.Element.properties.protected_settings - protected_settings.Element = AAZAnyType() - provision_after_extensions = cls._schema_on_200.value.Element.resources.Element.properties.provision_after_extensions provision_after_extensions.Element = AAZStrType() - settings = cls._schema_on_200.value.Element.resources.Element.properties.settings - settings.Element = AAZAnyType() - tags = cls._schema_on_200.value.Element.resources.Element.tags tags.Element = AAZStrType() @@ -1302,6 +1403,21 @@ def _build_schema_on_200(cls): class _ListAllHelper: """Helper class for ListAll""" + _schema_api_entity_reference_read = None + + @classmethod + def _build_schema_api_entity_reference_read(cls, _schema): + if cls._schema_api_entity_reference_read is not None: + _schema.id = cls._schema_api_entity_reference_read.id + return + + cls._schema_api_entity_reference_read = _schema_api_entity_reference_read = AAZObjectType() + + api_entity_reference_read = _schema_api_entity_reference_read + api_entity_reference_read.id = AAZStrType() + + _schema.id = cls._schema_api_entity_reference_read.id + _schema_api_error_read = None @classmethod @@ -1402,6 +1518,7 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): if cls._schema_host_endpoint_settings_read is not None: _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules return cls._schema_host_endpoint_settings_read = _schema_host_endpoint_settings_read = AAZObjectType() @@ -1411,9 +1528,13 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): serialized_name="inVMAccessControlProfileReferenceId", ) host_endpoint_settings_read.mode = AAZStrType() + host_endpoint_settings_read.use_local_file_rules = AAZBoolType( + serialized_name="useLocalFileRules", + ) _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules _schema_instance_view_status_read = None @@ -1474,6 +1595,7 @@ def _build_schema_key_vault_secret_reference_read(cls, _schema): @classmethod def _build_schema_managed_disk_parameters_read(cls, _schema): if cls._schema_managed_disk_parameters_read is not None: + _schema.additional_disk_properties = cls._schema_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_managed_disk_parameters_read.disk_encryption_set _schema.id = cls._schema_managed_disk_parameters_read.id _schema.security_profile = cls._schema_managed_disk_parameters_read.security_profile @@ -1483,6 +1605,9 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): cls._schema_managed_disk_parameters_read = _schema_managed_disk_parameters_read = AAZObjectType() managed_disk_parameters_read = _schema_managed_disk_parameters_read + managed_disk_parameters_read.additional_disk_properties = AAZObjectType( + serialized_name="additionalDiskProperties", + ) managed_disk_parameters_read.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", ) @@ -1495,6 +1620,49 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): serialized_name="storageAccountType", ) + additional_disk_properties = _schema_managed_disk_parameters_read.additional_disk_properties + additional_disk_properties.managed_disk_properties = AAZObjectType( + serialized_name="managedDiskProperties", + ) + + managed_disk_properties = _schema_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties + managed_disk_properties.availability_policy = AAZObjectType( + serialized_name="availabilityPolicy", + ) + managed_disk_properties.bursting_enabled = AAZBoolType( + serialized_name="burstingEnabled", + ) + managed_disk_properties.disk_access_id = AAZStrType( + serialized_name="diskAccessId", + ) + managed_disk_properties.disk_iops_read_only = AAZIntType( + serialized_name="diskIOPSReadOnly", + ) + managed_disk_properties.disk_m_bps_read_only = AAZIntType( + serialized_name="diskMBpsReadOnly", + ) + managed_disk_properties.logical_sector_size = AAZIntType( + serialized_name="logicalSectorSize", + ) + managed_disk_properties.max_shares = AAZIntType( + serialized_name="maxShares", + ) + managed_disk_properties.network_access_policy = AAZStrType( + serialized_name="networkAccessPolicy", + ) + managed_disk_properties.optimized_for_frequent_attach = AAZBoolType( + serialized_name="optimizedForFrequentAttach", + ) + managed_disk_properties.performance_plus = AAZBoolType( + serialized_name="performancePlus", + ) + managed_disk_properties.tier = AAZStrType() + + availability_policy = _schema_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties.availability_policy + availability_policy.action_on_disk_delay = AAZStrType( + serialized_name="actionOnDiskDelay", + ) + security_profile = _schema_managed_disk_parameters_read.security_profile security_profile.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", @@ -1504,6 +1672,7 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): serialized_name="securityEncryptionType", ) + _schema.additional_disk_properties = cls._schema_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_managed_disk_parameters_read.disk_encryption_set _schema.id = cls._schema_managed_disk_parameters_read.id _schema.security_profile = cls._schema_managed_disk_parameters_read.security_profile @@ -1524,6 +1693,50 @@ def _build_schema_sub_resource_read(cls, _schema): _schema.id = cls._schema_sub_resource_read.id + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + _schema_virtual_hard_disk_read = None @classmethod diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_show.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_show.py index 6f8c0fada49..4cdf4196be0 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_show.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_show.py @@ -16,9 +16,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2025-11-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}", "2025-11-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}", "2026-04-01"], ] } @@ -122,7 +122,7 @@ def query_parameters(self): "$expand", self.ctx.args.expand, ), **self.serialize_query_param( - "api-version", "2025-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -289,6 +289,9 @@ def _build_schema_on_200(cls): serialized_name="instanceView", flags={"read_only": True}, ) + properties.interconnect_block_profile = AAZObjectType( + serialized_name="interconnectBlockProfile", + ) properties.license_type = AAZStrType( serialized_name="licenseType", ) @@ -387,6 +390,9 @@ def _build_schema_on_200(cls): serialized_name="capacityReservationGroup", ) _ShowHelper._build_schema_sub_resource_read(capacity_reservation.capacity_reservation_group) + capacity_reservation.disable_capacity_reservation_assignment = AAZBoolType( + serialized_name="disableCapacityReservationAssignment", + ) diagnostics_profile = cls._schema_on_200.properties.diagnostics_profile diagnostics_profile.boot_diagnostics = AAZObjectType( @@ -400,6 +406,9 @@ def _build_schema_on_200(cls): ) hardware_profile = cls._schema_on_200.properties.hardware_profile + hardware_profile.processor_mode = AAZStrType( + serialized_name="processorMode", + ) hardware_profile.vm_size = AAZStrType( serialized_name="vmSize", ) @@ -423,6 +432,10 @@ def _build_schema_on_200(cls): instance_view.boot_diagnostics = AAZObjectType( serialized_name="bootDiagnostics", ) + instance_view.capacity_reservation_type = AAZStrType( + serialized_name="capacityReservationType", + flags={"read_only": True}, + ) instance_view.computer_name = AAZStrType( serialized_name="computerName", ) @@ -431,6 +444,10 @@ def _build_schema_on_200(cls): instance_view.hyper_v_generation = AAZStrType( serialized_name="hyperVGeneration", ) + instance_view.interconnect_instance_view = AAZObjectType( + serialized_name="interconnectInstanceView", + flags={"read_only": True}, + ) instance_view.is_vm_in_standby_pool = AAZBoolType( serialized_name="isVMInStandbyPool", flags={"read_only": True}, @@ -504,6 +521,12 @@ def _build_schema_on_200(cls): extensions.Element = AAZObjectType() _ShowHelper._build_schema_virtual_machine_extension_instance_view_read(extensions.Element) + interconnect_instance_view = cls._schema_on_200.properties.instance_view.interconnect_instance_view + interconnect_instance_view.interconnect_subgroup_id = AAZStrType( + serialized_name="interconnectSubgroupId", + flags={"read_only": True}, + ) + maintenance_redeploy_status = cls._schema_on_200.properties.instance_view.maintenance_redeploy_status maintenance_redeploy_status.is_customer_initiated_maintenance_allowed = AAZBoolType( serialized_name="isCustomerInitiatedMaintenanceAllowed", @@ -655,7 +678,16 @@ def _build_schema_on_200(cls): ) _ShowHelper._build_schema_instance_view_status_read(vm_health.status) + interconnect_block_profile = cls._schema_on_200.properties.interconnect_block_profile + interconnect_block_profile.interconnect_block = AAZObjectType( + serialized_name="interconnectBlock", + ) + _ShowHelper._build_schema_api_entity_reference_read(interconnect_block_profile.interconnect_block) + network_profile = cls._schema_on_200.properties.network_profile + network_profile.interconnect_group_profile = AAZObjectType( + serialized_name="interconnectGroupProfile", + ) network_profile.network_api_version = AAZStrType( serialized_name="networkApiVersion", ) @@ -666,6 +698,17 @@ def _build_schema_on_200(cls): serialized_name="networkInterfaces", ) + interconnect_group_profile = cls._schema_on_200.properties.network_profile.interconnect_group_profile + interconnect_group_profile.interconnect_group = AAZObjectType( + serialized_name="interconnectGroup", + ) + _ShowHelper._build_schema_sub_resource_read(interconnect_group_profile.interconnect_group) + interconnect_group_profile.subgroups = AAZListType() + + subgroups = cls._schema_on_200.properties.network_profile.interconnect_group_profile.subgroups + subgroups.Element = AAZObjectType() + _ShowHelper._build_schema_sub_resource_read(subgroups.Element) + network_interface_configurations = cls._schema_on_200.properties.network_profile.network_interface_configurations network_interface_configurations.Element = AAZObjectType() @@ -815,6 +858,9 @@ def _build_schema_on_200(cls): ip_tags.Element = AAZObjectType() _element = cls._schema_on_200.properties.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties.ip_tags.Element + _element.first_party_service_tag_id = AAZStrType( + serialized_name="firstPartyServiceTagId", + ) _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) @@ -1140,6 +1186,9 @@ def _build_schema_on_200(cls): storage_profile.data_disks = AAZListType( serialized_name="dataDisks", ) + storage_profile.disk_api_version = AAZStrType( + serialized_name="diskApiVersion", + ) storage_profile.disk_controller_type = AAZStrType( serialized_name="diskControllerType", ) @@ -1187,6 +1236,7 @@ def _build_schema_on_200(cls): _element.source_resource = AAZObjectType( serialized_name="sourceResource", ) + _ShowHelper._build_schema_api_entity_reference_read(_element.source_resource) _element.storage_fault_domain_alignment = AAZStrType( serialized_name="storageFaultDomainAlignment", ) @@ -1199,9 +1249,6 @@ def _build_schema_on_200(cls): serialized_name="writeAcceleratorEnabled", ) - source_resource = cls._schema_on_200.properties.storage_profile.data_disks.Element.source_resource - source_resource.id = AAZStrType() - image_reference = cls._schema_on_200.properties.storage_profile.image_reference image_reference.community_gallery_image_id = AAZStrType( serialized_name="communityGalleryImageId", @@ -1346,6 +1393,21 @@ def _build_schema_on_200(cls): class _ShowHelper: """Helper class for Show""" + _schema_api_entity_reference_read = None + + @classmethod + def _build_schema_api_entity_reference_read(cls, _schema): + if cls._schema_api_entity_reference_read is not None: + _schema.id = cls._schema_api_entity_reference_read.id + return + + cls._schema_api_entity_reference_read = _schema_api_entity_reference_read = AAZObjectType() + + api_entity_reference_read = _schema_api_entity_reference_read + api_entity_reference_read.id = AAZStrType() + + _schema.id = cls._schema_api_entity_reference_read.id + _schema_api_error_read = None @classmethod @@ -1446,6 +1508,7 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): if cls._schema_host_endpoint_settings_read is not None: _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules return cls._schema_host_endpoint_settings_read = _schema_host_endpoint_settings_read = AAZObjectType() @@ -1455,9 +1518,13 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): serialized_name="inVMAccessControlProfileReferenceId", ) host_endpoint_settings_read.mode = AAZStrType() + host_endpoint_settings_read.use_local_file_rules = AAZBoolType( + serialized_name="useLocalFileRules", + ) _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules _schema_instance_view_status_read = None @@ -1518,6 +1585,7 @@ def _build_schema_key_vault_secret_reference_read(cls, _schema): @classmethod def _build_schema_managed_disk_parameters_read(cls, _schema): if cls._schema_managed_disk_parameters_read is not None: + _schema.additional_disk_properties = cls._schema_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_managed_disk_parameters_read.disk_encryption_set _schema.id = cls._schema_managed_disk_parameters_read.id _schema.security_profile = cls._schema_managed_disk_parameters_read.security_profile @@ -1527,6 +1595,9 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): cls._schema_managed_disk_parameters_read = _schema_managed_disk_parameters_read = AAZObjectType() managed_disk_parameters_read = _schema_managed_disk_parameters_read + managed_disk_parameters_read.additional_disk_properties = AAZObjectType( + serialized_name="additionalDiskProperties", + ) managed_disk_parameters_read.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", ) @@ -1539,6 +1610,49 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): serialized_name="storageAccountType", ) + additional_disk_properties = _schema_managed_disk_parameters_read.additional_disk_properties + additional_disk_properties.managed_disk_properties = AAZObjectType( + serialized_name="managedDiskProperties", + ) + + managed_disk_properties = _schema_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties + managed_disk_properties.availability_policy = AAZObjectType( + serialized_name="availabilityPolicy", + ) + managed_disk_properties.bursting_enabled = AAZBoolType( + serialized_name="burstingEnabled", + ) + managed_disk_properties.disk_access_id = AAZStrType( + serialized_name="diskAccessId", + ) + managed_disk_properties.disk_iops_read_only = AAZIntType( + serialized_name="diskIOPSReadOnly", + ) + managed_disk_properties.disk_m_bps_read_only = AAZIntType( + serialized_name="diskMBpsReadOnly", + ) + managed_disk_properties.logical_sector_size = AAZIntType( + serialized_name="logicalSectorSize", + ) + managed_disk_properties.max_shares = AAZIntType( + serialized_name="maxShares", + ) + managed_disk_properties.network_access_policy = AAZStrType( + serialized_name="networkAccessPolicy", + ) + managed_disk_properties.optimized_for_frequent_attach = AAZBoolType( + serialized_name="optimizedForFrequentAttach", + ) + managed_disk_properties.performance_plus = AAZBoolType( + serialized_name="performancePlus", + ) + managed_disk_properties.tier = AAZStrType() + + availability_policy = _schema_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties.availability_policy + availability_policy.action_on_disk_delay = AAZStrType( + serialized_name="actionOnDiskDelay", + ) + security_profile = _schema_managed_disk_parameters_read.security_profile security_profile.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", @@ -1548,6 +1662,7 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): serialized_name="securityEncryptionType", ) + _schema.additional_disk_properties = cls._schema_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_managed_disk_parameters_read.disk_encryption_set _schema.id = cls._schema_managed_disk_parameters_read.id _schema.security_profile = cls._schema_managed_disk_parameters_read.security_profile diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_update.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_update.py index 8a48ef4bc16..6847789beed 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_update.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_update.py @@ -18,9 +18,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2025-11-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}", "2025-11-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}", "2026-04-01"], ] } @@ -240,6 +240,12 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Specifies information about the dedicated host group that the virtual machine resides in. **Note:** User cannot specify both host and hostGroup properties. Minimum api-version: 2020-06-01.", ) cls._build_args_sub_resource_update(_args_schema.host_group) + _args_schema.interconnect_block_profile = AAZObjectArg( + options=["--interconnect-block-profile"], + arg_group="Properties", + help="Specifies information about the Interconnect Block that is used to allocate the Virtual Machine. Minimum api-version: 2026-03-01.", + nullable=True, + ) _args_schema.license_type = AAZStrArg( options=["--license-type"], arg_group="Properties", @@ -269,7 +275,7 @@ def _build_arguments_schema(cls, *args, **kwargs): arg_group="Properties", help="Specifies the priority for the virtual machine. Minimum api-version: 2019-03-01", nullable=True, - enum={"Low": "Low", "Regular": "Regular", "Spot": "Spot"}, + enum={"Low": "Low", "Regular": "Regular", "Spot": "Spot", "SpotPlus": "SpotPlus"}, ) _args_schema.proximity_placement_group = AAZObjectArg( options=["--proximity-placement-group"], @@ -393,6 +399,11 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved. Please refer to https://aka.ms/CapacityReservation for more details.", ) cls._build_args_sub_resource_update(capacity_reservation.capacity_reservation_group) + capacity_reservation.disable_capacity_reservation_assignment = AAZBoolArg( + options=["disable-capacity-reservation-assignment"], + help="Specifies whether the virtual machine is explicitly opted out from being associated with any capacity reservation. When set to true, the virtual machine will not be allowed to implicitly or explicitly associate with any type of capacity reservation and will consume capacity from the publicly available capacity. Minimum api-version: 2026-04-01.", + nullable=True, + ) diagnostics_profile = cls._args_schema.diagnostics_profile diagnostics_profile.boot_diagnostics = AAZObjectArg( @@ -414,6 +425,12 @@ def _build_arguments_schema(cls, *args, **kwargs): ) hardware_profile = cls._args_schema.hardware_profile + hardware_profile.processor_mode = AAZStrArg( + options=["processor-mode"], + help="Specifies the processor mode for the virtual machine or virtual machine scale set. Optional; if omitted, the platform default applies (currently Deterministic). This property can be updated on a running VM or VMSS without deallocation or reboot. Minimum api-version: 2026-04-01.", + nullable=True, + enum={"Deterministic": "Deterministic", "Opportunistic": "Opportunistic"}, + ) hardware_profile.vm_size = AAZStrArg( options=["vm-size"], help="Specifies the size of the virtual machine. The enum data type is currently deprecated and will be removed by December 23rd 2023. The recommended way to get the list of available sizes is using these APIs: [List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes), [List all available virtual machine sizes in a region]( https://docs.microsoft.com/rest/api/compute/resourceskus/list), [List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/sizes). The available VM sizes depend on region and availability set.", @@ -438,7 +455,20 @@ def _build_arguments_schema(cls, *args, **kwargs): nullable=True, ) + interconnect_block_profile = cls._args_schema.interconnect_block_profile + interconnect_block_profile.interconnect_block = AAZObjectArg( + options=["interconnect-block"], + help="Specifies the Interconnect Block resource ID that should be used for allocating the Virtual Machine or Scale Set VM instances provided enough capacity has been reserved.", + nullable=True, + ) + cls._build_args_api_entity_reference_update(interconnect_block_profile.interconnect_block) + network_profile = cls._args_schema.network_profile + network_profile.interconnect_group_profile = AAZObjectArg( + options=["interconnect-group-profile"], + help="Specifies the interconnect group profile to associate with the virtual machine. Minimum api-version: 2026-03-01.", + nullable=True, + ) network_profile.network_api_version = AAZStrArg( options=["network-api-version"], help="specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations", @@ -456,6 +486,22 @@ def _build_arguments_schema(cls, *args, **kwargs): nullable=True, ) + interconnect_group_profile = cls._args_schema.network_profile.interconnect_group_profile + interconnect_group_profile.interconnect_group = AAZObjectArg( + options=["interconnect-group"], + help="Reference to the interconnect group resource.", + ) + cls._build_args_sub_resource_update(interconnect_group_profile.interconnect_group) + interconnect_group_profile.subgroups = AAZListArg( + options=["subgroups"], + help="The list of subgroup references within the interconnect group.", + nullable=True, + ) + + subgroups = cls._args_schema.network_profile.interconnect_group_profile.subgroups + subgroups.Element = AAZObjectArg() + cls._build_args_sub_resource_update(subgroups.Element) + network_interface_configurations = cls._args_schema.network_profile.network_interface_configurations network_interface_configurations.Element = AAZObjectArg( nullable=True, @@ -676,6 +722,11 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _element = cls._args_schema.network_profile.network_interface_configurations.Element.ip_configurations.Element.public_ip_address_configuration.ip_tags.Element + _element.first_party_service_tag_id = AAZResourceIdArg( + options=["first-party-service-tag-id"], + help="The first party service tag resource identifier associated with the public IP address.", + nullable=True, + ) _element.ip_tag_type = AAZStrArg( options=["ip-tag-type"], help="IP tag type. Example: FirstPartyUsage.", @@ -717,7 +768,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _element = cls._args_schema.network_profile.network_interfaces.Element - _element.id = AAZResourceIdArg( + _element.id = AAZStrArg( options=["id"], help="Resource Id", nullable=True, @@ -1230,6 +1281,12 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Specifies the parameters that are used to add a data disk to a virtual machine. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).", nullable=True, ) + storage_profile.disk_api_version = AAZStrArg( + options=["disk-api-version"], + help="Specifies the Disk API version used when applying additionalDiskProperties to managed disks. The value must be in the format YYYY-MM-DD (e.g., \"2026-03-02\").", + nullable=True, + enum={"2025-01-02": "2025-01-02", "2026-03-02": "2026-03-02"}, + ) storage_profile.disk_controller_type = AAZStrArg( options=["disk-controller-type"], help="Specifies the disk controller type configured for the VM. **Note:** This property will be set to the default disk controller type if not specified provided virtual machine is being created with 'hyperVGeneration' set to V2 based on the capabilities of the operating system disk and VM size from the the specified minimum api version. You need to deallocate the VM before updating its disk controller type unless you are updating the VM size in the VM configuration which implicitly deallocates and reallocates the VM. Minimum api-version: 2022-08-01.", @@ -1353,7 +1410,7 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET call.", nullable=True, ) - image_reference.id = AAZResourceIdArg( + image_reference.id = AAZStrArg( options=["id"], help="Resource Id", nullable=True, @@ -1517,6 +1574,27 @@ def _build_arguments_schema(cls, *args, **kwargs): cls._build_args_sub_resource_update(key_encryption_key.source_vault) return cls._args_schema + _args_api_entity_reference_update = None + + @classmethod + def _build_args_api_entity_reference_update(cls, _schema): + if cls._args_api_entity_reference_update is not None: + _schema.id = cls._args_api_entity_reference_update.id + return + + cls._args_api_entity_reference_update = AAZObjectArg( + nullable=True, + ) + + api_entity_reference_update = cls._args_api_entity_reference_update + api_entity_reference_update.id = AAZStrArg( + options=["id"], + help="The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...", + nullable=True, + ) + + _schema.id = cls._args_api_entity_reference_update.id + _args_disk_encryption_set_parameters_update = None @classmethod @@ -1530,7 +1608,7 @@ def _build_args_disk_encryption_set_parameters_update(cls, _schema): ) disk_encryption_set_parameters_update = cls._args_disk_encryption_set_parameters_update - disk_encryption_set_parameters_update.id = AAZResourceIdArg( + disk_encryption_set_parameters_update.id = AAZStrArg( options=["id"], help="Resource Id", nullable=True, @@ -1545,6 +1623,7 @@ def _build_args_host_endpoint_settings_update(cls, _schema): if cls._args_host_endpoint_settings_update is not None: _schema.in_vm_access_control_profile_reference_id = cls._args_host_endpoint_settings_update.in_vm_access_control_profile_reference_id _schema.mode = cls._args_host_endpoint_settings_update.mode + _schema.use_local_file_rules = cls._args_host_endpoint_settings_update.use_local_file_rules return cls._args_host_endpoint_settings_update = AAZObjectArg( @@ -1563,15 +1642,22 @@ def _build_args_host_endpoint_settings_update(cls, _schema): nullable=True, enum={"Audit": "Audit", "Disabled": "Disabled", "Enforce": "Enforce"}, ) + host_endpoint_settings_update.use_local_file_rules = AAZBoolArg( + options=["use-local-file-rules"], + help="When set to true, instructs the GuestProxyAgent inside the VM to load additional access control rules defined in a local file on the VM.", + nullable=True, + ) _schema.in_vm_access_control_profile_reference_id = cls._args_host_endpoint_settings_update.in_vm_access_control_profile_reference_id _schema.mode = cls._args_host_endpoint_settings_update.mode + _schema.use_local_file_rules = cls._args_host_endpoint_settings_update.use_local_file_rules _args_managed_disk_parameters_update = None @classmethod def _build_args_managed_disk_parameters_update(cls, _schema): if cls._args_managed_disk_parameters_update is not None: + _schema.additional_disk_properties = cls._args_managed_disk_parameters_update.additional_disk_properties _schema.disk_encryption_set = cls._args_managed_disk_parameters_update.disk_encryption_set _schema.id = cls._args_managed_disk_parameters_update.id _schema.security_profile = cls._args_managed_disk_parameters_update.security_profile @@ -1583,13 +1669,18 @@ def _build_args_managed_disk_parameters_update(cls, _schema): ) managed_disk_parameters_update = cls._args_managed_disk_parameters_update + managed_disk_parameters_update.additional_disk_properties = AAZObjectArg( + options=["additional-disk-properties"], + help="Specifies additional properties for the managed disk that can be set at the time of implicit creation of the disk. This property is not captured for Restore Points.", + nullable=True, + ) managed_disk_parameters_update.disk_encryption_set = AAZObjectArg( options=["disk-encryption-set"], help="Specifies the customer managed disk encryption set resource id for the managed disk.", nullable=True, ) cls._build_args_disk_encryption_set_parameters_update(managed_disk_parameters_update.disk_encryption_set) - managed_disk_parameters_update.id = AAZResourceIdArg( + managed_disk_parameters_update.id = AAZStrArg( options=["id"], help="Resource Id", nullable=True, @@ -1606,6 +1697,82 @@ def _build_args_managed_disk_parameters_update(cls, _schema): enum={"PremiumV2_LRS": "PremiumV2_LRS", "Premium_LRS": "Premium_LRS", "Premium_ZRS": "Premium_ZRS", "StandardSSD_LRS": "StandardSSD_LRS", "StandardSSD_ZRS": "StandardSSD_ZRS", "Standard_LRS": "Standard_LRS", "UltraSSD_LRS": "UltraSSD_LRS"}, ) + additional_disk_properties = cls._args_managed_disk_parameters_update.additional_disk_properties + additional_disk_properties.managed_disk_properties = AAZObjectArg( + options=["managed-disk-properties"], + help="Specifies the managed disk properties that can be set at the time of implicit creation of the disk.", + nullable=True, + ) + + managed_disk_properties = cls._args_managed_disk_parameters_update.additional_disk_properties.managed_disk_properties + managed_disk_properties.availability_policy = AAZObjectArg( + options=["availability-policy"], + help="In the case of an availability or connectivity issue with the disk, specify the behavior of your VM.", + nullable=True, + ) + managed_disk_properties.bursting_enabled = AAZBoolArg( + options=["bursting-enabled"], + help="Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.", + nullable=True, + ) + managed_disk_properties.disk_access_id = AAZStrArg( + options=["disk-access-id"], + help="Azure resource Id of the DiskAccess resource for using private endpoints on disks.", + nullable=True, + ) + managed_disk_properties.disk_iops_read_only = AAZIntArg( + options=["disk-iops-read-only"], + help="The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.", + nullable=True, + ) + managed_disk_properties.disk_m_bps_read_only = AAZIntArg( + options=["disk-m-bps-read-only"], + help="The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.", + nullable=True, + ) + managed_disk_properties.logical_sector_size = AAZIntArg( + options=["logical-sector-size"], + help="Logical sector size in bytes for Ultra Disks. Supported values are 512 and 4096. 4096 is the default.", + nullable=True, + ) + managed_disk_properties.max_shares = AAZIntArg( + options=["max-shares"], + help="The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. Applies to data disks only.", + nullable=True, + fmt=AAZIntArgFormat( + minimum=1, + ), + ) + managed_disk_properties.network_access_policy = AAZStrArg( + options=["network-access-policy"], + help="Policy for accessing the disk via network.", + nullable=True, + enum={"AllowAll": "AllowAll", "AllowPrivate": "AllowPrivate", "DenyAll": "DenyAll"}, + ) + managed_disk_properties.optimized_for_frequent_attach = AAZBoolArg( + options=["optimized-for-frequent-attach"], + help="Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine.", + nullable=True, + ) + managed_disk_properties.performance_plus = AAZBoolArg( + options=["performance-plus"], + help="Set this flag to true to get a boost on the performance target of the disk deployed. This flag can only be set on disk creation time and cannot be disabled after enabled.", + nullable=True, + ) + managed_disk_properties.tier = AAZStrArg( + options=["tier"], + help="Performance tier of the disk (e.g., P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.", + nullable=True, + ) + + availability_policy = cls._args_managed_disk_parameters_update.additional_disk_properties.managed_disk_properties.availability_policy + availability_policy.action_on_disk_delay = AAZStrArg( + options=["action-on-disk-delay"], + help="Determines how to handle disks with slow I/O.", + nullable=True, + enum={"AutomaticReattach": "AutomaticReattach", "None": "None"}, + ) + security_profile = cls._args_managed_disk_parameters_update.security_profile security_profile.disk_encryption_set = AAZObjectArg( options=["disk-encryption-set"], @@ -1620,6 +1787,7 @@ def _build_args_managed_disk_parameters_update(cls, _schema): enum={"DiskWithVMGuestState": "DiskWithVMGuestState", "NonPersistedTPM": "NonPersistedTPM", "VMGuestStateOnly": "VMGuestStateOnly"}, ) + _schema.additional_disk_properties = cls._args_managed_disk_parameters_update.additional_disk_properties _schema.disk_encryption_set = cls._args_managed_disk_parameters_update.disk_encryption_set _schema.id = cls._args_managed_disk_parameters_update.id _schema.security_profile = cls._args_managed_disk_parameters_update.security_profile @@ -1636,7 +1804,7 @@ def _build_args_sub_resource_update(cls, _schema): cls._args_sub_resource_update = AAZObjectArg() sub_resource_update = cls._args_sub_resource_update - sub_resource_update.id = AAZResourceIdArg( + sub_resource_update.id = AAZStrArg( options=["id"], help="Resource Id", nullable=True, @@ -1743,7 +1911,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -1842,7 +2010,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -1953,6 +2121,7 @@ def _update_instance(self, instance): properties.set_prop("hardwareProfile", AAZObjectType, ".hardware_profile") _UpdateHelper._build_schema_sub_resource_update(properties.set_prop("host", AAZObjectType, ".host")) _UpdateHelper._build_schema_sub_resource_update(properties.set_prop("hostGroup", AAZObjectType, ".host_group")) + properties.set_prop("interconnectBlockProfile", AAZObjectType, ".interconnect_block_profile") properties.set_prop("licenseType", AAZStrType, ".license_type") properties.set_prop("networkProfile", AAZObjectType, ".network_profile") properties.set_prop("osProfile", AAZObjectType, ".os_profile") @@ -1997,6 +2166,7 @@ def _update_instance(self, instance): capacity_reservation = _builder.get(".properties.capacityReservation") if capacity_reservation is not None: _UpdateHelper._build_schema_sub_resource_update(capacity_reservation.set_prop("capacityReservationGroup", AAZObjectType, ".capacity_reservation_group")) + capacity_reservation.set_prop("disableCapacityReservationAssignment", AAZBoolType, ".disable_capacity_reservation_assignment") diagnostics_profile = _builder.get(".properties.diagnosticsProfile") if diagnostics_profile is not None: @@ -2009,6 +2179,7 @@ def _update_instance(self, instance): hardware_profile = _builder.get(".properties.hardwareProfile") if hardware_profile is not None: + hardware_profile.set_prop("processorMode", AAZStrType, ".processor_mode") hardware_profile.set_prop("vmSize", AAZStrType, ".vm_size") hardware_profile.set_prop("vmSizeProperties", AAZObjectType, ".vm_size_properties") @@ -2017,12 +2188,26 @@ def _update_instance(self, instance): vm_size_properties.set_prop("vCPUsAvailable", AAZIntType, ".v_cp_us_available") vm_size_properties.set_prop("vCPUsPerCore", AAZIntType, ".v_cp_us_per_core") + interconnect_block_profile = _builder.get(".properties.interconnectBlockProfile") + if interconnect_block_profile is not None: + _UpdateHelper._build_schema_api_entity_reference_update(interconnect_block_profile.set_prop("interconnectBlock", AAZObjectType, ".interconnect_block")) + network_profile = _builder.get(".properties.networkProfile") if network_profile is not None: + network_profile.set_prop("interconnectGroupProfile", AAZObjectType, ".interconnect_group_profile") network_profile.set_prop("networkApiVersion", AAZStrType, ".network_api_version") network_profile.set_prop("networkInterfaceConfigurations", AAZListType, ".network_interface_configurations") network_profile.set_prop("networkInterfaces", AAZListType, ".network_interfaces") + interconnect_group_profile = _builder.get(".properties.networkProfile.interconnectGroupProfile") + if interconnect_group_profile is not None: + _UpdateHelper._build_schema_sub_resource_update(interconnect_group_profile.set_prop("interconnectGroup", AAZObjectType, ".interconnect_group")) + interconnect_group_profile.set_prop("subgroups", AAZListType, ".subgroups") + + subgroups = _builder.get(".properties.networkProfile.interconnectGroupProfile.subgroups") + if subgroups is not None: + _UpdateHelper._build_schema_sub_resource_update(subgroups.set_elements(AAZObjectType, ".")) + network_interface_configurations = _builder.get(".properties.networkProfile.networkInterfaceConfigurations") if network_interface_configurations is not None: network_interface_configurations.set_elements(AAZObjectType, ".") @@ -2115,6 +2300,7 @@ def _update_instance(self, instance): _elements = _builder.get(".properties.networkProfile.networkInterfaceConfigurations[].properties.ipConfigurations[].properties.publicIPAddressConfiguration.properties.ipTags[]") if _elements is not None: + _elements.set_prop("firstPartyServiceTagId", AAZStrType, ".first_party_service_tag_id") _elements.set_prop("ipTagType", AAZStrType, ".ip_tag_type") _elements.set_prop("tag", AAZStrType, ".tag") @@ -2333,6 +2519,7 @@ def _update_instance(self, instance): if storage_profile is not None: storage_profile.set_prop("alignRegionalDisksToVMZone", AAZBoolType, ".align_regional_disks_to_vm_zone") storage_profile.set_prop("dataDisks", AAZListType, ".data_disks") + storage_profile.set_prop("diskApiVersion", AAZStrType, ".disk_api_version") storage_profile.set_prop("diskControllerType", AAZStrType, ".disk_controller_type") storage_profile.set_prop("imageReference", AAZObjectType, ".image_reference") storage_profile.set_prop("osDisk", AAZObjectType, ".os_disk") @@ -2434,6 +2621,12 @@ def __call__(self, *args, **kwargs): class _UpdateHelper: """Helper class for Update""" + @classmethod + def _build_schema_api_entity_reference_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("id", AAZStrType, ".id") + @classmethod def _build_schema_disk_encryption_set_parameters_update(cls, _builder): if _builder is None: @@ -2446,16 +2639,40 @@ def _build_schema_host_endpoint_settings_update(cls, _builder): return _builder.set_prop("inVMAccessControlProfileReferenceId", AAZStrType, ".in_vm_access_control_profile_reference_id") _builder.set_prop("mode", AAZStrType, ".mode") + _builder.set_prop("useLocalFileRules", AAZBoolType, ".use_local_file_rules") @classmethod def _build_schema_managed_disk_parameters_update(cls, _builder): if _builder is None: return + _builder.set_prop("additionalDiskProperties", AAZObjectType, ".additional_disk_properties") cls._build_schema_disk_encryption_set_parameters_update(_builder.set_prop("diskEncryptionSet", AAZObjectType, ".disk_encryption_set")) _builder.set_prop("id", AAZStrType, ".id") _builder.set_prop("securityProfile", AAZObjectType, ".security_profile") _builder.set_prop("storageAccountType", AAZStrType, ".storage_account_type") + additional_disk_properties = _builder.get(".additionalDiskProperties") + if additional_disk_properties is not None: + additional_disk_properties.set_prop("managedDiskProperties", AAZObjectType, ".managed_disk_properties") + + managed_disk_properties = _builder.get(".additionalDiskProperties.managedDiskProperties") + if managed_disk_properties is not None: + managed_disk_properties.set_prop("availabilityPolicy", AAZObjectType, ".availability_policy") + managed_disk_properties.set_prop("burstingEnabled", AAZBoolType, ".bursting_enabled") + managed_disk_properties.set_prop("diskAccessId", AAZStrType, ".disk_access_id") + managed_disk_properties.set_prop("diskIOPSReadOnly", AAZIntType, ".disk_iops_read_only") + managed_disk_properties.set_prop("diskMBpsReadOnly", AAZIntType, ".disk_m_bps_read_only") + managed_disk_properties.set_prop("logicalSectorSize", AAZIntType, ".logical_sector_size") + managed_disk_properties.set_prop("maxShares", AAZIntType, ".max_shares") + managed_disk_properties.set_prop("networkAccessPolicy", AAZStrType, ".network_access_policy") + managed_disk_properties.set_prop("optimizedForFrequentAttach", AAZBoolType, ".optimized_for_frequent_attach") + managed_disk_properties.set_prop("performancePlus", AAZBoolType, ".performance_plus") + managed_disk_properties.set_prop("tier", AAZStrType, ".tier") + + availability_policy = _builder.get(".additionalDiskProperties.managedDiskProperties.availabilityPolicy") + if availability_policy is not None: + availability_policy.set_prop("actionOnDiskDelay", AAZStrType, ".action_on_disk_delay") + security_profile = _builder.get(".securityProfile") if security_profile is not None: cls._build_schema_disk_encryption_set_parameters_update(security_profile.set_prop("diskEncryptionSet", AAZObjectType, ".disk_encryption_set")) @@ -2473,6 +2690,21 @@ def _build_schema_virtual_hard_disk_update(cls, _builder): return _builder.set_prop("uri", AAZStrType, ".uri") + _schema_api_entity_reference_read = None + + @classmethod + def _build_schema_api_entity_reference_read(cls, _schema): + if cls._schema_api_entity_reference_read is not None: + _schema.id = cls._schema_api_entity_reference_read.id + return + + cls._schema_api_entity_reference_read = _schema_api_entity_reference_read = AAZObjectType() + + api_entity_reference_read = _schema_api_entity_reference_read + api_entity_reference_read.id = AAZStrType() + + _schema.id = cls._schema_api_entity_reference_read.id + _schema_api_error_read = None @classmethod @@ -2573,6 +2805,7 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): if cls._schema_host_endpoint_settings_read is not None: _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules return cls._schema_host_endpoint_settings_read = _schema_host_endpoint_settings_read = AAZObjectType() @@ -2582,9 +2815,13 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): serialized_name="inVMAccessControlProfileReferenceId", ) host_endpoint_settings_read.mode = AAZStrType() + host_endpoint_settings_read.use_local_file_rules = AAZBoolType( + serialized_name="useLocalFileRules", + ) _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules _schema_instance_view_status_read = None @@ -2645,6 +2882,7 @@ def _build_schema_key_vault_secret_reference_read(cls, _schema): @classmethod def _build_schema_managed_disk_parameters_read(cls, _schema): if cls._schema_managed_disk_parameters_read is not None: + _schema.additional_disk_properties = cls._schema_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_managed_disk_parameters_read.disk_encryption_set _schema.id = cls._schema_managed_disk_parameters_read.id _schema.security_profile = cls._schema_managed_disk_parameters_read.security_profile @@ -2654,6 +2892,9 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): cls._schema_managed_disk_parameters_read = _schema_managed_disk_parameters_read = AAZObjectType() managed_disk_parameters_read = _schema_managed_disk_parameters_read + managed_disk_parameters_read.additional_disk_properties = AAZObjectType( + serialized_name="additionalDiskProperties", + ) managed_disk_parameters_read.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", ) @@ -2666,6 +2907,49 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): serialized_name="storageAccountType", ) + additional_disk_properties = _schema_managed_disk_parameters_read.additional_disk_properties + additional_disk_properties.managed_disk_properties = AAZObjectType( + serialized_name="managedDiskProperties", + ) + + managed_disk_properties = _schema_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties + managed_disk_properties.availability_policy = AAZObjectType( + serialized_name="availabilityPolicy", + ) + managed_disk_properties.bursting_enabled = AAZBoolType( + serialized_name="burstingEnabled", + ) + managed_disk_properties.disk_access_id = AAZStrType( + serialized_name="diskAccessId", + ) + managed_disk_properties.disk_iops_read_only = AAZIntType( + serialized_name="diskIOPSReadOnly", + ) + managed_disk_properties.disk_m_bps_read_only = AAZIntType( + serialized_name="diskMBpsReadOnly", + ) + managed_disk_properties.logical_sector_size = AAZIntType( + serialized_name="logicalSectorSize", + ) + managed_disk_properties.max_shares = AAZIntType( + serialized_name="maxShares", + ) + managed_disk_properties.network_access_policy = AAZStrType( + serialized_name="networkAccessPolicy", + ) + managed_disk_properties.optimized_for_frequent_attach = AAZBoolType( + serialized_name="optimizedForFrequentAttach", + ) + managed_disk_properties.performance_plus = AAZBoolType( + serialized_name="performancePlus", + ) + managed_disk_properties.tier = AAZStrType() + + availability_policy = _schema_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties.availability_policy + availability_policy.action_on_disk_delay = AAZStrType( + serialized_name="actionOnDiskDelay", + ) + security_profile = _schema_managed_disk_parameters_read.security_profile security_profile.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", @@ -2675,6 +2959,7 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): serialized_name="securityEncryptionType", ) + _schema.additional_disk_properties = cls._schema_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_managed_disk_parameters_read.disk_encryption_set _schema.id = cls._schema_managed_disk_parameters_read.id _schema.security_profile = cls._schema_managed_disk_parameters_read.security_profile @@ -2950,6 +3235,9 @@ def _build_schema_virtual_machine_read(cls, _schema): serialized_name="instanceView", flags={"read_only": True}, ) + properties.interconnect_block_profile = AAZObjectType( + serialized_name="interconnectBlockProfile", + ) properties.license_type = AAZStrType( serialized_name="licenseType", ) @@ -3048,6 +3336,9 @@ def _build_schema_virtual_machine_read(cls, _schema): serialized_name="capacityReservationGroup", ) cls._build_schema_sub_resource_read(capacity_reservation.capacity_reservation_group) + capacity_reservation.disable_capacity_reservation_assignment = AAZBoolType( + serialized_name="disableCapacityReservationAssignment", + ) diagnostics_profile = _schema_virtual_machine_read.properties.diagnostics_profile diagnostics_profile.boot_diagnostics = AAZObjectType( @@ -3061,6 +3352,9 @@ def _build_schema_virtual_machine_read(cls, _schema): ) hardware_profile = _schema_virtual_machine_read.properties.hardware_profile + hardware_profile.processor_mode = AAZStrType( + serialized_name="processorMode", + ) hardware_profile.vm_size = AAZStrType( serialized_name="vmSize", ) @@ -3084,6 +3378,10 @@ def _build_schema_virtual_machine_read(cls, _schema): instance_view.boot_diagnostics = AAZObjectType( serialized_name="bootDiagnostics", ) + instance_view.capacity_reservation_type = AAZStrType( + serialized_name="capacityReservationType", + flags={"read_only": True}, + ) instance_view.computer_name = AAZStrType( serialized_name="computerName", ) @@ -3092,6 +3390,10 @@ def _build_schema_virtual_machine_read(cls, _schema): instance_view.hyper_v_generation = AAZStrType( serialized_name="hyperVGeneration", ) + instance_view.interconnect_instance_view = AAZObjectType( + serialized_name="interconnectInstanceView", + flags={"read_only": True}, + ) instance_view.is_vm_in_standby_pool = AAZBoolType( serialized_name="isVMInStandbyPool", flags={"read_only": True}, @@ -3165,6 +3467,12 @@ def _build_schema_virtual_machine_read(cls, _schema): extensions.Element = AAZObjectType() cls._build_schema_virtual_machine_extension_instance_view_read(extensions.Element) + interconnect_instance_view = _schema_virtual_machine_read.properties.instance_view.interconnect_instance_view + interconnect_instance_view.interconnect_subgroup_id = AAZStrType( + serialized_name="interconnectSubgroupId", + flags={"read_only": True}, + ) + maintenance_redeploy_status = _schema_virtual_machine_read.properties.instance_view.maintenance_redeploy_status maintenance_redeploy_status.is_customer_initiated_maintenance_allowed = AAZBoolType( serialized_name="isCustomerInitiatedMaintenanceAllowed", @@ -3316,7 +3624,16 @@ def _build_schema_virtual_machine_read(cls, _schema): ) cls._build_schema_instance_view_status_read(vm_health.status) + interconnect_block_profile = _schema_virtual_machine_read.properties.interconnect_block_profile + interconnect_block_profile.interconnect_block = AAZObjectType( + serialized_name="interconnectBlock", + ) + cls._build_schema_api_entity_reference_read(interconnect_block_profile.interconnect_block) + network_profile = _schema_virtual_machine_read.properties.network_profile + network_profile.interconnect_group_profile = AAZObjectType( + serialized_name="interconnectGroupProfile", + ) network_profile.network_api_version = AAZStrType( serialized_name="networkApiVersion", ) @@ -3327,6 +3644,17 @@ def _build_schema_virtual_machine_read(cls, _schema): serialized_name="networkInterfaces", ) + interconnect_group_profile = _schema_virtual_machine_read.properties.network_profile.interconnect_group_profile + interconnect_group_profile.interconnect_group = AAZObjectType( + serialized_name="interconnectGroup", + ) + cls._build_schema_sub_resource_read(interconnect_group_profile.interconnect_group) + interconnect_group_profile.subgroups = AAZListType() + + subgroups = _schema_virtual_machine_read.properties.network_profile.interconnect_group_profile.subgroups + subgroups.Element = AAZObjectType() + cls._build_schema_sub_resource_read(subgroups.Element) + network_interface_configurations = _schema_virtual_machine_read.properties.network_profile.network_interface_configurations network_interface_configurations.Element = AAZObjectType() @@ -3476,6 +3804,9 @@ def _build_schema_virtual_machine_read(cls, _schema): ip_tags.Element = AAZObjectType() _element = _schema_virtual_machine_read.properties.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties.ip_tags.Element + _element.first_party_service_tag_id = AAZStrType( + serialized_name="firstPartyServiceTagId", + ) _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) @@ -3801,6 +4132,9 @@ def _build_schema_virtual_machine_read(cls, _schema): storage_profile.data_disks = AAZListType( serialized_name="dataDisks", ) + storage_profile.disk_api_version = AAZStrType( + serialized_name="diskApiVersion", + ) storage_profile.disk_controller_type = AAZStrType( serialized_name="diskControllerType", ) @@ -3848,6 +4182,7 @@ def _build_schema_virtual_machine_read(cls, _schema): _element.source_resource = AAZObjectType( serialized_name="sourceResource", ) + cls._build_schema_api_entity_reference_read(_element.source_resource) _element.storage_fault_domain_alignment = AAZStrType( serialized_name="storageFaultDomainAlignment", ) @@ -3860,9 +4195,6 @@ def _build_schema_virtual_machine_read(cls, _schema): serialized_name="writeAcceleratorEnabled", ) - source_resource = _schema_virtual_machine_read.properties.storage_profile.data_disks.Element.source_resource - source_resource.id = AAZStrType() - image_reference = _schema_virtual_machine_read.properties.storage_profile.image_reference image_reference.community_gallery_image_id = AAZStrType( serialized_name="communityGalleryImageId", diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_wait.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_wait.py index ba0630f8192..f5edb383229 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_wait.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}", "2025-11-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachines/{}", "2026-04-01"], ] } @@ -124,7 +124,7 @@ def query_parameters(self): "$expand", self.ctx.args.expand, ), **self.serialize_query_param( - "api-version", "2025-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -291,6 +291,9 @@ def _build_schema_on_200(cls): serialized_name="instanceView", flags={"read_only": True}, ) + properties.interconnect_block_profile = AAZObjectType( + serialized_name="interconnectBlockProfile", + ) properties.license_type = AAZStrType( serialized_name="licenseType", ) @@ -389,6 +392,9 @@ def _build_schema_on_200(cls): serialized_name="capacityReservationGroup", ) _WaitHelper._build_schema_sub_resource_read(capacity_reservation.capacity_reservation_group) + capacity_reservation.disable_capacity_reservation_assignment = AAZBoolType( + serialized_name="disableCapacityReservationAssignment", + ) diagnostics_profile = cls._schema_on_200.properties.diagnostics_profile diagnostics_profile.boot_diagnostics = AAZObjectType( @@ -402,6 +408,9 @@ def _build_schema_on_200(cls): ) hardware_profile = cls._schema_on_200.properties.hardware_profile + hardware_profile.processor_mode = AAZStrType( + serialized_name="processorMode", + ) hardware_profile.vm_size = AAZStrType( serialized_name="vmSize", ) @@ -425,6 +434,10 @@ def _build_schema_on_200(cls): instance_view.boot_diagnostics = AAZObjectType( serialized_name="bootDiagnostics", ) + instance_view.capacity_reservation_type = AAZStrType( + serialized_name="capacityReservationType", + flags={"read_only": True}, + ) instance_view.computer_name = AAZStrType( serialized_name="computerName", ) @@ -433,6 +446,10 @@ def _build_schema_on_200(cls): instance_view.hyper_v_generation = AAZStrType( serialized_name="hyperVGeneration", ) + instance_view.interconnect_instance_view = AAZObjectType( + serialized_name="interconnectInstanceView", + flags={"read_only": True}, + ) instance_view.is_vm_in_standby_pool = AAZBoolType( serialized_name="isVMInStandbyPool", flags={"read_only": True}, @@ -506,6 +523,12 @@ def _build_schema_on_200(cls): extensions.Element = AAZObjectType() _WaitHelper._build_schema_virtual_machine_extension_instance_view_read(extensions.Element) + interconnect_instance_view = cls._schema_on_200.properties.instance_view.interconnect_instance_view + interconnect_instance_view.interconnect_subgroup_id = AAZStrType( + serialized_name="interconnectSubgroupId", + flags={"read_only": True}, + ) + maintenance_redeploy_status = cls._schema_on_200.properties.instance_view.maintenance_redeploy_status maintenance_redeploy_status.is_customer_initiated_maintenance_allowed = AAZBoolType( serialized_name="isCustomerInitiatedMaintenanceAllowed", @@ -657,7 +680,16 @@ def _build_schema_on_200(cls): ) _WaitHelper._build_schema_instance_view_status_read(vm_health.status) + interconnect_block_profile = cls._schema_on_200.properties.interconnect_block_profile + interconnect_block_profile.interconnect_block = AAZObjectType( + serialized_name="interconnectBlock", + ) + _WaitHelper._build_schema_api_entity_reference_read(interconnect_block_profile.interconnect_block) + network_profile = cls._schema_on_200.properties.network_profile + network_profile.interconnect_group_profile = AAZObjectType( + serialized_name="interconnectGroupProfile", + ) network_profile.network_api_version = AAZStrType( serialized_name="networkApiVersion", ) @@ -668,6 +700,17 @@ def _build_schema_on_200(cls): serialized_name="networkInterfaces", ) + interconnect_group_profile = cls._schema_on_200.properties.network_profile.interconnect_group_profile + interconnect_group_profile.interconnect_group = AAZObjectType( + serialized_name="interconnectGroup", + ) + _WaitHelper._build_schema_sub_resource_read(interconnect_group_profile.interconnect_group) + interconnect_group_profile.subgroups = AAZListType() + + subgroups = cls._schema_on_200.properties.network_profile.interconnect_group_profile.subgroups + subgroups.Element = AAZObjectType() + _WaitHelper._build_schema_sub_resource_read(subgroups.Element) + network_interface_configurations = cls._schema_on_200.properties.network_profile.network_interface_configurations network_interface_configurations.Element = AAZObjectType() @@ -817,6 +860,9 @@ def _build_schema_on_200(cls): ip_tags.Element = AAZObjectType() _element = cls._schema_on_200.properties.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties.ip_tags.Element + _element.first_party_service_tag_id = AAZStrType( + serialized_name="firstPartyServiceTagId", + ) _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) @@ -1142,6 +1188,9 @@ def _build_schema_on_200(cls): storage_profile.data_disks = AAZListType( serialized_name="dataDisks", ) + storage_profile.disk_api_version = AAZStrType( + serialized_name="diskApiVersion", + ) storage_profile.disk_controller_type = AAZStrType( serialized_name="diskControllerType", ) @@ -1189,6 +1238,7 @@ def _build_schema_on_200(cls): _element.source_resource = AAZObjectType( serialized_name="sourceResource", ) + _WaitHelper._build_schema_api_entity_reference_read(_element.source_resource) _element.storage_fault_domain_alignment = AAZStrType( serialized_name="storageFaultDomainAlignment", ) @@ -1201,9 +1251,6 @@ def _build_schema_on_200(cls): serialized_name="writeAcceleratorEnabled", ) - source_resource = cls._schema_on_200.properties.storage_profile.data_disks.Element.source_resource - source_resource.id = AAZStrType() - image_reference = cls._schema_on_200.properties.storage_profile.image_reference image_reference.community_gallery_image_id = AAZStrType( serialized_name="communityGalleryImageId", @@ -1348,6 +1395,21 @@ def _build_schema_on_200(cls): class _WaitHelper: """Helper class for Wait""" + _schema_api_entity_reference_read = None + + @classmethod + def _build_schema_api_entity_reference_read(cls, _schema): + if cls._schema_api_entity_reference_read is not None: + _schema.id = cls._schema_api_entity_reference_read.id + return + + cls._schema_api_entity_reference_read = _schema_api_entity_reference_read = AAZObjectType() + + api_entity_reference_read = _schema_api_entity_reference_read + api_entity_reference_read.id = AAZStrType() + + _schema.id = cls._schema_api_entity_reference_read.id + _schema_api_error_read = None @classmethod @@ -1448,6 +1510,7 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): if cls._schema_host_endpoint_settings_read is not None: _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules return cls._schema_host_endpoint_settings_read = _schema_host_endpoint_settings_read = AAZObjectType() @@ -1457,9 +1520,13 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): serialized_name="inVMAccessControlProfileReferenceId", ) host_endpoint_settings_read.mode = AAZStrType() + host_endpoint_settings_read.use_local_file_rules = AAZBoolType( + serialized_name="useLocalFileRules", + ) _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules _schema_instance_view_status_read = None @@ -1520,6 +1587,7 @@ def _build_schema_key_vault_secret_reference_read(cls, _schema): @classmethod def _build_schema_managed_disk_parameters_read(cls, _schema): if cls._schema_managed_disk_parameters_read is not None: + _schema.additional_disk_properties = cls._schema_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_managed_disk_parameters_read.disk_encryption_set _schema.id = cls._schema_managed_disk_parameters_read.id _schema.security_profile = cls._schema_managed_disk_parameters_read.security_profile @@ -1529,6 +1597,9 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): cls._schema_managed_disk_parameters_read = _schema_managed_disk_parameters_read = AAZObjectType() managed_disk_parameters_read = _schema_managed_disk_parameters_read + managed_disk_parameters_read.additional_disk_properties = AAZObjectType( + serialized_name="additionalDiskProperties", + ) managed_disk_parameters_read.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", ) @@ -1541,6 +1612,49 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): serialized_name="storageAccountType", ) + additional_disk_properties = _schema_managed_disk_parameters_read.additional_disk_properties + additional_disk_properties.managed_disk_properties = AAZObjectType( + serialized_name="managedDiskProperties", + ) + + managed_disk_properties = _schema_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties + managed_disk_properties.availability_policy = AAZObjectType( + serialized_name="availabilityPolicy", + ) + managed_disk_properties.bursting_enabled = AAZBoolType( + serialized_name="burstingEnabled", + ) + managed_disk_properties.disk_access_id = AAZStrType( + serialized_name="diskAccessId", + ) + managed_disk_properties.disk_iops_read_only = AAZIntType( + serialized_name="diskIOPSReadOnly", + ) + managed_disk_properties.disk_m_bps_read_only = AAZIntType( + serialized_name="diskMBpsReadOnly", + ) + managed_disk_properties.logical_sector_size = AAZIntType( + serialized_name="logicalSectorSize", + ) + managed_disk_properties.max_shares = AAZIntType( + serialized_name="maxShares", + ) + managed_disk_properties.network_access_policy = AAZStrType( + serialized_name="networkAccessPolicy", + ) + managed_disk_properties.optimized_for_frequent_attach = AAZBoolType( + serialized_name="optimizedForFrequentAttach", + ) + managed_disk_properties.performance_plus = AAZBoolType( + serialized_name="performancePlus", + ) + managed_disk_properties.tier = AAZStrType() + + availability_policy = _schema_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties.availability_policy + availability_policy.action_on_disk_delay = AAZStrType( + serialized_name="actionOnDiskDelay", + ) + security_profile = _schema_managed_disk_parameters_read.security_profile security_profile.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", @@ -1550,6 +1664,7 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): serialized_name="securityEncryptionType", ) + _schema.additional_disk_properties = cls._schema_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_managed_disk_parameters_read.disk_encryption_set _schema.id = cls._schema_managed_disk_parameters_read.id _schema.security_profile = cls._schema_managed_disk_parameters_read.security_profile From ff056cadae3c0da1180a1ee2197577d7a1f786cf Mon Sep 17 00:00:00 2001 From: william Date: Tue, 11 Aug 2026 08:57:26 +0800 Subject: [PATCH 05/22] agent gen code v2, trim away some gen code --- .../azure/cli/command_modules/vm/_help.py | 5 +++++ .../azure/cli/command_modules/vm/_params.py | 1 + .../cli/command_modules/vm/_template_builder.py | 16 ++++++++++------ .../azure/cli/command_modules/vm/custom.py | 16 +++++++++++++--- .../cli/command_modules/vm/operations/vm.py | 4 ++++ 5 files changed, 33 insertions(+), 9 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index 698989c7c1a..90ffbdad3be 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -1159,6 +1159,9 @@ - name: Create a VM from community gallery image text: > az vm create -n MyVm -g MyResourceGroup --image /CommunityGalleries/{gallery_unique_name}/Images/{image}/Versions/{version} + - name: Create a VM that is not associated with any capacity reservation. + text: > + az vm create -n MyVm -g MyResourceGroup --image Ubuntu2204 --disable-capacity-reservation-assignment true """ helps['vm diagnostics'] = """ @@ -2147,6 +2150,8 @@ az vm deallocate -n name -g group az vm update -n name -g group --host-group my-host-group az vm start -n name -g group + - name: Opt out a VM from being associated with any capacity reservation. + text: az vm update -n name -g group --disable-capacity-reservation-assignment true """ helps['vm user'] = """ diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index 4e7661c6d22..123211eac58 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -500,6 +500,7 @@ def load_arguments(self, _): c.argument('key_incarnation_id', type=int, help='Increase the value of this property allows user to reset the key used for securing communication channel between guest and host.') c.argument('security_type', arg_type=get_enum_type(SecurityType, default=None), help='Specify the security type of the virtual machine.') c.argument('zone_movement', arg_type=get_three_state_flag(), help='Indicates if zone movement is enabled. By default isEnabled is set to false i.e VM can\'t be moved from one zone to another.') + c.argument('disable_capacity_reservation_assignment', arg_type=get_three_state_flag(), help='Explicitly opt out the VM from being associated with any capacity reservation. The VM will consume publicly available capacity.') with self.argument_context('vm create', arg_group='Storage') as c: c.argument('attach_os_disk', help='Attach an existing OS disk to the VM. Can use the name or ID of a managed disk or the URI to an unmanaged disk VHD.') diff --git a/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py b/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py index 07d46cb8853..cc989698323 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py @@ -305,7 +305,8 @@ def build_vm_resource( # pylint: disable=too-many-locals, too-many-statements, encryption_at_host=None, dedicated_host_group=None, enable_auto_update=None, patch_mode=None, enable_hotpatching=None, platform_fault_domain=None, security_type=None, enable_secure_boot=None, enable_vtpm=None, count=None, edge_zone=None, os_disk_delete_option=None, user_data=None, - capacity_reservation_group=None, enable_hibernation=None, v_cpus_available=None, v_cpus_per_core=None, + capacity_reservation_group=None, disable_capacity_reservation_assignment=None, + enable_hibernation=None, v_cpus_available=None, v_cpus_per_core=None, os_disk_security_encryption_type=None, os_disk_secure_vm_disk_encryption_set=None, disk_controller_type=None, enable_proxy_agent=None, proxy_agent_mode=None, additional_scheduled_events=None, enable_user_reboot_scheduled_events=None, enable_user_redeploy_scheduled_events=None, @@ -749,15 +750,18 @@ def _build_storage_profile(): if user_data: vm_properties['userData'] = b64encode(user_data) - if capacity_reservation_group: - vm_properties['capacityReservation'] = { - 'capacityReservationGroup': { + if capacity_reservation_group or disable_capacity_reservation_assignment is not None: + vm_properties['capacityReservation'] = {} + if capacity_reservation_group: + vm_properties['capacityReservation']['capacityReservationGroup'] = { 'id': capacity_reservation_group } - } + if disable_capacity_reservation_assignment is not None: + vm_properties['capacityReservation']['disableCapacityReservationAssignment'] = \ + disable_capacity_reservation_assignment vm = { - 'apiVersion': '2025-11-01', + 'apiVersion': '2026-04-01', 'type': 'Microsoft.Compute/virtualMachines', 'name': name, 'location': location, diff --git a/src/azure-cli/azure/cli/command_modules/vm/custom.py b/src/azure-cli/azure/cli/command_modules/vm/custom.py index 8b61ff30c96..15d0c94fbef 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -912,7 +912,8 @@ def create_vm(cmd, vm_name, resource_group_name, image=None, size='Standard_D2s_ encryption_at_host=None, enable_auto_update=None, patch_mode=None, ssh_key_name=None, enable_hotpatching=None, platform_fault_domain=None, security_type=None, enable_secure_boot=None, enable_vtpm=None, count=None, edge_zone=None, nic_delete_option=None, os_disk_delete_option=None, - data_disk_delete_option=None, user_data=None, capacity_reservation_group=None, enable_hibernation=None, + data_disk_delete_option=None, user_data=None, capacity_reservation_group=None, + disable_capacity_reservation_assignment=None, enable_hibernation=None, v_cpus_available=None, v_cpus_per_core=None, accept_term=None, disable_integrity_monitoring=None, # Unused enable_integrity_monitoring=False, @@ -1143,6 +1144,7 @@ def create_vm(cmd, vm_name, resource_group_name, image=None, size='Standard_D2s_ platform_fault_domain=platform_fault_domain, security_type=security_type, enable_secure_boot=enable_secure_boot, enable_vtpm=enable_vtpm, count=count, edge_zone=edge_zone, os_disk_delete_option=os_disk_delete_option, user_data=user_data, capacity_reservation_group=capacity_reservation_group, + disable_capacity_reservation_assignment=disable_capacity_reservation_assignment, enable_hibernation=enable_hibernation, v_cpus_available=v_cpus_available, v_cpus_per_core=v_cpus_per_core, os_disk_security_encryption_type=os_disk_security_encryption_type, os_disk_secure_vm_disk_encryption_set=os_disk_secure_vm_disk_encryption_set, @@ -1756,6 +1758,7 @@ def update_vm(cmd, resource_group_name, vm_name, os_disk=None, disk_caching=None write_accelerator=None, license_type=None, no_wait=False, ultra_ssd_enabled=None, priority=None, max_price=None, proximity_placement_group=None, workspace=None, enable_secure_boot=None, enable_vtpm=None, user_data=None, capacity_reservation_group=None, + disable_capacity_reservation_assignment=None, dedicated_host=None, dedicated_host_group=None, size=None, ephemeral_os_disk_placement=None, enable_hibernation=None, v_cpus_available=None, v_cpus_per_core=None, disk_controller_type=None, security_type=None, enable_proxy_agent=None, proxy_agent_mode=None, additional_scheduled_events=None, @@ -1880,8 +1883,15 @@ def _output(self, *args, **kwargs): capacity_reservation_group = None sub_resource = {"id": capacity_reservation_group} - capacity_reservation = {"capacity_reservation_group": sub_resource} - vm["capacity_reservation"] = capacity_reservation + if vm.get("capacity_reservation") is None: + vm["capacity_reservation"] = {} + vm["capacity_reservation"]["capacity_reservation_group"] = sub_resource + + if disable_capacity_reservation_assignment is not None: + if vm.get("capacity_reservation") is None: + vm["capacity_reservation"] = {} + vm["capacity_reservation"]["disable_capacity_reservation_assignment"] = \ + disable_capacity_reservation_assignment if dedicated_host is not None: if vm.get("host", None) is None: diff --git a/src/azure-cli/azure/cli/command_modules/vm/operations/vm.py b/src/azure-cli/azure/cli/command_modules/vm/operations/vm.py index 3d645cda194..95b7d7777a2 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/operations/vm.py +++ b/src/azure-cli/azure/cli/command_modules/vm/operations/vm.py @@ -402,6 +402,10 @@ def convert_show_result_to_snake_case(result): if "capacityReservationGroup" in capacity_reservation: capacity_reservation["capacity_reservation_group"] = capacity_reservation["capacityReservationGroup"] capacity_reservation.pop("capacityReservationGroup") + if "disableCapacityReservationAssignment" in capacity_reservation: + capacity_reservation["disable_capacity_reservation_assignment"] = \ + capacity_reservation["disableCapacityReservationAssignment"] + capacity_reservation.pop("disableCapacityReservationAssignment") diagnostics_profile = new_result.get("diagnostics_profile", {}) or {} if "bootDiagnostics" in diagnostics_profile: From 61223b13ff5408ae135aa17ff907daa42d7654a5 Mon Sep 17 00:00:00 2001 From: william Date: Tue, 11 Aug 2026 10:27:57 +0800 Subject: [PATCH 06/22] Add test case --- .../vm/tests/latest/test_vm_commands.py | 76 +++++++++++++++++++ 1 file changed, 76 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 c7a8f79cf9b..21467b1297f 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 @@ -13253,6 +13253,82 @@ def test_capacity_reservation_operations(self, resource_group): time.sleep(60) self.cmd('capacity reservation group delete -n {reservation_group} -g {rg} --yes') + @ResourceGroupPreparer(name_prefix='cli_test_open_capacity_reservation_', location='westus') + def test_open_capacity_reservation(self, resource_group): + + self.kwargs.update({ + 'rg': resource_group, + 'reservation_group': self.create_random_name('cli_open_reservation_group_', 40), + 'reservation_name': self.create_random_name('cli_open_reservation_', 40), + 'vm': self.create_random_name('cli-open-vm-', 20), + 'sku': 'Standard_DS1_v2', + 'image': 'Canonical:UbuntuServer:18.04-LTS:latest', + 'ssh_key': TEST_SSH_KEY_PUB, + }) + + self.cmd('capacity reservation group create -n {reservation_group} -g {rg} ' + '--reservation-type Targeted', + checks=[ + self.check('name', '{reservation_group}'), + self.check('reservationType', 'Targeted') + ]) + + self.cmd('capacity reservation group update -n {reservation_group} -g {rg} --reservation-type Open', + checks=[ + self.check('name', '{reservation_group}'), + self.check('reservationType', 'Open') + ]) + + self.cmd('capacity reservation group delete -n {reservation_group} -g {rg}') + + self.cmd('capacity reservation group create -n {reservation_group} -g {rg} --reservation-type Open', + checks=[ + self.check('name', '{reservation_group}'), + self.check('reservationType', 'Targeted') + ]) + + self.cmd('capacity reservation create -c {reservation_group} -n {reservation_name} -g {rg} ' + '--sku {sku} --capacity 1', + checks=[ + self.check('name', '{reservation_name}'), + self.check('sku.name', '{sku}'), + self.check('sku.capacity', 1), + self.check('provisioningState', 'Succeeded') + ]) + + self.cmd('vm create -g {rg} -n {vm} --image {image} --size {sku} ' + '--admin-username azureuser --ssh-key-value "{ssh_key}" ' + '--public-ip-address "" --nsg-rule None ' + '--disable-capacity-reservation-assignment true') + + self.cmd('vm show -g {rg} -n {vm}', checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('capacityReservation.disableCapacityReservationAssignment', True) + ]) + + self.cmd('vm deallocate -g {rg} -n {vm}') + self.cmd('vm update -g {rg} -n {vm} --disable-capacity-reservation-assignment false', checks=[ + self.check('capacityReservation.disableCapacityReservationAssignment', False) + ]) + self.cmd('vm start -g {rg} -n {vm}') + + self.cmd('vm get-instance-view -g {rg} -n {vm}', checks=[ + self.check('instanceView.capacityReservationType', 'Open') + ]) + + utilization = self.cmd( + 'capacity reservation show -c {reservation_group} -n {reservation_name} -g {rg} --instance-view', + checks=[ + self.exists('instanceView.utilizationInfo.usedReservedCountBySubscription') + ]).get_output_in_json()['instanceView']['utilizationInfo']['usedReservedCountBySubscription'] + self.assertEqual(1, len(utilization)) + self.assertEqual(1, next(iter(utilization.values()))) + + self.cmd('vm deallocate -g {rg} -n {vm}') + self.cmd('vm update -g {rg} -n {vm} --disable-capacity-reservation-assignment true', checks=[ + self.check('capacityReservation.disableCapacityReservationAssignment', True) + ]) + @record_only() # Some special subscriptions can test it. @ResourceGroupPreparer(name_prefix='cli_test_capacity_reservation_sharing_profile', location='westEurope') def test_capacity_reservation_sharing_profile(self, resource_group): From 692540a5cb183b38a18ca1e1b7d57774fa7f1ea2 Mon Sep 17 00:00:00 2001 From: william Date: Thu, 13 Aug 2026 13:05:02 +0800 Subject: [PATCH 07/22] Gen latest aaz code --- .../capacity/reservation/group/_create.py | 8 ++++ .../capacity/reservation/group/_list.py | 43 +++++++++++++------ .../capacity/reservation/group/_show.py | 8 ++++ .../capacity/reservation/group/_update.py | 8 ++++ 4 files changed, 55 insertions(+), 12 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_create.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_create.py index 6cebb63b022..1bb9bc7d74e 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_create.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_create.py @@ -309,11 +309,19 @@ def _build_schema_on_200_201(cls): _element.name = AAZStrType( flags={"read_only": True}, ) + _element.reservation_state_info = AAZObjectType( + serialized_name="reservationStateInfo", + ) _element.statuses = AAZListType() _element.utilization_info = AAZObjectType( serialized_name="utilizationInfo", ) + reservation_state_info = cls._schema_on_200_201.properties.instance_view.capacity_reservations.Element.reservation_state_info + reservation_state_info.reservation_state = AAZStrType( + serialized_name="reservationState", + ) + statuses = cls._schema_on_200_201.properties.instance_view.capacity_reservations.Element.statuses statuses.Element = AAZObjectType() diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_list.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_list.py index 125c7377d06..328ae0bbaf7 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_list.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_list.py @@ -64,12 +64,12 @@ def _build_arguments_schema(cls, *args, **kwargs): def _execute_operations(self): self.pre_operations() - condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) - condition_1 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True + condition_0 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True + condition_1 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) if condition_0: - self.CapacityReservationGroupsListByResourceGroup(ctx=self.ctx)() - if condition_1: self.CapacityReservationGroupsListBySubscription(ctx=self.ctx)() + if condition_1: + self.CapacityReservationGroupsListByResourceGroup(ctx=self.ctx)() self.post_operations() @register_callback @@ -85,7 +85,7 @@ def _output(self, *args, **kwargs): next_link = self.deserialize_output(self.ctx.vars.instance.next_link) return result, next_link - class CapacityReservationGroupsListByResourceGroup(AAZHttpOperation): + class CapacityReservationGroupsListBySubscription(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): @@ -99,7 +99,7 @@ def __call__(self, *args, **kwargs): @property def url(self): return self.client.format_url( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups", + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", **self.url_parameters ) @@ -114,10 +114,6 @@ def error_format(self): @property def url_parameters(self): parameters = { - **self.serialize_url_param( - "resourceGroupName", self.ctx.args.resource_group, - required=True, - ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, @@ -131,6 +127,9 @@ def query_parameters(self): **self.serialize_query_param( "$expand", self.ctx.args.expand, ), + **self.serialize_query_param( + "resourceIdsOnly", self.ctx.args.resource_ids_only, + ), **self.serialize_query_param( "api-version", "2026-04-01", required=True, @@ -239,11 +238,19 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"read_only": True}, ) + _element.reservation_state_info = AAZObjectType( + serialized_name="reservationStateInfo", + ) _element.statuses = AAZListType() _element.utilization_info = AAZObjectType( serialized_name="utilizationInfo", ) + reservation_state_info = cls._schema_on_200.value.Element.properties.instance_view.capacity_reservations.Element.reservation_state_info + reservation_state_info.reservation_state = AAZStrType( + serialized_name="reservationState", + ) + statuses = cls._schema_on_200.value.Element.properties.instance_view.capacity_reservations.Element.statuses statuses.Element = AAZObjectType() @@ -324,7 +331,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 - class CapacityReservationGroupsListBySubscription(AAZHttpOperation): + class CapacityReservationGroupsListByResourceGroup(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): @@ -338,7 +345,7 @@ def __call__(self, *args, **kwargs): @property def url(self): return self.client.format_url( - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups", **self.url_parameters ) @@ -353,6 +360,10 @@ def error_format(self): @property def url_parameters(self): parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, @@ -474,11 +485,19 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"read_only": True}, ) + _element.reservation_state_info = AAZObjectType( + serialized_name="reservationStateInfo", + ) _element.statuses = AAZListType() _element.utilization_info = AAZObjectType( serialized_name="utilizationInfo", ) + reservation_state_info = cls._schema_on_200.value.Element.properties.instance_view.capacity_reservations.Element.reservation_state_info + reservation_state_info.reservation_state = AAZStrType( + serialized_name="reservationState", + ) + statuses = cls._schema_on_200.value.Element.properties.instance_view.capacity_reservations.Element.statuses statuses.Element = AAZObjectType() diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_show.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_show.py index 8cfa5b25b70..7fe952e3bbc 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_show.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_show.py @@ -218,11 +218,19 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"read_only": True}, ) + _element.reservation_state_info = AAZObjectType( + serialized_name="reservationStateInfo", + ) _element.statuses = AAZListType() _element.utilization_info = AAZObjectType( serialized_name="utilizationInfo", ) + reservation_state_info = cls._schema_on_200.properties.instance_view.capacity_reservations.Element.reservation_state_info + reservation_state_info.reservation_state = AAZStrType( + serialized_name="reservationState", + ) + statuses = cls._schema_on_200.properties.instance_view.capacity_reservations.Element.statuses statuses.Element = AAZObjectType() diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_update.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_update.py index d783ab323c5..68fb3a5e23c 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_update.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/group/_update.py @@ -288,11 +288,19 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"read_only": True}, ) + _element.reservation_state_info = AAZObjectType( + serialized_name="reservationStateInfo", + ) _element.statuses = AAZListType() _element.utilization_info = AAZObjectType( serialized_name="utilizationInfo", ) + reservation_state_info = cls._schema_on_200.properties.instance_view.capacity_reservations.Element.reservation_state_info + reservation_state_info.reservation_state = AAZStrType( + serialized_name="reservationState", + ) + statuses = cls._schema_on_200.properties.instance_view.capacity_reservations.Element.statuses statuses.Element = AAZObjectType() From 525cd8b5c9592aa6c46c9f684242815eb4edf8ca Mon Sep 17 00:00:00 2001 From: william Date: Fri, 14 Aug 2026 10:14:46 +0800 Subject: [PATCH 08/22] Update command param option --- src/azure-cli/azure/cli/command_modules/vm/_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index 123211eac58..d3c485bed5f 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -500,7 +500,7 @@ def load_arguments(self, _): c.argument('key_incarnation_id', type=int, help='Increase the value of this property allows user to reset the key used for securing communication channel between guest and host.') c.argument('security_type', arg_type=get_enum_type(SecurityType, default=None), help='Specify the security type of the virtual machine.') c.argument('zone_movement', arg_type=get_three_state_flag(), help='Indicates if zone movement is enabled. By default isEnabled is set to false i.e VM can\'t be moved from one zone to another.') - c.argument('disable_capacity_reservation_assignment', arg_type=get_three_state_flag(), help='Explicitly opt out the VM from being associated with any capacity reservation. The VM will consume publicly available capacity.') + c.argument('disable_capacity_reservation_assignment', options_list=['--disable-capacity-reservation-assignment', '--no-capacity-reservation'], arg_type=get_three_state_flag(), help='Explicitly opt out the VM from being associated with any capacity reservation. The VM will consume publicly available capacity.') with self.argument_context('vm create', arg_group='Storage') as c: c.argument('attach_os_disk', help='Attach an existing OS disk to the VM. Can use the name or ID of a managed disk or the URI to an unmanaged disk VHD.') From 114be029df55ad0da79c0647e8d1d97b79833c0e Mon Sep 17 00:00:00 2001 From: william Date: Fri, 14 Aug 2026 14:44:25 +0800 Subject: [PATCH 09/22] Update test case --- .../vm/tests/latest/test_vm_commands.py | 36 +++++++------------ 1 file changed, 12 insertions(+), 24 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 21467b1297f..733bbe972b9 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 @@ -13253,11 +13253,14 @@ def test_capacity_reservation_operations(self, resource_group): time.sleep(60) self.cmd('capacity reservation group delete -n {reservation_group} -g {rg} --yes') - @ResourceGroupPreparer(name_prefix='cli_test_open_capacity_reservation_', location='westus') + # Open Capacity Reservation is currently enabled only in the East US 2 EUAP Canary region. + # Provide private package for service team to test it out. + @ResourceGroupPreparer(name_prefix='cli_test_open_capacity_reservation_', location='eastus2euap') def test_open_capacity_reservation(self, resource_group): self.kwargs.update({ 'rg': resource_group, + 'location': 'eastus2euap', 'reservation_group': self.create_random_name('cli_open_reservation_group_', 40), 'reservation_name': self.create_random_name('cli_open_reservation_', 40), 'vm': self.create_random_name('cli-open-vm-', 20), @@ -13266,27 +13269,13 @@ def test_open_capacity_reservation(self, resource_group): 'ssh_key': TEST_SSH_KEY_PUB, }) - self.cmd('capacity reservation group create -n {reservation_group} -g {rg} ' - '--reservation-type Targeted', - checks=[ - self.check('name', '{reservation_group}'), - self.check('reservationType', 'Targeted') - ]) - - self.cmd('capacity reservation group update -n {reservation_group} -g {rg} --reservation-type Open', + self.cmd('capacity reservation group create -n {reservation_group} -g {rg} -l {location} ' + '--reservation-type Open', checks=[ self.check('name', '{reservation_group}'), self.check('reservationType', 'Open') ]) - self.cmd('capacity reservation group delete -n {reservation_group} -g {rg}') - - self.cmd('capacity reservation group create -n {reservation_group} -g {rg} --reservation-type Open', - checks=[ - self.check('name', '{reservation_group}'), - self.check('reservationType', 'Targeted') - ]) - self.cmd('capacity reservation create -c {reservation_group} -n {reservation_name} -g {rg} ' '--sku {sku} --capacity 1', checks=[ @@ -13296,10 +13285,9 @@ def test_open_capacity_reservation(self, resource_group): self.check('provisioningState', 'Succeeded') ]) - self.cmd('vm create -g {rg} -n {vm} --image {image} --size {sku} ' - '--admin-username azureuser --ssh-key-value "{ssh_key}" ' - '--public-ip-address "" --nsg-rule None ' - '--disable-capacity-reservation-assignment true') + self.cmd('vm create -g {rg} -n {vm} -l {location} --image {image} --size {sku} ' + '--admin-username azureuser ' + '--ssh-key-value "{ssh_key}" --public-ip-address "" --nsg-rule None --no-capacity-reservation true') self.cmd('vm show -g {rg} -n {vm}', checks=[ self.check('provisioningState', 'Succeeded'), @@ -13316,9 +13304,9 @@ def test_open_capacity_reservation(self, resource_group): self.check('instanceView.capacityReservationType', 'Open') ]) - utilization = self.cmd( - 'capacity reservation show -c {reservation_group} -n {reservation_name} -g {rg} --instance-view', - checks=[ + utilization = \ + self.cmd('capacity reservation show -c {reservation_group} -n {reservation_name} -g {rg} ' + '--instance-view', checks=[ self.exists('instanceView.utilizationInfo.usedReservedCountBySubscription') ]).get_output_in_json()['instanceView']['utilizationInfo']['usedReservedCountBySubscription'] self.assertEqual(1, len(utilization)) From 6f88cced8adb3240722f21c1253020e094675151 Mon Sep 17 00:00:00 2001 From: william Date: Fri, 14 Aug 2026 14:47:54 +0800 Subject: [PATCH 10/22] Update test case --- .../cli/command_modules/vm/tests/latest/test_vm_commands.py | 1 + 1 file changed, 1 insertion(+) 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 733bbe972b9..9e61f8a87bf 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 @@ -13255,6 +13255,7 @@ def test_capacity_reservation_operations(self, resource_group): # Open Capacity Reservation is currently enabled only in the East US 2 EUAP Canary region. # Provide private package for service team to test it out. + @live_only() @ResourceGroupPreparer(name_prefix='cli_test_open_capacity_reservation_', location='eastus2euap') def test_open_capacity_reservation(self, resource_group): From 5f196e147a3a40ebe911b9735c0f95942de6f464 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 17 Aug 2026 10:04:42 +0800 Subject: [PATCH 11/22] Generate capacity reservation show 2026-04-01 aaz --- .../aaz/latest/capacity/reservation/_show.py | 59 ++++++++++++++++++- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/_show.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/_show.py index 7e38b93421c..3d4fd979448 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/_show.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2024-11-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}/capacityreservations/{}", "2024-11-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}/capacityreservations/{}", "2026-04-01"], ] } @@ -138,7 +138,7 @@ def query_parameters(self): "$expand", self.ctx.args.expand, ), **self.serialize_query_param( - "api-version", "2024-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -186,6 +186,10 @@ def _build_schema_on_200(cls): _schema_on_200.sku = AAZObjectType( flags={"required": 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}, @@ -213,6 +217,9 @@ def _build_schema_on_200(cls): serialized_name="reservationId", flags={"read_only": True}, ) + properties.schedule_profile = AAZObjectType( + serialized_name="scheduleProfile", + ) properties.time_created = AAZStrType( serialized_name="timeCreated", flags={"read_only": True}, @@ -223,11 +230,19 @@ def _build_schema_on_200(cls): ) instance_view = cls._schema_on_200.properties.instance_view + instance_view.reservation_state_info = AAZObjectType( + serialized_name="reservationStateInfo", + ) instance_view.statuses = AAZListType() instance_view.utilization_info = AAZObjectType( serialized_name="utilizationInfo", ) + reservation_state_info = cls._schema_on_200.properties.instance_view.reservation_state_info + reservation_state_info.reservation_state = AAZStrType( + serialized_name="reservationState", + ) + statuses = cls._schema_on_200.properties.instance_view.statuses statuses.Element = AAZObjectType() @@ -245,15 +260,33 @@ def _build_schema_on_200(cls): serialized_name="currentCapacity", flags={"read_only": True}, ) + utilization_info.used_reserved_count_by_subscription = AAZDictType( + serialized_name="usedReservedCountBySubscription", + flags={"read_only": True}, + ) utilization_info.virtual_machines_allocated = AAZListType( serialized_name="virtualMachinesAllocated", flags={"read_only": True}, ) + used_reserved_count_by_subscription = cls._schema_on_200.properties.instance_view.utilization_info.used_reserved_count_by_subscription + used_reserved_count_by_subscription.Element = AAZIntType() + virtual_machines_allocated = cls._schema_on_200.properties.instance_view.utilization_info.virtual_machines_allocated virtual_machines_allocated.Element = AAZObjectType() _ShowHelper._build_schema_sub_resource_read_only_read(virtual_machines_allocated.Element) + schedule_profile = cls._schema_on_200.properties.schedule_profile + schedule_profile.end = AAZStrType() + schedule_profile.minimum_commitment_days = AAZIntType( + serialized_name="minimumCommitmentDays", + ) + schedule_profile.modifiable_until = AAZStrType( + serialized_name="modifiableUntil", + flags={"read_only": True}, + ) + schedule_profile.start = AAZStrType() + virtual_machines_associated = cls._schema_on_200.properties.virtual_machines_associated virtual_machines_associated.Element = AAZObjectType() _ShowHelper._build_schema_sub_resource_read_only_read(virtual_machines_associated.Element) @@ -263,6 +296,26 @@ def _build_schema_on_200(cls): sku.name = AAZStrType() sku.tier = 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() From 09d8a7f93126a638cef59d93f97b61614cb9cf68 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 17 Aug 2026 10:23:43 +0800 Subject: [PATCH 12/22] Update help message --- src/azure-cli/azure/cli/command_modules/vm/_help.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index 90ffbdad3be..a41fbc26230 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -2947,8 +2947,6 @@ examples: - name: Update a capacity reservation group. text: az capacity reservation group update -n ReservationGroupName -g MyResourceGroup --tags key=val - - name: Update an open capacity reservation group. - text: az capacity reservation group update -n ReservationGroupName -g MyResourceGroup --reservation-type Open """ helps['capacity reservation group show'] = """ From e165afd8733a076821bfc87549ce44f70bbc94ac Mon Sep 17 00:00:00 2001 From: william Date: Mon, 17 Aug 2026 10:32:20 +0800 Subject: [PATCH 13/22] Update param option --- src/azure-cli/azure/cli/command_modules/vm/_params.py | 2 +- .../cli/command_modules/vm/tests/latest/test_vm_commands.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index d3c485bed5f..5dc1a9de6e9 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -500,7 +500,7 @@ def load_arguments(self, _): c.argument('key_incarnation_id', type=int, help='Increase the value of this property allows user to reset the key used for securing communication channel between guest and host.') c.argument('security_type', arg_type=get_enum_type(SecurityType, default=None), help='Specify the security type of the virtual machine.') c.argument('zone_movement', arg_type=get_three_state_flag(), help='Indicates if zone movement is enabled. By default isEnabled is set to false i.e VM can\'t be moved from one zone to another.') - c.argument('disable_capacity_reservation_assignment', options_list=['--disable-capacity-reservation-assignment', '--no-capacity-reservation'], arg_type=get_three_state_flag(), help='Explicitly opt out the VM from being associated with any capacity reservation. The VM will consume publicly available capacity.') + c.argument('disable_capacity_reservation_assignment', options_list=['--disable-capacity-reservation-assignment', '--no-cap-reservation'], arg_type=get_three_state_flag(), help='Explicitly opt out the VM from being associated with any capacity reservation. The VM will consume publicly available capacity.') with self.argument_context('vm create', arg_group='Storage') as c: c.argument('attach_os_disk', help='Attach an existing OS disk to the VM. Can use the name or ID of a managed disk or the URI to an unmanaged disk VHD.') 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 9e61f8a87bf..da4094a38b1 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 @@ -13288,7 +13288,7 @@ def test_open_capacity_reservation(self, resource_group): self.cmd('vm create -g {rg} -n {vm} -l {location} --image {image} --size {sku} ' '--admin-username azureuser ' - '--ssh-key-value "{ssh_key}" --public-ip-address "" --nsg-rule None --no-capacity-reservation true') + '--ssh-key-value "{ssh_key}" --public-ip-address "" --nsg-rule None --no-cap-reservation true') self.cmd('vm show -g {rg} -n {vm}', checks=[ self.check('provisioningState', 'Succeeded'), From e86e15ddd2c395471f5fd69cfc4601cea4bc89b1 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 17 Aug 2026 13:26:47 +0800 Subject: [PATCH 14/22] Update recording version --- .../test_backup_CrossZonalRestore.yaml | 2 +- .../recordings/test_backup_container.yaml | 6 ++-- .../test_backup_disk_exclusion.yaml | 2 +- .../latest/recordings/test_backup_item.yaml | 4 +-- .../latest/recordings/test_backup_job.yaml | 2 +- .../latest/recordings/test_backup_policy.yaml | 4 +-- .../recordings/test_backup_protection.yaml | 4 +-- .../recordings/test_backup_restore.yaml | 2 +- ..._restore_when_storage_in_different_rg.yaml | 2 +- .../recordings/test_backup_rg_mapping.yaml | 2 +- .../latest/recordings/test_backup_rp.yaml | 2 +- .../recordings/test_backup_scenario.yaml | 2 +- .../recordings/test_backup_softdelete.yaml | 2 +- .../test_vault_soft_delete_with_items.yaml | 2 +- .../test_dynamic_metric_alert_basic.yaml | 2 +- ..._dynamic_metric_alert_multiple_scopes.yaml | 4 +-- .../test_metric_alert_condition_create.yaml | 4 +-- .../test_metric_alert_for_rg_and_sub.yaml | 4 +-- .../test_metric_alert_multiple_scopes.yaml | 4 +-- .../test_metric_alert_single_scope.yaml | 2 +- ...nitor_clone_vm_metric_alerts_scenario.yaml | 6 ++-- .../test_monitor_metrics_list_by_sub.yaml | 2 +- ...test_network_nic_convenience_commands.yaml | 4 +-- .../test_network_watcher_packet_capture.yaml | 4 +-- .../recordings/test_network_watcher_vm.yaml | 14 ++++---- .../test_nw_connection_monitor_output.yaml | 8 ++--- ...tion_monitor_output_type_as_workspace.yaml | 4 +-- ...est_nw_connection_monitor_v2_creation.yaml | 8 ++--- ...est_nw_connection_monitor_v2_endpoint.yaml | 8 ++--- .../latest/recordings/test_invoke_action.yaml | 4 +-- .../recordings/test_resource_patch.yaml | 4 +-- .../test_sqlvm_aad_auth_negative.yaml | 28 +++++++-------- .../recordings/test_sqlvm_add_and_remove.yaml | 2 +- .../test_sqlvm_create_and_delete.yaml | 6 ++-- .../latest/recordings/test_sqlvm_mgmt.yaml | 2 +- .../test_sqlvm_mgmt_assessment.yaml | 4 +-- .../test_sqlvm_update_license_and_sku.yaml | 2 +- ...apacity_reservation_list_query_params.yaml | 6 ++-- .../test_capacity_reservation_operations.yaml | 8 ++--- ..._capacity_reservation_sharing_profile.yaml | 10 +++--- .../test_copy_vm_restore_point.yaml | 2 +- .../recordings/test_disk_trusted_launch.yaml | 4 +-- .../test_enable_trusted_launch_on_v1.yaml | 10 +++--- ...t_guest_attestation_extension_and_msi.yaml | 18 +++++----- .../recordings/test_linux_vm_patch_mode.yaml | 4 +-- .../latest/recordings/test_restore_point.yaml | 2 +- .../test_restore_point_collection.yaml | 2 +- .../test_restore_point_encryption_local.yaml | 2 +- .../test_restore_point_encryption_remote.yaml | 2 +- .../recordings/test_vm_add_application.yaml | 2 +- ..._vm_add_application_empty_version_ids.yaml | 2 +- ..._add_application_with_config_override.yaml | 2 +- ...dd_application_with_order_application.yaml | 2 +- .../recordings/test_vm_create_count.yaml | 16 ++++----- ...m_create_ultrassd_data_disk_iops_mbps.yaml | 4 +-- .../recordings/test_vm_extended_location.yaml | 4 +-- .../recordings/test_vm_install_patches.yaml | 4 +-- .../recordings/test_vm_list_filter.yaml | 6 ++-- .../test_vm_resize_changes_size.yaml | 8 ++--- .../test_vm_restore_point_instant_access.yaml | 2 +- .../latest/recordings/test_vm_ssh_key.yaml | 4 +-- .../recordings/test_vm_ssh_key_ed25519.yaml | 6 ++-- .../recordings/test_vm_trusted_launch.yaml | 12 +++---- .../test_vm_trusted_launch_update.yaml | 10 +++--- ..._application_enable_automatic_upgrade.yaml | 2 +- .../test_vm_vmss_extension_autoupgrade.yaml | 12 +++---- .../recordings/test_vm_vmss_proxy_agent.yaml | 36 +++++++++---------- ...proxy_agent_control_profile_reference.yaml | 28 +++++++-------- .../test_vm_zone_movement_preserved.yaml | 8 ++--- .../test_vmss_linux_patch_mode.yaml | 2 +- .../test_vmss_windows_patch_mode.yaml | 2 +- 71 files changed, 206 insertions(+), 206 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_CrossZonalRestore.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_CrossZonalRestore.yaml index bff98bb9b17..813dd97a2ab 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_CrossZonalRestore.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_CrossZonalRestore.yaml @@ -1113,7 +1113,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_container.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_container.yaml index 4e98f0514d1..d36ab27e5e4 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_container.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_container.yaml @@ -1168,7 +1168,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -2295,7 +2295,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004\",\r\n @@ -4620,7 +4620,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_disk_exclusion.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_disk_exclusion.yaml index 5e0cf414742..03e907409f6 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_disk_exclusion.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_disk_exclusion.yaml @@ -860,7 +860,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_item.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_item.yaml index dd0b22d79e9..c0fcb66da93 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_item.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_item.yaml @@ -1206,7 +1206,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -2548,7 +2548,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_job.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_job.yaml index 05aef0a954e..ae8784fdaeb 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_job.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_job.yaml @@ -1178,7 +1178,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_policy.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_policy.yaml index 2df80d74404..97c8d23dde4 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_policy.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_policy.yaml @@ -1232,7 +1232,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000005?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000005?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000005\",\r\n @@ -2074,7 +2074,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000006?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000006?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000006\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_protection.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_protection.yaml index 748dc864525..48e784d3d6c 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_protection.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_protection.yaml @@ -1194,7 +1194,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -1443,7 +1443,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore.yaml index a0576769483..344189f0d68 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore.yaml @@ -914,7 +914,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore_when_storage_in_different_rg.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore_when_storage_in_different_rg.yaml index a53637001e9..42790bd925b 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore_when_storage_in_different_rg.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore_when_storage_in_different_rg.yaml @@ -1166,7 +1166,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000005?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000005?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000005\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rg_mapping.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rg_mapping.yaml index 5094677b738..0c8da866a53 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rg_mapping.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rg_mapping.yaml @@ -1100,7 +1100,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rp.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rp.yaml index f0d09ce2c68..0ae8cde0ffe 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rp.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rp.yaml @@ -953,7 +953,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_scenario.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_scenario.yaml index 74087f6593e..6045810f782 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_scenario.yaml @@ -916,7 +916,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_softdelete.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_softdelete.yaml index 480d3067f7a..1802efb629f 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_softdelete.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_softdelete.yaml @@ -1102,7 +1102,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_vault_soft_delete_with_items.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_vault_soft_delete_with_items.yaml index afe352a9c38..013f2e400f0 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_vault_soft_delete_with_items.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_vault_soft_delete_with_items.yaml @@ -1282,7 +1282,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_basic.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_basic.yaml index d59dc361212..a4052713d31 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_basic.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_basic.yaml @@ -1058,7 +1058,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/resourceGroups/cli_test_dynamic_metric_alert000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dynamic_metric_alert000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dynamic_metric_alert000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_multiple_scopes.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_multiple_scopes.yaml index d593a6c5a7e..083e98ee85f 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_multiple_scopes.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_multiple_scopes.yaml @@ -1058,7 +1058,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/resourceGroups/cli_test_dynamic_metric_alert_v2000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dynamic_metric_alert_v2000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dynamic_metric_alert_v2000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000002\",\r\n @@ -2297,7 +2297,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/resourceGroups/cli_test_dynamic_metric_alert_v2000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dynamic_metric_alert_v2000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dynamic_metric_alert_v2000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_condition_create.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_condition_create.yaml index 9e69acc69f9..7251b162a1b 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_condition_create.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_condition_create.yaml @@ -1058,7 +1058,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/resourceGroups/cli_test_metric_alert_condition_create000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_condition_create000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_condition_create000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000002\",\r\n @@ -2297,7 +2297,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/resourceGroups/cli_test_metric_alert_condition_create000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_condition_create000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_condition_create000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_for_rg_and_sub.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_for_rg_and_sub.yaml index 743f4b0c8a0..d68ed3d3c9a 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_for_rg_and_sub.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_for_rg_and_sub.yaml @@ -1058,7 +1058,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/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -2298,7 +2298,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/resourceGroups/cli_test_metric_alert_v2000002/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000002/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000002/providers/Microsoft.Compute/virtualMachines/clitest-vm000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_multiple_scopes.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_multiple_scopes.yaml index 88ef411c2e8..2c7be990940 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_multiple_scopes.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_multiple_scopes.yaml @@ -1058,7 +1058,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/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000002\",\r\n @@ -2295,7 +2295,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/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_single_scope.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_single_scope.yaml index 6508933b297..cc9b02c8d5a 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_single_scope.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_single_scope.yaml @@ -1058,7 +1058,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/resourceGroups/cli_test_metric_alert_v1000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v1000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v1000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_vm_metric_alerts_scenario.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_vm_metric_alerts_scenario.yaml index 8e0891f4bf1..6a8f643cf85 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_vm_metric_alerts_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_vm_metric_alerts_scenario.yaml @@ -905,7 +905,7 @@ interactions: User-Agent: - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\ @@ -1985,7 +1985,7 @@ interactions: User-Agent: - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm2\"\ @@ -3065,7 +3065,7 @@ interactions: User-Agent: - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm3?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm3?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm3\"\ diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_metrics_list_by_sub.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_metrics_list_by_sub.yaml index 0b9a9c85ca1..5f8d67b9316 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_metrics_list_by_sub.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_metrics_list_by_sub.yaml @@ -951,7 +951,7 @@ interactions: User-Agent: - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\"\ diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_nic_convenience_commands.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_nic_convenience_commands.yaml index 5a551c9fcc7..2597e7ea152 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_nic_convenience_commands.yaml +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_nic_convenience_commands.yaml @@ -3736,7 +3736,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/resourceGroups/cli_nic_convenience_test000001/providers/Microsoft.Compute/virtualMachines/conveniencevm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_nic_convenience_test000001/providers/Microsoft.Compute/virtualMachines/conveniencevm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"conveniencevm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_nic_convenience_test000001/providers/Microsoft.Compute/virtualMachines/conveniencevm1\",\r\n @@ -4145,7 +4145,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/resourceGroups/cli_nic_convenience_test000001/providers/Microsoft.Compute/virtualMachines/conveniencevm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_nic_convenience_test000001/providers/Microsoft.Compute/virtualMachines/conveniencevm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"conveniencevm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_nic_convenience_test000001/providers/Microsoft.Compute/virtualMachines/conveniencevm1\",\r\n 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 79a642c2e59..49ee6549147 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 @@ -5688,7 +5688,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/resourceGroups/cli_test_nw_packet_capture000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_packet_capture000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_packet_capture000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -6097,7 +6097,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/resourceGroups/cli_test_nw_packet_capture000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_packet_capture000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_packet_capture000001/providers/Microsoft.Compute/virtualMachines/vm1\",\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 d4bae7a3b42..88c87640c86 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 @@ -5403,7 +5403,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/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -5812,7 +5812,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/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -10965,7 +10965,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/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -12888,7 +12888,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/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -13209,7 +13209,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/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -13530,7 +13530,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/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -13855,7 +13855,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/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_vm000001/providers/Microsoft.Compute/virtualMachines/vm1\",\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 837bb7d93ef..e38d29121f9 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 @@ -2089,7 +2089,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/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -2281,7 +2281,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/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -9567,7 +9567,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/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2\",\r\n @@ -9760,7 +9760,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/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2\",\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 ba7bad5b4b2..6a7efdab48d 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 @@ -2089,7 +2089,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/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -2281,7 +2281,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/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\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 5f4d359ad5f..c2e8ae29db7 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 @@ -2123,7 +2123,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/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -2315,7 +2315,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/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -9648,7 +9648,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/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2\",\r\n @@ -9841,7 +9841,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/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2\",\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 c0c10f88445..740a3489dbb 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 @@ -2239,7 +2239,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/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -2432,7 +2432,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/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -9940,7 +9940,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/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2\",\r\n @@ -10133,7 +10133,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/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/connection_monitor_v2_test_000001/providers/Microsoft.Compute/virtualMachines/vm2\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_invoke_action.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_invoke_action.yaml index 75984a19fc1..7e022f965ed 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_invoke_action.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_invoke_action.yaml @@ -828,7 +828,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/resourceGroups/cli_test_invoke_action000001/providers/Microsoft.Compute/virtualMachines/cli-test-vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_invoke_action000001/providers/Microsoft.Compute/virtualMachines/cli-test-vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"cli-test-vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_invoke_action000001/providers/Microsoft.Compute/virtualMachines/cli-test-vm000002\",\r\n @@ -2136,7 +2136,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/resourceGroups/cli_test_invoke_action000001/providers/Microsoft.Compute/virtualMachines/cli-test-vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_invoke_action000001/providers/Microsoft.Compute/virtualMachines/cli-test-vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"cli-test-vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_invoke_action000001/providers/Microsoft.Compute/virtualMachines/cli-test-vm000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_patch.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_patch.yaml index f7c20295982..2b35462fbb9 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_patch.yaml +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_patch.yaml @@ -729,7 +729,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/resourceGroups/cli_test_resource_patch_000001/providers/Microsoft.Compute/virtualMachines/vm?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_resource_patch_000001/providers/Microsoft.Compute/virtualMachines/vm?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_resource_patch_000001/providers/Microsoft.Compute/virtualMachines/vm\",\r\n @@ -924,7 +924,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/resourceGroups/cli_test_resource_patch_000001/providers/Microsoft.Compute/virtualMachines/vm?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_resource_patch_000001/providers/Microsoft.Compute/virtualMachines/vm?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_resource_patch_000001/providers/Microsoft.Compute/virtualMachines/vm\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_aad_auth_negative.yaml b/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_aad_auth_negative.yaml index 78f7cb5898e..b71c5299da2 100644 --- a/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_aad_auth_negative.yaml +++ b/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_aad_auth_negative.yaml @@ -673,7 +673,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000002\",\r\n @@ -1529,7 +1529,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -2945,7 +2945,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -3036,7 +3036,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -3239,7 +3239,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -3329,7 +3329,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -3701,7 +3701,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -3796,7 +3796,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -4003,7 +4003,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -4095,7 +4095,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -17740,7 +17740,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -17835,7 +17835,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -18042,7 +18042,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -18134,7 +18134,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_add_and_remove.yaml b/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_add_and_remove.yaml index aea744e2473..aeda6a482b5 100644 --- a/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_add_and_remove.yaml +++ b/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_add_and_remove.yaml @@ -5766,7 +5766,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_create_and_delete.yaml b/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_create_and_delete.yaml index 87668e4f47e..01fb82e6e7a 100644 --- a/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_create_and_delete.yaml +++ b/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_create_and_delete.yaml @@ -3388,7 +3388,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/resourceGroups/sqlvm_cli_test_create000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_create000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_create000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000002\",\r\n @@ -6950,7 +6950,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/resourceGroups/sqlvm_cli_test_create000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_create000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_create000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -10512,7 +10512,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/resourceGroups/sqlvm_cli_test_create000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000004?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_create000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000004?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_create000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_mgmt.yaml b/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_mgmt.yaml index 6e55ddf4f6c..12758cbb645 100644 --- a/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_mgmt.yaml +++ b/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_mgmt.yaml @@ -3388,7 +3388,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_mgmt_assessment.yaml b/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_mgmt_assessment.yaml index 4fbd4c7ade1..d6a98479592 100644 --- a/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_mgmt_assessment.yaml +++ b/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_mgmt_assessment.yaml @@ -826,7 +826,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -2440,7 +2440,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_update_license_and_sku.yaml b/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_update_license_and_sku.yaml index c884957d07e..6e94fb7c0d5 100644 --- a/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_update_license_and_sku.yaml +++ b/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_update_license_and_sku.yaml @@ -3388,7 +3388,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/resourceGroups/sqlvm_cli_test_license000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_license000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_license000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_list_query_params.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_list_query_params.yaml index 7e7b877d601..39f225c6640 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_list_query_params.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_list_query_params.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/capacityReservationGroups?resourceIdsOnly=All&api-version=2024-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/capacityReservationGroups?resourceIdsOnly=All&api-version=2026-04-01 response: body: string: "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/NAPATIL/providers/Microsoft.Compute/capacityReservationGroups/clisub\",\r\n @@ -69,7 +69,7 @@ interactions: User-Agent: - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/capacityReservationGroups?resourceIdsOnly=CreatedInSubscription&api-version=2024-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/capacityReservationGroups?resourceIdsOnly=CreatedInSubscription&api-version=2026-04-01 response: body: string: "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/NAPATIL/providers/Microsoft.Compute/capacityReservationGroups/clisub\",\r\n @@ -117,7 +117,7 @@ interactions: User-Agent: - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/capacityReservationGroups?resourceIdsOnly=SharedWithSubscription&api-version=2024-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/capacityReservationGroups?resourceIdsOnly=SharedWithSubscription&api-version=2026-04-01 response: body: string: "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/napatil/providers/Microsoft.Compute/capacityReservationGroups/clitestsharing\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_operations.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_operations.yaml index a9d5ea97d98..ad5929281cb 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_operations.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_operations.yaml @@ -65,7 +65,7 @@ interactions: User-Agent: - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_list_delete000001/providers/Microsoft.Compute/capacityReservationGroups/cli_reservation_group_000002?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_list_delete000001/providers/Microsoft.Compute/capacityReservationGroups/cli_reservation_group_000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"cli_reservation_group_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_CAPACITY_RESERVATION_LIST_DELETES4UA7VLWERGPGPKODSLLA2NGT5GO2XT4M2/providers/Microsoft.Compute/capacityReservationGroups/cli_reservation_group_000002\",\r\n @@ -178,7 +178,7 @@ interactions: User-Agent: - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_list_delete000001/providers/Microsoft.Compute/capacityReservationGroups/cli_reservation_group_000002/capacityReservations/cli_reservation_name_000003?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_list_delete000001/providers/Microsoft.Compute/capacityReservationGroups/cli_reservation_group_000002/capacityReservations/cli_reservation_name_000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"cli_reservation_name_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_list_delete000001/providers/Microsoft.Compute/capacityReservationGroups/cli_reservation_group_000002/capacityReservations/cli_reservation_name_000003\",\r\n @@ -297,7 +297,7 @@ interactions: User-Agent: - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_list_delete000001/providers/Microsoft.Compute/capacityReservationGroups/cli_reservation_group_000002/capacityReservations/cli_reservation_name_000003?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_list_delete000001/providers/Microsoft.Compute/capacityReservationGroups/cli_reservation_group_000002/capacityReservations/cli_reservation_name_000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"cli_reservation_name_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_list_delete000001/providers/Microsoft.Compute/capacityReservationGroups/cli_reservation_group_000002/capacityReservations/cli_reservation_name_000003\",\r\n @@ -537,7 +537,7 @@ interactions: User-Agent: - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_list_delete000001/providers/Microsoft.Compute/capacityReservationGroups/cli_reservation_group_000002/capacityReservations/cli_reservation_name_000003?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_list_delete000001/providers/Microsoft.Compute/capacityReservationGroups/cli_reservation_group_000002/capacityReservations/cli_reservation_name_000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"cli_reservation_name_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_list_delete000001/providers/Microsoft.Compute/capacityReservationGroups/cli_reservation_group_000002/capacityReservations/cli_reservation_name_000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_sharing_profile.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_sharing_profile.yaml index 611dd028b19..5ce4313c8d1 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_sharing_profile.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_sharing_profile.yaml @@ -20,7 +20,7 @@ interactions: User-Agent: - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_sharing_profile000001/providers/Microsoft.Compute/capacityReservationGroups/reservation_group_000002?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_sharing_profile000001/providers/Microsoft.Compute/capacityReservationGroups/reservation_group_000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"reservation_group_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_sharing_profile000001/providers/Microsoft.Compute/capacityReservationGroups/reservation_group_000002\",\r\n @@ -79,7 +79,7 @@ interactions: User-Agent: - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_sharing_profile000001/providers/Microsoft.Compute/capacityReservationGroups/reservation_group_000003?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_sharing_profile000001/providers/Microsoft.Compute/capacityReservationGroups/reservation_group_000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"reservation_group_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_sharing_profile000001/providers/Microsoft.Compute/capacityReservationGroups/reservation_group_000003\",\r\n @@ -138,7 +138,7 @@ interactions: User-Agent: - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.22631-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_sharing_profile000001/providers/Microsoft.Compute/capacityReservationGroups/reservation_group_000003?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_sharing_profile000001/providers/Microsoft.Compute/capacityReservationGroups/reservation_group_000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"reservation_group_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_sharing_profile000001/providers/Microsoft.Compute/capacityReservationGroups/reservation_group_000003\",\r\n @@ -199,7 +199,7 @@ interactions: User-Agent: - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.22631-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_sharing_profile000001/providers/Microsoft.Compute/capacityReservationGroups/reservation_group_000002?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_sharing_profile000001/providers/Microsoft.Compute/capacityReservationGroups/reservation_group_000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"reservation_group_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_sharing_profile000001/providers/Microsoft.Compute/capacityReservationGroups/reservation_group_000002\",\r\n @@ -262,7 +262,7 @@ interactions: User-Agent: - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_sharing_profile000001/providers/Microsoft.Compute/capacityReservationGroups/reservation_group_000003?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_sharing_profile000001/providers/Microsoft.Compute/capacityReservationGroups/reservation_group_000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"reservation_group_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_sharing_profile000001/providers/Microsoft.Compute/capacityReservationGroups/reservation_group_000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_copy_vm_restore_point.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_copy_vm_restore_point.yaml index de7adcbf3a6..88db99a27e1 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_copy_vm_restore_point.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_copy_vm_restore_point.yaml @@ -4090,7 +4090,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/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/virtualMachines/vm_000006?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/virtualMachines/vm_000006?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm_000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/virtualMachines/vm_000006\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_trusted_launch.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_trusted_launch.yaml index e8243944811..0bc92e62add 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_trusted_launch.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_trusted_launch.yaml @@ -4470,7 +4470,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm000004?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm000004?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -4870,7 +4870,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_enable_trusted_launch_on_v1.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_enable_trusted_launch_on_v1.yaml index ee440efe5ea..decd03bb971 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_enable_trusted_launch_on_v1.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_enable_trusted_launch_on_v1.yaml @@ -2420,7 +2420,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_trusted_launch_on_v1_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_trusted_launch_on_v1_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_trusted_launch_on_v1_000001/providers/Microsoft.Compute/virtualMachines/vm1000002\",\r\n @@ -2829,7 +2829,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_trusted_launch_on_v1_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_trusted_launch_on_v1_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_trusted_launch_on_v1_000001/providers/Microsoft.Compute/virtualMachines/vm1000002\",\r\n @@ -3172,7 +3172,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_trusted_launch_on_v1_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_trusted_launch_on_v1_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_trusted_launch_on_v1_000001/providers/Microsoft.Compute/virtualMachines/vm1000002\",\r\n @@ -3263,7 +3263,7 @@ interactions: User-Agent: - AZURECLI/2.85.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_trusted_launch_on_v1_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_trusted_launch_on_v1_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_trusted_launch_on_v1_000001/providers/Microsoft.Compute/virtualMachines/vm1000002\",\r\n @@ -3403,7 +3403,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_trusted_launch_on_v1_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_trusted_launch_on_v1_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_trusted_launch_on_v1_000001/providers/Microsoft.Compute/virtualMachines/vm1000002\",\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 6c4450d4743..f7c38829aba 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 @@ -3977,7 +3977,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/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -9406,7 +9406,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/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -9896,7 +9896,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/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -12211,7 +12211,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/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n @@ -12408,7 +12408,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/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n @@ -16348,7 +16348,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/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000004?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000004?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -16767,7 +16767,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/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -19120,7 +19120,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/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000005?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000005?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000005\",\r\n @@ -19318,7 +19318,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/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_guest_attestation_extension_and_msi000001/providers/Microsoft.Compute/virtualMachines/vm000005\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_linux_vm_patch_mode.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_linux_vm_patch_mode.yaml index 9aa2c3d2d24..4cb1380f9ae 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_linux_vm_patch_mode.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_linux_vm_patch_mode.yaml @@ -2370,7 +2370,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_linux_vm_patch_mode_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_linux_vm_patch_mode_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_linux_vm_patch_mode_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -2783,7 +2783,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_linux_vm_patch_mode_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_linux_vm_patch_mode_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_linux_vm_patch_mode_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point.yaml index c8356dd4cee..b895f71184d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point.yaml @@ -3869,7 +3869,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/resourceGroups/cli_test_restore_point000001/providers/Microsoft.Compute/virtualMachines/vm_000004?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point000001/providers/Microsoft.Compute/virtualMachines/vm_000004?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm_000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point000001/providers/Microsoft.Compute/virtualMachines/vm_000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_collection.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_collection.yaml index 5e73bf6f259..2d776466aed 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_collection.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_collection.yaml @@ -3849,7 +3849,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/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_encryption_local.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_encryption_local.yaml index 539240363c7..ec59c044cbe 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_encryption_local.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_encryption_local.yaml @@ -1937,7 +1937,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_restore_point_encryption_local000001/providers/Microsoft.Compute/virtualMachines/vm_000004?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_encryption_local000001/providers/Microsoft.Compute/virtualMachines/vm_000004?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm_000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_encryption_local000001/providers/Microsoft.Compute/virtualMachines/vm_000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_encryption_remote.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_encryption_remote.yaml index 011275b5b52..9629a7f778c 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_encryption_remote.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_encryption_remote.yaml @@ -1937,7 +1937,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_restore_point_encryption_remote000001/providers/Microsoft.Compute/virtualMachines/vm_000004?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_encryption_remote000001/providers/Microsoft.Compute/virtualMachines/vm_000004?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm_000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_encryption_remote000001/providers/Microsoft.Compute/virtualMachines/vm_000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application.yaml index 160577ed771..e53f05fd9d7 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application.yaml @@ -4060,7 +4060,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_empty_version_ids.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_empty_version_ids.yaml index c1f73246724..23299102e1a 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_empty_version_ids.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_empty_version_ids.yaml @@ -4107,7 +4107,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_config_override.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_config_override.yaml index 44eca4ba0f3..57ee691a0ce 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_config_override.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_config_override.yaml @@ -4107,7 +4107,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_order_application.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_order_application.yaml index 91a1494be9b..1d9f26f1884 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_order_application.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_order_application.yaml @@ -4107,7 +4107,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_count.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_count.yaml index 99e3099abd1..1057302ab74 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_count.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_count.yaml @@ -4421,7 +4421,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/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vma0?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vma0?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vma0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vma0\",\r\n @@ -4617,7 +4617,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/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vma1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vma1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vma1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vma1\",\r\n @@ -4813,7 +4813,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/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vma2?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vma2?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vma2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vma2\",\r\n @@ -5225,7 +5225,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/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines?api-version=2026-04-01 response: body: string: '{"value":[{"name":"vma0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vma0","type":"Microsoft.Compute/virtualMachines","location":"eastus","tags":{},"properties":{"hardwareProfile":{"vmSize":"Standard_DS1_v2"},"provisioningState":"Succeeded","vmId":"f2004b54-27ed-44b2-9d68-3b633dce1675","storageProfile":{"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"18.04-LTS","version":"latest","exactVersion":"18.04.202401161"},"osDisk":{"osType":"Linux","name":"vma0_disk1_ff2383adbeec4d8fabd881e0cab868ad","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/disks/vma0_disk1_ff2383adbeec4d8fabd881e0cab868ad"},"deleteOption":"Detach","diskSizeGB":30},"dataDisks":[]},"osProfile":{"computerName":"vma0","adminUsername":"vmtest","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/vmtest/.ssh/authorized_keys","keyData":"ssh-rsa @@ -7480,7 +7480,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/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vmb0?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vmb0?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vmb0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vmb0\",\r\n @@ -7676,7 +7676,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/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vmb1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vmb1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vmb1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vmb1\",\r\n @@ -7872,7 +7872,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/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vmb2?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vmb2?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vmb2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vmb2\",\r\n @@ -8067,7 +8067,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/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines?api-version=2026-04-01 response: body: string: '{"value":[{"name":"vma0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/virtualMachines/vma0","type":"Microsoft.Compute/virtualMachines","location":"eastus","tags":{},"properties":{"hardwareProfile":{"vmSize":"Standard_DS1_v2"},"provisioningState":"Succeeded","vmId":"f2004b54-27ed-44b2-9d68-3b633dce1675","storageProfile":{"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"18.04-LTS","version":"latest","exactVersion":"18.04.202401161"},"osDisk":{"osType":"Linux","name":"vma0_disk1_ff2383adbeec4d8fabd881e0cab868ad","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_count_000001/providers/Microsoft.Compute/disks/vma0_disk1_ff2383adbeec4d8fabd881e0cab868ad"},"deleteOption":"Detach","diskSizeGB":30},"dataDisks":[]},"osProfile":{"computerName":"vma0","adminUsername":"vmtest","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/vmtest/.ssh/authorized_keys","keyData":"ssh-rsa diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_ultrassd_data_disk_iops_mbps.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_ultrassd_data_disk_iops_mbps.yaml index 8081fbf81dc..35b0a835ab3 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_ultrassd_data_disk_iops_mbps.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_ultrassd_data_disk_iops_mbps.yaml @@ -2466,7 +2466,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_test_vm_ultrassd_live000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_ultrassd_live000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_ultrassd_live000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -2671,7 +2671,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_test_vm_ultrassd_live000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_ultrassd_live000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_ultrassd_live000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_extended_location.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_extended_location.yaml index 8086b271ded..643fae1cd2b 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_extended_location.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_extended_location.yaml @@ -746,7 +746,7 @@ interactions: User-Agent: - AZURECLI/2.59.0 azsdk-python-core/1.30.1 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_extended_location_000001/providers/Microsoft.Compute/virtualMachines/vm?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_extended_location_000001/providers/Microsoft.Compute/virtualMachines/vm?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_extended_location_000001/providers/Microsoft.Compute/virtualMachines/vm\"\ @@ -976,7 +976,7 @@ interactions: User-Agent: - AZURECLI/2.59.0 azsdk-python-core/1.30.1 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_extended_location_000001/providers/Microsoft.Compute/virtualMachines/vm?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_extended_location_000001/providers/Microsoft.Compute/virtualMachines/vm?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_extended_location_000001/providers/Microsoft.Compute/virtualMachines/vm\"\ diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_install_patches.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_install_patches.yaml index 2a2ea3b4bc2..2980ad43f8b 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_install_patches.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_install_patches.yaml @@ -3922,7 +3922,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/resourceGroups/cli_test_vm_install_patches_000001/providers/Microsoft.Compute/virtualMachines/vm?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_install_patches_000001/providers/Microsoft.Compute/virtualMachines/vm?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_install_patches_000001/providers/Microsoft.Compute/virtualMachines/vm\",\r\n @@ -6573,7 +6573,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/resourceGroups/cli_test_vm_install_patches_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_install_patches_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_install_patches_000001/providers/Microsoft.Compute/virtualMachines/vm2\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_list_filter.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_list_filter.yaml index 5dba1259f62..eb05ec0c540 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_list_filter.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_list_filter.yaml @@ -622,7 +622,7 @@ interactions: User-Agent: - AZURECLI/2.60.0 azsdk-python-core/1.30.1 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_list_filter_000001/providers/Microsoft.Compute/virtualMachines?$filter=%27virtualMachineScaleSet%2Fid%27%20eq%20%27%2Fsubscriptions%2F00000000-0000-0000-0000-000000000000%2FresourceGroups%2Fcli_test_vm_list_filter_000001%2Fproviders%2FMicrosoft.Compute%2FvirtualMachineScaleSets%2Fvmss000002%27&api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_list_filter_000001/providers/Microsoft.Compute/virtualMachines?$filter=%27virtualMachineScaleSet%2Fid%27%20eq%20%27%2Fsubscriptions%2F00000000-0000-0000-0000-000000000000%2FresourceGroups%2Fcli_test_vm_list_filter_000001%2Fproviders%2FMicrosoft.Compute%2FvirtualMachineScaleSets%2Fvmss000002%27&api-version=2026-04-01 response: body: string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vmss000002_5fe1a11b\"\ @@ -738,7 +738,7 @@ interactions: User-Agent: - AZURECLI/2.60.0 azsdk-python-core/1.30.1 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_list_filter_000001/providers/Microsoft.Compute/virtualMachines?$filter=%27virtualMachineScaleSet%2Fid%27%20eq%20%27%2Fsubscriptions%2F00000000-0000-0000-0000-000000000000%2FresourceGroups%2Fcli_test_vm_list_filter_000001%2Fproviders%2FMicrosoft.Compute%2FvirtualMachineScaleSets%2Fvmss000002%27&api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_list_filter_000001/providers/Microsoft.Compute/virtualMachines?$filter=%27virtualMachineScaleSet%2Fid%27%20eq%20%27%2Fsubscriptions%2F00000000-0000-0000-0000-000000000000%2FresourceGroups%2Fcli_test_vm_list_filter_000001%2Fproviders%2FMicrosoft.Compute%2FvirtualMachineScaleSets%2Fvmss000002%27&api-version=2026-04-01 response: body: string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vmss000002_5fe1a11b\"\ @@ -854,7 +854,7 @@ interactions: User-Agent: - AZURECLI/2.60.0 azsdk-python-core/1.30.1 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_list_filter_000001/providers/Microsoft.Compute/virtualMachines?$filter=%27virtualMachineScaleSet%2Fid%27%20eq%20%27%2Fsubscriptions%2F00000000-0000-0000-0000-000000000000%2FresourceGroups%2Fcli_test_vm_list_filter_000001%2Fproviders%2FMicrosoft.Compute%2FvirtualMachineScaleSets%2Fvmss000002%27&api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_list_filter_000001/providers/Microsoft.Compute/virtualMachines?$filter=%27virtualMachineScaleSet%2Fid%27%20eq%20%27%2Fsubscriptions%2F00000000-0000-0000-0000-000000000000%2FresourceGroups%2Fcli_test_vm_list_filter_000001%2Fproviders%2FMicrosoft.Compute%2FvirtualMachineScaleSets%2Fvmss000002%27&api-version=2026-04-01 response: body: string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vmss000002_5fe1a11b\"\ diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_resize_changes_size.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_resize_changes_size.yaml index e7b238cdd31..30cd3922159 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_resize_changes_size.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_resize_changes_size.yaml @@ -723,7 +723,7 @@ interactions: User-Agent: - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_resize000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_resize000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_resize000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -913,7 +913,7 @@ interactions: User-Agent: - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_resize000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_resize000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_resize000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -1002,7 +1002,7 @@ interactions: User-Agent: - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_resize000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_resize000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_resize000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -1267,7 +1267,7 @@ interactions: User-Agent: - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_resize000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_resize000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_resize000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_restore_point_instant_access.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_restore_point_instant_access.yaml index caa9f34c0d9..00d4e7a9123 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_restore_point_instant_access.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_restore_point_instant_access.yaml @@ -2696,7 +2696,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/resourceGroups/cli_test_vm_rp_ia000001/providers/Microsoft.Compute/virtualMachines/testVm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_rp_ia000001/providers/Microsoft.Compute/virtualMachines/testVm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"testVm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_rp_ia000001/providers/Microsoft.Compute/virtualMachines/testVm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_ssh_key.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_ssh_key.yaml index 5870324e3ec..085659ae047 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_ssh_key.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_ssh_key.yaml @@ -4606,7 +4606,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/resourceGroups/cli_test_vm_ssh_key_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_ssh_key_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_ssh_key_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -7354,7 +7354,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/resourceGroups/cli_test_vm_ssh_key_000001/providers/Microsoft.Compute/virtualMachines/vm3?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_ssh_key_000001/providers/Microsoft.Compute/virtualMachines/vm3?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_ssh_key_000001/providers/Microsoft.Compute/virtualMachines/vm3\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_ssh_key_ed25519.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_ssh_key_ed25519.yaml index 4a8f659d6d6..050b13b35a1 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_ssh_key_ed25519.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_ssh_key_ed25519.yaml @@ -4170,7 +4170,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/resourceGroups/cli_test_vm_ssh_key_ed25519000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_ssh_key_ed25519000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_ssh_key_ed25519000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -6875,7 +6875,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/resourceGroups/cli_test_vm_ssh_key_ed25519000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_ssh_key_ed25519000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_ssh_key_ed25519000001/providers/Microsoft.Compute/virtualMachines/vm2\",\r\n @@ -9363,7 +9363,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/resourceGroups/cli_test_vm_ssh_key_ed25519000001/providers/Microsoft.Compute/virtualMachines/vm3?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_ssh_key_ed25519000001/providers/Microsoft.Compute/virtualMachines/vm3?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_ssh_key_ed25519000001/providers/Microsoft.Compute/virtualMachines/vm3\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch.yaml index 1240b72f090..b579b6c54a4 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch.yaml @@ -3826,7 +3826,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/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4237,7 +4237,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/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -6622,7 +6622,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/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm2\",\r\n @@ -6814,7 +6814,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/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm2?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm2?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm2\",\r\n @@ -9156,7 +9156,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/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm3?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm3?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm3\",\r\n @@ -9351,7 +9351,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/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm3?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm3?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_000001/providers/Microsoft.Compute/virtualMachines/vm3\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_update.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_update.yaml index 4a0e90c84bf..12c57fccd66 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_update.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_update.yaml @@ -3826,7 +3826,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/resourceGroups/cli_test_vm_trusted_launch_update_000001/providers/Microsoft.Compute/virtualMachines/vm?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_update_000001/providers/Microsoft.Compute/virtualMachines/vm?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_update_000001/providers/Microsoft.Compute/virtualMachines/vm\",\r\n @@ -4237,7 +4237,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/resourceGroups/cli_test_vm_trusted_launch_update_000001/providers/Microsoft.Compute/virtualMachines/vm?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_update_000001/providers/Microsoft.Compute/virtualMachines/vm?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_update_000001/providers/Microsoft.Compute/virtualMachines/vm\",\r\n @@ -4330,7 +4330,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_update_000001/providers/Microsoft.Compute/virtualMachines/vm?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_update_000001/providers/Microsoft.Compute/virtualMachines/vm?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_update_000001/providers/Microsoft.Compute/virtualMachines/vm\",\r\n @@ -4412,7 +4412,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/resourceGroups/cli_test_vm_trusted_launch_update_000001/providers/Microsoft.Compute/virtualMachines/vm?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_update_000001/providers/Microsoft.Compute/virtualMachines/vm?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_update_000001/providers/Microsoft.Compute/virtualMachines/vm\",\r\n @@ -4490,7 +4490,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/resourceGroups/cli_test_vm_trusted_launch_update_000001/providers/Microsoft.Compute/virtualMachines/vm?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_update_000001/providers/Microsoft.Compute/virtualMachines/vm?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_update_000001/providers/Microsoft.Compute/virtualMachines/vm\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_application_enable_automatic_upgrade.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_application_enable_automatic_upgrade.yaml index 4f0e8a17a1d..38d6f0a7664 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_application_enable_automatic_upgrade.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_application_enable_automatic_upgrade.yaml @@ -4139,7 +4139,7 @@ interactions: User-Agent: - AZURECLI/2.79.0 azsdk-python-core/1.35.0 Python/3.10.11 (Windows-10-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\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 64f6624e205..2f6aa234df3 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 @@ -2453,7 +2453,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/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm1000002\",\r\n @@ -8061,7 +8061,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/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm1000002\",\r\n @@ -8496,7 +8496,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/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm1000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm1000002\",\r\n @@ -9290,7 +9290,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/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm2000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm2000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm2000003\",\r\n @@ -14897,7 +14897,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/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm2000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm2000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm2000003\",\r\n @@ -15115,7 +15115,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/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm2000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm2000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_extension_autoupgrade_000001/providers/Microsoft.Compute/virtualMachines/vm2000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_proxy_agent.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_proxy_agent.yaml index 3cd015de294..d35a0a2ce91 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_proxy_agent.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_proxy_agent.yaml @@ -4388,7 +4388,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000004?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000004?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -4844,7 +4844,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -4935,7 +4935,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -5043,7 +5043,7 @@ interactions: User-Agent: - AZURECLI/2.83.0 azsdk-python-core/1.38.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -5251,7 +5251,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -7808,7 +7808,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005\",\r\n @@ -8004,7 +8004,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005\",\r\n @@ -8100,7 +8100,7 @@ interactions: User-Agent: - AZURECLI/2.83.0 azsdk-python-core/1.38.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005\",\r\n @@ -8362,7 +8362,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005\",\r\n @@ -8452,7 +8452,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005\",\r\n @@ -8542,7 +8542,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005\",\r\n @@ -8649,7 +8649,7 @@ interactions: User-Agent: - AZURECLI/2.83.0 azsdk-python-core/1.38.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005\",\r\n @@ -8854,7 +8854,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005\",\r\n @@ -8936,7 +8936,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005\",\r\n @@ -9018,7 +9018,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005\",\r\n @@ -9117,7 +9117,7 @@ interactions: User-Agent: - AZURECLI/2.83.0 azsdk-python-core/1.38.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005\",\r\n @@ -9314,7 +9314,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005\",\r\n @@ -9396,7 +9396,7 @@ interactions: User-Agent: - AZURECLI/2.83.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/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_000001/providers/Microsoft.Compute/virtualMachines/vm000005\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_proxy_agent_control_profile_reference.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_proxy_agent_control_profile_reference.yaml index 26117e89f6c..806e96253cf 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_proxy_agent_control_profile_reference.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_proxy_agent_control_profile_reference.yaml @@ -3286,7 +3286,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/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -3741,7 +3741,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/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -5119,7 +5119,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/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -5212,7 +5212,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: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -5415,7 +5415,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/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -5503,7 +5503,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/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -5608,7 +5608,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -5759,7 +5759,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/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -5848,7 +5848,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/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -5942,7 +5942,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: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -6146,7 +6146,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/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -6235,7 +6235,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/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -6343,7 +6343,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -6495,7 +6495,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/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_zone_movement_preserved.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_zone_movement_preserved.yaml index c27fe3ae2cc..df7229233e3 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_zone_movement_preserved.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_zone_movement_preserved.yaml @@ -666,7 +666,7 @@ interactions: User-Agent: - AZURECLI/2.87.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/resourceGroups/cli_test_vm_zone_movement_preserved_000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_zone_movement_preserved_000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_zone_movement_preserved_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -869,7 +869,7 @@ interactions: User-Agent: - AZURECLI/2.87.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/resourceGroups/cli_test_vm_zone_movement_preserved_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_zone_movement_preserved_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_zone_movement_preserved_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -967,7 +967,7 @@ interactions: User-Agent: - AZURECLI/2.87.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_zone_movement_preserved_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_zone_movement_preserved_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_zone_movement_preserved_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -1110,7 +1110,7 @@ interactions: User-Agent: - AZURECLI/2.87.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/resourceGroups/cli_test_vm_zone_movement_preserved_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_zone_movement_preserved_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_zone_movement_preserved_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_linux_patch_mode.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_linux_patch_mode.yaml index 5b31172c1ac..a13c94ef7a7 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_linux_patch_mode.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_linux_patch_mode.yaml @@ -1636,7 +1636,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/resourceGroups/cli_test_vmss_linux_patch_mode_000001/providers/Microsoft.Compute/virtualMachines/clitestvmss000002_1bde6cd4?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_linux_patch_mode_000001/providers/Microsoft.Compute/virtualMachines/clitestvmss000002_1bde6cd4?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitestvmss000002_1bde6cd4\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_linux_patch_mode_000001/providers/Microsoft.Compute/virtualMachines/clitestvmss000002_1bde6cd4\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_windows_patch_mode.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_windows_patch_mode.yaml index 437e80d4a10..b41e8447420 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_windows_patch_mode.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_windows_patch_mode.yaml @@ -840,7 +840,7 @@ interactions: User-Agent: - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_window_patch_mode_000001/providers/Microsoft.Compute/virtualMachines/clitestvmss000002_3a39e35c?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_window_patch_mode_000001/providers/Microsoft.Compute/virtualMachines/clitestvmss000002_3a39e35c?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitestvmss000002_3a39e35c\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_window_patch_mode_000001/providers/Microsoft.Compute/virtualMachines/clitestvmss000002_3a39e35c\"\ From ebca1fecd52703d05a1ff263c3613e9544214b51 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 17 Aug 2026 14:41:31 +0800 Subject: [PATCH 15/22] Update recording version --- .../test_backup_CrossZonalRestore.yaml | 2 +- .../recordings/test_backup_container.yaml | 4 ++-- .../test_backup_disk_exclusion.yaml | 20 +++++++++---------- .../latest/recordings/test_backup_item.yaml | 4 ++-- .../latest/recordings/test_backup_job.yaml | 2 +- .../latest/recordings/test_backup_policy.yaml | 4 ++-- .../recordings/test_backup_protection.yaml | 6 +++--- .../recordings/test_backup_restore.yaml | 2 +- ..._restore_when_storage_in_different_rg.yaml | 2 +- .../recordings/test_backup_rg_mapping.yaml | 2 +- .../latest/recordings/test_backup_rp.yaml | 2 +- .../recordings/test_backup_scenario.yaml | 2 +- .../recordings/test_backup_softdelete.yaml | 2 +- .../test_vault_soft_delete_with_items.yaml | 2 +- .../test_network_watcher_packet_capture.yaml | 4 ++-- .../recordings/test_vm_add_application.yaml | 8 ++++---- ..._vm_add_application_empty_version_ids.yaml | 8 ++++---- ..._add_application_with_config_override.yaml | 14 ++++++------- ...dd_application_with_order_application.yaml | 8 ++++---- .../test_vm_resize_changes_size.yaml | 2 +- .../test_vm_restore_point_instant_access.yaml | 6 +++--- ..._application_enable_automatic_upgrade.yaml | 10 +++++----- 22 files changed, 58 insertions(+), 58 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_CrossZonalRestore.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_CrossZonalRestore.yaml index 813dd97a2ab..ce92dff64d6 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_CrossZonalRestore.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_CrossZonalRestore.yaml @@ -1412,7 +1412,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_container.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_container.yaml index d36ab27e5e4..e6656e3a7be 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_container.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_container.yaml @@ -2619,7 +2619,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -3760,7 +3760,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_disk_exclusion.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_disk_exclusion.yaml index 03e907409f6..b823ce1b9dd 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_disk_exclusion.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_disk_exclusion.yaml @@ -1062,7 +1062,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -1163,7 +1163,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -1364,7 +1364,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -1451,7 +1451,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -1560,7 +1560,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -1766,7 +1766,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -1858,7 +1858,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -1975,7 +1975,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -2186,7 +2186,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -2379,7 +2379,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_item.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_item.yaml index c0fcb66da93..0e6b8a00b3e 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_item.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_item.yaml @@ -2931,7 +2931,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -3972,7 +3972,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_job.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_job.yaml index ae8784fdaeb..236ec8e2518 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_job.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_job.yaml @@ -1496,7 +1496,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_policy.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_policy.yaml index 97c8d23dde4..828ad0c9710 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_policy.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_policy.yaml @@ -2371,7 +2371,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000005\",\r\n @@ -3510,7 +3510,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000006?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000006?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000006\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_protection.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_protection.yaml index 48e784d3d6c..3edb739a3d1 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_protection.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_protection.yaml @@ -1536,7 +1536,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -1779,7 +1779,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n @@ -2867,7 +2867,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore.yaml index 344189f0d68..af25f4871bc 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore.yaml @@ -1211,7 +1211,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore_when_storage_in_different_rg.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore_when_storage_in_different_rg.yaml index 42790bd925b..3e39f3b8775 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore_when_storage_in_different_rg.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_restore_when_storage_in_different_rg.yaml @@ -1496,7 +1496,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000005\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rg_mapping.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rg_mapping.yaml index 0c8da866a53..37ce8e5b562 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rg_mapping.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rg_mapping.yaml @@ -1438,7 +1438,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rp.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rp.yaml index 0ae8cde0ffe..b58ae163e87 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rp.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_rp.yaml @@ -1250,7 +1250,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_scenario.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_scenario.yaml index 6045810f782..de1771cf3d9 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_scenario.yaml @@ -1213,7 +1213,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_softdelete.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_softdelete.yaml index 1802efb629f..ce71236ffe0 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_softdelete.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_backup_softdelete.yaml @@ -1427,7 +1427,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_vault_soft_delete_with_items.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_vault_soft_delete_with_items.yaml index 013f2e400f0..38bcdf05a7c 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_vault_soft_delete_with_items.yaml +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_vault_soft_delete_with_items.yaml @@ -1579,7 +1579,7 @@ interactions: User-Agent: - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.13.12 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clitest-vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_clitest_000001/providers/Microsoft.Compute/virtualMachines/clitest-vm000003\",\r\n 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 49ee6549147..9e1d782ae9d 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 @@ -11624,7 +11624,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/resourceGroups/cli_test_nw_packet_capture000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_packet_capture000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_packet_capture000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -11920,7 +11920,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/resourceGroups/cli_test_nw_packet_capture000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_packet_capture000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_nw_packet_capture000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application.yaml index e53f05fd9d7..75a29f66d15 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application.yaml @@ -4472,7 +4472,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4570,7 +4570,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4989,7 +4989,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -5081,7 +5081,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_empty_version_ids.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_empty_version_ids.yaml index 23299102e1a..4121f758c0e 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_empty_version_ids.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_empty_version_ids.yaml @@ -4519,7 +4519,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4615,7 +4615,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4697,7 +4697,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4775,7 +4775,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_config_override.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_config_override.yaml index 57ee691a0ce..833e976226f 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_config_override.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_config_override.yaml @@ -4519,7 +4519,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4618,7 +4618,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -5675,7 +5675,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -5769,7 +5769,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -5884,7 +5884,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -6146,7 +6146,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -6240,7 +6240,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_order_application.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_order_application.yaml index 1d9f26f1884..b986053689e 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_order_application.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_add_application_with_order_application.yaml @@ -4519,7 +4519,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -4617,7 +4617,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -4984,7 +4984,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -5077,7 +5077,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_resize_changes_size.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_resize_changes_size.yaml index 30cd3922159..881c33c4e94 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_resize_changes_size.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_resize_changes_size.yaml @@ -1192,7 +1192,7 @@ interactions: User-Agent: - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_resize000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_resize000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_resize000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_restore_point_instant_access.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_restore_point_instant_access.yaml index 00d4e7a9123..66f645acec1 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_restore_point_instant_access.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_restore_point_instant_access.yaml @@ -3071,7 +3071,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/resourceGroups/cli_test_vm_rp_ia000001/providers/Microsoft.Compute/virtualMachines/testVm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_rp_ia000001/providers/Microsoft.Compute/virtualMachines/testVm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"testVm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_rp_ia000001/providers/Microsoft.Compute/virtualMachines/testVm1\",\r\n @@ -3162,7 +3162,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_rp_ia000001/providers/Microsoft.Compute/virtualMachines/testVm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_rp_ia000001/providers/Microsoft.Compute/virtualMachines/testVm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"testVm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_rp_ia000001/providers/Microsoft.Compute/virtualMachines/testVm1\",\r\n @@ -3411,7 +3411,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/resourceGroups/cli_test_vm_rp_ia000001/providers/Microsoft.Compute/virtualMachines/testVm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_rp_ia000001/providers/Microsoft.Compute/virtualMachines/testVm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"testVm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_rp_ia000001/providers/Microsoft.Compute/virtualMachines/testVm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_application_enable_automatic_upgrade.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_application_enable_automatic_upgrade.yaml index 38d6f0a7664..2a38972850d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_application_enable_automatic_upgrade.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_application_enable_automatic_upgrade.yaml @@ -4333,7 +4333,7 @@ interactions: User-Agent: - AZURECLI/2.79.0 azsdk-python-core/1.35.0 Python/3.10.11 (Windows-10-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -5037,7 +5037,7 @@ interactions: User-Agent: - AZURECLI/2.79.0 azsdk-python-core/1.35.0 Python/3.10.11 (Windows-10-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -5142,7 +5142,7 @@ interactions: User-Agent: - AZURECLI/2.79.0 azsdk-python-core/1.35.0 Python/3.10.11 (Windows-10-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -5409,7 +5409,7 @@ interactions: User-Agent: - AZURECLI/2.79.0 azsdk-python-core/1.35.0 Python/3.10.11 (Windows-10-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -5508,7 +5508,7 @@ interactions: User-Agent: - AZURECLI/2.79.0 azsdk-python-core/1.35.0 Python/3.10.11 (Windows-10-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_vm_vmss_application_enable_automatic_upgrade000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n From 7c13e250091ec38b4337c61172b670e39d0ef911 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 17 Aug 2026 20:58:51 +0800 Subject: [PATCH 16/22] Update recording version --- .../test_sqlvm_aad_auth_negative.yaml | 36 ++++++++-------- .../test_capacity_reservation_operations.yaml | 2 +- .../test_community_gallery_operations.yaml | 6 +-- ...th_allow_replicated_location_deletion.yaml | 8 ++-- ...reate_vm_with_community_gallery_image.yaml | 6 +-- ...t_create_vm_with_shared_gallery_image.yaml | 12 +++--- .../recordings/test_dedicated_host_e2e.yaml | 12 +++--- .../latest/recordings/test_gallery_e2e.yaml | 10 ++--- .../test_gallery_image_version_vhd.yaml | 8 ++-- .../recordings/test_gallery_soft_delete.yaml | 6 +-- .../recordings/test_image_update_add_set.yaml | 8 ++-- ..._image_version_create_for_diff_source.yaml | 8 ++-- .../test_image_version_create_os_vhd.yaml | 8 ++-- .../test_image_version_end_of_life_date.yaml | 8 ++-- .../test_os_disk_security_encryption.yaml | 4 +- .../latest/recordings/test_ppg_update.yaml | 10 ++--- .../test_ppg_with_related_resources.yaml | 2 +- .../recordings/test_replication_mode.yaml | 8 ++-- .../recordings/test_shared_gallery.yaml | 8 ++-- .../recordings/test_vm_auto_shutdown.yaml | 2 +- .../test_vm_create_auto_create_subnet.yaml | 6 +-- .../recordings/test_vm_create_nsg_rule.yaml | 2 +- .../test_vm_create_special_name.yaml | 4 +- .../recordings/test_vm_generic_update.yaml | 14 +++---- .../latest/recordings/test_vm_placement.yaml | 20 ++++----- .../test_vm_priority_eviction_billing.yaml | 10 ++--- .../test_vm_scheduled_events_policy.yaml | 42 +++++++++---------- .../test_vm_vmss_non_persisted_tpm.yaml | 4 +- ...proxy_agent_control_profile_reference.yaml | 12 +++--- .../test_vmss_simple_orchestration_mode.yaml | 4 +- 30 files changed, 145 insertions(+), 145 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_aad_auth_negative.yaml b/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_aad_auth_negative.yaml index b71c5299da2..fb6c24d76f8 100644 --- a/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_aad_auth_negative.yaml +++ b/src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_aad_auth_negative.yaml @@ -2945,7 +2945,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -3036,7 +3036,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -3521,7 +3521,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -3611,7 +3611,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -3701,7 +3701,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -3796,7 +3796,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -4187,7 +4187,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -10679,7 +10679,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -10980,7 +10980,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -11070,7 +11070,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -17560,7 +17560,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -17650,7 +17650,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -17740,7 +17740,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -17835,7 +17835,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -18226,7 +18226,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -24718,7 +24718,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -25019,7 +25019,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n @@ -25109,7 +25109,7 @@ interactions: User-Agent: - AZURECLI/2.81.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"clisqlvm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlvm_cli_test_aad000001/providers/Microsoft.Compute/virtualMachines/clisqlvm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_operations.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_operations.yaml index ad5929281cb..9b4f2c77197 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_operations.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_capacity_reservation_operations.yaml @@ -178,7 +178,7 @@ interactions: User-Agent: - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_list_delete000001/providers/Microsoft.Compute/capacityReservationGroups/cli_reservation_group_000002/capacityReservations/cli_reservation_name_000003?api-version=2026-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_list_delete000001/providers/Microsoft.Compute/capacityReservationGroups/cli_reservation_group_000002/capacityReservations/cli_reservation_name_000003?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"cli_reservation_name_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_capacity_reservation_list_delete000001/providers/Microsoft.Compute/capacityReservationGroups/cli_reservation_group_000002/capacityReservations/cli_reservation_name_000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_community_gallery_operations.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_community_gallery_operations.yaml index 04f8da6125a..40e68fdb90e 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_community_gallery_operations.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_community_gallery_operations.yaml @@ -67,7 +67,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gellery000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003\",\r\n @@ -184,7 +184,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/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gellery000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003\",\r\n @@ -245,7 +245,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: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003/share?api-version=2023-07-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003/share?api-version=2021-07-01 response: body: string: '' diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_image_version_with_allow_replicated_location_deletion.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_image_version_with_allow_replicated_location_deletion.yaml index 09a47baf65d..0df734d2f04 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_image_version_with_allow_replicated_location_deletion.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_image_version_with_allow_replicated_location_deletion.yaml @@ -65,7 +65,7 @@ interactions: User-Agent: - AZURECLI/2.85.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003\",\r\n @@ -176,7 +176,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003\",\r\n @@ -3130,7 +3130,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -3809,7 +3809,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_community_gallery_image.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_community_gallery_image.yaml index 1964547a8e1..bf0f054f7a7 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_community_gallery_image.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_community_gallery_image.yaml @@ -67,7 +67,7 @@ interactions: User-Agent: - AZURECLI/2.85.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000005?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000005?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gellery000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000005\",\r\n @@ -184,7 +184,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000005?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000005?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gellery000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000005\",\r\n @@ -245,7 +245,7 @@ interactions: User-Agent: - AZURECLI/2.85.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000005/share?api-version=2023-07-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000005/share?api-version=2021-07-01 response: body: string: '' diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_shared_gallery_image.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_shared_gallery_image.yaml index fee097650af..52b32d8b800 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_shared_gallery_image.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_shared_gallery_image.yaml @@ -66,7 +66,7 @@ interactions: User-Agent: - AZURECLI/2.85.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gellery000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007\",\r\n @@ -178,7 +178,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gellery000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007\",\r\n @@ -3072,7 +3072,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -3767,7 +3767,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -5448,7 +5448,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv000004?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv000004?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm_sgv000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv000004\",\r\n @@ -5654,7 +5654,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm_sgv000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_dedicated_host_e2e.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_dedicated_host_e2e.yaml index b841f5587b2..87d8676913c 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_dedicated_host_e2e.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_dedicated_host_e2e.yaml @@ -3403,7 +3403,7 @@ interactions: - AZURECLI/2.47.0 azsdk-python-azure-mgmt-compute/29.1.0 Python/3.10.11 (Linux-5.15.0-1036-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_220_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host_000001/providers/Microsoft.Compute/virtualMachines/ded-host-vm?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host_000001/providers/Microsoft.Compute/virtualMachines/ded-host-vm?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"ded-host-vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host_000001/providers/Microsoft.Compute/virtualMachines/ded-host-vm\",\r\n @@ -3634,7 +3634,7 @@ interactions: - AZURECLI/2.47.0 azsdk-python-azure-mgmt-compute/29.1.0 Python/3.10.11 (Linux-5.15.0-1036-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_220_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host_000001/providers/Microsoft.Compute/virtualMachines/ded-host-vm?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host_000001/providers/Microsoft.Compute/virtualMachines/ded-host-vm?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"ded-host-vm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host_000001/providers/Microsoft.Compute/virtualMachines/ded-host-vm\",\r\n @@ -7298,7 +7298,7 @@ interactions: - AZURECLI/2.47.0 azsdk-python-azure-mgmt-compute/29.1.0 Python/3.10.11 (Linux-5.15.0-1036-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_220_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host2_000002/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host2_000002/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host2_000002/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -10356,7 +10356,7 @@ interactions: - AZURECLI/2.47.0 azsdk-python-azure-mgmt-compute/29.1.0 Python/3.10.11 (Linux-5.15.0-1036-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_220_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host2_000002/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host2_000002/providers/Microsoft.Compute/virtualMachines/vm2?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host2_000002/providers/Microsoft.Compute/virtualMachines/vm2\",\r\n @@ -10587,7 +10587,7 @@ interactions: - AZURECLI/2.47.0 azsdk-python-azure-mgmt-compute/29.1.0 Python/3.10.11 (Linux-5.15.0-1036-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_220_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host2_000002/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host2_000002/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host2_000002/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -10664,7 +10664,7 @@ interactions: - AZURECLI/2.47.0 azsdk-python-azure-mgmt-compute/29.1.0 Python/3.10.11 (Linux-5.15.0-1036-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_220_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host2_000002/providers/Microsoft.Compute/virtualMachines/vm2?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host2_000002/providers/Microsoft.Compute/virtualMachines/vm2?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host2_000002/providers/Microsoft.Compute/virtualMachines/vm2\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_e2e.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_e2e.yaml index d5f0c1d20c5..dedf882cf10 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_e2e.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_e2e.yaml @@ -65,7 +65,7 @@ interactions: User-Agent: - AZURECLI/2.85.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003\",\r\n @@ -176,7 +176,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003\",\r\n @@ -1382,7 +1382,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -2087,7 +2087,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -5783,7 +5783,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vmFromImage?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vmFromImage?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vmFromImage\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vmFromImage\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_image_version_vhd.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_image_version_vhd.yaml index 9da2e202b1a..7c0a44bfe18 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_image_version_vhd.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_image_version_vhd.yaml @@ -3997,7 +3997,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/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -4407,7 +4407,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/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -4533,7 +4533,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/galleries/gallery_000003\",\r\n @@ -4644,7 +4644,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/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/galleries/gallery_000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_soft_delete.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_soft_delete.yaml index 82f24b81ef5..8f5480b0333 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_soft_delete.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_soft_delete.yaml @@ -66,7 +66,7 @@ interactions: User-Agent: - AZURECLI/2.85.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_soft_delete_000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_soft_delete_000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"sig_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_soft_delete_000001/providers/Microsoft.Compute/galleries/sig_000002\",\r\n @@ -179,7 +179,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_gallery_soft_delete_000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_soft_delete_000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"sig_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_soft_delete_000001/providers/Microsoft.Compute/galleries/sig_000002\",\r\n @@ -2920,7 +2920,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_gallery_soft_delete_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_soft_delete_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_soft_delete_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_update_add_set.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_update_add_set.yaml index 363fadd1e95..dba768df39c 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_update_add_set.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_update_add_set.yaml @@ -65,7 +65,7 @@ interactions: User-Agent: - AZURECLI/2.85.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_update_add_set_000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_update_add_set_000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_update_add_set_000001/providers/Microsoft.Compute/galleries/gallery_000002\",\r\n @@ -176,7 +176,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_image_update_add_set_000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_update_add_set_000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_update_add_set_000001/providers/Microsoft.Compute/galleries/gallery_000002\",\r\n @@ -2858,7 +2858,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_image_update_add_set_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_update_add_set_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_update_add_set_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -3553,7 +3553,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_image_update_add_set_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_update_add_set_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_update_add_set_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_version_create_for_diff_source.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_version_create_for_diff_source.yaml index 49f325e0758..b24b825ae73 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_version_create_for_diff_source.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_version_create_for_diff_source.yaml @@ -65,7 +65,7 @@ interactions: User-Agent: - AZURECLI/2.85.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_000001/providers/Microsoft.Compute/galleries/gallery000002?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_000001/providers/Microsoft.Compute/galleries/gallery000002?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_000001/providers/Microsoft.Compute/galleries/gallery000002\",\r\n @@ -176,7 +176,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_image_version_create_000001/providers/Microsoft.Compute/galleries/gallery000002?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_000001/providers/Microsoft.Compute/galleries/gallery000002?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_000001/providers/Microsoft.Compute/galleries/gallery000002\",\r\n @@ -3109,7 +3109,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_image_version_create_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -5214,7 +5214,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_image_version_create_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_version_create_os_vhd.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_version_create_os_vhd.yaml index ed074d6c34c..f7020681c96 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_version_create_os_vhd.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_version_create_os_vhd.yaml @@ -3963,7 +3963,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/resourceGroups/cli_test_image_version_create_os_vhd000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_os_vhd000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_os_vhd000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4373,7 +4373,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/resourceGroups/cli_test_image_version_create_os_vhd000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_os_vhd000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_os_vhd000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4499,7 +4499,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_os_vhd000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_os_vhd000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_os_vhd000001/providers/Microsoft.Compute/galleries/gallery_000002\",\r\n @@ -4608,7 +4608,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/resourceGroups/cli_test_image_version_create_os_vhd000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_os_vhd000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_create_os_vhd000001/providers/Microsoft.Compute/galleries/gallery_000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_version_end_of_life_date.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_version_end_of_life_date.yaml index dfbbc2cd09d..d01a8a28ac6 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_version_end_of_life_date.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_version_end_of_life_date.yaml @@ -65,7 +65,7 @@ interactions: User-Agent: - AZURECLI/2.85.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_end_of_life_date_000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_end_of_life_date_000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_end_of_life_date_000001/providers/Microsoft.Compute/galleries/gallery_000003\",\r\n @@ -176,7 +176,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_image_version_end_of_life_date_000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_end_of_life_date_000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_end_of_life_date_000001/providers/Microsoft.Compute/galleries/gallery_000003\",\r\n @@ -2852,7 +2852,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_image_version_end_of_life_date_000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_end_of_life_date_000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_end_of_life_date_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -3536,7 +3536,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_image_version_end_of_life_date_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_end_of_life_date_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_image_version_end_of_life_date_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_os_disk_security_encryption.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_os_disk_security_encryption.yaml index a95dc7a4af1..68ca9730fe7 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_os_disk_security_encryption.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_os_disk_security_encryption.yaml @@ -1718,7 +1718,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/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005\",\r\n @@ -1917,7 +1917,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/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_ppg_update.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_ppg_update.yaml index 54569a01f46..d4c2413b366 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_ppg_update.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_ppg_update.yaml @@ -4133,7 +4133,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/resourceGroups/cli_test_ppg_update_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ppg_update_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ppg_update_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4559,7 +4559,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/resourceGroups/cli_test_ppg_update_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ppg_update_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ppg_update_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4855,7 +4855,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/resourceGroups/cli_test_ppg_update_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ppg_update_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ppg_update_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4949,7 +4949,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ppg_update_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ppg_update_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ppg_update_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -5302,7 +5302,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/resourceGroups/cli_test_ppg_update_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ppg_update_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ppg_update_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_ppg_with_related_resources.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_ppg_with_related_resources.yaml index 18a1966bb69..06768847ade 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_ppg_with_related_resources.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_ppg_with_related_resources.yaml @@ -2630,7 +2630,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/resourceGroups/cli_test_ppg_vm_vmss_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ppg_vm_vmss_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_ppg_vm_vmss_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_replication_mode.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_replication_mode.yaml index 70e43ed3b65..f4074ca878f 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_replication_mode.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_replication_mode.yaml @@ -65,7 +65,7 @@ interactions: User-Agent: - AZURECLI/2.85.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"sig_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002\",\r\n @@ -176,7 +176,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"sig_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002\",\r\n @@ -2836,7 +2836,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_000007?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_000007?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm_000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_000007\",\r\n @@ -3518,7 +3518,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_000007?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_000007?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm_000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_000007\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_shared_gallery.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_shared_gallery.yaml index bfe434a0b61..6d17237f88b 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_shared_gallery.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_shared_gallery.yaml @@ -66,7 +66,7 @@ interactions: User-Agent: - AZURECLI/2.85.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gellery000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002\",\r\n @@ -178,7 +178,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gellery000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002\",\r\n @@ -3126,7 +3126,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4048,7 +4048,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_auto_shutdown.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_auto_shutdown.yaml index c5b0e0d0839..b1a5b14f519 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_auto_shutdown.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_auto_shutdown.yaml @@ -2450,7 +2450,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_vm_auto_shutdown000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_auto_shutdown000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_auto_shutdown000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_auto_create_subnet.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_auto_create_subnet.yaml index 438f1a17f46..609012fa732 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_auto_create_subnet.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_auto_create_subnet.yaml @@ -15,7 +15,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/resourceGroups/cli_test_vm_subnet000001/providers/Microsoft.Compute/virtualMachines?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_subnet000001/providers/Microsoft.Compute/virtualMachines?api-version=2026-04-01 response: body: string: '{"value":[]}' @@ -4290,7 +4290,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/resourceGroups/cli_test_vm_subnet000001/providers/Microsoft.Compute/virtualMachines/vm-subnet?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_subnet000001/providers/Microsoft.Compute/virtualMachines/vm-subnet?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm-subnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_subnet000001/providers/Microsoft.Compute/virtualMachines/vm-subnet\",\r\n @@ -4699,7 +4699,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/resourceGroups/cli_test_vm_subnet000001/providers/Microsoft.Compute/virtualMachines?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_subnet000001/providers/Microsoft.Compute/virtualMachines?api-version=2026-04-01 response: body: string: '{"value":[{"name":"vm-subnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_subnet000001/providers/Microsoft.Compute/virtualMachines/vm-subnet","type":"Microsoft.Compute/virtualMachines","location":"eastus","tags":{},"properties":{"hardwareProfile":{"vmSize":"Standard_B2ms"},"provisioningState":"Succeeded","vmId":"7f121923-607d-4969-985b-f05b81178ee9","storageProfile":{"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"18.04-LTS","version":"latest","exactVersion":"18.04.202401161"},"osDisk":{"osType":"Linux","name":"vm-subnet_OsDisk_1_7f1da1e4bfbd49719d8e0fd5adede2eb","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_subnet000001/providers/Microsoft.Compute/disks/vm-subnet_OsDisk_1_7f1da1e4bfbd49719d8e0fd5adede2eb"},"deleteOption":"Detach","diskSizeGB":30},"dataDisks":[]},"osProfile":{"computerName":"vm-subnet","adminUsername":"ubuntu","linuxConfiguration":{"disablePasswordAuthentication":false,"provisionVMAgent":true,"patchSettings":{"patchMode":"ImageDefault","assessmentMode":"ImageDefault"}},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"networkProfile":{"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_subnet000001/providers/Microsoft.Network/networkInterfaces/vm-subnetVMNic"}]},"timeCreated":"2025-11-18T03:58:04.8413972+00:00"},"etag":"\"2\""}]}' diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_nsg_rule.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_nsg_rule.yaml index 28379668c10..31e9b193af8 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_nsg_rule.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_nsg_rule.yaml @@ -3944,7 +3944,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/resourceGroups/cli_test_vm_create_nsg_rule_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_nsg_rule_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_nsg_rule_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_special_name.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_special_name.yaml index 85286c14b40..155481d422c 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_special_name.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_special_name.yaml @@ -3829,7 +3829,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/resourceGroups/cli_test_vm_create_special_name_000001/providers/Microsoft.Compute/virtualMachines/vm_1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_special_name_000001/providers/Microsoft.Compute/virtualMachines/vm_1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_special_name_000001/providers/Microsoft.Compute/virtualMachines/vm_1\",\r\n @@ -4238,7 +4238,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/resourceGroups/cli_test_vm_create_special_name_000001/providers/Microsoft.Compute/virtualMachines/vm_1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_special_name_000001/providers/Microsoft.Compute/virtualMachines/vm_1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm_1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_create_special_name_000001/providers/Microsoft.Compute/virtualMachines/vm_1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_generic_update.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_generic_update.yaml index 4874df459d1..561409f0347 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_generic_update.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_generic_update.yaml @@ -3832,7 +3832,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4266,7 +4266,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4381,7 +4381,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4588,7 +4588,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4680,7 +4680,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4787,7 +4787,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -5153,7 +5153,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_placement.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_placement.yaml index a95122b6acb..d124d68701d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_placement.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_placement.yaml @@ -975,7 +975,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/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -1175,7 +1175,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/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -1259,7 +1259,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/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -1362,7 +1362,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -1450,7 +1450,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/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -2541,7 +2541,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/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n @@ -2742,7 +2742,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/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n @@ -2826,7 +2826,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/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n @@ -2929,7 +2929,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n @@ -3017,7 +3017,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/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_placement000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_priority_eviction_billing.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_priority_eviction_billing.yaml index 54440a969ed..f11c076d367 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_priority_eviction_billing.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_priority_eviction_billing.yaml @@ -2417,7 +2417,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -2828,7 +2828,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -3122,7 +3122,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -3213,7 +3213,7 @@ interactions: User-Agent: - AZURECLI/2.85.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -3351,7 +3351,7 @@ interactions: User-Agent: - AZURECLI/2.85.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/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_scheduled_events_policy.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_scheduled_events_policy.yaml index f2e780e9b2e..bc2b1172b88 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_scheduled_events_policy.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_scheduled_events_policy.yaml @@ -748,7 +748,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -951,7 +951,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -1037,7 +1037,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -1142,7 +1142,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -1343,7 +1343,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -1429,7 +1429,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -1534,7 +1534,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -1735,7 +1735,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n @@ -2490,7 +2490,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n @@ -2685,7 +2685,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n @@ -2765,7 +2765,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n @@ -2864,7 +2864,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n @@ -3065,7 +3065,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n @@ -3151,7 +3151,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n @@ -3256,7 +3256,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n @@ -3457,7 +3457,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n @@ -4274,7 +4274,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000004?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000004?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -4474,7 +4474,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -4557,7 +4557,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -4658,7 +4658,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -4857,7 +4857,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/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_non_persisted_tpm.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_non_persisted_tpm.yaml index 641ac4dd8f2..090fcf01aa8 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_non_persisted_tpm.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_non_persisted_tpm.yaml @@ -3486,7 +3486,7 @@ interactions: User-Agent: - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_non_persisted_tpm_000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_non_persisted_tpm_000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_non_persisted_tpm_000001/providers/Microsoft.Compute/virtualMachines/vm000002\"\ @@ -3951,7 +3951,7 @@ interactions: User-Agent: - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_non_persisted_tpm_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_non_persisted_tpm_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_vmss_non_persisted_tpm_000001/providers/Microsoft.Compute/virtualMachines/vm000002\"\ diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_proxy_agent_control_profile_reference.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_proxy_agent_control_profile_reference.yaml index 806e96253cf..a4f322f1d09 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_proxy_agent_control_profile_reference.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_vmss_proxy_agent_control_profile_reference.yaml @@ -3879,7 +3879,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/galleries/gallery000008?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/galleries/gallery000008?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery000008\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/galleries/gallery000008\",\r\n @@ -3990,7 +3990,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/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/galleries/gallery000008?api-version=2025-03-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/galleries/gallery000008?api-version=2021-07-01 response: body: string: "{\r\n \"name\": \"gallery000008\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/galleries/gallery000008\",\r\n @@ -5119,7 +5119,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/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -5212,7 +5212,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: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -5415,7 +5415,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/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n @@ -5942,7 +5942,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: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2026-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"vm000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_vm_vmss_proxy_agent_control_profile_reference000001/providers/Microsoft.Compute/virtualMachines/vm000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_simple_orchestration_mode.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_simple_orchestration_mode.yaml index a54b02233f2..a4812f9b1ec 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_simple_orchestration_mode.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_simple_orchestration_mode.yaml @@ -6623,7 +6623,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/resourceGroups/cli_test_vmss_orchestration_mode_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_orchestration_mode_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_orchestration_mode_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -7038,7 +7038,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/resourceGroups/cli_test_vmss_orchestration_mode_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_orchestration_mode_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_orchestration_mode_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n From 382d15857fe636589c610f82cda6a1ca87cbf930 Mon Sep 17 00:00:00 2001 From: william Date: Wed, 19 Aug 2026 09:21:03 +0800 Subject: [PATCH 17/22] Update recording version --- .../test_image_build_managed_image.yaml | 4 ++-- .../test_vm_create_existing_nic.yaml | 4 ++-- ...tion_identity_not_acled_in_keyvaulte2e.yaml | 10 +++++----- ...with_incorrect_encryption_identity_e2e.yaml | 6 +++--- .../test_vm_disk_encryption_with_key.yaml | 8 ++++---- .../recordings/test_vm_encryption_at_host.yaml | 4 ++-- .../recordings/test_vm_os_disk_swap.yaml | 12 ++++++------ .../recordings/test_vm_secret_e2e_test.yaml | 18 +++++++++--------- 8 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_managed_image.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_managed_image.yaml index 3b19ad9dfc7..dbb9c698a53 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_managed_image.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_managed_image.yaml @@ -3214,7 +3214,7 @@ interactions: User-Agent: - AZURECLI/2.60.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"testvm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm\"\ @@ -3436,7 +3436,7 @@ interactions: User-Agent: - AZURECLI/2.60.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"testvm\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_managed000001/providers/Microsoft.Compute/virtualMachines/testvm\"\ diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_existing_nic.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_existing_nic.yaml index b5519de4fd9..a9b2d2b76a2 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_existing_nic.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_existing_nic.yaml @@ -1840,7 +1840,7 @@ interactions: User-Agent: - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_create_vm_existing_nic000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_create_vm_existing_nic000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_create_vm_existing_nic000001/providers/Microsoft.Compute/virtualMachines/vm1\"\ @@ -2074,7 +2074,7 @@ interactions: User-Agent: - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_create_vm_existing_nic000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_create_vm_existing_nic000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_create_vm_existing_nic000001/providers/Microsoft.Compute/virtualMachines/vm1\"\ diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_encryption_with_encryption_identity_not_acled_in_keyvaulte2e.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_encryption_with_encryption_identity_not_acled_in_keyvaulte2e.yaml index 763ab05e4fd..5886c75a9b7 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_encryption_with_encryption_identity_not_acled_in_keyvaulte2e.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_encryption_with_encryption_identity_not_acled_in_keyvaulte2e.yaml @@ -4289,7 +4289,7 @@ interactions: User-Agent: - AZURECLI/2.66.0 azsdk-python-core/1.31.0 Python/3.12.8 (Windows-11-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4488,7 +4488,7 @@ interactions: User-Agent: - AZURECLI/2.66.0 azsdk-python-core/1.31.0 Python/3.12.8 (Windows-11-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4571,7 +4571,7 @@ interactions: User-Agent: - AZURECLI/2.66.0 azsdk-python-core/1.31.0 Python/3.12.8 (Windows-11-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4673,7 +4673,7 @@ interactions: User-Agent: - AZURECLI/2.66.0 azsdk-python-core/1.31.0 Python/3.12.8 (Windows-11-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4758,7 +4758,7 @@ interactions: User-Agent: - AZURECLI/2.66.0 azsdk-python-core/1.31.0 Python/3.12.8 (Windows-11-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_encryption_with_incorrect_encryption_identity_e2e.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_encryption_with_incorrect_encryption_identity_e2e.yaml index 41b34092117..84d11e5ecf2 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_encryption_with_incorrect_encryption_identity_e2e.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_encryption_with_incorrect_encryption_identity_e2e.yaml @@ -4389,7 +4389,7 @@ interactions: User-Agent: - AZURECLI/2.66.0 azsdk-python-core/1.31.0 Python/3.12.8 (Windows-11-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_incorrect_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_incorrect_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_incorrect_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4588,7 +4588,7 @@ interactions: User-Agent: - AZURECLI/2.66.0 azsdk-python-core/1.31.0 Python/3.12.8 (Windows-11-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_incorrect_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_incorrect_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_incorrect_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4786,7 +4786,7 @@ interactions: User-Agent: - AZURECLI/2.66.0 azsdk-python-core/1.31.0 Python/3.12.8 (Windows-11-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_incorrect_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_incorrect_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_incorrect_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_encryption_with_key.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_encryption_with_key.yaml index dffe87d90dd..3a255350946 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_encryption_with_key.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_encryption_with_key.yaml @@ -1004,7 +1004,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/resourceGroups/cli_test_vm_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -1302,7 +1302,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/resourceGroups/cli_test_vm_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -1926,7 +1926,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/resourceGroups/cli_test_vm_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -2052,7 +2052,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/resourceGroups/cli_test_vm_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_encryption_at_host.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_encryption_at_host.yaml index 1c1f46a05aa..88ae58fce74 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_encryption_at_host.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_encryption_at_host.yaml @@ -3945,7 +3945,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/resourceGroups/cli_test_vm_encryption_at_host_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_at_host_000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_at_host_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4358,7 +4358,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/resourceGroups/cli_test_vm_encryption_at_host_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_at_host_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_at_host_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_os_disk_swap.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_os_disk_swap.yaml index 5e1c0f31cd4..7628745eff9 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_os_disk_swap.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_os_disk_swap.yaml @@ -3898,7 +3898,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4310,7 +4310,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4835,7 +4835,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -4928,7 +4928,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: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -5120,7 +5120,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -5197,7 +5197,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/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_secret_e2e_test.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_secret_e2e_test.yaml index 815d2b7a532..3c3bcdbbfd9 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_secret_e2e_test.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_secret_e2e_test.yaml @@ -912,7 +912,7 @@ interactions: User-Agent: - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -1409,7 +1409,7 @@ interactions: User-Agent: - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -1589,7 +1589,7 @@ interactions: User-Agent: - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -1789,7 +1789,7 @@ interactions: User-Agent: - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -1874,7 +1874,7 @@ interactions: User-Agent: - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -1959,7 +1959,7 @@ interactions: User-Agent: - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -2094,7 +2094,7 @@ interactions: User-Agent: - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -2290,7 +2290,7 @@ interactions: User-Agent: - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n @@ -2371,7 +2371,7 @@ interactions: User-Agent: - AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2026-04-01 response: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_secrets000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n From af722ad4737ec1cc7f83249acf8c482f8dfe47d2 Mon Sep 17 00:00:00 2001 From: william Date: Wed, 19 Aug 2026 09:44:25 +0800 Subject: [PATCH 18/22] Generate aaz code --- .../vm/aaz/latest/vmss/vms/_show.py | 155 +++++++++++++++++- .../latest/vmss/vms/instance_view/_show.py | 23 ++- 2 files changed, 172 insertions(+), 6 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/vms/_show.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/vms/_show.py index d28657173c4..b6fc12df143 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/vms/_show.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/vms/_show.py @@ -16,9 +16,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2025-04-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/virtualmachines/{}", "2025-04-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/virtualmachines/{}", "2026-04-01"], ] } @@ -132,7 +132,7 @@ def query_parameters(self): "$expand", self.ctx.args.expand, ), **self.serialize_query_param( - "api-version", "2025-04-01", + "api-version", "2026-04-01", required=True, ), } @@ -248,6 +248,9 @@ def _build_schema_on_200(cls): serialized_name="availabilitySet", ) _ShowHelper._build_schema_sub_resource_read(properties.availability_set) + properties.capacity_reservation = AAZObjectType( + serialized_name="capacityReservation", + ) properties.diagnostics_profile = AAZObjectType( serialized_name="diagnosticsProfile", ) @@ -258,6 +261,9 @@ def _build_schema_on_200(cls): serialized_name="instanceView", flags={"read_only": True}, ) + properties.interconnect_block_profile = AAZObjectType( + serialized_name="interconnectBlockProfile", + ) properties.latest_model_applied = AAZBoolType( serialized_name="latestModelApplied", flags={"read_only": True}, @@ -301,6 +307,10 @@ def _build_schema_on_200(cls): properties.user_data = AAZStrType( serialized_name="userData", ) + properties.virtual_machine_resource_id = AAZStrType( + serialized_name="virtualMachineResourceId", + flags={"read_only": True}, + ) properties.vm_id = AAZStrType( serialized_name="vmId", flags={"read_only": True}, @@ -317,6 +327,15 @@ def _build_schema_on_200(cls): serialized_name="ultraSSDEnabled", ) + capacity_reservation = cls._schema_on_200.properties.capacity_reservation + capacity_reservation.capacity_reservation_group = AAZObjectType( + serialized_name="capacityReservationGroup", + ) + _ShowHelper._build_schema_sub_resource_read(capacity_reservation.capacity_reservation_group) + capacity_reservation.disable_capacity_reservation_assignment = AAZBoolType( + serialized_name="disableCapacityReservationAssignment", + ) + diagnostics_profile = cls._schema_on_200.properties.diagnostics_profile diagnostics_profile.boot_diagnostics = AAZObjectType( serialized_name="bootDiagnostics", @@ -329,6 +348,9 @@ def _build_schema_on_200(cls): ) hardware_profile = cls._schema_on_200.properties.hardware_profile + hardware_profile.processor_mode = AAZStrType( + serialized_name="processorMode", + ) hardware_profile.vm_size = AAZStrType( serialized_name="vmSize", ) @@ -352,6 +374,10 @@ def _build_schema_on_200(cls): instance_view.boot_diagnostics = AAZObjectType( serialized_name="bootDiagnostics", ) + instance_view.capacity_reservation_type = AAZStrType( + serialized_name="capacityReservationType", + flags={"read_only": True}, + ) instance_view.computer_name = AAZStrType( serialized_name="computerName", ) @@ -360,6 +386,10 @@ def _build_schema_on_200(cls): instance_view.hyper_v_generation = AAZStrType( serialized_name="hyperVGeneration", ) + instance_view.interconnect_instance_view = AAZObjectType( + serialized_name="interconnectInstanceView", + flags={"read_only": True}, + ) instance_view.maintenance_redeploy_status = AAZObjectType( serialized_name="maintenanceRedeployStatus", ) @@ -413,6 +443,9 @@ def _build_schema_on_200(cls): ) _element.name = AAZStrType() _element.statuses = AAZListType() + _element.storage_alignment_status = AAZStrType( + serialized_name="storageAlignmentStatus", + ) encryption_settings = cls._schema_on_200.properties.instance_view.disks.Element.encryption_settings encryption_settings.Element = AAZObjectType() @@ -426,6 +459,12 @@ def _build_schema_on_200(cls): extensions.Element = AAZObjectType() _ShowHelper._build_schema_virtual_machine_extension_instance_view_read(extensions.Element) + interconnect_instance_view = cls._schema_on_200.properties.instance_view.interconnect_instance_view + interconnect_instance_view.interconnect_subgroup_id = AAZStrType( + serialized_name="interconnectSubgroupId", + flags={"read_only": True}, + ) + maintenance_redeploy_status = cls._schema_on_200.properties.instance_view.maintenance_redeploy_status maintenance_redeploy_status.is_customer_initiated_maintenance_allowed = AAZBoolType( serialized_name="isCustomerInitiatedMaintenanceAllowed", @@ -483,7 +522,17 @@ def _build_schema_on_200(cls): ) _ShowHelper._build_schema_instance_view_status_read(vm_health.status) + interconnect_block_profile = cls._schema_on_200.properties.interconnect_block_profile + interconnect_block_profile.interconnect_block = AAZObjectType( + serialized_name="interconnectBlock", + ) + _ShowHelper._build_schema_api_entity_reference_read(interconnect_block_profile.interconnect_block) + network_profile = cls._schema_on_200.properties.network_profile + network_profile.interconnect_group_profile = AAZObjectType( + serialized_name="interconnectGroupProfile", + ) + _ShowHelper._build_schema_interconnect_group_profile_read(network_profile.interconnect_group_profile) network_profile.network_api_version = AAZStrType( serialized_name="networkApiVersion", ) @@ -644,6 +693,9 @@ def _build_schema_on_200(cls): ip_tags.Element = AAZObjectType() _element = cls._schema_on_200.properties.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties.ip_tags.Element + _element.first_party_service_tag_id = AAZStrType( + serialized_name="firstPartyServiceTagId", + ) _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) @@ -671,6 +723,10 @@ def _build_schema_on_200(cls): properties.primary = AAZBoolType() network_profile_configuration = cls._schema_on_200.properties.network_profile_configuration + network_profile_configuration.interconnect_group_profile = AAZObjectType( + serialized_name="interconnectGroupProfile", + ) + _ShowHelper._build_schema_interconnect_group_profile_read(network_profile_configuration.interconnect_group_profile) network_profile_configuration.network_interface_configurations = AAZListType( serialized_name="networkInterfaceConfigurations", ) @@ -825,6 +881,9 @@ def _build_schema_on_200(cls): ip_tags.Element = AAZObjectType() _element = cls._schema_on_200.properties.network_profile_configuration.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties.ip_tags.Element + _element.first_party_service_tag_id = AAZStrType( + serialized_name="firstPartyServiceTagId", + ) _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) @@ -1069,6 +1128,9 @@ def _build_schema_on_200(cls): storage_profile.data_disks = AAZListType( serialized_name="dataDisks", ) + storage_profile.disk_api_version = AAZStrType( + serialized_name="diskApiVersion", + ) storage_profile.disk_controller_type = AAZStrType( serialized_name="diskControllerType", ) @@ -1117,6 +1179,9 @@ def _build_schema_on_200(cls): serialized_name="sourceResource", ) _ShowHelper._build_schema_api_entity_reference_read(_element.source_resource) + _element.storage_fault_domain_alignment = AAZStrType( + serialized_name="storageFaultDomainAlignment", + ) _element.to_be_detached = AAZBoolType( serialized_name="toBeDetached", ) @@ -1172,6 +1237,9 @@ def _build_schema_on_200(cls): os_disk.os_type = AAZStrType( serialized_name="osType", ) + os_disk.storage_fault_domain_alignment = AAZStrType( + serialized_name="storageFaultDomainAlignment", + ) os_disk.vhd = AAZObjectType() _ShowHelper._build_schema_virtual_hard_disk_read(os_disk.vhd) os_disk.write_accelerator_enabled = AAZBoolType( @@ -1179,6 +1247,9 @@ def _build_schema_on_200(cls): ) diff_disk_settings = cls._schema_on_200.properties.storage_profile.os_disk.diff_disk_settings + diff_disk_settings.enable_full_caching = AAZBoolType( + serialized_name="enableFullCaching", + ) diff_disk_settings.option = AAZStrType() diff_disk_settings.placement = AAZStrType() @@ -1343,6 +1414,7 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): if cls._schema_host_endpoint_settings_read is not None: _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules return cls._schema_host_endpoint_settings_read = _schema_host_endpoint_settings_read = AAZObjectType() @@ -1352,9 +1424,13 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): serialized_name="inVMAccessControlProfileReferenceId", ) host_endpoint_settings_read.mode = AAZStrType() + host_endpoint_settings_read.use_local_file_rules = AAZBoolType( + serialized_name="useLocalFileRules", + ) _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules _schema_instance_view_status_read = None @@ -1385,6 +1461,31 @@ def _build_schema_instance_view_status_read(cls, _schema): _schema.message = cls._schema_instance_view_status_read.message _schema.time = cls._schema_instance_view_status_read.time + _schema_interconnect_group_profile_read = None + + @classmethod + def _build_schema_interconnect_group_profile_read(cls, _schema): + if cls._schema_interconnect_group_profile_read is not None: + _schema.interconnect_group = cls._schema_interconnect_group_profile_read.interconnect_group + _schema.subgroups = cls._schema_interconnect_group_profile_read.subgroups + return + + cls._schema_interconnect_group_profile_read = _schema_interconnect_group_profile_read = AAZObjectType() + + interconnect_group_profile_read = _schema_interconnect_group_profile_read + interconnect_group_profile_read.interconnect_group = AAZObjectType( + serialized_name="interconnectGroup", + ) + cls._build_schema_sub_resource_read(interconnect_group_profile_read.interconnect_group) + interconnect_group_profile_read.subgroups = AAZListType() + + subgroups = _schema_interconnect_group_profile_read.subgroups + subgroups.Element = AAZObjectType() + cls._build_schema_sub_resource_read(subgroups.Element) + + _schema.interconnect_group = cls._schema_interconnect_group_profile_read.interconnect_group + _schema.subgroups = cls._schema_interconnect_group_profile_read.subgroups + _schema_key_vault_secret_reference_read = None @classmethod @@ -1415,6 +1516,7 @@ def _build_schema_key_vault_secret_reference_read(cls, _schema): @classmethod def _build_schema_managed_disk_parameters_read(cls, _schema): if cls._schema_managed_disk_parameters_read is not None: + _schema.additional_disk_properties = cls._schema_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_managed_disk_parameters_read.disk_encryption_set _schema.id = cls._schema_managed_disk_parameters_read.id _schema.security_profile = cls._schema_managed_disk_parameters_read.security_profile @@ -1424,6 +1526,9 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): cls._schema_managed_disk_parameters_read = _schema_managed_disk_parameters_read = AAZObjectType() managed_disk_parameters_read = _schema_managed_disk_parameters_read + managed_disk_parameters_read.additional_disk_properties = AAZObjectType( + serialized_name="additionalDiskProperties", + ) managed_disk_parameters_read.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", ) @@ -1436,6 +1541,49 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): serialized_name="storageAccountType", ) + additional_disk_properties = _schema_managed_disk_parameters_read.additional_disk_properties + additional_disk_properties.managed_disk_properties = AAZObjectType( + serialized_name="managedDiskProperties", + ) + + managed_disk_properties = _schema_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties + managed_disk_properties.availability_policy = AAZObjectType( + serialized_name="availabilityPolicy", + ) + managed_disk_properties.bursting_enabled = AAZBoolType( + serialized_name="burstingEnabled", + ) + managed_disk_properties.disk_access_id = AAZStrType( + serialized_name="diskAccessId", + ) + managed_disk_properties.disk_iops_read_only = AAZIntType( + serialized_name="diskIOPSReadOnly", + ) + managed_disk_properties.disk_m_bps_read_only = AAZIntType( + serialized_name="diskMBpsReadOnly", + ) + managed_disk_properties.logical_sector_size = AAZIntType( + serialized_name="logicalSectorSize", + ) + managed_disk_properties.max_shares = AAZIntType( + serialized_name="maxShares", + ) + managed_disk_properties.network_access_policy = AAZStrType( + serialized_name="networkAccessPolicy", + ) + managed_disk_properties.optimized_for_frequent_attach = AAZBoolType( + serialized_name="optimizedForFrequentAttach", + ) + managed_disk_properties.performance_plus = AAZBoolType( + serialized_name="performancePlus", + ) + managed_disk_properties.tier = AAZStrType() + + availability_policy = _schema_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties.availability_policy + availability_policy.action_on_disk_delay = AAZStrType( + serialized_name="actionOnDiskDelay", + ) + security_profile = _schema_managed_disk_parameters_read.security_profile security_profile.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", @@ -1445,6 +1593,7 @@ def _build_schema_managed_disk_parameters_read(cls, _schema): serialized_name="securityEncryptionType", ) + _schema.additional_disk_properties = cls._schema_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_managed_disk_parameters_read.disk_encryption_set _schema.id = cls._schema_managed_disk_parameters_read.id _schema.security_profile = cls._schema_managed_disk_parameters_read.security_profile diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/vms/instance_view/_show.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/vms/instance_view/_show.py index 972cfb24338..7e86f38555f 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/vms/instance_view/_show.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/vms/instance_view/_show.py @@ -16,9 +16,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2024-11-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/virtualmachines/{}/instanceview", "2024-11-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/virtualmachines/{}/instanceview", "2026-04-01"], ] } @@ -124,7 +124,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, ), } @@ -164,6 +164,10 @@ def _build_schema_on_200(cls): _schema_on_200.boot_diagnostics = AAZObjectType( serialized_name="bootDiagnostics", ) + _schema_on_200.capacity_reservation_type = AAZStrType( + serialized_name="capacityReservationType", + flags={"read_only": True}, + ) _schema_on_200.computer_name = AAZStrType( serialized_name="computerName", ) @@ -172,6 +176,10 @@ def _build_schema_on_200(cls): _schema_on_200.hyper_v_generation = AAZStrType( serialized_name="hyperVGeneration", ) + _schema_on_200.interconnect_instance_view = AAZObjectType( + serialized_name="interconnectInstanceView", + flags={"read_only": True}, + ) _schema_on_200.maintenance_redeploy_status = AAZObjectType( serialized_name="maintenanceRedeployStatus", ) @@ -225,6 +233,9 @@ def _build_schema_on_200(cls): ) _element.name = AAZStrType() _element.statuses = AAZListType() + _element.storage_alignment_status = AAZStrType( + serialized_name="storageAlignmentStatus", + ) encryption_settings = cls._schema_on_200.disks.Element.encryption_settings encryption_settings.Element = AAZObjectType() @@ -284,6 +295,12 @@ def _build_schema_on_200(cls): substatuses.Element = AAZObjectType() _ShowHelper._build_schema_instance_view_status_read(substatuses.Element) + interconnect_instance_view = cls._schema_on_200.interconnect_instance_view + interconnect_instance_view.interconnect_subgroup_id = AAZStrType( + serialized_name="interconnectSubgroupId", + flags={"read_only": True}, + ) + maintenance_redeploy_status = cls._schema_on_200.maintenance_redeploy_status maintenance_redeploy_status.is_customer_initiated_maintenance_allowed = AAZBoolType( serialized_name="isCustomerInitiatedMaintenanceAllowed", From 2800e36521194d60d06afbd631a1a8b9c47a5323 Mon Sep 17 00:00:00 2001 From: william Date: Wed, 19 Aug 2026 10:37:14 +0800 Subject: [PATCH 19/22] Generate aaz vmss 2026-04-01 --- .../vm/aaz/latest/vmss/_create.py | 283 +++++++++++++++- .../vm/aaz/latest/vmss/_show.py | 100 +++++- .../vm/aaz/latest/vmss/_update.py | 313 +++++++++++++++++- .../vm/aaz/latest/vmss/_wait.py | 98 +++++- 4 files changed, 780 insertions(+), 14 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_create.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_create.py index 41bff2ee3c6..0397317aa3f 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_create.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_create.py @@ -16,9 +16,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2025-11-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}", "2025-11-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}", "2026-04-01"], ] } @@ -589,11 +589,21 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Specifies the allocation strategy for the virtual machine scale set based on which the VMs will be allocated.", enum={"CapacityOptimized": "CapacityOptimized", "LowestPrice": "LowestPrice", "Prioritized": "Prioritized"}, ) + sku_profile.automatic_sku_migration_policy = AAZObjectArg( + options=["automatic-sku-migration-policy"], + help="Specifies the policy that controls whether the platform may automatically migrate scale set instances to a different VM size from the SKU profile depending on platform demands. When omitted, automatic SKU migration is disabled.", + ) sku_profile.vm_sizes = AAZListArg( options=["vm-sizes"], help="Specifies the VM sizes for the virtual machine scale set.", ) + automatic_sku_migration_policy = cls._args_schema.sku_profile.automatic_sku_migration_policy + automatic_sku_migration_policy.enabled = AAZBoolArg( + options=["enabled"], + help="Specifies whether automatic SKU migration should be enabled on the virtual machine scale set. The default value is false.", + ) + vm_sizes = cls._args_schema.sku_profile.vm_sizes vm_sizes.Element = AAZObjectArg() @@ -725,6 +735,10 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["hardware-profile"], help="Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01.", ) + virtual_machine_profile.interconnect_block_profile = AAZObjectArg( + options=["interconnect-block-profile"], + help="Specifies the Interconnect Block related details of a Scale Set. Minimum api-version: 2026-03-01.", + ) virtual_machine_profile.license_type = AAZStrArg( options=["license-type"], help="Specifies that the image or disk that is being used was licensed on-premises.

Possible values for Windows Server operating system are:

Windows_Client

Windows_Server

Possible values for Linux Server operating system are:

RHEL_BYOS (for RHEL)

SLES_BYOS (for SUSE)

For more information, see [Azure Hybrid Use Benefit for Windows Server](https://learn.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing)

[Azure Hybrid Use Benefit for Linux Server](https://learn.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux)

Minimum api-version: 2015-06-15", @@ -740,7 +754,7 @@ def _build_arguments_schema(cls, *args, **kwargs): virtual_machine_profile.priority = AAZStrArg( options=["priority"], help="Specifies the priority for the virtual machines in the scale set. Minimum api-version: 2017-10-30-preview.", - enum={"Low": "Low", "Regular": "Regular", "Spot": "Spot"}, + enum={"Low": "Low", "Regular": "Regular", "Spot": "Spot", "SpotPlus": "SpotPlus"}, ) virtual_machine_profile.scheduled_events_profile = AAZObjectArg( options=["scheduled-events-profile"], @@ -815,6 +829,10 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved. Please refer to https://aka.ms/CapacityReservation for more details.", ) cls._build_args_sub_resource_create(capacity_reservation.capacity_reservation_group) + capacity_reservation.disable_capacity_reservation_assignment = AAZBoolArg( + options=["disable-capacity-reservation-assignment"], + help="Specifies whether the virtual machine is explicitly opted out from being associated with any capacity reservation. When set to true, the virtual machine will not be allowed to implicitly or explicitly associate with any type of capacity reservation and will consume capacity from the publicly available capacity. Minimum api-version: 2026-04-01.", + ) diagnostics_profile = cls._args_schema.virtual_machine_profile.diagnostics_profile diagnostics_profile.boot_diagnostics = AAZObjectArg( @@ -914,6 +932,11 @@ def _build_arguments_schema(cls, *args, **kwargs): provision_after_extensions.Element = AAZStrArg() hardware_profile = cls._args_schema.virtual_machine_profile.hardware_profile + hardware_profile.processor_mode = AAZStrArg( + options=["processor-mode"], + help="Specifies the processor mode for the virtual machine scale set. Optional; if omitted, the platform default applies (currently Deterministic). This property can be updated on a running VMSS without deallocation or reboot. Minimum api-version: 2026-04-01.", + enum={"Deterministic": "Deterministic", "Opportunistic": "Opportunistic"}, + ) hardware_profile.vm_size_properties = AAZObjectArg( options=["vm-size-properties"], help="Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details.", @@ -929,12 +952,23 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Specifies the vCPU to physical core ratio. When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of [List all available virtual machine sizes in a region](https://learn.microsoft.com/en-us/rest/api/compute/resource-skus/list). **Setting this property to 1 also means that hyper-threading is disabled.**", ) + interconnect_block_profile = cls._args_schema.virtual_machine_profile.interconnect_block_profile + interconnect_block_profile.interconnect_block = AAZObjectArg( + options=["interconnect-block"], + help="Specifies the Interconnect Block resource ID that should be used for allocating the Virtual Machine or Scale Set VM instances provided enough capacity has been reserved.", + ) + cls._build_args_api_entity_reference_create(interconnect_block_profile.interconnect_block) + network_profile = cls._args_schema.virtual_machine_profile.network_profile network_profile.health_probe = AAZObjectArg( options=["health-probe"], help="A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'.", ) cls._build_args_api_entity_reference_create(network_profile.health_probe) + network_profile.interconnect_group_profile = AAZObjectArg( + options=["interconnect-group-profile"], + help="Specifies the interconnect group profile to associate with the scale set. Minimum api-version: 2026-03-01.", + ) network_profile.network_api_version = AAZStrArg( options=["network-api-version"], help="specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with orchestration mode 'Flexible'", @@ -945,6 +979,21 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The list of network configurations.", ) + interconnect_group_profile = cls._args_schema.virtual_machine_profile.network_profile.interconnect_group_profile + interconnect_group_profile.interconnect_group = AAZObjectArg( + options=["interconnect-group"], + help="Reference to the interconnect group resource.", + ) + cls._build_args_sub_resource_create(interconnect_group_profile.interconnect_group) + interconnect_group_profile.subgroups = AAZListArg( + options=["subgroups"], + help="The list of subgroup references within the interconnect group.", + ) + + subgroups = cls._args_schema.virtual_machine_profile.network_profile.interconnect_group_profile.subgroups + subgroups.Element = AAZObjectArg() + cls._build_args_sub_resource_create(subgroups.Element) + network_interface_configurations = cls._args_schema.virtual_machine_profile.network_profile.network_interface_configurations network_interface_configurations.Element = AAZObjectArg() @@ -1134,6 +1183,10 @@ def _build_arguments_schema(cls, *args, **kwargs): ip_tags.Element = AAZObjectArg() _element = cls._args_schema.virtual_machine_profile.network_profile.network_interface_configurations.Element.ip_configurations.Element.public_ip_address_configuration.ip_tags.Element + _element.first_party_service_tag_id = AAZResourceIdArg( + options=["first-party-service-tag-id"], + help="The first party service tag resource identifier associated with the public IP address.", + ) _element.ip_tag_type = AAZStrArg( options=["ip-tag-type"], help="IP tag type. Example: FirstPartyUsage.", @@ -1525,6 +1578,11 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["data-disks"], help="Specifies the parameters that are used to add data disks to the virtual machines in the scale set. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://learn.microsoft.com/azure/virtual-machines/managed-disks-overview).", ) + storage_profile.disk_api_version = AAZStrArg( + options=["disk-api-version"], + help="Specifies the Disk API version used when applying additionalDiskProperties to managed disks. The value must be in the format YYYY-MM-DD (e.g., \"2026-03-02\").", + enum={"2025-01-02": "2025-01-02", "2026-03-02": "2026-03-02"}, + ) storage_profile.disk_controller_type = AAZStrArg( options=["disk-controller-type"], help="Specifies the disk controller type configured for the virtual machines in the scale set. Minimum api-version: 2022-08-01", @@ -1751,6 +1809,7 @@ def _build_args_host_endpoint_settings_create(cls, _schema): if cls._args_host_endpoint_settings_create is not None: _schema.in_vm_access_control_profile_reference_id = cls._args_host_endpoint_settings_create.in_vm_access_control_profile_reference_id _schema.mode = cls._args_host_endpoint_settings_create.mode + _schema.use_local_file_rules = cls._args_host_endpoint_settings_create.use_local_file_rules return cls._args_host_endpoint_settings_create = AAZObjectArg() @@ -1765,9 +1824,14 @@ def _build_args_host_endpoint_settings_create(cls, _schema): help="Specifies the execution mode. In Audit mode, the system acts as if it is enforcing the access control policy, including emitting access denial entries in the logs but it does not actually deny any requests to host endpoints. In Enforce mode, the system will enforce the access control and it is the recommended mode of operation.", enum={"Audit": "Audit", "Disabled": "Disabled", "Enforce": "Enforce"}, ) + host_endpoint_settings_create.use_local_file_rules = AAZBoolArg( + options=["use-local-file-rules"], + help="When set to true, instructs the GuestProxyAgent inside the VM to load additional access control rules defined in a local file on the VM.", + ) _schema.in_vm_access_control_profile_reference_id = cls._args_host_endpoint_settings_create.in_vm_access_control_profile_reference_id _schema.mode = cls._args_host_endpoint_settings_create.mode + _schema.use_local_file_rules = cls._args_host_endpoint_settings_create.use_local_file_rules _args_sub_resource_create = None @@ -1792,6 +1856,7 @@ def _build_args_sub_resource_create(cls, _schema): @classmethod def _build_args_virtual_machine_scale_set_managed_disk_parameters_create(cls, _schema): if cls._args_virtual_machine_scale_set_managed_disk_parameters_create is not None: + _schema.additional_disk_properties = cls._args_virtual_machine_scale_set_managed_disk_parameters_create.additional_disk_properties _schema.disk_encryption_set = cls._args_virtual_machine_scale_set_managed_disk_parameters_create.disk_encryption_set _schema.security_profile = cls._args_virtual_machine_scale_set_managed_disk_parameters_create.security_profile _schema.storage_account_type = cls._args_virtual_machine_scale_set_managed_disk_parameters_create.storage_account_type @@ -1800,6 +1865,10 @@ def _build_args_virtual_machine_scale_set_managed_disk_parameters_create(cls, _s cls._args_virtual_machine_scale_set_managed_disk_parameters_create = AAZObjectArg() virtual_machine_scale_set_managed_disk_parameters_create = cls._args_virtual_machine_scale_set_managed_disk_parameters_create + virtual_machine_scale_set_managed_disk_parameters_create.additional_disk_properties = AAZObjectArg( + options=["additional-disk-properties"], + help="Specifies additional properties for the managed disk that can be set at the time of implicit creation of the disk. This property is not captured for Restore Points.", + ) virtual_machine_scale_set_managed_disk_parameters_create.disk_encryption_set = AAZObjectArg( options=["disk-encryption-set"], help="Specifies the customer managed disk encryption set resource id for the managed disk.", @@ -1815,6 +1884,69 @@ def _build_args_virtual_machine_scale_set_managed_disk_parameters_create(cls, _s enum={"PremiumV2_LRS": "PremiumV2_LRS", "Premium_LRS": "Premium_LRS", "Premium_ZRS": "Premium_ZRS", "StandardSSD_LRS": "StandardSSD_LRS", "StandardSSD_ZRS": "StandardSSD_ZRS", "Standard_LRS": "Standard_LRS", "UltraSSD_LRS": "UltraSSD_LRS"}, ) + additional_disk_properties = cls._args_virtual_machine_scale_set_managed_disk_parameters_create.additional_disk_properties + additional_disk_properties.managed_disk_properties = AAZObjectArg( + options=["managed-disk-properties"], + help="Specifies the managed disk properties that can be set at the time of implicit creation of the disk.", + ) + + managed_disk_properties = cls._args_virtual_machine_scale_set_managed_disk_parameters_create.additional_disk_properties.managed_disk_properties + managed_disk_properties.availability_policy = AAZObjectArg( + options=["availability-policy"], + help="In the case of an availability or connectivity issue with the disk, specify the behavior of your VM.", + ) + managed_disk_properties.bursting_enabled = AAZBoolArg( + options=["bursting-enabled"], + help="Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.", + ) + managed_disk_properties.disk_access_id = AAZStrArg( + options=["disk-access-id"], + help="Azure resource Id of the DiskAccess resource for using private endpoints on disks.", + ) + managed_disk_properties.disk_iops_read_only = AAZIntArg( + options=["disk-iops-read-only"], + help="The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.", + ) + managed_disk_properties.disk_m_bps_read_only = AAZIntArg( + options=["disk-m-bps-read-only"], + help="The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.", + ) + managed_disk_properties.logical_sector_size = AAZIntArg( + options=["logical-sector-size"], + help="Logical sector size in bytes for Ultra Disks. Supported values are 512 and 4096. 4096 is the default.", + ) + managed_disk_properties.max_shares = AAZIntArg( + options=["max-shares"], + help="The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. Applies to data disks only.", + fmt=AAZIntArgFormat( + minimum=1, + ), + ) + managed_disk_properties.network_access_policy = AAZStrArg( + options=["network-access-policy"], + help="Policy for accessing the disk via network.", + enum={"AllowAll": "AllowAll", "AllowPrivate": "AllowPrivate", "DenyAll": "DenyAll"}, + ) + managed_disk_properties.optimized_for_frequent_attach = AAZBoolArg( + options=["optimized-for-frequent-attach"], + help="Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine.", + ) + managed_disk_properties.performance_plus = AAZBoolArg( + options=["performance-plus"], + help="Set this flag to true to get a boost on the performance target of the disk deployed. This flag can only be set on disk creation time and cannot be disabled after enabled.", + ) + managed_disk_properties.tier = AAZStrArg( + options=["tier"], + help="Performance tier of the disk (e.g., P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.", + ) + + availability_policy = cls._args_virtual_machine_scale_set_managed_disk_parameters_create.additional_disk_properties.managed_disk_properties.availability_policy + availability_policy.action_on_disk_delay = AAZStrArg( + options=["action-on-disk-delay"], + help="Determines how to handle disks with slow I/O.", + enum={"AutomaticReattach": "AutomaticReattach", "None": "None"}, + ) + security_profile = cls._args_virtual_machine_scale_set_managed_disk_parameters_create.security_profile security_profile.disk_encryption_set = AAZObjectArg( options=["disk-encryption-set"], @@ -1827,6 +1959,7 @@ def _build_args_virtual_machine_scale_set_managed_disk_parameters_create(cls, _s enum={"DiskWithVMGuestState": "DiskWithVMGuestState", "NonPersistedTPM": "NonPersistedTPM", "VMGuestStateOnly": "VMGuestStateOnly"}, ) + _schema.additional_disk_properties = cls._args_virtual_machine_scale_set_managed_disk_parameters_create.additional_disk_properties _schema.disk_encryption_set = cls._args_virtual_machine_scale_set_managed_disk_parameters_create.disk_encryption_set _schema.security_profile = cls._args_virtual_machine_scale_set_managed_disk_parameters_create.security_profile _schema.storage_account_type = cls._args_virtual_machine_scale_set_managed_disk_parameters_create.storage_account_type @@ -1912,7 +2045,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -2148,8 +2281,13 @@ def content(self): sku_profile = _builder.get(".properties.skuProfile") if sku_profile is not None: sku_profile.set_prop("allocationStrategy", AAZStrType, ".allocation_strategy") + sku_profile.set_prop("automaticSkuMigrationPolicy", AAZObjectType, ".automatic_sku_migration_policy") sku_profile.set_prop("vmSizes", AAZListType, ".vm_sizes") + automatic_sku_migration_policy = _builder.get(".properties.skuProfile.automaticSkuMigrationPolicy") + if automatic_sku_migration_policy is not None: + automatic_sku_migration_policy.set_prop("enabled", AAZBoolType, ".enabled") + vm_sizes = _builder.get(".properties.skuProfile.vmSizes") if vm_sizes is not None: vm_sizes.set_elements(AAZObjectType, ".") @@ -2197,6 +2335,7 @@ def content(self): virtual_machine_profile.set_prop("evictionPolicy", AAZStrType, ".eviction_policy") virtual_machine_profile.set_prop("extensionProfile", AAZObjectType, ".extension_profile") virtual_machine_profile.set_prop("hardwareProfile", AAZObjectType, ".hardware_profile") + virtual_machine_profile.set_prop("interconnectBlockProfile", AAZObjectType, ".interconnect_block_profile") virtual_machine_profile.set_prop("licenseType", AAZStrType, ".license_type") virtual_machine_profile.set_prop("networkProfile", AAZObjectType, ".network_profile") virtual_machine_profile.set_prop("osProfile", AAZObjectType, ".os_profile") @@ -2232,6 +2371,7 @@ def content(self): capacity_reservation = _builder.get(".properties.virtualMachineProfile.capacityReservation") if capacity_reservation is not None: _CreateHelper._build_schema_sub_resource_create(capacity_reservation.set_prop("capacityReservationGroup", AAZObjectType, ".capacity_reservation_group")) + capacity_reservation.set_prop("disableCapacityReservationAssignment", AAZBoolType, ".disable_capacity_reservation_assignment") diagnostics_profile = _builder.get(".properties.virtualMachineProfile.diagnosticsProfile") if diagnostics_profile is not None: @@ -2281,6 +2421,7 @@ def content(self): hardware_profile = _builder.get(".properties.virtualMachineProfile.hardwareProfile") if hardware_profile is not None: + hardware_profile.set_prop("processorMode", AAZStrType, ".processor_mode") hardware_profile.set_prop("vmSizeProperties", AAZObjectType, ".vm_size_properties") vm_size_properties = _builder.get(".properties.virtualMachineProfile.hardwareProfile.vmSizeProperties") @@ -2288,12 +2429,26 @@ def content(self): vm_size_properties.set_prop("vCPUsAvailable", AAZIntType, ".v_cp_us_available") vm_size_properties.set_prop("vCPUsPerCore", AAZIntType, ".v_cp_us_per_core") + interconnect_block_profile = _builder.get(".properties.virtualMachineProfile.interconnectBlockProfile") + if interconnect_block_profile is not None: + _CreateHelper._build_schema_api_entity_reference_create(interconnect_block_profile.set_prop("interconnectBlock", AAZObjectType, ".interconnect_block")) + network_profile = _builder.get(".properties.virtualMachineProfile.networkProfile") if network_profile is not None: _CreateHelper._build_schema_api_entity_reference_create(network_profile.set_prop("healthProbe", AAZObjectType, ".health_probe")) + network_profile.set_prop("interconnectGroupProfile", AAZObjectType, ".interconnect_group_profile") network_profile.set_prop("networkApiVersion", AAZStrType, ".network_api_version") network_profile.set_prop("networkInterfaceConfigurations", AAZListType, ".network_interface_configurations") + interconnect_group_profile = _builder.get(".properties.virtualMachineProfile.networkProfile.interconnectGroupProfile") + if interconnect_group_profile is not None: + _CreateHelper._build_schema_sub_resource_create(interconnect_group_profile.set_prop("interconnectGroup", AAZObjectType, ".interconnect_group")) + interconnect_group_profile.set_prop("subgroups", AAZListType, ".subgroups") + + subgroups = _builder.get(".properties.virtualMachineProfile.networkProfile.interconnectGroupProfile.subgroups") + if subgroups is not None: + _CreateHelper._build_schema_sub_resource_create(subgroups.set_elements(AAZObjectType, ".")) + network_interface_configurations = _builder.get(".properties.virtualMachineProfile.networkProfile.networkInterfaceConfigurations") if network_interface_configurations is not None: network_interface_configurations.set_elements(AAZObjectType, ".") @@ -2389,6 +2544,7 @@ def content(self): _elements = _builder.get(".properties.virtualMachineProfile.networkProfile.networkInterfaceConfigurations[].properties.ipConfigurations[].properties.publicIPAddressConfiguration.properties.ipTags[]") if _elements is not None: + _elements.set_prop("firstPartyServiceTagId", AAZStrType, ".first_party_service_tag_id") _elements.set_prop("ipTagType", AAZStrType, ".ip_tag_type") _elements.set_prop("tag", AAZStrType, ".tag") @@ -2570,6 +2726,7 @@ def content(self): storage_profile = _builder.get(".properties.virtualMachineProfile.storageProfile") if storage_profile is not None: storage_profile.set_prop("dataDisks", AAZListType, ".data_disks") + storage_profile.set_prop("diskApiVersion", AAZStrType, ".disk_api_version") storage_profile.set_prop("diskControllerType", AAZStrType, ".disk_controller_type") storage_profile.set_prop("imageReference", AAZObjectType, ".image_reference") storage_profile.set_prop("osDisk", AAZObjectType, ".os_disk") @@ -3010,10 +3167,16 @@ def _build_schema_on_200_201(cls): sku_profile.allocation_strategy = AAZStrType( serialized_name="allocationStrategy", ) + sku_profile.automatic_sku_migration_policy = AAZObjectType( + serialized_name="automaticSkuMigrationPolicy", + ) sku_profile.vm_sizes = AAZListType( serialized_name="vmSizes", ) + automatic_sku_migration_policy = cls._schema_on_200_201.properties.sku_profile.automatic_sku_migration_policy + automatic_sku_migration_policy.enabled = AAZBoolType() + vm_sizes = cls._schema_on_200_201.properties.sku_profile.vm_sizes vm_sizes.Element = AAZObjectType() @@ -3098,6 +3261,9 @@ def _build_schema_on_200_201(cls): virtual_machine_profile.hardware_profile = AAZObjectType( serialized_name="hardwareProfile", ) + virtual_machine_profile.interconnect_block_profile = AAZObjectType( + serialized_name="interconnectBlockProfile", + ) virtual_machine_profile.license_type = AAZStrType( serialized_name="licenseType", ) @@ -3166,6 +3332,9 @@ def _build_schema_on_200_201(cls): serialized_name="capacityReservationGroup", ) _CreateHelper._build_schema_sub_resource_read(capacity_reservation.capacity_reservation_group) + capacity_reservation.disable_capacity_reservation_assignment = AAZBoolType( + serialized_name="disableCapacityReservationAssignment", + ) diagnostics_profile = cls._schema_on_200_201.properties.virtual_machine_profile.diagnostics_profile diagnostics_profile.boot_diagnostics = AAZObjectType( @@ -3247,6 +3416,9 @@ def _build_schema_on_200_201(cls): provision_after_extensions.Element = AAZStrType() hardware_profile = cls._schema_on_200_201.properties.virtual_machine_profile.hardware_profile + hardware_profile.processor_mode = AAZStrType( + serialized_name="processorMode", + ) hardware_profile.vm_size_properties = AAZObjectType( serialized_name="vmSizeProperties", ) @@ -3259,11 +3431,20 @@ def _build_schema_on_200_201(cls): serialized_name="vCPUsPerCore", ) + interconnect_block_profile = cls._schema_on_200_201.properties.virtual_machine_profile.interconnect_block_profile + interconnect_block_profile.interconnect_block = AAZObjectType( + serialized_name="interconnectBlock", + ) + _CreateHelper._build_schema_api_entity_reference_read(interconnect_block_profile.interconnect_block) + network_profile = cls._schema_on_200_201.properties.virtual_machine_profile.network_profile network_profile.health_probe = AAZObjectType( serialized_name="healthProbe", ) _CreateHelper._build_schema_api_entity_reference_read(network_profile.health_probe) + network_profile.interconnect_group_profile = AAZObjectType( + serialized_name="interconnectGroupProfile", + ) network_profile.network_api_version = AAZStrType( serialized_name="networkApiVersion", ) @@ -3271,6 +3452,17 @@ def _build_schema_on_200_201(cls): serialized_name="networkInterfaceConfigurations", ) + interconnect_group_profile = cls._schema_on_200_201.properties.virtual_machine_profile.network_profile.interconnect_group_profile + interconnect_group_profile.interconnect_group = AAZObjectType( + serialized_name="interconnectGroup", + ) + _CreateHelper._build_schema_sub_resource_read(interconnect_group_profile.interconnect_group) + interconnect_group_profile.subgroups = AAZListType() + + subgroups = cls._schema_on_200_201.properties.virtual_machine_profile.network_profile.interconnect_group_profile.subgroups + subgroups.Element = AAZObjectType() + _CreateHelper._build_schema_sub_resource_read(subgroups.Element) + network_interface_configurations = cls._schema_on_200_201.properties.virtual_machine_profile.network_profile.network_interface_configurations network_interface_configurations.Element = AAZObjectType() @@ -3420,6 +3612,9 @@ def _build_schema_on_200_201(cls): ip_tags.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.virtual_machine_profile.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties.ip_tags.Element + _element.first_party_service_tag_id = AAZStrType( + serialized_name="firstPartyServiceTagId", + ) _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) @@ -3694,6 +3889,9 @@ def _build_schema_on_200_201(cls): storage_profile.data_disks = AAZListType( serialized_name="dataDisks", ) + storage_profile.disk_api_version = AAZStrType( + serialized_name="diskApiVersion", + ) storage_profile.disk_controller_type = AAZStrType( serialized_name="diskControllerType", ) @@ -3859,6 +4057,7 @@ def _build_schema_host_endpoint_settings_create(cls, _builder): return _builder.set_prop("inVMAccessControlProfileReferenceId", AAZStrType, ".in_vm_access_control_profile_reference_id") _builder.set_prop("mode", AAZStrType, ".mode") + _builder.set_prop("useLocalFileRules", AAZBoolType, ".use_local_file_rules") @classmethod def _build_schema_sub_resource_create(cls, _builder): @@ -3870,10 +4069,33 @@ def _build_schema_sub_resource_create(cls, _builder): def _build_schema_virtual_machine_scale_set_managed_disk_parameters_create(cls, _builder): if _builder is None: return + _builder.set_prop("additionalDiskProperties", AAZObjectType, ".additional_disk_properties") cls._build_schema_disk_encryption_set_parameters_create(_builder.set_prop("diskEncryptionSet", AAZObjectType, ".disk_encryption_set")) _builder.set_prop("securityProfile", AAZObjectType, ".security_profile") _builder.set_prop("storageAccountType", AAZStrType, ".storage_account_type") + additional_disk_properties = _builder.get(".additionalDiskProperties") + if additional_disk_properties is not None: + additional_disk_properties.set_prop("managedDiskProperties", AAZObjectType, ".managed_disk_properties") + + managed_disk_properties = _builder.get(".additionalDiskProperties.managedDiskProperties") + if managed_disk_properties is not None: + managed_disk_properties.set_prop("availabilityPolicy", AAZObjectType, ".availability_policy") + managed_disk_properties.set_prop("burstingEnabled", AAZBoolType, ".bursting_enabled") + managed_disk_properties.set_prop("diskAccessId", AAZStrType, ".disk_access_id") + managed_disk_properties.set_prop("diskIOPSReadOnly", AAZIntType, ".disk_iops_read_only") + managed_disk_properties.set_prop("diskMBpsReadOnly", AAZIntType, ".disk_m_bps_read_only") + managed_disk_properties.set_prop("logicalSectorSize", AAZIntType, ".logical_sector_size") + managed_disk_properties.set_prop("maxShares", AAZIntType, ".max_shares") + managed_disk_properties.set_prop("networkAccessPolicy", AAZStrType, ".network_access_policy") + managed_disk_properties.set_prop("optimizedForFrequentAttach", AAZBoolType, ".optimized_for_frequent_attach") + managed_disk_properties.set_prop("performancePlus", AAZBoolType, ".performance_plus") + managed_disk_properties.set_prop("tier", AAZStrType, ".tier") + + availability_policy = _builder.get(".additionalDiskProperties.managedDiskProperties.availabilityPolicy") + if availability_policy is not None: + availability_policy.set_prop("actionOnDiskDelay", AAZStrType, ".action_on_disk_delay") + security_profile = _builder.get(".securityProfile") if security_profile is not None: cls._build_schema_disk_encryption_set_parameters_create(security_profile.set_prop("diskEncryptionSet", AAZObjectType, ".disk_encryption_set")) @@ -3916,6 +4138,7 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): if cls._schema_host_endpoint_settings_read is not None: _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules return cls._schema_host_endpoint_settings_read = _schema_host_endpoint_settings_read = AAZObjectType() @@ -3925,9 +4148,13 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): serialized_name="inVMAccessControlProfileReferenceId", ) host_endpoint_settings_read.mode = AAZStrType() + host_endpoint_settings_read.use_local_file_rules = AAZBoolType( + serialized_name="useLocalFileRules", + ) _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules _schema_sub_resource_read = None @@ -3949,6 +4176,7 @@ def _build_schema_sub_resource_read(cls, _schema): @classmethod def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _schema): if cls._schema_virtual_machine_scale_set_managed_disk_parameters_read is not None: + _schema.additional_disk_properties = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.disk_encryption_set _schema.security_profile = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.security_profile _schema.storage_account_type = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.storage_account_type @@ -3957,6 +4185,9 @@ def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _s cls._schema_virtual_machine_scale_set_managed_disk_parameters_read = _schema_virtual_machine_scale_set_managed_disk_parameters_read = AAZObjectType() virtual_machine_scale_set_managed_disk_parameters_read = _schema_virtual_machine_scale_set_managed_disk_parameters_read + virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties = AAZObjectType( + serialized_name="additionalDiskProperties", + ) virtual_machine_scale_set_managed_disk_parameters_read.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", ) @@ -3968,6 +4199,49 @@ def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _s serialized_name="storageAccountType", ) + additional_disk_properties = _schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties + additional_disk_properties.managed_disk_properties = AAZObjectType( + serialized_name="managedDiskProperties", + ) + + managed_disk_properties = _schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties + managed_disk_properties.availability_policy = AAZObjectType( + serialized_name="availabilityPolicy", + ) + managed_disk_properties.bursting_enabled = AAZBoolType( + serialized_name="burstingEnabled", + ) + managed_disk_properties.disk_access_id = AAZStrType( + serialized_name="diskAccessId", + ) + managed_disk_properties.disk_iops_read_only = AAZIntType( + serialized_name="diskIOPSReadOnly", + ) + managed_disk_properties.disk_m_bps_read_only = AAZIntType( + serialized_name="diskMBpsReadOnly", + ) + managed_disk_properties.logical_sector_size = AAZIntType( + serialized_name="logicalSectorSize", + ) + managed_disk_properties.max_shares = AAZIntType( + serialized_name="maxShares", + ) + managed_disk_properties.network_access_policy = AAZStrType( + serialized_name="networkAccessPolicy", + ) + managed_disk_properties.optimized_for_frequent_attach = AAZBoolType( + serialized_name="optimizedForFrequentAttach", + ) + managed_disk_properties.performance_plus = AAZBoolType( + serialized_name="performancePlus", + ) + managed_disk_properties.tier = AAZStrType() + + availability_policy = _schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties.availability_policy + availability_policy.action_on_disk_delay = AAZStrType( + serialized_name="actionOnDiskDelay", + ) + security_profile = _schema_virtual_machine_scale_set_managed_disk_parameters_read.security_profile security_profile.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", @@ -3977,6 +4251,7 @@ def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _s serialized_name="securityEncryptionType", ) + _schema.additional_disk_properties = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.disk_encryption_set _schema.security_profile = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.security_profile _schema.storage_account_type = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.storage_account_type diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_show.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_show.py index ca1746349c1..b3c9408de34 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_show.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_show.py @@ -16,9 +16,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2025-11-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}", "2025-11-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}", "2026-04-01"], ] } @@ -122,7 +122,7 @@ def query_parameters(self): "$expand", self.ctx.args.expand, ), **self.serialize_query_param( - "api-version", "2025-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -500,10 +500,16 @@ def _build_schema_on_200(cls): sku_profile.allocation_strategy = AAZStrType( serialized_name="allocationStrategy", ) + sku_profile.automatic_sku_migration_policy = AAZObjectType( + serialized_name="automaticSkuMigrationPolicy", + ) sku_profile.vm_sizes = AAZListType( serialized_name="vmSizes", ) + automatic_sku_migration_policy = cls._schema_on_200.properties.sku_profile.automatic_sku_migration_policy + automatic_sku_migration_policy.enabled = AAZBoolType() + vm_sizes = cls._schema_on_200.properties.sku_profile.vm_sizes vm_sizes.Element = AAZObjectType() @@ -588,6 +594,9 @@ def _build_schema_on_200(cls): virtual_machine_profile.hardware_profile = AAZObjectType( serialized_name="hardwareProfile", ) + virtual_machine_profile.interconnect_block_profile = AAZObjectType( + serialized_name="interconnectBlockProfile", + ) virtual_machine_profile.license_type = AAZStrType( serialized_name="licenseType", ) @@ -656,6 +665,9 @@ def _build_schema_on_200(cls): serialized_name="capacityReservationGroup", ) _ShowHelper._build_schema_sub_resource_read(capacity_reservation.capacity_reservation_group) + capacity_reservation.disable_capacity_reservation_assignment = AAZBoolType( + serialized_name="disableCapacityReservationAssignment", + ) diagnostics_profile = cls._schema_on_200.properties.virtual_machine_profile.diagnostics_profile diagnostics_profile.boot_diagnostics = AAZObjectType( @@ -737,6 +749,9 @@ def _build_schema_on_200(cls): provision_after_extensions.Element = AAZStrType() hardware_profile = cls._schema_on_200.properties.virtual_machine_profile.hardware_profile + hardware_profile.processor_mode = AAZStrType( + serialized_name="processorMode", + ) hardware_profile.vm_size_properties = AAZObjectType( serialized_name="vmSizeProperties", ) @@ -749,11 +764,20 @@ def _build_schema_on_200(cls): serialized_name="vCPUsPerCore", ) + interconnect_block_profile = cls._schema_on_200.properties.virtual_machine_profile.interconnect_block_profile + interconnect_block_profile.interconnect_block = AAZObjectType( + serialized_name="interconnectBlock", + ) + _ShowHelper._build_schema_api_entity_reference_read(interconnect_block_profile.interconnect_block) + network_profile = cls._schema_on_200.properties.virtual_machine_profile.network_profile network_profile.health_probe = AAZObjectType( serialized_name="healthProbe", ) _ShowHelper._build_schema_api_entity_reference_read(network_profile.health_probe) + network_profile.interconnect_group_profile = AAZObjectType( + serialized_name="interconnectGroupProfile", + ) network_profile.network_api_version = AAZStrType( serialized_name="networkApiVersion", ) @@ -761,6 +785,17 @@ def _build_schema_on_200(cls): serialized_name="networkInterfaceConfigurations", ) + interconnect_group_profile = cls._schema_on_200.properties.virtual_machine_profile.network_profile.interconnect_group_profile + interconnect_group_profile.interconnect_group = AAZObjectType( + serialized_name="interconnectGroup", + ) + _ShowHelper._build_schema_sub_resource_read(interconnect_group_profile.interconnect_group) + interconnect_group_profile.subgroups = AAZListType() + + subgroups = cls._schema_on_200.properties.virtual_machine_profile.network_profile.interconnect_group_profile.subgroups + subgroups.Element = AAZObjectType() + _ShowHelper._build_schema_sub_resource_read(subgroups.Element) + network_interface_configurations = cls._schema_on_200.properties.virtual_machine_profile.network_profile.network_interface_configurations network_interface_configurations.Element = AAZObjectType() @@ -910,6 +945,9 @@ def _build_schema_on_200(cls): ip_tags.Element = AAZObjectType() _element = cls._schema_on_200.properties.virtual_machine_profile.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties.ip_tags.Element + _element.first_party_service_tag_id = AAZStrType( + serialized_name="firstPartyServiceTagId", + ) _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) @@ -1184,6 +1222,9 @@ def _build_schema_on_200(cls): storage_profile.data_disks = AAZListType( serialized_name="dataDisks", ) + storage_profile.disk_api_version = AAZStrType( + serialized_name="diskApiVersion", + ) storage_profile.disk_controller_type = AAZStrType( serialized_name="diskControllerType", ) @@ -1368,6 +1409,7 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): if cls._schema_host_endpoint_settings_read is not None: _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules return cls._schema_host_endpoint_settings_read = _schema_host_endpoint_settings_read = AAZObjectType() @@ -1377,9 +1419,13 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): serialized_name="inVMAccessControlProfileReferenceId", ) host_endpoint_settings_read.mode = AAZStrType() + host_endpoint_settings_read.use_local_file_rules = AAZBoolType( + serialized_name="useLocalFileRules", + ) _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules _schema_sub_resource_read = None @@ -1401,6 +1447,7 @@ def _build_schema_sub_resource_read(cls, _schema): @classmethod def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _schema): if cls._schema_virtual_machine_scale_set_managed_disk_parameters_read is not None: + _schema.additional_disk_properties = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.disk_encryption_set _schema.security_profile = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.security_profile _schema.storage_account_type = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.storage_account_type @@ -1409,6 +1456,9 @@ def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _s cls._schema_virtual_machine_scale_set_managed_disk_parameters_read = _schema_virtual_machine_scale_set_managed_disk_parameters_read = AAZObjectType() virtual_machine_scale_set_managed_disk_parameters_read = _schema_virtual_machine_scale_set_managed_disk_parameters_read + virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties = AAZObjectType( + serialized_name="additionalDiskProperties", + ) virtual_machine_scale_set_managed_disk_parameters_read.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", ) @@ -1420,6 +1470,49 @@ def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _s serialized_name="storageAccountType", ) + additional_disk_properties = _schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties + additional_disk_properties.managed_disk_properties = AAZObjectType( + serialized_name="managedDiskProperties", + ) + + managed_disk_properties = _schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties + managed_disk_properties.availability_policy = AAZObjectType( + serialized_name="availabilityPolicy", + ) + managed_disk_properties.bursting_enabled = AAZBoolType( + serialized_name="burstingEnabled", + ) + managed_disk_properties.disk_access_id = AAZStrType( + serialized_name="diskAccessId", + ) + managed_disk_properties.disk_iops_read_only = AAZIntType( + serialized_name="diskIOPSReadOnly", + ) + managed_disk_properties.disk_m_bps_read_only = AAZIntType( + serialized_name="diskMBpsReadOnly", + ) + managed_disk_properties.logical_sector_size = AAZIntType( + serialized_name="logicalSectorSize", + ) + managed_disk_properties.max_shares = AAZIntType( + serialized_name="maxShares", + ) + managed_disk_properties.network_access_policy = AAZStrType( + serialized_name="networkAccessPolicy", + ) + managed_disk_properties.optimized_for_frequent_attach = AAZBoolType( + serialized_name="optimizedForFrequentAttach", + ) + managed_disk_properties.performance_plus = AAZBoolType( + serialized_name="performancePlus", + ) + managed_disk_properties.tier = AAZStrType() + + availability_policy = _schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties.availability_policy + availability_policy.action_on_disk_delay = AAZStrType( + serialized_name="actionOnDiskDelay", + ) + security_profile = _schema_virtual_machine_scale_set_managed_disk_parameters_read.security_profile security_profile.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", @@ -1429,6 +1522,7 @@ def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _s serialized_name="securityEncryptionType", ) + _schema.additional_disk_properties = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.disk_encryption_set _schema.security_profile = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.security_profile _schema.storage_account_type = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.storage_account_type diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_update.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_update.py index 7f50fb6b0aa..c6da01e2484 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_update.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_update.py @@ -16,9 +16,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2025-11-01", + "version": "2026-04-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}", "2025-11-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}", "2026-04-01"], ] } @@ -676,12 +676,24 @@ def _build_arguments_schema(cls, *args, **kwargs): nullable=True, enum={"CapacityOptimized": "CapacityOptimized", "LowestPrice": "LowestPrice", "Prioritized": "Prioritized"}, ) + sku_profile.automatic_sku_migration_policy = AAZObjectArg( + options=["automatic-sku-migration-policy"], + help="Specifies the policy that controls whether the platform may automatically migrate scale set instances to a different VM size from the SKU profile depending on platform demands. When omitted, automatic SKU migration is disabled.", + nullable=True, + ) sku_profile.vm_sizes = AAZListArg( options=["vm-sizes"], help="Specifies the VM sizes for the virtual machine scale set.", nullable=True, ) + automatic_sku_migration_policy = cls._args_schema.sku_profile.automatic_sku_migration_policy + automatic_sku_migration_policy.enabled = AAZBoolArg( + options=["enabled"], + help="Specifies whether automatic SKU migration should be enabled on the virtual machine scale set. The default value is false.", + nullable=True, + ) + vm_sizes = cls._args_schema.sku_profile.vm_sizes vm_sizes.Element = AAZObjectArg( nullable=True, @@ -841,6 +853,11 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01.", nullable=True, ) + virtual_machine_profile.interconnect_block_profile = AAZObjectArg( + options=["interconnect-block-profile"], + help="Specifies the Interconnect Block related details of a Scale Set. Minimum api-version: 2026-03-01.", + nullable=True, + ) virtual_machine_profile.license_type = AAZStrArg( options=["license-type"], help="Specifies that the image or disk that is being used was licensed on-premises.

Possible values for Windows Server operating system are:

Windows_Client

Windows_Server

Possible values for Linux Server operating system are:

RHEL_BYOS (for RHEL)

SLES_BYOS (for SUSE)

For more information, see [Azure Hybrid Use Benefit for Windows Server](https://learn.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing)

[Azure Hybrid Use Benefit for Linux Server](https://learn.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux)

Minimum api-version: 2015-06-15", @@ -860,7 +877,7 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["priority"], help="Specifies the priority for the virtual machines in the scale set. Minimum api-version: 2017-10-30-preview.", nullable=True, - enum={"Low": "Low", "Regular": "Regular", "Spot": "Spot"}, + enum={"Low": "Low", "Regular": "Regular", "Spot": "Spot", "SpotPlus": "SpotPlus"}, ) virtual_machine_profile.scheduled_events_profile = AAZObjectArg( options=["scheduled-events-profile"], @@ -950,6 +967,11 @@ def _build_arguments_schema(cls, *args, **kwargs): nullable=True, ) cls._build_args_sub_resource_update(capacity_reservation.capacity_reservation_group) + capacity_reservation.disable_capacity_reservation_assignment = AAZBoolArg( + options=["disable-capacity-reservation-assignment"], + help="Specifies whether the virtual machine is explicitly opted out from being associated with any capacity reservation. When set to true, the virtual machine will not be allowed to implicitly or explicitly associate with any type of capacity reservation and will consume capacity from the publicly available capacity. Minimum api-version: 2026-04-01.", + nullable=True, + ) diagnostics_profile = cls._args_schema.virtual_machine_profile.diagnostics_profile diagnostics_profile.boot_diagnostics = AAZObjectArg( @@ -1069,6 +1091,12 @@ def _build_arguments_schema(cls, *args, **kwargs): ) hardware_profile = cls._args_schema.virtual_machine_profile.hardware_profile + hardware_profile.processor_mode = AAZStrArg( + options=["processor-mode"], + help="Specifies the processor mode for the virtual machine scale set. Optional; if omitted, the platform default applies (currently Deterministic). This property can be updated on a running VMSS without deallocation or reboot. Minimum api-version: 2026-04-01.", + nullable=True, + enum={"Deterministic": "Deterministic", "Opportunistic": "Opportunistic"}, + ) hardware_profile.vm_size_properties = AAZObjectArg( options=["vm-size-properties"], help="Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details.", @@ -1087,6 +1115,14 @@ def _build_arguments_schema(cls, *args, **kwargs): nullable=True, ) + interconnect_block_profile = cls._args_schema.virtual_machine_profile.interconnect_block_profile + interconnect_block_profile.interconnect_block = AAZObjectArg( + options=["interconnect-block"], + help="Specifies the Interconnect Block resource ID that should be used for allocating the Virtual Machine or Scale Set VM instances provided enough capacity has been reserved.", + nullable=True, + ) + cls._build_args_api_entity_reference_update(interconnect_block_profile.interconnect_block) + network_profile = cls._args_schema.virtual_machine_profile.network_profile network_profile.health_probe = AAZObjectArg( options=["health-probe"], @@ -1094,6 +1130,11 @@ def _build_arguments_schema(cls, *args, **kwargs): nullable=True, ) cls._build_args_api_entity_reference_update(network_profile.health_probe) + network_profile.interconnect_group_profile = AAZObjectArg( + options=["interconnect-group-profile"], + help="Specifies the interconnect group profile to associate with the scale set. Minimum api-version: 2026-03-01.", + nullable=True, + ) network_profile.network_api_version = AAZStrArg( options=["network-api-version"], help="specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with orchestration mode 'Flexible'", @@ -1106,6 +1147,25 @@ def _build_arguments_schema(cls, *args, **kwargs): nullable=True, ) + interconnect_group_profile = cls._args_schema.virtual_machine_profile.network_profile.interconnect_group_profile + interconnect_group_profile.interconnect_group = AAZObjectArg( + options=["interconnect-group"], + help="Reference to the interconnect group resource.", + nullable=True, + ) + cls._build_args_sub_resource_update(interconnect_group_profile.interconnect_group) + interconnect_group_profile.subgroups = AAZListArg( + options=["subgroups"], + help="The list of subgroup references within the interconnect group.", + nullable=True, + ) + + subgroups = cls._args_schema.virtual_machine_profile.network_profile.interconnect_group_profile.subgroups + subgroups.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_sub_resource_update(subgroups.Element) + network_interface_configurations = cls._args_schema.virtual_machine_profile.network_profile.network_interface_configurations network_interface_configurations.Element = AAZObjectArg( nullable=True, @@ -1336,6 +1396,11 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _element = cls._args_schema.virtual_machine_profile.network_profile.network_interface_configurations.Element.ip_configurations.Element.public_ip_address_configuration.ip_tags.Element + _element.first_party_service_tag_id = AAZResourceIdArg( + options=["first-party-service-tag-id"], + help="The first party service tag resource identifier associated with the public IP address.", + nullable=True, + ) _element.ip_tag_type = AAZStrArg( options=["ip-tag-type"], help="IP tag type. Example: FirstPartyUsage.", @@ -1815,6 +1880,12 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Specifies the parameters that are used to add data disks to the virtual machines in the scale set. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://learn.microsoft.com/azure/virtual-machines/managed-disks-overview).", nullable=True, ) + storage_profile.disk_api_version = AAZStrArg( + options=["disk-api-version"], + help="Specifies the Disk API version used when applying additionalDiskProperties to managed disks. The value must be in the format YYYY-MM-DD (e.g., \"2026-03-02\").", + nullable=True, + enum={"2025-01-02": "2025-01-02", "2026-03-02": "2026-03-02"}, + ) storage_profile.disk_controller_type = AAZStrArg( options=["disk-controller-type"], help="Specifies the disk controller type configured for the virtual machines in the scale set. Minimum api-version: 2022-08-01", @@ -2082,6 +2153,7 @@ def _build_args_host_endpoint_settings_update(cls, _schema): if cls._args_host_endpoint_settings_update is not None: _schema.in_vm_access_control_profile_reference_id = cls._args_host_endpoint_settings_update.in_vm_access_control_profile_reference_id _schema.mode = cls._args_host_endpoint_settings_update.mode + _schema.use_local_file_rules = cls._args_host_endpoint_settings_update.use_local_file_rules return cls._args_host_endpoint_settings_update = AAZObjectArg( @@ -2100,9 +2172,15 @@ def _build_args_host_endpoint_settings_update(cls, _schema): nullable=True, enum={"Audit": "Audit", "Disabled": "Disabled", "Enforce": "Enforce"}, ) + host_endpoint_settings_update.use_local_file_rules = AAZBoolArg( + options=["use-local-file-rules"], + help="When set to true, instructs the GuestProxyAgent inside the VM to load additional access control rules defined in a local file on the VM.", + nullable=True, + ) _schema.in_vm_access_control_profile_reference_id = cls._args_host_endpoint_settings_update.in_vm_access_control_profile_reference_id _schema.mode = cls._args_host_endpoint_settings_update.mode + _schema.use_local_file_rules = cls._args_host_endpoint_settings_update.use_local_file_rules _args_sub_resource_update = None @@ -2130,6 +2208,7 @@ def _build_args_sub_resource_update(cls, _schema): @classmethod def _build_args_virtual_machine_scale_set_managed_disk_parameters_update(cls, _schema): if cls._args_virtual_machine_scale_set_managed_disk_parameters_update is not None: + _schema.additional_disk_properties = cls._args_virtual_machine_scale_set_managed_disk_parameters_update.additional_disk_properties _schema.disk_encryption_set = cls._args_virtual_machine_scale_set_managed_disk_parameters_update.disk_encryption_set _schema.security_profile = cls._args_virtual_machine_scale_set_managed_disk_parameters_update.security_profile _schema.storage_account_type = cls._args_virtual_machine_scale_set_managed_disk_parameters_update.storage_account_type @@ -2140,6 +2219,11 @@ def _build_args_virtual_machine_scale_set_managed_disk_parameters_update(cls, _s ) virtual_machine_scale_set_managed_disk_parameters_update = cls._args_virtual_machine_scale_set_managed_disk_parameters_update + virtual_machine_scale_set_managed_disk_parameters_update.additional_disk_properties = AAZObjectArg( + options=["additional-disk-properties"], + help="Specifies additional properties for the managed disk that can be set at the time of implicit creation of the disk. This property is not captured for Restore Points.", + nullable=True, + ) virtual_machine_scale_set_managed_disk_parameters_update.disk_encryption_set = AAZObjectArg( options=["disk-encryption-set"], help="Specifies the customer managed disk encryption set resource id for the managed disk.", @@ -2158,6 +2242,82 @@ def _build_args_virtual_machine_scale_set_managed_disk_parameters_update(cls, _s enum={"PremiumV2_LRS": "PremiumV2_LRS", "Premium_LRS": "Premium_LRS", "Premium_ZRS": "Premium_ZRS", "StandardSSD_LRS": "StandardSSD_LRS", "StandardSSD_ZRS": "StandardSSD_ZRS", "Standard_LRS": "Standard_LRS", "UltraSSD_LRS": "UltraSSD_LRS"}, ) + additional_disk_properties = cls._args_virtual_machine_scale_set_managed_disk_parameters_update.additional_disk_properties + additional_disk_properties.managed_disk_properties = AAZObjectArg( + options=["managed-disk-properties"], + help="Specifies the managed disk properties that can be set at the time of implicit creation of the disk.", + nullable=True, + ) + + managed_disk_properties = cls._args_virtual_machine_scale_set_managed_disk_parameters_update.additional_disk_properties.managed_disk_properties + managed_disk_properties.availability_policy = AAZObjectArg( + options=["availability-policy"], + help="In the case of an availability or connectivity issue with the disk, specify the behavior of your VM.", + nullable=True, + ) + managed_disk_properties.bursting_enabled = AAZBoolArg( + options=["bursting-enabled"], + help="Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.", + nullable=True, + ) + managed_disk_properties.disk_access_id = AAZStrArg( + options=["disk-access-id"], + help="Azure resource Id of the DiskAccess resource for using private endpoints on disks.", + nullable=True, + ) + managed_disk_properties.disk_iops_read_only = AAZIntArg( + options=["disk-iops-read-only"], + help="The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.", + nullable=True, + ) + managed_disk_properties.disk_m_bps_read_only = AAZIntArg( + options=["disk-m-bps-read-only"], + help="The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.", + nullable=True, + ) + managed_disk_properties.logical_sector_size = AAZIntArg( + options=["logical-sector-size"], + help="Logical sector size in bytes for Ultra Disks. Supported values are 512 and 4096. 4096 is the default.", + nullable=True, + ) + managed_disk_properties.max_shares = AAZIntArg( + options=["max-shares"], + help="The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. Applies to data disks only.", + nullable=True, + fmt=AAZIntArgFormat( + minimum=1, + ), + ) + managed_disk_properties.network_access_policy = AAZStrArg( + options=["network-access-policy"], + help="Policy for accessing the disk via network.", + nullable=True, + enum={"AllowAll": "AllowAll", "AllowPrivate": "AllowPrivate", "DenyAll": "DenyAll"}, + ) + managed_disk_properties.optimized_for_frequent_attach = AAZBoolArg( + options=["optimized-for-frequent-attach"], + help="Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine.", + nullable=True, + ) + managed_disk_properties.performance_plus = AAZBoolArg( + options=["performance-plus"], + help="Set this flag to true to get a boost on the performance target of the disk deployed. This flag can only be set on disk creation time and cannot be disabled after enabled.", + nullable=True, + ) + managed_disk_properties.tier = AAZStrArg( + options=["tier"], + help="Performance tier of the disk (e.g., P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.", + nullable=True, + ) + + availability_policy = cls._args_virtual_machine_scale_set_managed_disk_parameters_update.additional_disk_properties.managed_disk_properties.availability_policy + availability_policy.action_on_disk_delay = AAZStrArg( + options=["action-on-disk-delay"], + help="Determines how to handle disks with slow I/O.", + nullable=True, + enum={"AutomaticReattach": "AutomaticReattach", "None": "None"}, + ) + security_profile = cls._args_virtual_machine_scale_set_managed_disk_parameters_update.security_profile security_profile.disk_encryption_set = AAZObjectArg( options=["disk-encryption-set"], @@ -2172,6 +2332,7 @@ def _build_args_virtual_machine_scale_set_managed_disk_parameters_update(cls, _s enum={"DiskWithVMGuestState": "DiskWithVMGuestState", "NonPersistedTPM": "NonPersistedTPM", "VMGuestStateOnly": "VMGuestStateOnly"}, ) + _schema.additional_disk_properties = cls._args_virtual_machine_scale_set_managed_disk_parameters_update.additional_disk_properties _schema.disk_encryption_set = cls._args_virtual_machine_scale_set_managed_disk_parameters_update.disk_encryption_set _schema.security_profile = cls._args_virtual_machine_scale_set_managed_disk_parameters_update.security_profile _schema.storage_account_type = cls._args_virtual_machine_scale_set_managed_disk_parameters_update.storage_account_type @@ -2254,7 +2415,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -2353,7 +2514,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2025-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -2615,8 +2776,13 @@ def _update_instance(self, instance): sku_profile = _builder.get(".properties.skuProfile") if sku_profile is not None: sku_profile.set_prop("allocationStrategy", AAZStrType, ".allocation_strategy") + sku_profile.set_prop("automaticSkuMigrationPolicy", AAZObjectType, ".automatic_sku_migration_policy") sku_profile.set_prop("vmSizes", AAZListType, ".vm_sizes") + automatic_sku_migration_policy = _builder.get(".properties.skuProfile.automaticSkuMigrationPolicy") + if automatic_sku_migration_policy is not None: + automatic_sku_migration_policy.set_prop("enabled", AAZBoolType, ".enabled") + vm_sizes = _builder.get(".properties.skuProfile.vmSizes") if vm_sizes is not None: vm_sizes.set_elements(AAZObjectType, ".") @@ -2664,6 +2830,7 @@ def _update_instance(self, instance): virtual_machine_profile.set_prop("evictionPolicy", AAZStrType, ".eviction_policy") virtual_machine_profile.set_prop("extensionProfile", AAZObjectType, ".extension_profile") virtual_machine_profile.set_prop("hardwareProfile", AAZObjectType, ".hardware_profile") + virtual_machine_profile.set_prop("interconnectBlockProfile", AAZObjectType, ".interconnect_block_profile") virtual_machine_profile.set_prop("licenseType", AAZStrType, ".license_type") virtual_machine_profile.set_prop("networkProfile", AAZObjectType, ".network_profile") virtual_machine_profile.set_prop("osProfile", AAZObjectType, ".os_profile") @@ -2699,6 +2866,7 @@ def _update_instance(self, instance): capacity_reservation = _builder.get(".properties.virtualMachineProfile.capacityReservation") if capacity_reservation is not None: _UpdateHelper._build_schema_sub_resource_update(capacity_reservation.set_prop("capacityReservationGroup", AAZObjectType, ".capacity_reservation_group")) + capacity_reservation.set_prop("disableCapacityReservationAssignment", AAZBoolType, ".disable_capacity_reservation_assignment") diagnostics_profile = _builder.get(".properties.virtualMachineProfile.diagnosticsProfile") if diagnostics_profile is not None: @@ -2748,6 +2916,7 @@ def _update_instance(self, instance): hardware_profile = _builder.get(".properties.virtualMachineProfile.hardwareProfile") if hardware_profile is not None: + hardware_profile.set_prop("processorMode", AAZStrType, ".processor_mode") hardware_profile.set_prop("vmSizeProperties", AAZObjectType, ".vm_size_properties") vm_size_properties = _builder.get(".properties.virtualMachineProfile.hardwareProfile.vmSizeProperties") @@ -2755,12 +2924,26 @@ def _update_instance(self, instance): vm_size_properties.set_prop("vCPUsAvailable", AAZIntType, ".v_cp_us_available") vm_size_properties.set_prop("vCPUsPerCore", AAZIntType, ".v_cp_us_per_core") + interconnect_block_profile = _builder.get(".properties.virtualMachineProfile.interconnectBlockProfile") + if interconnect_block_profile is not None: + _UpdateHelper._build_schema_api_entity_reference_update(interconnect_block_profile.set_prop("interconnectBlock", AAZObjectType, ".interconnect_block")) + network_profile = _builder.get(".properties.virtualMachineProfile.networkProfile") if network_profile is not None: _UpdateHelper._build_schema_api_entity_reference_update(network_profile.set_prop("healthProbe", AAZObjectType, ".health_probe")) + network_profile.set_prop("interconnectGroupProfile", AAZObjectType, ".interconnect_group_profile") network_profile.set_prop("networkApiVersion", AAZStrType, ".network_api_version") network_profile.set_prop("networkInterfaceConfigurations", AAZListType, ".network_interface_configurations") + interconnect_group_profile = _builder.get(".properties.virtualMachineProfile.networkProfile.interconnectGroupProfile") + if interconnect_group_profile is not None: + _UpdateHelper._build_schema_sub_resource_update(interconnect_group_profile.set_prop("interconnectGroup", AAZObjectType, ".interconnect_group")) + interconnect_group_profile.set_prop("subgroups", AAZListType, ".subgroups") + + subgroups = _builder.get(".properties.virtualMachineProfile.networkProfile.interconnectGroupProfile.subgroups") + if subgroups is not None: + _UpdateHelper._build_schema_sub_resource_update(subgroups.set_elements(AAZObjectType, ".")) + network_interface_configurations = _builder.get(".properties.virtualMachineProfile.networkProfile.networkInterfaceConfigurations") if network_interface_configurations is not None: network_interface_configurations.set_elements(AAZObjectType, ".") @@ -2856,6 +3039,7 @@ def _update_instance(self, instance): _elements = _builder.get(".properties.virtualMachineProfile.networkProfile.networkInterfaceConfigurations[].properties.ipConfigurations[].properties.publicIPAddressConfiguration.properties.ipTags[]") if _elements is not None: + _elements.set_prop("firstPartyServiceTagId", AAZStrType, ".first_party_service_tag_id") _elements.set_prop("ipTagType", AAZStrType, ".ip_tag_type") _elements.set_prop("tag", AAZStrType, ".tag") @@ -3037,6 +3221,7 @@ def _update_instance(self, instance): storage_profile = _builder.get(".properties.virtualMachineProfile.storageProfile") if storage_profile is not None: storage_profile.set_prop("dataDisks", AAZListType, ".data_disks") + storage_profile.set_prop("diskApiVersion", AAZStrType, ".disk_api_version") storage_profile.set_prop("diskControllerType", AAZStrType, ".disk_controller_type") storage_profile.set_prop("imageReference", AAZObjectType, ".image_reference") storage_profile.set_prop("osDisk", AAZObjectType, ".os_disk") @@ -3144,6 +3329,7 @@ def _build_schema_host_endpoint_settings_update(cls, _builder): return _builder.set_prop("inVMAccessControlProfileReferenceId", AAZStrType, ".in_vm_access_control_profile_reference_id") _builder.set_prop("mode", AAZStrType, ".mode") + _builder.set_prop("useLocalFileRules", AAZBoolType, ".use_local_file_rules") @classmethod def _build_schema_sub_resource_update(cls, _builder): @@ -3155,10 +3341,33 @@ def _build_schema_sub_resource_update(cls, _builder): def _build_schema_virtual_machine_scale_set_managed_disk_parameters_update(cls, _builder): if _builder is None: return + _builder.set_prop("additionalDiskProperties", AAZObjectType, ".additional_disk_properties") cls._build_schema_disk_encryption_set_parameters_update(_builder.set_prop("diskEncryptionSet", AAZObjectType, ".disk_encryption_set")) _builder.set_prop("securityProfile", AAZObjectType, ".security_profile") _builder.set_prop("storageAccountType", AAZStrType, ".storage_account_type") + additional_disk_properties = _builder.get(".additionalDiskProperties") + if additional_disk_properties is not None: + additional_disk_properties.set_prop("managedDiskProperties", AAZObjectType, ".managed_disk_properties") + + managed_disk_properties = _builder.get(".additionalDiskProperties.managedDiskProperties") + if managed_disk_properties is not None: + managed_disk_properties.set_prop("availabilityPolicy", AAZObjectType, ".availability_policy") + managed_disk_properties.set_prop("burstingEnabled", AAZBoolType, ".bursting_enabled") + managed_disk_properties.set_prop("diskAccessId", AAZStrType, ".disk_access_id") + managed_disk_properties.set_prop("diskIOPSReadOnly", AAZIntType, ".disk_iops_read_only") + managed_disk_properties.set_prop("diskMBpsReadOnly", AAZIntType, ".disk_m_bps_read_only") + managed_disk_properties.set_prop("logicalSectorSize", AAZIntType, ".logical_sector_size") + managed_disk_properties.set_prop("maxShares", AAZIntType, ".max_shares") + managed_disk_properties.set_prop("networkAccessPolicy", AAZStrType, ".network_access_policy") + managed_disk_properties.set_prop("optimizedForFrequentAttach", AAZBoolType, ".optimized_for_frequent_attach") + managed_disk_properties.set_prop("performancePlus", AAZBoolType, ".performance_plus") + managed_disk_properties.set_prop("tier", AAZStrType, ".tier") + + availability_policy = _builder.get(".additionalDiskProperties.managedDiskProperties.availabilityPolicy") + if availability_policy is not None: + availability_policy.set_prop("actionOnDiskDelay", AAZStrType, ".action_on_disk_delay") + security_profile = _builder.get(".securityProfile") if security_profile is not None: cls._build_schema_disk_encryption_set_parameters_update(security_profile.set_prop("diskEncryptionSet", AAZObjectType, ".disk_encryption_set")) @@ -3201,6 +3410,7 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): if cls._schema_host_endpoint_settings_read is not None: _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules return cls._schema_host_endpoint_settings_read = _schema_host_endpoint_settings_read = AAZObjectType() @@ -3210,9 +3420,13 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): serialized_name="inVMAccessControlProfileReferenceId", ) host_endpoint_settings_read.mode = AAZStrType() + host_endpoint_settings_read.use_local_file_rules = AAZBoolType( + serialized_name="useLocalFileRules", + ) _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules _schema_sub_resource_read = None @@ -3234,6 +3448,7 @@ def _build_schema_sub_resource_read(cls, _schema): @classmethod def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _schema): if cls._schema_virtual_machine_scale_set_managed_disk_parameters_read is not None: + _schema.additional_disk_properties = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.disk_encryption_set _schema.security_profile = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.security_profile _schema.storage_account_type = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.storage_account_type @@ -3242,6 +3457,9 @@ def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _s cls._schema_virtual_machine_scale_set_managed_disk_parameters_read = _schema_virtual_machine_scale_set_managed_disk_parameters_read = AAZObjectType() virtual_machine_scale_set_managed_disk_parameters_read = _schema_virtual_machine_scale_set_managed_disk_parameters_read + virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties = AAZObjectType( + serialized_name="additionalDiskProperties", + ) virtual_machine_scale_set_managed_disk_parameters_read.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", ) @@ -3253,6 +3471,49 @@ def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _s serialized_name="storageAccountType", ) + additional_disk_properties = _schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties + additional_disk_properties.managed_disk_properties = AAZObjectType( + serialized_name="managedDiskProperties", + ) + + managed_disk_properties = _schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties + managed_disk_properties.availability_policy = AAZObjectType( + serialized_name="availabilityPolicy", + ) + managed_disk_properties.bursting_enabled = AAZBoolType( + serialized_name="burstingEnabled", + ) + managed_disk_properties.disk_access_id = AAZStrType( + serialized_name="diskAccessId", + ) + managed_disk_properties.disk_iops_read_only = AAZIntType( + serialized_name="diskIOPSReadOnly", + ) + managed_disk_properties.disk_m_bps_read_only = AAZIntType( + serialized_name="diskMBpsReadOnly", + ) + managed_disk_properties.logical_sector_size = AAZIntType( + serialized_name="logicalSectorSize", + ) + managed_disk_properties.max_shares = AAZIntType( + serialized_name="maxShares", + ) + managed_disk_properties.network_access_policy = AAZStrType( + serialized_name="networkAccessPolicy", + ) + managed_disk_properties.optimized_for_frequent_attach = AAZBoolType( + serialized_name="optimizedForFrequentAttach", + ) + managed_disk_properties.performance_plus = AAZBoolType( + serialized_name="performancePlus", + ) + managed_disk_properties.tier = AAZStrType() + + availability_policy = _schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties.availability_policy + availability_policy.action_on_disk_delay = AAZStrType( + serialized_name="actionOnDiskDelay", + ) + security_profile = _schema_virtual_machine_scale_set_managed_disk_parameters_read.security_profile security_profile.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", @@ -3262,6 +3523,7 @@ def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _s serialized_name="securityEncryptionType", ) + _schema.additional_disk_properties = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.disk_encryption_set _schema.security_profile = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.security_profile _schema.storage_account_type = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.storage_account_type @@ -3635,10 +3897,16 @@ def _build_schema_virtual_machine_scale_set_read(cls, _schema): sku_profile.allocation_strategy = AAZStrType( serialized_name="allocationStrategy", ) + sku_profile.automatic_sku_migration_policy = AAZObjectType( + serialized_name="automaticSkuMigrationPolicy", + ) sku_profile.vm_sizes = AAZListType( serialized_name="vmSizes", ) + automatic_sku_migration_policy = _schema_virtual_machine_scale_set_read.properties.sku_profile.automatic_sku_migration_policy + automatic_sku_migration_policy.enabled = AAZBoolType() + vm_sizes = _schema_virtual_machine_scale_set_read.properties.sku_profile.vm_sizes vm_sizes.Element = AAZObjectType() @@ -3723,6 +3991,9 @@ def _build_schema_virtual_machine_scale_set_read(cls, _schema): virtual_machine_profile.hardware_profile = AAZObjectType( serialized_name="hardwareProfile", ) + virtual_machine_profile.interconnect_block_profile = AAZObjectType( + serialized_name="interconnectBlockProfile", + ) virtual_machine_profile.license_type = AAZStrType( serialized_name="licenseType", ) @@ -3791,6 +4062,9 @@ def _build_schema_virtual_machine_scale_set_read(cls, _schema): serialized_name="capacityReservationGroup", ) cls._build_schema_sub_resource_read(capacity_reservation.capacity_reservation_group) + capacity_reservation.disable_capacity_reservation_assignment = AAZBoolType( + serialized_name="disableCapacityReservationAssignment", + ) diagnostics_profile = _schema_virtual_machine_scale_set_read.properties.virtual_machine_profile.diagnostics_profile diagnostics_profile.boot_diagnostics = AAZObjectType( @@ -3872,6 +4146,9 @@ def _build_schema_virtual_machine_scale_set_read(cls, _schema): provision_after_extensions.Element = AAZStrType() hardware_profile = _schema_virtual_machine_scale_set_read.properties.virtual_machine_profile.hardware_profile + hardware_profile.processor_mode = AAZStrType( + serialized_name="processorMode", + ) hardware_profile.vm_size_properties = AAZObjectType( serialized_name="vmSizeProperties", ) @@ -3884,11 +4161,20 @@ def _build_schema_virtual_machine_scale_set_read(cls, _schema): serialized_name="vCPUsPerCore", ) + interconnect_block_profile = _schema_virtual_machine_scale_set_read.properties.virtual_machine_profile.interconnect_block_profile + interconnect_block_profile.interconnect_block = AAZObjectType( + serialized_name="interconnectBlock", + ) + cls._build_schema_api_entity_reference_read(interconnect_block_profile.interconnect_block) + network_profile = _schema_virtual_machine_scale_set_read.properties.virtual_machine_profile.network_profile network_profile.health_probe = AAZObjectType( serialized_name="healthProbe", ) cls._build_schema_api_entity_reference_read(network_profile.health_probe) + network_profile.interconnect_group_profile = AAZObjectType( + serialized_name="interconnectGroupProfile", + ) network_profile.network_api_version = AAZStrType( serialized_name="networkApiVersion", ) @@ -3896,6 +4182,17 @@ def _build_schema_virtual_machine_scale_set_read(cls, _schema): serialized_name="networkInterfaceConfigurations", ) + interconnect_group_profile = _schema_virtual_machine_scale_set_read.properties.virtual_machine_profile.network_profile.interconnect_group_profile + interconnect_group_profile.interconnect_group = AAZObjectType( + serialized_name="interconnectGroup", + ) + cls._build_schema_sub_resource_read(interconnect_group_profile.interconnect_group) + interconnect_group_profile.subgroups = AAZListType() + + subgroups = _schema_virtual_machine_scale_set_read.properties.virtual_machine_profile.network_profile.interconnect_group_profile.subgroups + subgroups.Element = AAZObjectType() + cls._build_schema_sub_resource_read(subgroups.Element) + network_interface_configurations = _schema_virtual_machine_scale_set_read.properties.virtual_machine_profile.network_profile.network_interface_configurations network_interface_configurations.Element = AAZObjectType() @@ -4045,6 +4342,9 @@ def _build_schema_virtual_machine_scale_set_read(cls, _schema): ip_tags.Element = AAZObjectType() _element = _schema_virtual_machine_scale_set_read.properties.virtual_machine_profile.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties.ip_tags.Element + _element.first_party_service_tag_id = AAZStrType( + serialized_name="firstPartyServiceTagId", + ) _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) @@ -4319,6 +4619,9 @@ def _build_schema_virtual_machine_scale_set_read(cls, _schema): storage_profile.data_disks = AAZListType( serialized_name="dataDisks", ) + storage_profile.disk_api_version = AAZStrType( + serialized_name="diskApiVersion", + ) storage_profile.disk_controller_type = AAZStrType( serialized_name="diskControllerType", ) diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_wait.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_wait.py index e40783ae2e9..0caf3903f75 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_wait.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}", "2025-11-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}", "2026-04-01"], ] } @@ -124,7 +124,7 @@ def query_parameters(self): "$expand", self.ctx.args.expand, ), **self.serialize_query_param( - "api-version", "2025-11-01", + "api-version", "2026-04-01", required=True, ), } @@ -502,10 +502,16 @@ def _build_schema_on_200(cls): sku_profile.allocation_strategy = AAZStrType( serialized_name="allocationStrategy", ) + sku_profile.automatic_sku_migration_policy = AAZObjectType( + serialized_name="automaticSkuMigrationPolicy", + ) sku_profile.vm_sizes = AAZListType( serialized_name="vmSizes", ) + automatic_sku_migration_policy = cls._schema_on_200.properties.sku_profile.automatic_sku_migration_policy + automatic_sku_migration_policy.enabled = AAZBoolType() + vm_sizes = cls._schema_on_200.properties.sku_profile.vm_sizes vm_sizes.Element = AAZObjectType() @@ -590,6 +596,9 @@ def _build_schema_on_200(cls): virtual_machine_profile.hardware_profile = AAZObjectType( serialized_name="hardwareProfile", ) + virtual_machine_profile.interconnect_block_profile = AAZObjectType( + serialized_name="interconnectBlockProfile", + ) virtual_machine_profile.license_type = AAZStrType( serialized_name="licenseType", ) @@ -658,6 +667,9 @@ def _build_schema_on_200(cls): serialized_name="capacityReservationGroup", ) _WaitHelper._build_schema_sub_resource_read(capacity_reservation.capacity_reservation_group) + capacity_reservation.disable_capacity_reservation_assignment = AAZBoolType( + serialized_name="disableCapacityReservationAssignment", + ) diagnostics_profile = cls._schema_on_200.properties.virtual_machine_profile.diagnostics_profile diagnostics_profile.boot_diagnostics = AAZObjectType( @@ -739,6 +751,9 @@ def _build_schema_on_200(cls): provision_after_extensions.Element = AAZStrType() hardware_profile = cls._schema_on_200.properties.virtual_machine_profile.hardware_profile + hardware_profile.processor_mode = AAZStrType( + serialized_name="processorMode", + ) hardware_profile.vm_size_properties = AAZObjectType( serialized_name="vmSizeProperties", ) @@ -751,11 +766,20 @@ def _build_schema_on_200(cls): serialized_name="vCPUsPerCore", ) + interconnect_block_profile = cls._schema_on_200.properties.virtual_machine_profile.interconnect_block_profile + interconnect_block_profile.interconnect_block = AAZObjectType( + serialized_name="interconnectBlock", + ) + _WaitHelper._build_schema_api_entity_reference_read(interconnect_block_profile.interconnect_block) + network_profile = cls._schema_on_200.properties.virtual_machine_profile.network_profile network_profile.health_probe = AAZObjectType( serialized_name="healthProbe", ) _WaitHelper._build_schema_api_entity_reference_read(network_profile.health_probe) + network_profile.interconnect_group_profile = AAZObjectType( + serialized_name="interconnectGroupProfile", + ) network_profile.network_api_version = AAZStrType( serialized_name="networkApiVersion", ) @@ -763,6 +787,17 @@ def _build_schema_on_200(cls): serialized_name="networkInterfaceConfigurations", ) + interconnect_group_profile = cls._schema_on_200.properties.virtual_machine_profile.network_profile.interconnect_group_profile + interconnect_group_profile.interconnect_group = AAZObjectType( + serialized_name="interconnectGroup", + ) + _WaitHelper._build_schema_sub_resource_read(interconnect_group_profile.interconnect_group) + interconnect_group_profile.subgroups = AAZListType() + + subgroups = cls._schema_on_200.properties.virtual_machine_profile.network_profile.interconnect_group_profile.subgroups + subgroups.Element = AAZObjectType() + _WaitHelper._build_schema_sub_resource_read(subgroups.Element) + network_interface_configurations = cls._schema_on_200.properties.virtual_machine_profile.network_profile.network_interface_configurations network_interface_configurations.Element = AAZObjectType() @@ -912,6 +947,9 @@ def _build_schema_on_200(cls): ip_tags.Element = AAZObjectType() _element = cls._schema_on_200.properties.virtual_machine_profile.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties.ip_tags.Element + _element.first_party_service_tag_id = AAZStrType( + serialized_name="firstPartyServiceTagId", + ) _element.ip_tag_type = AAZStrType( serialized_name="ipTagType", ) @@ -1186,6 +1224,9 @@ def _build_schema_on_200(cls): storage_profile.data_disks = AAZListType( serialized_name="dataDisks", ) + storage_profile.disk_api_version = AAZStrType( + serialized_name="diskApiVersion", + ) storage_profile.disk_controller_type = AAZStrType( serialized_name="diskControllerType", ) @@ -1370,6 +1411,7 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): if cls._schema_host_endpoint_settings_read is not None: _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules return cls._schema_host_endpoint_settings_read = _schema_host_endpoint_settings_read = AAZObjectType() @@ -1379,9 +1421,13 @@ def _build_schema_host_endpoint_settings_read(cls, _schema): serialized_name="inVMAccessControlProfileReferenceId", ) host_endpoint_settings_read.mode = AAZStrType() + host_endpoint_settings_read.use_local_file_rules = AAZBoolType( + serialized_name="useLocalFileRules", + ) _schema.in_vm_access_control_profile_reference_id = cls._schema_host_endpoint_settings_read.in_vm_access_control_profile_reference_id _schema.mode = cls._schema_host_endpoint_settings_read.mode + _schema.use_local_file_rules = cls._schema_host_endpoint_settings_read.use_local_file_rules _schema_sub_resource_read = None @@ -1403,6 +1449,7 @@ def _build_schema_sub_resource_read(cls, _schema): @classmethod def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _schema): if cls._schema_virtual_machine_scale_set_managed_disk_parameters_read is not None: + _schema.additional_disk_properties = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.disk_encryption_set _schema.security_profile = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.security_profile _schema.storage_account_type = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.storage_account_type @@ -1411,6 +1458,9 @@ def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _s cls._schema_virtual_machine_scale_set_managed_disk_parameters_read = _schema_virtual_machine_scale_set_managed_disk_parameters_read = AAZObjectType() virtual_machine_scale_set_managed_disk_parameters_read = _schema_virtual_machine_scale_set_managed_disk_parameters_read + virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties = AAZObjectType( + serialized_name="additionalDiskProperties", + ) virtual_machine_scale_set_managed_disk_parameters_read.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", ) @@ -1422,6 +1472,49 @@ def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _s serialized_name="storageAccountType", ) + additional_disk_properties = _schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties + additional_disk_properties.managed_disk_properties = AAZObjectType( + serialized_name="managedDiskProperties", + ) + + managed_disk_properties = _schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties + managed_disk_properties.availability_policy = AAZObjectType( + serialized_name="availabilityPolicy", + ) + managed_disk_properties.bursting_enabled = AAZBoolType( + serialized_name="burstingEnabled", + ) + managed_disk_properties.disk_access_id = AAZStrType( + serialized_name="diskAccessId", + ) + managed_disk_properties.disk_iops_read_only = AAZIntType( + serialized_name="diskIOPSReadOnly", + ) + managed_disk_properties.disk_m_bps_read_only = AAZIntType( + serialized_name="diskMBpsReadOnly", + ) + managed_disk_properties.logical_sector_size = AAZIntType( + serialized_name="logicalSectorSize", + ) + managed_disk_properties.max_shares = AAZIntType( + serialized_name="maxShares", + ) + managed_disk_properties.network_access_policy = AAZStrType( + serialized_name="networkAccessPolicy", + ) + managed_disk_properties.optimized_for_frequent_attach = AAZBoolType( + serialized_name="optimizedForFrequentAttach", + ) + managed_disk_properties.performance_plus = AAZBoolType( + serialized_name="performancePlus", + ) + managed_disk_properties.tier = AAZStrType() + + availability_policy = _schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties.managed_disk_properties.availability_policy + availability_policy.action_on_disk_delay = AAZStrType( + serialized_name="actionOnDiskDelay", + ) + security_profile = _schema_virtual_machine_scale_set_managed_disk_parameters_read.security_profile security_profile.disk_encryption_set = AAZObjectType( serialized_name="diskEncryptionSet", @@ -1431,6 +1524,7 @@ def _build_schema_virtual_machine_scale_set_managed_disk_parameters_read(cls, _s serialized_name="securityEncryptionType", ) + _schema.additional_disk_properties = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.additional_disk_properties _schema.disk_encryption_set = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.disk_encryption_set _schema.security_profile = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.security_profile _schema.storage_account_type = cls._schema_virtual_machine_scale_set_managed_disk_parameters_read.storage_account_type From 451a365494cffb95c17f68242dbd8005444a9daf Mon Sep 17 00:00:00 2001 From: william Date: Wed, 19 Aug 2026 10:39:40 +0800 Subject: [PATCH 20/22] Update code to support vmss disable capacity reservation assignment and show capacity reservation details --- .../azure/cli/command_modules/vm/_help.py | 5 +++++ .../azure/cli/command_modules/vm/_params.py | 3 +++ .../command_modules/vm/_template_builder.py | 14 +++++++++----- .../azure/cli/command_modules/vm/custom.py | 19 +++++++++++++++++-- .../cli/command_modules/vm/operations/vmss.py | 4 ++++ .../command_modules/vm/operations/vmss_vms.py | 11 +++++++++++ 6 files changed, 49 insertions(+), 7 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index 87ba59c4c35..6f080369f9f 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -2306,6 +2306,9 @@ - name: Create a VMSS from community gallery image. text: > az vmss create -n MyVmss -g MyResourceGroup --image /CommunityGalleries/{gallery_unique_name}/Images/{image}/Versions/{version} + - name: Create a VMSS that is not associated with any capacity reservation. + text: > + az vmss create -n MyVmss -g MyResourceGroup --image Ubuntu2204 --disable-capacity-reservation-assignment true - name: Create a Windows VMSS with patch mode 'Manual' (Currently patch mode 'AutomaticByPlatform' is not supported during VMSS creation as health extension which is required for 'AutomaticByPlatform' mode cannot be set during VMSS creation). text: > az vmss create -n MyVmss -g MyResourceGroup --image Win2019Datacenter --enable-agent --enable-auto-update false --patch-mode Manual --orchestration-mode Flexible @@ -2859,6 +2862,8 @@ text: > az vmss update -n MyVmss -g MyResourceGroup --security-posture-reference-id /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{version} \\ --security-posture-reference-exclude-extensions "c:\\tmp\\exclude_extensions.json" + - name: Opt out a VMSS from being associated with any capacity reservation. + text: az vmss update -n MyVmss -g MyResourceGroup --disable-capacity-reservation-assignment true """ helps['vmss update-instances'] = """ diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index e14ce708a0c..3936b94d64d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -989,6 +989,9 @@ def load_arguments(self, _): c.argument('enable_automatic_zone_balancing', arg_type=get_three_state_flag(), options_list=['--enable-automatic-zone-balancing', '--enable-zone-balancing'], help='Specify whether automatic AZ balancing should be enabled on the virtualmachine scale set.') c.argument('automatic_zone_balancing_strategy', arg_type=get_enum_type(AutomaticZoneBalancingStrategy), options_list=['--automatic-zone-balancing-strategy', '--balancing-strategy'], help='Type of rebalance strategy that will be used for rebalancing virtualmachines in the scale set across availability zones.') c.argument('automatic_zone_balancing_behavior', arg_type=get_enum_type(AutomaticZoneBalancingBehavior), options_list=['--automatic-zone-balancing-behavior', '--balancing-behavior'], help='Type of rebalance behavior that will be used for recreating virtualmachines in the scale set across availability zones.') + c.argument('disable_capacity_reservation_assignment', arg_type=get_three_state_flag(), + options_list=['--disable-capacity-reservation-assignment', '--no-cap-reservation'], + help='Specifies whether the virtual machine is explicitly opted out from being associated with any capacity reservation. When set to true, the virtual machine will not be allowed to implicitly or explicitly associate with any type of capacity reservation and will consume capacity from the publicly available capacity.') with self.argument_context('vmss update') as c: c.argument('instance_id', id_part='child_name_1', help="Update the VM instance with this ID. If missing, update the VMSS.") diff --git a/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py b/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py index cc989698323..50f96cb3ee9 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py @@ -1061,6 +1061,7 @@ def build_vmss_resource(cmd, name, computer_name_prefix, location, tags, overpro enable_cross_zone_upgrade=None, prioritize_unhealthy_instances=None, edge_zone=None, orchestration_mode=None, user_data=None, network_api_version=None, enable_spot_restore=None, spot_restore_timeout=None, capacity_reservation_group=None, + disable_capacity_reservation_assignment=None, enable_auto_update=None, patch_mode=None, enable_agent=None, security_type=None, enable_secure_boot=None, enable_vtpm=None, automatic_repairs_action=None, v_cpus_available=None, v_cpus_per_core=None, os_disk_security_encryption_type=None, @@ -1679,12 +1680,15 @@ def build_vmss_resource(cmd, name, computer_name_prefix, location, tags, overpro if network_profile: virtual_machine_profile['networkProfile'] = network_profile - if capacity_reservation_group: - virtual_machine_profile['capacityReservation'] = { - 'capacityReservationGroup': { + if capacity_reservation_group or disable_capacity_reservation_assignment is not None: + virtual_machine_profile['capacityReservation'] = {} + if capacity_reservation_group: + virtual_machine_profile['capacityReservation']['capacityReservationGroup'] = { 'id': capacity_reservation_group } - } + if disable_capacity_reservation_assignment is not None: + virtual_machine_profile['capacityReservation']['disableCapacityReservationAssignment'] = \ + disable_capacity_reservation_assignment if security_posture_reference_id: virtual_machine_profile['securityPostureReference'] = { @@ -1741,7 +1745,7 @@ def build_vmss_resource(cmd, name, computer_name_prefix, location, tags, overpro 'name': name, 'location': location, 'tags': tags, - 'apiVersion': '2025-11-01', + 'apiVersion': '2026-04-01', 'dependsOn': [], 'properties': vmss_properties } diff --git a/src/azure-cli/azure/cli/command_modules/vm/custom.py b/src/azure-cli/azure/cli/command_modules/vm/custom.py index 82e9ce092e9..f99dc1d01e3 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -3725,7 +3725,8 @@ def create_vmss(cmd, vmss_name, resource_group_name, image=None, max_unhealthy_upgraded_instance_percent=None, pause_time_between_batches=None, enable_cross_zone_upgrade=None, prioritize_unhealthy_instances=None, edge_zone=None, user_data=None, network_api_version=None, enable_spot_restore=None, spot_restore_timeout=None, - capacity_reservation_group=None, enable_auto_update=None, patch_mode=None, enable_agent=None, + capacity_reservation_group=None, disable_capacity_reservation_assignment=None, + enable_auto_update=None, patch_mode=None, enable_agent=None, security_type=None, enable_secure_boot=None, enable_vtpm=None, automatic_repairs_action=None, v_cpus_available=None, v_cpus_per_core=None, accept_term=None, disable_integrity_monitoring=None, # Unused @@ -4041,7 +4042,9 @@ def _get_public_ip_address_allocation(value, sku): prioritize_unhealthy_instances=prioritize_unhealthy_instances, edge_zone=edge_zone, user_data=user_data, orchestration_mode=orchestration_mode, network_api_version=network_api_version, enable_spot_restore=enable_spot_restore, spot_restore_timeout=spot_restore_timeout, - capacity_reservation_group=capacity_reservation_group, enable_auto_update=enable_auto_update, + capacity_reservation_group=capacity_reservation_group, + disable_capacity_reservation_assignment=disable_capacity_reservation_assignment, + enable_auto_update=enable_auto_update, patch_mode=patch_mode, enable_agent=enable_agent, security_type=security_type, enable_secure_boot=enable_secure_boot, enable_vtpm=enable_vtpm, automatic_repairs_action=automatic_repairs_action, v_cpus_available=v_cpus_available, @@ -4589,6 +4592,7 @@ def update_vmss(cmd, resource_group_name, name, license_type=None, no_wait=False max_unhealthy_instance_percent=None, max_unhealthy_upgraded_instance_percent=None, pause_time_between_batches=None, enable_cross_zone_upgrade=None, prioritize_unhealthy_instances=None, user_data=None, enable_spot_restore=None, spot_restore_timeout=None, capacity_reservation_group=None, + disable_capacity_reservation_assignment=None, vm_sku=None, ephemeral_os_disk_placement=None, force_deletion=None, enable_secure_boot=None, enable_vtpm=None, automatic_repairs_action=None, v_cpus_available=None, v_cpus_per_core=None, regular_priority_count=None, regular_priority_percentage=None, disk_controller_type=None, @@ -4726,6 +4730,17 @@ def _output(self, *args, **kwargs): capacity_reservation = {"capacity_reservation_group": sub_resource} vmss["virtual_machine_profile"]["capacity_reservation"] = capacity_reservation + if disable_capacity_reservation_assignment is not None: + if vmss.get("virtual_machine_profile", None) is None: + vmss["virtual_machine_profile"] = {} + if vmss["virtual_machine_profile"].get("capacity_reservation", None) is None: + vmss["virtual_machine_profile"]["capacity_reservation"] = {} + capacity_reservation = vmss["virtual_machine_profile"]["capacity_reservation"] + capacity_reservation["disable_capacity_reservation_assignment"] = \ + disable_capacity_reservation_assignment + if disable_capacity_reservation_assignment: + capacity_reservation.pop("capacity_reservation_group", None) + if enable_terminate_notification is not None or terminate_notification_time is not None: if vmss.get("virtual_machine_profile", None) is None: vmss["virtual_machine_profile"] = {} diff --git a/src/azure-cli/azure/cli/command_modules/vm/operations/vmss.py b/src/azure-cli/azure/cli/command_modules/vm/operations/vmss.py index da5c8c27861..f44f850e3b6 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/operations/vmss.py +++ b/src/azure-cli/azure/cli/command_modules/vm/operations/vmss.py @@ -528,6 +528,10 @@ def convert_show_result_to_snake_case(result): if "capacityReservationGroup" in capacity_reservation: capacity_reservation["capacity_reservation_group"] = capacity_reservation["capacityReservationGroup"] capacity_reservation.pop("capacityReservationGroup") + if "disableCapacityReservationAssignment" in capacity_reservation: + capacity_reservation["disable_capacity_reservation_assignment"] = \ + capacity_reservation["disableCapacityReservationAssignment"] + capacity_reservation.pop("disableCapacityReservationAssignment") diagnostics_profile = virtual_machine_profile.get("diagnostics_profile", {}) or {} if "bootDiagnostics" in diagnostics_profile: diff --git a/src/azure-cli/azure/cli/command_modules/vm/operations/vmss_vms.py b/src/azure-cli/azure/cli/command_modules/vm/operations/vmss_vms.py index 08e950f97c1..6fb945a650b 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/operations/vmss_vms.py +++ b/src/azure-cli/azure/cli/command_modules/vm/operations/vmss_vms.py @@ -114,6 +114,8 @@ def convert_show_result_to_snake_case(result): new_result["additional_capabilities"] = result["additionalCapabilities"] if "availabilitySet" in result: new_result["availability_set"] = result["availabilitySet"] + if "capacityReservation" in result: + new_result["capacity_reservation"] = result["capacityReservation"] if "diagnosticsProfile" in result: new_result["diagnostics_profile"] = result["diagnosticsProfile"] if "hardwareProfile" in result: @@ -148,6 +150,15 @@ def convert_show_result_to_snake_case(result): additional_capabilities["ultra_ssd_enabled"] = additional_capabilities["ultraSSDEnabled"] additional_capabilities.pop("ultraSSDEnabled") + capacity_reservation = new_result.get("capacity_reservation", {}) or {} + if "capacityReservationGroup" in capacity_reservation: + capacity_reservation["capacity_reservation_group"] = capacity_reservation["capacityReservationGroup"] + capacity_reservation.pop("capacityReservationGroup") + if "disableCapacityReservationAssignment" in capacity_reservation: + capacity_reservation["disable_capacity_reservation_assignment"] = \ + capacity_reservation["disableCapacityReservationAssignment"] + capacity_reservation.pop("disableCapacityReservationAssignment") + diagnostics_profile = new_result.get("diagnostics_profile", {}) or {} if "bootDiagnostics" in diagnostics_profile: diagnostics_profile["boot_diagnostics"] = diagnostics_profile["bootDiagnostics"] From 8684881146c99f89a608efe688ce5e9ec722e128 Mon Sep 17 00:00:00 2001 From: william Date: Wed, 19 Aug 2026 10:46:48 +0800 Subject: [PATCH 21/22] Add validation handling and missing snake-case conversion --- .../azure/cli/command_modules/vm/_validators.py | 5 +++++ .../azure/cli/command_modules/vm/operations/vmss.py | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_validators.py b/src/azure-cli/azure/cli/command_modules/vm/_validators.py index a76ab688ced..b016e774325 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -2827,6 +2827,11 @@ def validate_edge_zone(cmd, namespace): # pylint: disable=unused-argument def _validate_capacity_reservation_group(cmd, namespace): + if getattr(namespace, 'capacity_reservation_group', None) is not None and \ + getattr(namespace, 'disable_capacity_reservation_assignment', None) is not None: + raise MutuallyExclusiveArgumentError( + "You can only specify one of --capacity-reservation-group and " + "--disable-capacity-reservation-assignment") if namespace.capacity_reservation_group and namespace.capacity_reservation_group != 'None': diff --git a/src/azure-cli/azure/cli/command_modules/vm/operations/vmss.py b/src/azure-cli/azure/cli/command_modules/vm/operations/vmss.py index f44f850e3b6..a1d8733d97e 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/operations/vmss.py +++ b/src/azure-cli/azure/cli/command_modules/vm/operations/vmss.py @@ -471,6 +471,10 @@ def convert_show_result_to_snake_case(result): if "hardwareProfile" in virtual_machine_profile: virtual_machine_profile["hardware_profile"] = virtual_machine_profile["hardwareProfile"] virtual_machine_profile.pop("hardwareProfile") + if "interconnectBlockProfile" in virtual_machine_profile: + virtual_machine_profile["interconnect_block_profile"] = virtual_machine_profile[ + "interconnectBlockProfile"] + virtual_machine_profile.pop("interconnectBlockProfile") if "licenseType" in virtual_machine_profile: virtual_machine_profile["license_type"] = virtual_machine_profile["licenseType"] virtual_machine_profile.pop("licenseType") @@ -524,6 +528,11 @@ def convert_show_result_to_snake_case(result): billing_profile["max_price"] = billing_profile["maxPrice"] billing_profile.pop("maxPrice") + interconnect_block_profile = virtual_machine_profile.get("interconnect_block_profile", {}) or {} + if "interconnectBlock" in interconnect_block_profile: + interconnect_block_profile["interconnect_block"] = interconnect_block_profile["interconnectBlock"] + interconnect_block_profile.pop("interconnectBlock") + capacity_reservation = virtual_machine_profile.get("capacity_reservation", {}) or {} if "capacityReservationGroup" in capacity_reservation: capacity_reservation["capacity_reservation_group"] = capacity_reservation["capacityReservationGroup"] From 987bb6976531605726e63a1a9320841f11d040c5 Mon Sep 17 00:00:00 2001 From: william Date: Wed, 19 Aug 2026 10:54:22 +0800 Subject: [PATCH 22/22] Add handling for disbabling capacity reservation in vmss instance --- src/azure-cli/azure/cli/command_modules/vm/_params.py | 2 +- src/azure-cli/azure/cli/command_modules/vm/_validators.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index 3936b94d64d..2f9d5f5e125 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -991,7 +991,7 @@ def load_arguments(self, _): c.argument('automatic_zone_balancing_behavior', arg_type=get_enum_type(AutomaticZoneBalancingBehavior), options_list=['--automatic-zone-balancing-behavior', '--balancing-behavior'], help='Type of rebalance behavior that will be used for recreating virtualmachines in the scale set across availability zones.') c.argument('disable_capacity_reservation_assignment', arg_type=get_three_state_flag(), options_list=['--disable-capacity-reservation-assignment', '--no-cap-reservation'], - help='Specifies whether the virtual machine is explicitly opted out from being associated with any capacity reservation. When set to true, the virtual machine will not be allowed to implicitly or explicitly associate with any type of capacity reservation and will consume capacity from the publicly available capacity.') + help='Specifies whether the virtual machine scale set is explicitly opted out from being associated with any capacity reservation. When set to true, its virtual machines will not be allowed to implicitly or explicitly associate with any type of capacity reservation and will consume publicly available capacity. This option applies to the parent VMSS only.') with self.argument_context('vmss update') as c: c.argument('instance_id', id_part='child_name_1', help="Update the VM instance with this ID. If missing, update the VMSS.") diff --git a/src/azure-cli/azure/cli/command_modules/vm/_validators.py b/src/azure-cli/azure/cli/command_modules/vm/_validators.py index b016e774325..db6bdcfe266 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -1951,6 +1951,10 @@ def process_vmss_create_namespace(cmd, namespace): def validate_vmss_update_namespace(cmd, namespace): # pylint: disable=unused-argument + if namespace.instance_id and namespace.disable_capacity_reservation_assignment is not None: + raise MutuallyExclusiveArgumentError( + "--disable-capacity-reservation-assignment applies to the parent VMSS and cannot be used with " + "--instance-id") if not namespace.instance_id: if namespace.protect_from_scale_in is not None or namespace.protect_from_scale_set_actions is not None: raise CLIError("usage error: protection policies can only be applied to VM instances within a VMSS."