diff --git a/src/azure-cli/azure/cli/command_modules/vm/_client_factory.py b/src/azure-cli/azure/cli/command_modules/vm/_client_factory.py index ee6329e9129..4a8691bcf7c 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_client_factory.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_client_factory.py @@ -87,10 +87,6 @@ def cf_proximity_placement_groups(cli_ctx, _): return _compute_client_factory(cli_ctx).proximity_placement_groups -def cf_dedicated_hosts(cli_ctx, _): - return _compute_client_factory(cli_ctx).dedicated_hosts - - def cf_dedicated_host_groups(cli_ctx, _): return _compute_client_factory(cli_ctx).dedicated_host_groups diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/host/__init__.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/host/__init__.py index fcd450f93d3..38f4682488c 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/host/__init__.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/host/__init__.py @@ -9,6 +9,7 @@ # flake8: noqa from .__cmd_group import * +from ._create import * from ._delete import * from ._list import * from ._list_resize_options import * @@ -16,4 +17,5 @@ from ._resize import * from ._restart import * from ._show import * +from ._update import * from ._wait import * diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/host/_create.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/host/_create.py new file mode 100644 index 00000000000..3836cc3655b --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/host/_create.py @@ -0,0 +1,406 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +class Create(AAZCommand): + """Create a dedicated host. + """ + + _aaz_info = { + "version": "2024-11-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/hostgroups/{}/hosts/{}", "2024-11-01"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.host_group_name = AAZStrArg( + options=["--host-group", "--host-group-name"], + help="The name of the dedicated host group.", + required=True, + ) + _args_schema.host_name = AAZStrArg( + options=["-n", "--name", "--host-name"], + help="The name of the dedicated host.", + required=True, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Parameters" + + _args_schema = cls._args_schema + _args_schema.location = AAZResourceLocationArg( + arg_group="Parameters", + help="Resource location", + required=True, + fmt=AAZResourceLocationArgFormat( + resource_group_arg="resource_group", + ), + ) + _args_schema.sku = AAZObjectArg( + options=["--sku"], + arg_group="Parameters", + help="SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List Microsoft.Compute SKUs for a list of possible values.", + required=True, + ) + _args_schema.tags = AAZDictArg( + options=["--tags"], + arg_group="Parameters", + help="Resource tags", + ) + + sku = cls._args_schema.sku + sku.capacity = AAZIntArg( + options=["capacity"], + help="Specifies the number of virtual machines in the scale set.", + ) + sku.name = AAZStrArg( + options=["name"], + help="The sku name.", + ) + sku.tier = AAZStrArg( + options=["tier"], + help="Specifies the tier of virtual machines in a scale set.

Possible Values:

**Standard**

**Basic**", + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg() + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.auto_replace_on_failure = AAZBoolArg( + options=["--auto-replace-on-failure"], + arg_group="Properties", + help="Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided.", + ) + _args_schema.license_type = AAZStrArg( + options=["--license-type"], + arg_group="Properties", + help="Specifies the software license type that will be applied to the VMs deployed on the dedicated host.

Possible values are:

**None**

**Windows_Server_Hybrid**

**Windows_Server_Perpetual**

Default: **None**", + enum={"None": "None", "Windows_Server_Hybrid": "Windows_Server_Hybrid", "Windows_Server_Perpetual": "Windows_Server_Perpetual"}, + ) + _args_schema.platform_fault_domain = AAZIntArg( + options=["--platform-fault-domain"], + arg_group="Properties", + help="Fault domain of the dedicated host within a dedicated host group.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + yield self.DedicatedHostsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class DedicatedHostsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "hostGroupName", self.ctx.args.host_group_name, + required=True, + ), + **self.serialize_url_param( + "hostName", self.ctx.args.host_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-11-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + _builder.set_prop("sku", AAZObjectType, ".sku", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("tags", AAZDictType, ".tags") + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("autoReplaceOnFailure", AAZBoolType, ".auto_replace_on_failure") + properties.set_prop("licenseType", AAZStrType, ".license_type") + properties.set_prop("platformFaultDomain", AAZIntType, ".platform_fault_domain") + + sku = _builder.get(".sku") + if sku is not None: + sku.set_prop("capacity", AAZIntType, ".capacity") + sku.set_prop("name", AAZStrType, ".name") + sku.set_prop("tier", AAZStrType, ".tier") + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200_201.sku = AAZObjectType( + flags={"required": True}, + ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200_201.tags = AAZDictType() + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.auto_replace_on_failure = AAZBoolType( + serialized_name="autoReplaceOnFailure", + ) + properties.host_id = AAZStrType( + serialized_name="hostId", + flags={"read_only": True}, + ) + properties.instance_view = AAZObjectType( + serialized_name="instanceView", + flags={"read_only": True}, + ) + properties.license_type = AAZStrType( + serialized_name="licenseType", + ) + properties.platform_fault_domain = AAZIntType( + serialized_name="platformFaultDomain", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.provisioning_time = AAZStrType( + serialized_name="provisioningTime", + flags={"read_only": True}, + ) + properties.time_created = AAZStrType( + serialized_name="timeCreated", + flags={"read_only": True}, + ) + properties.virtual_machines = AAZListType( + serialized_name="virtualMachines", + flags={"read_only": True}, + ) + + instance_view = cls._schema_on_200_201.properties.instance_view + instance_view.asset_id = AAZStrType( + serialized_name="assetId", + flags={"read_only": True}, + ) + instance_view.available_capacity = AAZObjectType( + serialized_name="availableCapacity", + ) + instance_view.statuses = AAZListType() + + available_capacity = cls._schema_on_200_201.properties.instance_view.available_capacity + available_capacity.allocatable_v_ms = AAZListType( + serialized_name="allocatableVMs", + ) + + allocatable_v_ms = cls._schema_on_200_201.properties.instance_view.available_capacity.allocatable_v_ms + allocatable_v_ms.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.instance_view.available_capacity.allocatable_v_ms.Element + _element.count = AAZFloatType() + _element.vm_size = AAZStrType( + serialized_name="vmSize", + ) + + statuses = cls._schema_on_200_201.properties.instance_view.statuses + statuses.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.instance_view.statuses.Element + _element.code = AAZStrType() + _element.display_status = AAZStrType( + serialized_name="displayStatus", + ) + _element.level = AAZStrType() + _element.message = AAZStrType() + _element.time = AAZStrType() + + virtual_machines = cls._schema_on_200_201.properties.virtual_machines + virtual_machines.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.virtual_machines.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + + sku = cls._schema_on_200_201.sku + sku.capacity = AAZIntType() + sku.name = AAZStrType() + sku.tier = AAZStrType() + + system_data = cls._schema_on_200_201.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_201.tags + tags.Element = AAZStrType() + + return cls._schema_on_200_201 + + +class _CreateHelper: + """Helper class for Create""" + + +__all__ = ["Create"] diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/host/_show.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/host/_show.py index d44e51edcf4..565d2d5eaa7 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/host/_show.py +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/host/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2022-11-01", + "version": "2024-11-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/hostgroups/{}/hosts/{}", "2022-11-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/hostgroups/{}/hosts/{}", "2024-11-01"], ] } @@ -57,13 +57,12 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="child_name_1", ) _args_schema.resource_group = AAZResourceGroupNameArg( - help="Name of resource group. You can configure the default group using `az configure --defaults group=`.", required=True, ) _args_schema.expand = AAZStrArg( options=["--expand"], help="The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated host. 'UserData' is not supported for dedicated host.", - enum={"instanceView": "instanceView", "userData": "userData"}, + enum={"instanceView": "instanceView", "resiliencyView": "resiliencyView", "userData": "userData"}, ) return cls._args_schema @@ -139,7 +138,7 @@ def query_parameters(self): "$expand", self.ctx.args.expand, ), **self.serialize_query_param( - "api-version", "2022-11-01", + "api-version", "2024-11-01", required=True, ), } @@ -187,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}, @@ -202,6 +205,7 @@ def _build_schema_on_200(cls): ) properties.instance_view = AAZObjectType( serialized_name="instanceView", + flags={"read_only": True}, ) properties.license_type = AAZStrType( serialized_name="licenseType", @@ -275,6 +279,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() diff --git a/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/host/_update.py b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/host/_update.py new file mode 100644 index 00000000000..579a5393f7c --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/host/_update.py @@ -0,0 +1,549 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "vm host update", +) +class Update(AAZCommand): + """Update a dedicated host. + + :example: Update the 'autoReplaceOnFailure' field of a dedicated host. + az vm host update --host-group my-host-group --name my-host \\ + --resource-group my-resource-group --set autoReplaceOnFailure=True + """ + + _aaz_info = { + "version": "2022-11-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/hostgroups/{}/hosts/{}", "2022-11-01"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.host_group_name = AAZStrArg( + options=["--host-group", "--host-group-name"], + help="The name of the dedicated host group.", + required=True, + id_part="name", + ) + _args_schema.host_name = AAZStrArg( + options=["-n", "--name", "--host-name"], + help="The name of the dedicated host.", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + help="Name of resource group. You can configure the default group using `az configure --defaults group=`.", + required=True, + ) + + # define Arg Group "Parameters" + + _args_schema = cls._args_schema + _args_schema.location = AAZResourceLocationArg( + arg_group="Parameters", + help="Resource location", + fmt=AAZResourceLocationArgFormat( + resource_group_arg="resource_group", + ), + ) + _args_schema.sku = AAZObjectArg( + options=["--sku"], + arg_group="Parameters", + help="SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List Microsoft.Compute SKUs for a list of possible values.", + ) + _args_schema.tags = AAZDictArg( + options=["--tags"], + arg_group="Parameters", + help="Resource tags", + nullable=True, + ) + + sku = cls._args_schema.sku + sku.capacity = AAZIntArg( + options=["capacity"], + help="Specifies the number of virtual machines in the scale set.", + nullable=True, + ) + sku.name = AAZStrArg( + options=["name"], + help="The sku name.", + nullable=True, + ) + sku.tier = AAZStrArg( + options=["tier"], + help="Specifies the tier of virtual machines in a scale set.

Possible Values:

**Standard**

**Basic**", + nullable=True, + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg( + nullable=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.auto_replace_on_failure = AAZBoolArg( + options=["--auto-replace-on-failure"], + arg_group="Properties", + help="Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided.", + nullable=True, + ) + _args_schema.license_type = AAZStrArg( + options=["--license-type"], + arg_group="Properties", + help="Specifies the software license type that will be applied to the VMs deployed on the dedicated host.

Possible values are:

**None**

**Windows_Server_Hybrid**

**Windows_Server_Perpetual**

Default: **None**", + nullable=True, + enum={"None": "None", "Windows_Server_Hybrid": "Windows_Server_Hybrid", "Windows_Server_Perpetual": "Windows_Server_Perpetual"}, + ) + _args_schema.platform_fault_domain = AAZIntArg( + options=["--platform-fault-domain"], + arg_group="Properties", + help="Fault domain of the dedicated host within a dedicated host group.", + nullable=True, + fmt=AAZIntArgFormat( + minimum=0, + ), + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.DedicatedHostsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + yield self.DedicatedHostsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class DedicatedHostsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "hostGroupName", self.ctx.args.host_group_name, + required=True, + ), + **self.serialize_url_param( + "hostName", self.ctx.args.host_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-11-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_dedicated_host_read(cls._schema_on_200) + + return cls._schema_on_200 + + class DedicatedHostsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "hostGroupName", self.ctx.args.host_group_name, + required=True, + ), + **self.serialize_url_param( + "hostName", self.ctx.args.host_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-11-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _UpdateHelper._build_schema_dedicated_host_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + _builder.set_prop("sku", AAZObjectType, ".sku", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("tags", AAZDictType, ".tags") + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("autoReplaceOnFailure", AAZBoolType, ".auto_replace_on_failure") + properties.set_prop("licenseType", AAZStrType, ".license_type") + properties.set_prop("platformFaultDomain", AAZIntType, ".platform_fault_domain") + + sku = _builder.get(".sku") + if sku is not None: + sku.set_prop("capacity", AAZIntType, ".capacity") + sku.set_prop("name", AAZStrType, ".name") + sku.set_prop("tier", AAZStrType, ".tier") + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + _schema_dedicated_host_read = None + + @classmethod + def _build_schema_dedicated_host_read(cls, _schema): + if cls._schema_dedicated_host_read is not None: + _schema.id = cls._schema_dedicated_host_read.id + _schema.location = cls._schema_dedicated_host_read.location + _schema.name = cls._schema_dedicated_host_read.name + _schema.properties = cls._schema_dedicated_host_read.properties + _schema.sku = cls._schema_dedicated_host_read.sku + _schema.tags = cls._schema_dedicated_host_read.tags + _schema.type = cls._schema_dedicated_host_read.type + return + + cls._schema_dedicated_host_read = _schema_dedicated_host_read = AAZObjectType() + + dedicated_host_read = _schema_dedicated_host_read + dedicated_host_read.id = AAZStrType( + flags={"read_only": True}, + ) + dedicated_host_read.location = AAZStrType( + flags={"required": True}, + ) + dedicated_host_read.name = AAZStrType( + flags={"read_only": True}, + ) + dedicated_host_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + dedicated_host_read.sku = AAZObjectType( + flags={"required": True}, + ) + dedicated_host_read.tags = AAZDictType() + dedicated_host_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_dedicated_host_read.properties + properties.auto_replace_on_failure = AAZBoolType( + serialized_name="autoReplaceOnFailure", + ) + properties.host_id = AAZStrType( + serialized_name="hostId", + flags={"read_only": True}, + ) + properties.instance_view = AAZObjectType( + serialized_name="instanceView", + ) + properties.license_type = AAZStrType( + serialized_name="licenseType", + ) + properties.platform_fault_domain = AAZIntType( + serialized_name="platformFaultDomain", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.provisioning_time = AAZStrType( + serialized_name="provisioningTime", + flags={"read_only": True}, + ) + properties.time_created = AAZStrType( + serialized_name="timeCreated", + flags={"read_only": True}, + ) + properties.virtual_machines = AAZListType( + serialized_name="virtualMachines", + flags={"read_only": True}, + ) + + instance_view = _schema_dedicated_host_read.properties.instance_view + instance_view.asset_id = AAZStrType( + serialized_name="assetId", + flags={"read_only": True}, + ) + instance_view.available_capacity = AAZObjectType( + serialized_name="availableCapacity", + ) + instance_view.statuses = AAZListType() + + available_capacity = _schema_dedicated_host_read.properties.instance_view.available_capacity + available_capacity.allocatable_v_ms = AAZListType( + serialized_name="allocatableVMs", + ) + + allocatable_v_ms = _schema_dedicated_host_read.properties.instance_view.available_capacity.allocatable_v_ms + allocatable_v_ms.Element = AAZObjectType() + + _element = _schema_dedicated_host_read.properties.instance_view.available_capacity.allocatable_v_ms.Element + _element.count = AAZFloatType() + _element.vm_size = AAZStrType( + serialized_name="vmSize", + ) + + statuses = _schema_dedicated_host_read.properties.instance_view.statuses + statuses.Element = AAZObjectType() + + _element = _schema_dedicated_host_read.properties.instance_view.statuses.Element + _element.code = AAZStrType() + _element.display_status = AAZStrType( + serialized_name="displayStatus", + ) + _element.level = AAZStrType() + _element.message = AAZStrType() + _element.time = AAZStrType() + + virtual_machines = _schema_dedicated_host_read.properties.virtual_machines + virtual_machines.Element = AAZObjectType() + + _element = _schema_dedicated_host_read.properties.virtual_machines.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + + sku = _schema_dedicated_host_read.sku + sku.capacity = AAZIntType() + sku.name = AAZStrType() + sku.tier = AAZStrType() + + tags = _schema_dedicated_host_read.tags + tags.Element = AAZStrType() + + _schema.id = cls._schema_dedicated_host_read.id + _schema.location = cls._schema_dedicated_host_read.location + _schema.name = cls._schema_dedicated_host_read.name + _schema.properties = cls._schema_dedicated_host_read.properties + _schema.sku = cls._schema_dedicated_host_read.sku + _schema.tags = cls._schema_dedicated_host_read.tags + _schema.type = cls._schema_dedicated_host_read.type + + +__all__ = ["Update"] diff --git a/src/azure-cli/azure/cli/command_modules/vm/commands.py b/src/azure-cli/azure/cli/command_modules/vm/commands.py index 51c50586daf..7f8aad28e7d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/commands.py @@ -9,7 +9,7 @@ cf_vmss, cf_images, cf_galleries, cf_gallery_images, cf_gallery_image_versions, cf_proximity_placement_groups, - cf_dedicated_hosts, cf_dedicated_host_groups, + cf_dedicated_host_groups, cf_log_analytics_data_plane, cf_capacity_reservation_groups, cf_capacity_reservations, cf_community_gallery) @@ -138,11 +138,6 @@ def load_command_table(self, _): operations_tmpl='azure.mgmt.compute.operations#ProximityPlacementGroupsOperations.{}', ) - compute_dedicated_host_sdk = CliCommandType( - operations_tmpl="azure.mgmt.compute.operations#DedicatedHostsOperations.{}", - client_factory=cf_dedicated_hosts, - ) - compute_dedicated_host_groups_sdk = CliCommandType( operations_tmpl="azure.mgmt.compute.operations#DedicatedHostGroupsOperations.{}", client_factory=cf_dedicated_host_groups, @@ -386,11 +381,12 @@ def load_command_table(self, _): g.custom_command('delete', 'delete_user') g.custom_command('reset-ssh', 'reset_linux_ssh') - with self.command_group('vm host', compute_dedicated_host_sdk, client_factory=cf_dedicated_hosts, - min_api='2019-03-01') as g: + with self.command_group('vm host') as g: g.custom_command('get-instance-view', 'get_dedicated_host_instance_view') g.custom_command('create', 'create_dedicated_host') - g.generic_update_command('update', setter_name='begin_create_or_update') + + from .operations.vm_host import VMHostUpdate + self.command_table['vm host update'] = VMHostUpdate(loader=self) with self.command_group('vm host group', compute_dedicated_host_groups_sdk, client_factory=cf_dedicated_host_groups, min_api='2019-03-01') as g: 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 5380bfeef8f..245512e4041 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -5924,23 +5924,44 @@ def get_dedicated_host_group_instance_view(client, host_group_name, resource_gro return client.get(resource_group_name, host_group_name, expand="instanceView") -def create_dedicated_host(cmd, client, host_group_name, host_name, resource_group_name, sku, platform_fault_domain=None, +def create_dedicated_host(cmd, host_group_name, host_name, resource_group_name, sku, platform_fault_domain=None, auto_replace_on_failure=None, license_type=None, location=None, tags=None): - DedicatedHostType = cmd.get_models('DedicatedHost') - SkuType = cmd.get_models('Sku') - + from .aaz.latest.vm.host import Create as VmHostCreate location = location or _get_resource_group_location(cmd.cli_ctx, resource_group_name) - sku = SkuType(name=sku) + command_args = { + 'host_group_name': host_group_name, + 'host_name': host_name, + 'resource_group': resource_group_name, + 'location': location, + 'sku': { + 'name': sku + } + } + + if tags is not None: + command_args['tags'] = tags or {} + + if auto_replace_on_failure is not None: + command_args['auto_replace_on_failure'] = auto_replace_on_failure - host_params = DedicatedHostType(location=location, platform_fault_domain=platform_fault_domain, - auto_replace_on_failure=auto_replace_on_failure, license_type=license_type, - sku=sku, tags=tags) + if license_type: + command_args['license_type'] = license_type - return client.begin_create_or_update(resource_group_name, host_group_name, host_name, parameters=host_params) + if platform_fault_domain: + command_args['platform_fault_domain'] = platform_fault_domain + return VmHostCreate(cli_ctx=cmd.cli_ctx)(command_args=command_args) -def get_dedicated_host_instance_view(client, host_group_name, host_name, resource_group_name): - return client.get(resource_group_name, host_group_name, host_name, expand="instanceView") + +def get_dedicated_host_instance_view(cmd, host_group_name, host_name, resource_group_name): + from .aaz.latest.vm.host import Show as VmHostShow + command_args = { + 'host_group_name': host_group_name, + 'host_name': host_name, + 'resource_group': resource_group_name, + 'expand': 'instanceView' + } + return VmHostShow(cli_ctx=cmd.cli_ctx)(command_args=command_args) # endregion diff --git a/src/azure-cli/azure/cli/command_modules/vm/operations/vm_host.py b/src/azure-cli/azure/cli/command_modules/vm/operations/vm_host.py new file mode 100644 index 00000000000..e68d728cc21 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/operations/vm_host.py @@ -0,0 +1,28 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=no-self-use, line-too-long, protected-access, too-few-public-methods, unused-argument +from knack.log import get_logger + +from ..aaz.latest.vm.host import Update as _VMHostUpdate + +logger = get_logger(__name__) + + +class VMHostUpdate(_VMHostUpdate): + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + args_schema = super()._build_arguments_schema(*args, **kwargs) + + args_schema.host_group_name._options = ['--host-group'] + args_schema.host_name._options = ['-n', '--name'] + + args_schema.location._registered = False + args_schema.sku._registered = False + args_schema.tags._registered = False + args_schema.auto_replace_on_failure._registered = False + args_schema.license_type._registered = False + args_schema.platform_fault_domain._registered = False + + return args_schema 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 0cbdc555684..dc77ac6abdd 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 @@ -475,7 +475,7 @@ interactions: - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.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/hostGroups/my-host-group/hosts/my-host?api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"my-host\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host\",\r\n @@ -3711,7 +3711,7 @@ interactions: - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.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/hostGroups/my-host-group/hosts/my-host?api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"my-host\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dedicated_host_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_host_management.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_host_management.yaml index ce35f1bea97..44a9e5d62a4 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_host_management.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_host_management.yaml @@ -13,32 +13,35 @@ interactions: ParameterSetName: - -n -c -g User-Agent: - - AZURECLI/2.47.0 azsdk-python-azure-mgmt-resource/22.0.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 + - 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_host_management_000001?api-version=2024-11-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_host_management_000001","name":"cli_test_vm_host_management_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2023-05-25T23:03:42Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_host_management_000001","name":"cli_test_vm_host_management_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","test":"test_vm_host_management","date":"2026-03-05T05:52:18Z","module":"vm"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '346' + - '393' content-type: - application/json; charset=utf-8 date: - - Thu, 25 May 2023 23:03:43 GMT + - Thu, 05 Mar 2026 05:52:23 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 0D75A685D1E0468AB6446DBBE3A2823A Ref B: SG2AA1070303034 Ref C: 2026-03-05T05:52:23Z' status: code: 200 message: OK @@ -60,13 +63,12 @@ interactions: ParameterSetName: - -n -c -g User-Agent: - - 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 + - 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_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group?api-version=2024-11-01 response: body: - string: "{\r\n \"name\": \"my-host-group\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VM_HOST_MANAGEMENT_VSK5JJTFLJXLNBF6EJOQUDHOHV3DYR2RSXARMIO3BG3CNEL/providers/Microsoft.Compute/hostGroups/my-host-group\",\r\n + string: "{\r\n \"name\": \"my-host-group\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VM_HOST_MANAGEMENT_Y4TE2FKHMDCYRNGXNCCBDXM3RPP7R62JDEADYLYQV2N27B2/providers/Microsoft.Compute/hostGroups/my-host-group\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups\",\r\n \"location\": \"westus\",\r\n \ \"properties\": {\r\n \"platformFaultDomainCount\": 3,\r\n \"supportAutomaticPlacement\": false\r\n }\r\n}" @@ -78,25 +80,32 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 May 2023 23:03:45 GMT + - Thu, 05 Mar 2026 05:52:23 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=eeaac044-cddc-4cec-b91d-6c1da8fcdee0/westus/8b19d799-1970-400e-bee6-274cdd04902a x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/PutDeleteDedicatedHost3Min;119,Microsoft.Compute/PutDeleteDedicatedHost30Min;599 + - Microsoft.Compute/PutDeleteDedicatedHostSubscriptionMaximum;119 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: 9850F421BF864890A803DE0B934D1B87 Ref B: SG2AA1070301031 Ref C: 2026-03-05T05:52:23Z' status: code: 201 - message: Created + message: '' - request: body: null headers: @@ -111,39 +120,41 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.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 + - 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_host_management_000001/providers/Microsoft.Compute/hostGroups?api-version=2019-03-01 response: body: - string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"my-host-group\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VM_HOST_MANAGEMENT_VSK5JJTFLJXLNBF6EJOQUDHOHV3DYR2RSXARMIO3BG3CNEL/providers/Microsoft.Compute/hostGroups/my-host-group\",\r\n - \ \"type\": \"Microsoft.Compute/hostGroups\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"platformFaultDomainCount\": 3\r\n }\r\n - \ }\r\n ]\r\n}" + string: '{"value":[{"name":"my-host-group","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VM_HOST_MANAGEMENT_Y4TE2FKHMDCYRNGXNCCBDXM3RPP7R62JDEADYLYQV2N27B2/providers/Microsoft.Compute/hostGroups/my-host-group","type":"Microsoft.Compute/hostGroups","location":"westus","properties":{"platformFaultDomainCount":3}}]}' headers: cache-control: - no-cache content-length: - - '428' + - '341' content-type: - application/json; charset=utf-8 date: - - Thu, 25 May 2023 23:03:45 GMT + - Thu, 05 Mar 2026 05:52:25 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-original-request-ids: + - 751f8627-8468-418a-a40a-8da1060d9563 x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetDedicatedHost3Min;249 + - Microsoft.Compute/GetDedicatedHostSubscriptionMaximum;539 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 36E27A254EA8448990A13D6B02FA2109 Ref B: SG2AA1070303042 Ref C: 2026-03-05T05:52:25Z' status: code: 200 message: OK @@ -161,38 +172,41 @@ interactions: ParameterSetName: - -n --host-group -d -g --sku User-Agent: - - AZURECLI/2.47.0 azsdk-python-azure-mgmt-resource/22.0.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 + - 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_host_management_000001?api-version=2024-11-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_host_management_000001","name":"cli_test_vm_host_management_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2023-05-25T23:03:42Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_host_management_000001","name":"cli_test_vm_host_management_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","test":"test_vm_host_management","date":"2026-03-05T05:52:18Z","module":"vm"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '346' + - '393' content-type: - application/json; charset=utf-8 date: - - Thu, 25 May 2023 23:03:46 GMT + - Thu, 05 Mar 2026 05:52:25 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 2AC3A41F346A416D839D795C4E800FB6 Ref B: SG2AA1040512042 Ref C: 2026-03-05T05:52:25Z' status: code: 200 message: OK - request: - body: '{"location": "westus", "sku": {"name": "DSv3-Type1"}, "properties": {"platformFaultDomain": - 2}}' + body: '{"location": "westus", "properties": {"platformFaultDomain": 2}, "sku": + {"name": "DCSv2-Type1"}}' headers: Accept: - application/json @@ -203,56 +217,62 @@ interactions: Connection: - keep-alive Content-Length: - - '95' + - '96' Content-Type: - application/json ParameterSetName: - -n --host-group -d -g --sku User-Agent: - - 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 + - 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_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"my-host\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"westus\",\r\n - \ \"sku\": {\r\n \"name\": \"DSv3-Type1\"\r\n },\r\n \"properties\": + \ \"sku\": {\r\n \"name\": \"DCSv2-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": 2,\r\n \"autoReplaceOnFailure\": true,\r\n - \ \"hostId\": \"6d6cbc99-3866-4077-a0c2-e6561d64b989\",\r\n \"provisioningState\": - \"Creating\",\r\n \"timeCreated\": \"2023-05-25T23:03:47.8470658+00:00\"\r\n + \ \"hostId\": \"d540fa68-5e31-412d-9ec8-95e529c2df3c\",\r\n \"provisioningState\": + \"Creating\",\r\n \"timeCreated\": \"2026-03-05T05:52:26.8906734+00:00\"\r\n \ }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/7bdcf430-81d6-4fdf-ad56-7adf8d956e85?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2024-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6e9f9185-e5f5-46a0-857d-43d133c229e5?p=7b868834-a188-4556-8f0e-38ea6fa689ce&api-version=2024-11-01&t=639082867470960290&c=MIIHhzCCBm-gAwIBAgITHgf_SDN0U0Mca1SI0QAAB_9IMzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjYwMjE5MDYyODQwWhcNMjYwNTI0MjI1NzAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3gBluMdrlD6ardxpqPmBS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g-rZNF6SxzSWnEzmKCIVtHC_4lvCAtexAJWshMLjYvNKYi9WTvrrtCKixbaK9Y4uLtPGLUgNVtMFnJIc&s=TSQ0PHjiG3VS40EHK3AC0-wawxMiEow_bbQRy4kfeMHw7NDkGtAwYw6DtcNtyMQmuKu-o0nRSYYO3NhyoqIv_LAJqimg_pkZ6Mua1_vtT0sgWDDAbQE_MFPerujtbzrGNG6BHyQlrLzjZzGbxWsS0Fgp9hWyBny5MsQd7hH731JZHOByMi5lbyJeVWfUqnxOmWhDothtKSG1Ig6wfDyUEMilXHL6lp5bq00WLZiYE7viV3-Io2g_bY4b94dwttdT_nqnKYj3_5HeiIZlopTscrXK6rMxR779ZgLlBNSt2Ld0_ouSJqm-DdITLT10otqbpSHWhd-XPfWzlw5JDuHjDQ&h=9syV5gkAdtOfF4HueZAyg4SIOsmj8JtGJCAPYkbv5Pk cache-control: - no-cache content-length: - - '564' + - '565' content-type: - application/json; charset=utf-8 date: - - Thu, 25 May 2023 23:03:48 GMT + - Thu, 05 Mar 2026 05:52:26 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=eeaac044-cddc-4cec-b91d-6c1da8fcdee0/westus/793e7151-07e9-4622-9b4f-d213153330e8 x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/PutDeleteDedicatedHost3Min;118,Microsoft.Compute/PutDeleteDedicatedHost30Min;598 + - Microsoft.Compute/PutDeleteDedicatedHostSubscriptionMaximum;118 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: 6954D9D4A2304B97BE185FFC3A9E14EB Ref B: SG2AA1070301052 Ref C: 2026-03-05T05:52:26Z' status: code: 201 - message: Created + message: '' - request: body: null headers: @@ -267,15 +287,67 @@ interactions: ParameterSetName: - -n --host-group -d -g --sku User-Agent: - - 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 + - AZURECLI/2.84.0 azsdk-python-core/1.38.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/7bdcf430-81d6-4fdf-ad56-7adf8d956e85?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6e9f9185-e5f5-46a0-857d-43d133c229e5?p=7b868834-a188-4556-8f0e-38ea6fa689ce&api-version=2024-11-01&t=639082867470960290&c=MIIHhzCCBm-gAwIBAgITHgf_SDN0U0Mca1SI0QAAB_9IMzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjYwMjE5MDYyODQwWhcNMjYwNTI0MjI1NzAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3gBluMdrlD6ardxpqPmBSYIWUZhonBiNzi4-_Vw3g3Oro9RIUs6ZgPPueDGitorH-JQTqF81P_5QS92kcH5lXb6doPV1q_erI_e20ynOSwv5jOpwnB8O1qCCtpY__wHr-QcB0Lm4K2jLBpKfwOLTZXA5H1VEKxDXmEWP-EQELhaF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uKu-o0nRSYYO3NhyoqIv_LAJqimg_pkZ6Mua1_vtT0sgWDDAbQE_MFPerujtbzrGNG6BHyQlrLzjZzGbxWsS0Fgp9hWyBny5MsQd7hH731JZHOByMi5lbyJeVWfUqnxOmWhDothtKSG1Ig6wfDyUEMilXHL6lp5bq00WLZiYE7viV3-Io2g_bY4b94dwttdT_nqnKYj3_5HeiIZlopTscrXK6rMxR779ZgLlBNSt2Ld0_ouSJqm-DdITLT10otqbpSHWhd-XPfWzlw5JDuHjDQ&h=9syV5gkAdtOfF4HueZAyg4SIOsmj8JtGJCAPYkbv5Pk response: body: - string: "{\r\n \"startTime\": \"2023-05-25T23:03:47.7376851+00:00\",\r\n \"endTime\": - \"2023-05-25T23:03:48.7846726+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"7bdcf430-81d6-4fdf-ad56-7adf8d956e85\"\r\n}" + string: "{\r\n \"startTime\": \"2026-03-05T05:52:26.7812856+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"6e9f9185-e5f5-46a0-857d-43d133c229e5\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 05 Mar 2026 05:52:27 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=eeaac044-cddc-4cec-b91d-6c1da8fcdee0/southeastasia/f4b69d36-116c-4eb2-8b42-8370213b970e + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperationResource;44,Microsoft.Compute/GetOperationSubscriptionMaximum;14999 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 3544DC84C04742879BBF09F020826289 Ref B: SG2AA1040515060 Ref C: 2026-03-05T05:52:27Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm host create + Connection: + - keep-alive + ParameterSetName: + - -n --host-group -d -g --sku + User-Agent: + - AZURECLI/2.84.0 azsdk-python-core/1.38.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6e9f9185-e5f5-46a0-857d-43d133c229e5?p=7b868834-a188-4556-8f0e-38ea6fa689ce&api-version=2024-11-01&t=639082867470960290&c=MIIHhzCCBm-gAwIBAgITHgf_SDN0U0Mca1SI0QAAB_9IMzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjYwMjE5MDYyODQwWhcNMjYwNTI0MjI1NzAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3gBluMdrlD6ardxpqPmBSYIWUZhonBiNzi4-_Vw3g3Oro9RIUs6ZgPPueDGitorH-JQTqF81P_5QS92kcH5lXb6doPV1q_erI_e20ynOSwv5jOpwnB8O1qCCtpY__wHr-QcB0Lm4K2jLBpKfwOLTZXA5H1VEKxDXmEWP-EQELhaFdVIeJT0qwvEmhDGKnNn1-T2y6yZrYJaboDSEK8AB9KXc3mWLIwh8_G9twTikTy2PuHSzGUy9QLpQMImh2VVk5Ry0Pfpaypw8fNupz4-WjXfVayKHDyMN5Sbe7kFmbdxnISJ2hOyPiNlGB5nUXpHRpMys37mof_UwKdRJcixQECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUH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qm-DdITLT10otqbpSHWhd-XPfWzlw5JDuHjDQ&h=9syV5gkAdtOfF4HueZAyg4SIOsmj8JtGJCAPYkbv5Pk + response: + body: + string: "{\r\n \"startTime\": \"2026-03-05T05:52:26.7812856+00:00\",\r\n \"endTime\": + \"2026-03-05T05:52:28.4062927+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"6e9f9185-e5f5-46a0-857d-43d133c229e5\"\r\n}" headers: cache-control: - no-cache @@ -284,27 +356,30 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 May 2023 23:04:18 GMT + - Thu, 05 Mar 2026 05:52:58 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=eeaac044-cddc-4cec-b91d-6c1da8fcdee0/southeastasia/1c09be18-6651-4571-b860-a654583a085d x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29999 + - Microsoft.Compute/GetOperationResource;43,Microsoft.Compute/GetOperationSubscriptionMaximum;14998 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 7D475013C09E407584AF9D0DEAA03AF2 Ref B: SG2AA1070304040 Ref C: 2026-03-05T05:52:58Z' status: code: 200 - message: OK + message: '' - request: body: null headers: @@ -319,49 +394,49 @@ interactions: ParameterSetName: - -n --host-group -d -g --sku User-Agent: - - 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 + - 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_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host?api-version=2024-11-01 response: body: string: "{\r\n \"name\": \"my-host\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"westus\",\r\n - \ \"sku\": {\r\n \"name\": \"DSv3-Type1\"\r\n },\r\n \"properties\": + \ \"sku\": {\r\n \"name\": \"DCSv2-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": 2,\r\n \"autoReplaceOnFailure\": true,\r\n - \ \"hostId\": \"6d6cbc99-3866-4077-a0c2-e6561d64b989\",\r\n \"virtualMachines\": - [],\r\n \"provisioningTime\": \"2023-05-25T23:03:48.3627401+00:00\",\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2023-05-25T23:03:47.8470658+00:00\"\r\n + \ \"hostId\": \"d540fa68-5e31-412d-9ec8-95e529c2df3c\",\r\n \"virtualMachines\": + [],\r\n \"provisioningTime\": \"2026-03-05T05:52:28.2657271+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2026-03-05T05:52:26.8906734+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '655' + - '656' content-type: - application/json; charset=utf-8 date: - - Thu, 25 May 2023 23:04:18 GMT + - Thu, 05 Mar 2026 05:52:58 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetDedicatedHost3Min;247,Microsoft.Compute/GetDedicatedHost30Min;998 + - Microsoft.Compute/GetDedicatedHostSubscriptionMaximum;536 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 798AC1844BED4A628EC8A72A2D3DA1C3 Ref B: SG2AA1070301025 Ref C: 2026-03-05T05:52:59Z' status: code: 200 - message: OK + message: '' - request: body: null headers: @@ -376,47 +451,41 @@ interactions: ParameterSetName: - --host-group -g User-Agent: - - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.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 + - 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_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts?api-version=2022-11-01 response: body: - string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"my-host\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VM_HOST_MANAGEMENT_VSK5JJTFLJXLNBF6EJOQUDHOHV3DYR2RSXARMIO3BG3CNEL/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host\",\r\n - \ \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": - \"westus\",\r\n \"sku\": {\r\n \"name\": \"DSv3-Type1\"\r\n },\r\n - \ \"properties\": {\r\n \"platformFaultDomain\": 2,\r\n \"autoReplaceOnFailure\": - true,\r\n \"hostId\": \"6d6cbc99-3866-4077-a0c2-e6561d64b989\",\r\n - \ \"virtualMachines\": [],\r\n \"provisioningTime\": \"2023-05-25T23:03:48.3627401+00:00\",\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": - \"2023-05-25T23:03:47.8470658+00:00\"\r\n }\r\n }\r\n ]\r\n}" + string: '{"value":[{"name":"my-host","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VM_HOST_MANAGEMENT_Y4TE2FKHMDCYRNGXNCCBDXM3RPP7R62JDEADYLYQV2N27B2/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host","type":"Microsoft.Compute/hostGroups/hosts","location":"westus","sku":{"name":"DCSv2-Type1"},"properties":{"platformFaultDomain":2,"autoReplaceOnFailure":true,"hostId":"d540fa68-5e31-412d-9ec8-95e529c2df3c","virtualMachines":[],"provisioningTime":"2026-03-05T05:52:28.2657271+00:00","provisioningState":"Succeeded","timeCreated":"2026-03-05T05:52:26.8906734+00:00"}}]}' headers: cache-control: - no-cache content-length: - - '793' + - '613' content-type: - application/json; charset=utf-8 date: - - Thu, 25 May 2023 23:04:18 GMT + - Thu, 05 Mar 2026 05:52:59 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-original-request-ids: + - c4dff6e4-e37c-455f-8946-22bc41831da6 x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetDedicatedHost3Min;246,Microsoft.Compute/GetDedicatedHost30Min;997 + - Microsoft.Compute/GetDedicatedHostSubscriptionMaximum;535 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 6D2AE87EB1E048599A8E9BA1D3FE3768 Ref B: SG2AA1070301031 Ref C: 2026-03-05T05:53:00Z' status: code: 200 message: OK @@ -434,16 +503,15 @@ interactions: ParameterSetName: - -n -g --set User-Agent: - - 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 + - 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_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group?api-version=2024-11-01 response: body: - string: "{\r\n \"name\": \"my-host-group\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VM_HOST_MANAGEMENT_VSK5JJTFLJXLNBF6EJOQUDHOHV3DYR2RSXARMIO3BG3CNEL/providers/Microsoft.Compute/hostGroups/my-host-group\",\r\n + string: "{\r\n \"name\": \"my-host-group\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VM_HOST_MANAGEMENT_Y4TE2FKHMDCYRNGXNCCBDXM3RPP7R62JDEADYLYQV2N27B2/providers/Microsoft.Compute/hostGroups/my-host-group\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups\",\r\n \"location\": \"westus\",\r\n \ \"properties\": {\r\n \"platformFaultDomainCount\": 3,\r\n \"hosts\": - [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VM_HOST_MANAGEMENT_VSK5JJTFLJXLNBF6EJOQUDHOHV3DYR2RSXARMIO3BG3CNEL/providers/Microsoft.Compute/hostGroups/MY-HOST-GROUP/hosts/MY-HOST\"\r\n + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VM_HOST_MANAGEMENT_Y4TE2FKHMDCYRNGXNCCBDXM3RPP7R62JDEADYLYQV2N27B2/providers/Microsoft.Compute/hostGroups/MY-HOST-GROUP/hosts/MY-HOST\"\r\n \ }\r\n ],\r\n \"supportAutomaticPlacement\": false\r\n }\r\n}" headers: cache-control: @@ -453,27 +521,28 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 May 2023 23:04:19 GMT + - Thu, 05 Mar 2026 05:53:00 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetDedicatedHost30Min;996 + - Microsoft.Compute/GetDedicatedHostSubscriptionMaximum;534 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: F3A06B3B662C475D98FA089D4CCBB094 Ref B: SG2AA1040518023 Ref C: 2026-03-05T05:53:00Z' status: code: 200 - message: OK + message: '' - request: body: '{"location": "westus", "tags": {"foo": "bar"}, "properties": {"platformFaultDomainCount": 3, "supportAutomaticPlacement": false}}' @@ -493,13 +562,12 @@ interactions: ParameterSetName: - -n -g --set User-Agent: - - 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 + - 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_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group?api-version=2024-11-01 response: body: - string: "{\r\n \"name\": \"my-host-group\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VM_HOST_MANAGEMENT_VSK5JJTFLJXLNBF6EJOQUDHOHV3DYR2RSXARMIO3BG3CNEL/providers/Microsoft.Compute/hostGroups/my-host-group\",\r\n + string: "{\r\n \"name\": \"my-host-group\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VM_HOST_MANAGEMENT_Y4TE2FKHMDCYRNGXNCCBDXM3RPP7R62JDEADYLYQV2N27B2/providers/Microsoft.Compute/hostGroups/my-host-group\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {\r\n \"foo\": \"bar\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomainCount\": 3,\r\n \"supportAutomaticPlacement\": false\r\n }\r\n}" @@ -511,26 +579,75 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 May 2023 23:04:20 GMT + - Thu, 05 Mar 2026 05:53:01 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=eeaac044-cddc-4cec-b91d-6c1da8fcdee0/westus/3e05ca33-3a1e-41fc-b6e8-0b1d60c40d26 x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/PutDeleteDedicatedHost3Min;117,Microsoft.Compute/PutDeleteDedicatedHost30Min;597 + - Microsoft.Compute/PutDeleteDedicatedHostSubscriptionMaximum;117 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: BBC420EEF2684374BDC7392C1415D4EE Ref B: SG2AA1040512054 Ref C: 2026-03-05T05:53:01Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm host update + Connection: + - keep-alive + ParameterSetName: + - -n --host-group -g --set + 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_host_management_000001?api-version=2024-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_host_management_000001","name":"cli_test_vm_host_management_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","test":"test_vm_host_management","date":"2026-03-05T05:52:18Z","module":"vm"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '393' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 05 Mar 2026 05:53:02 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 7D5AC7AC24AE411C8C8671442116C182 Ref B: SG2AA1070304040 Ref C: 2026-03-05T05:53:02Z' status: code: 200 message: OK @@ -548,52 +665,52 @@ interactions: ParameterSetName: - -n --host-group -g --set User-Agent: - - 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 + - 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_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host?api-version=2022-11-01 response: body: string: "{\r\n \"name\": \"my-host\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"westus\",\r\n - \ \"sku\": {\r\n \"name\": \"DSv3-Type1\"\r\n },\r\n \"properties\": + \ \"sku\": {\r\n \"name\": \"DCSv2-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": 2,\r\n \"autoReplaceOnFailure\": true,\r\n - \ \"hostId\": \"6d6cbc99-3866-4077-a0c2-e6561d64b989\",\r\n \"virtualMachines\": - [],\r\n \"provisioningTime\": \"2023-05-25T23:03:48.3627401+00:00\",\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2023-05-25T23:03:47.8470658+00:00\"\r\n + \ \"hostId\": \"d540fa68-5e31-412d-9ec8-95e529c2df3c\",\r\n \"virtualMachines\": + [],\r\n \"provisioningTime\": \"2026-03-05T05:52:28.2657271+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2026-03-05T05:52:26.8906734+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '655' + - '656' content-type: - application/json; charset=utf-8 date: - - Thu, 25 May 2023 23:04:20 GMT + - Thu, 05 Mar 2026 05:53:03 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetDedicatedHost3Min;245,Microsoft.Compute/GetDedicatedHost30Min;995 + - Microsoft.Compute/GetDedicatedHostSubscriptionMaximum;533 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 19722946C30743AD96E5CADD4B950344 Ref B: SG2AA1040518025 Ref C: 2026-03-05T05:53:02Z' status: code: 200 - message: OK + message: '' - request: - body: '{"location": "westus", "tags": {"foo": "bar"}, "sku": {"name": "DSv3-Type1"}, - "properties": {"platformFaultDomain": 2, "autoReplaceOnFailure": true}}' + body: '{"location": "westus", "properties": {"autoReplaceOnFailure": true, "platformFaultDomain": + 2}, "sku": {"name": "DCSv2-Type1"}, "tags": {"foo": "bar"}}' headers: Accept: - application/json @@ -604,61 +721,63 @@ interactions: Connection: - keep-alive Content-Length: - - '149' + - '150' Content-Type: - application/json ParameterSetName: - -n --host-group -g --set User-Agent: - - 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 + - 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_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host?api-version=2022-11-01 response: body: string: "{\r\n \"name\": \"my-host\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {\r\n \"foo\": \"bar\"\r\n },\r\n \"sku\": {\r\n \"name\": - \"DSv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": - 2,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"6d6cbc99-3866-4077-a0c2-e6561d64b989\",\r\n - \ \"provisioningTime\": \"2023-05-25T23:03:48.3627401+00:00\",\r\n \"provisioningState\": - \"Updating\",\r\n \"timeCreated\": \"2023-05-25T23:03:47.8470658+00:00\"\r\n + \"DCSv2-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": + 2,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"d540fa68-5e31-412d-9ec8-95e529c2df3c\",\r\n + \ \"provisioningTime\": \"2026-03-05T05:52:28.2657271+00:00\",\r\n \"provisioningState\": + \"Updating\",\r\n \"timeCreated\": \"2026-03-05T05:52:26.8906734+00:00\"\r\n \ }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/3c40b1a2-a93e-493b-8a9f-bd500aa5b73a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2024-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/5e33f996-21f7-49c4-9666-fb650e67fa87?p=7b868834-a188-4556-8f0e-38ea6fa689ce&api-version=2022-11-01&t=639082867836297090&c=MIIHhzCCBm-gAwIBAgITHgf_SDN0U0Mca1SI0QAAB_9IMzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjYwMjE5MDYyODQwWhcNMjYwNTI0MjI1NzAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL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IWUbKqOIqoTVE7ZWq0g-rZNF6SxzSWnEzmKCIVtHC_4lvCAtexAJWshMLjYvNKYi9WTvrrtCKixbaK9Y4uLtPGLUgNVtMFnJIc&s=vC1VDptLg_-de3HUDS33uDA3rTBaYVPzPtopfR7uPT_1rnWIBuucwXIsf3bAe9tu3mLdva-q-BOeZweQFLC6Xwa4CO1TfkDJLcRT5f6mwpbLpTZD6uPoqHFI8O9NokUgnSnOS3y36qW-JXP8fBo-B8B4RtGiNW5mejFsqj4f8kW5rrKF_ydsdtYshoPTeyHiVhCWhmc85pcylwecXu1pl7DsLZvV02wP14CKmfdvSZb3iJm979UW79sA3GPf4WC5UUs0_i02Q-3ZBBKe-zZPGOxNfuFHxhri4jte_yAtmhaaqzoATQMLDqkVgPyi_mcTRdtaXEhWwXQYLKuxnLXohA&h=6lwuxG5OpsXO_0Bd3l-_-NVETrJsbScQYfBduf19yu0 cache-control: - no-cache content-length: - - '663' + - '664' content-type: - application/json; charset=utf-8 date: - - Thu, 25 May 2023 23:04:21 GMT + - Thu, 05 Mar 2026 05:53:02 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=eeaac044-cddc-4cec-b91d-6c1da8fcdee0/westus/5b83d630-6fe7-44a2-8866-c293bb4a850a x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/PutDeleteDedicatedHost3Min;116,Microsoft.Compute/PutDeleteDedicatedHost30Min;596 + - Microsoft.Compute/PutDeleteDedicatedHostSubscriptionMaximum;116 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '199' + x-msedge-ref: + - 'Ref A: E8C43D2EACB14EF589544773070FF8FA Ref B: SG2AA1040519023 Ref C: 2026-03-05T05:53:03Z' status: code: 200 - message: OK + message: '' - request: body: null headers: @@ -673,15 +792,14 @@ interactions: ParameterSetName: - -n --host-group -g --set User-Agent: - - 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 + - AZURECLI/2.84.0 azsdk-python-core/1.38.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/3c40b1a2-a93e-493b-8a9f-bd500aa5b73a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/5e33f996-21f7-49c4-9666-fb650e67fa87?p=7b868834-a188-4556-8f0e-38ea6fa689ce&api-version=2022-11-01&t=639082867836297090&c=MIIHhzCCBm-gAwIBAgITHgf_SDN0U0Mca1SI0QAAB_9IMzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjYwMjE5MDYyODQwWhcNMjYwNTI0MjI1NzAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3gBluMdrlD6ardxpqPmBSYIWUZhonBiNzi4-_Vw3g3Oro9RIUs6ZgPPueDGitorH-JQTqF81P_5QS92kcH5lXb6doPV1q_erI_e20ynOSwv5jOpwnB8O1qCCtpY__wHr-QcB0L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YVPzPtopfR7uPT_1rnWIBuucwXIsf3bAe9tu3mLdva-q-BOeZweQFLC6Xwa4CO1TfkDJLcRT5f6mwpbLpTZD6uPoqHFI8O9NokUgnSnOS3y36qW-JXP8fBo-B8B4RtGiNW5mejFsqj4f8kW5rrKF_ydsdtYshoPTeyHiVhCWhmc85pcylwecXu1pl7DsLZvV02wP14CKmfdvSZb3iJm979UW79sA3GPf4WC5UUs0_i02Q-3ZBBKe-zZPGOxNfuFHxhri4jte_yAtmhaaqzoATQMLDqkVgPyi_mcTRdtaXEhWwXQYLKuxnLXohA&h=6lwuxG5OpsXO_0Bd3l-_-NVETrJsbScQYfBduf19yu0 response: body: - string: "{\r\n \"startTime\": \"2023-05-25T23:04:21.4567648+00:00\",\r\n \"endTime\": - \"2023-05-25T23:04:21.5036264+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"3c40b1a2-a93e-493b-8a9f-bd500aa5b73a\"\r\n}" + string: "{\r\n \"startTime\": \"2026-03-05T05:53:03.5004525+00:00\",\r\n \"endTime\": + \"2026-03-05T05:53:03.5472864+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"5e33f996-21f7-49c4-9666-fb650e67fa87\"\r\n}" headers: cache-control: - no-cache @@ -690,27 +808,30 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 May 2023 23:04:51 GMT + - Thu, 05 Mar 2026 05:53:03 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=eeaac044-cddc-4cec-b91d-6c1da8fcdee0/southeastasia/cd0086ed-45f8-446f-98ee-ed3260e8368e x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29998 + - Microsoft.Compute/GetOperationResource;44,Microsoft.Compute/GetOperationSubscriptionMaximum;14997 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 692D6E43F0ED4C5CB57CDC5EC138B6A2 Ref B: SG2AA1040517034 Ref C: 2026-03-05T05:53:04Z' status: code: 200 - message: OK + message: '' - request: body: null headers: @@ -725,49 +846,49 @@ interactions: ParameterSetName: - -n --host-group -g --set User-Agent: - - 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 + - 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_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host?api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host?api-version=2022-11-01 response: body: string: "{\r\n \"name\": \"my-host\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {\r\n \"foo\": \"bar\"\r\n },\r\n \"sku\": {\r\n \"name\": - \"DSv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": - 2,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"6d6cbc99-3866-4077-a0c2-e6561d64b989\",\r\n - \ \"virtualMachines\": [],\r\n \"provisioningTime\": \"2023-05-25T23:03:48.3627401+00:00\",\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2023-05-25T23:03:47.8470658+00:00\"\r\n + \"DCSv2-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": + 2,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"d540fa68-5e31-412d-9ec8-95e529c2df3c\",\r\n + \ \"virtualMachines\": [],\r\n \"provisioningTime\": \"2026-03-05T05:52:28.2657271+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2026-03-05T05:52:26.8906734+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '692' + - '693' content-type: - application/json; charset=utf-8 date: - - Thu, 25 May 2023 23:04:51 GMT + - Thu, 05 Mar 2026 05:53:04 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetDedicatedHost3Min;243,Microsoft.Compute/GetDedicatedHost30Min;993 + - Microsoft.Compute/GetDedicatedHostSubscriptionMaximum;530 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 783D60BFDDA74709B9411ED5FA39884C Ref B: SG2AA1040515025 Ref C: 2026-03-05T05:53:04Z' status: code: 200 - message: OK + message: '' - request: body: null headers: @@ -784,8 +905,7 @@ interactions: ParameterSetName: - -n --host-group -g --yes User-Agent: - - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.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 + - AZURECLI/2.84.0 azsdk-python-core/1.38.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group/hosts/my-host?api-version=2022-11-01 response: @@ -795,33 +915,40 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/2b7662d0-8698-4b7f-9563-72dddd680efb?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2024-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/c83ad088-146f-4f3a-970c-de7f1403bfee?p=7b868834-a188-4556-8f0e-38ea6fa689ce&api-version=2022-11-01&t=639082867865902301&c=MIIHhzCCBm-gAwIBAgITHgf_SDN0U0Mca1SI0QAAB_9IMzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjYwMjE5MDYyODQwWhcNMjYwNTI0MjI1NzAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3gBluMdrlD6ardxpqPmBSYIWUZhonBiNzi4-_Vw3g3Oro9RIUs6ZgPPueDGitorH-JQTqF81P_5QS92kcH5lXb6doPV1q_erI_e20ynOSwv5jOpwnB8O1qCCtpY__wHr-QcB0Lm4K2jLBpKfwOLTZXA5H1VEKxDXmEWP-EQELhaFdVIeJT0qwvEmhDGKnNn1-T2y6yZrYJaboDSEK8AB9KXc3mWLIwh8_G9twTikTy2PuHSzGUy9QLpQMImh2VVk5Ry0Pfpaypw8f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5YlAGffrkgfPg-es5njRkHA7cSYc06pyou7iiInkIaJ9Xz3CFoZQ_pc9iA3q_pdSQcvn_nTf0cixe_ubZol1JTU5tKyASR-Bbb5ATiHvbUuxio4NbLPtfjzePVnR6CNDefPksVAJ6m65XKSwNdMdXOYRnkaBwCQi4mRBlBFTQjuz3McSQNdLQ&h=uCZ-Wb0oFA-A2Gn0YU9ayom85WZFxyzc3umEQX6rs5I cache-control: - no-cache content-length: - '0' date: - - Thu, 25 May 2023 23:04:52 GMT + - Thu, 05 Mar 2026 05:53:06 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/2b7662d0-8698-4b7f-9563-72dddd680efb?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2024-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/c83ad088-146f-4f3a-970c-de7f1403bfee?p=7b868834-a188-4556-8f0e-38ea6fa689ce&monitor=true&api-version=2022-11-01&t=639082867865902301&c=MIIHhzCCBm-gAwIBAgITHgf_SDN0U0Mca1SI0QAAB_9IMzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjYwMjE5MDYyODQwWhcNMjYwNTI0MjI1NzAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3gBluMdrlD6ardxpqPmBSYIWUZhonBiNzi4-_Vw3g3Oro9RIUs6ZgPPueDGitorH-JQTqF81P_5QS92kcH5lXb6doPV1q_erI_e20ynOSwv5jOpwnB8O1qCCtpY__wHr-QcB0Lm4K2jLBpKfwO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dgr-jFB6wM146WyzK3IxUf-Bw_cto1C7wGjpoCqKS8_BruzpAuqjkJWjrDadjzQV0jS-vZlcHhJRgTQBBEIkdYDI_LsCS6N3rTKjzVnwyGOJtgorPdCo_yoVqx1W5YlAGffrkgfPg-es5njRkHA7cSYc06pyou7iiInkIaJ9Xz3CFoZQ_pc9iA3q_pdSQcvn_nTf0cixe_ubZol1JTU5tKyASR-Bbb5ATiHvbUuxio4NbLPtfjzePVnR6CNDefPksVAJ6m65XKSwNdMdXOYRnkaBwCQi4mRBlBFTQjuz3McSQNdLQ&h=uCZ-Wb0oFA-A2Gn0YU9ayom85WZFxyzc3umEQX6rs5I pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=eeaac044-cddc-4cec-b91d-6c1da8fcdee0/westus/ba61ce66-5820-4909-a196-3cbb4863634a x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/PutDeleteDedicatedHost3Min;115,Microsoft.Compute/PutDeleteDedicatedHost30Min;595 + - Microsoft.Compute/PutDeleteDedicatedHostSubscriptionMaximum;115 x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: 75467FF85A864E5B80CC9CF6146072D2 Ref B: SG2AA1070303062 Ref C: 2026-03-05T05:53:05Z' status: code: 202 - message: Accepted + message: '' - request: body: null headers: @@ -836,44 +963,46 @@ interactions: ParameterSetName: - -n --host-group -g --yes User-Agent: - - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.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 + - AZURECLI/2.84.0 azsdk-python-core/1.38.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/2b7662d0-8698-4b7f-9563-72dddd680efb?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2024-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/c83ad088-146f-4f3a-970c-de7f1403bfee?p=7b868834-a188-4556-8f0e-38ea6fa689ce&api-version=2022-11-01&t=639082867865902301&c=MIIHhzCCBm-gAwIBAgITHgf_SDN0U0Mca1SI0QAAB_9IMzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjYwMjE5MDYyODQwWhcNMjYwNTI0MjI1NzAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3gBluMdrlD6ardxpqPmBSYIWUZhonBiNzi4-_Vw3g3Oro9RIUs6ZgPPueDGitorH-JQTqF81P_5QS92kcH5lXb6doPV1q_erI_e20ynOSwv5jOpwnB8O1qCCtpY__wHr-QcB0Lm4K2jLBpKfwOLTZXA5H1VEKxDXmEWP-EQELhaFdVIeJT0qwvEmhDGKnNn1-T2y6yZrYJaboDSEK8AB9KXc3mWLIwh8_G9twTikTy2PuHSzGUy9QLpQMImh2VVk5Ry0Pfpaypw8fNupz4-WjXfVayKHDyMN5Sbe7kFmbdxnISJ2hOyPiNlGB5nUXpHRpMys37mof_UwKdRJcixQECAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYI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J6m65XKSwNdMdXOYRnkaBwCQi4mRBlBFTQjuz3McSQNdLQ&h=uCZ-Wb0oFA-A2Gn0YU9ayom85WZFxyzc3umEQX6rs5I response: body: - string: "{\r\n \"startTime\": \"2023-05-25T23:04:52.9883002+00:00\",\r\n \"endTime\": - \"2023-05-25T23:04:53.1289708+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"2b7662d0-8698-4b7f-9563-72dddd680efb\"\r\n}" + string: "{\r\n \"startTime\": \"2026-03-05T05:53:06.5317685+00:00\",\r\n \"endTime\": + \"2026-03-05T05:53:06.719196+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"c83ad088-146f-4f3a-970c-de7f1403bfee\"\r\n}" headers: cache-control: - no-cache content-length: - - '184' + - '183' content-type: - application/json; charset=utf-8 date: - - Thu, 25 May 2023 23:05:22 GMT + - Thu, 05 Mar 2026 05:53:06 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=eeaac044-cddc-4cec-b91d-6c1da8fcdee0/southeastasia/a534e78e-69e9-4c73-8e8d-763634d192df x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29997 + - Microsoft.Compute/GetOperationResource;44,Microsoft.Compute/GetOperationSubscriptionMaximum;14996 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 3C36180BFC10484196445073F0ED7E56 Ref B: SG2AA1070306031 Ref C: 2026-03-05T05:53:07Z' status: code: 200 - message: OK + message: '' - request: body: null headers: @@ -890,8 +1019,7 @@ interactions: ParameterSetName: - -n -g --yes User-Agent: - - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.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 + - AZURECLI/2.84.0 azsdk-python-core/1.38.0 Python/3.12.10 (Windows-11-10.0.26200-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_host_management_000001/providers/Microsoft.Compute/hostGroups/my-host-group?api-version=2019-03-01 response: @@ -903,23 +1031,30 @@ interactions: content-length: - '0' date: - - Thu, 25 May 2023 23:05:24 GMT + - Thu, 05 Mar 2026 05:53:08 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-operation-identifier: + - tenantId=ed94de55-1f87-4278-9651-525e7ba467d6,objectId=eeaac044-cddc-4cec-b91d-6c1da8fcdee0/westus/ef82e22d-1a35-438d-bd2b-befcfa242111 x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/PutDeleteDedicatedHost3Min;114,Microsoft.Compute/PutDeleteDedicatedHost30Min;594 + - Microsoft.Compute/PutDeleteDedicatedHostSubscriptionMaximum;114 x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: F9CD9BB42932406B9FF7400081A93C2C Ref B: SG2AA1040517036 Ref C: 2026-03-05T05:53:08Z' status: code: 200 - message: OK + message: '' version: 1 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 45b1af81cf1..7e5f3b706bc 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 @@ -9429,7 +9429,7 @@ def _assert_ids_equal(self, id_1, id_2, rg_prefix=None): # region dedicated host tests class DedicatedHostScenarioTest(ScenarioTest): - @ResourceGroupPreparer(name_prefix='cli_test_vm_host_management_', location='eastus') + @ResourceGroupPreparer(name_prefix='cli_test_vm_host_management_', location='westus') def test_vm_host_management(self, resource_group): self.kwargs.update({ 'host-group': 'my-host-group', @@ -9441,7 +9441,7 @@ def test_vm_host_management(self, resource_group): self.check('length(@)', 1), self.check('[0].name', '{host-group}') ]) - self.cmd('vm host create -n {host} --host-group {host-group} -d 2 -g {rg} --sku DSv3-Type1') + self.cmd('vm host create -n {host} --host-group {host-group} -d 2 -g {rg} --sku DCSv2-Type1') self.cmd('vm host list --host-group {host-group} -g {rg}', checks=[ self.check('length(@)', 1), self.check('[0].name', '{host}')