你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DedicatedHost 类

指定有关专用主机的信息。

变量仅由服务器填充,在发送请求时将被忽略。

必须填充所有必需的参数才能发送到 Azure。

继承
azure.mgmt.compute.v2023_03_01.models._models_py3.Resource
DedicatedHost

构造函数

DedicatedHost(*, location: str, sku: _models.Sku, tags: Dict[str, str] | None = None, platform_fault_domain: int | None = None, auto_replace_on_failure: bool | None = None, license_type: str | _models.DedicatedHostLicenseTypes | None = None, **kwargs: Any)

Keyword-Only Parameters

location
str

资源位置。 必需。

tags
dict[str, str]

资源标记。

sku
Sku

硬件代系和 VM 系列的专用主机的 SKU。 只需设置名称。 列出 Microsoft.Compute SKU 以获取可能值的列表。 必需。

platform_fault_domain
int

专用主机组中专用主机的容错域。

auto_replace_on_failure
bool

指定在发生故障时是否应自动替换专用主机。 如果未提供该值,则该值默认为“true”。

license_type
strDedicatedHostLicenseTypes

指定将应用于部署在专用主机上的 VM 的软件许可证类型。 可能的值为: None、Windows_Server_Hybrid、Windows_Server_Perpetual。 默认值为: None。。 已知值为:“None”、“Windows_Server_Hybrid”和“Windows_Server_Perpetual”。

变量

id
str

资源 ID。

name
str

资源名称。

type
str

资源类型。

location
str

资源位置。 必需。

tags
dict[str, str]

资源标记。

sku
Sku

硬件代系和 VM 系列的专用主机的 SKU。 只需设置名称。 列出 Microsoft.Compute SKU 以获取可能值的列表。 必需。

platform_fault_domain
int

专用主机组中专用主机的容错域。

auto_replace_on_failure
bool

指定在发生故障时是否应自动替换专用主机。 如果未提供该值,则该值默认为“true”。

host_id
str

由平台生成并分配给专用主机的唯一 ID。 在主机的整个生存期内不会更改。

virtual_machines
list[SubResourceReadOnly]

对专用主机中所有虚拟机的引用列表。

license_type
strDedicatedHostLicenseTypes

指定将应用于部署在专用主机上的 VM 的软件许可证类型。 可能的值为: None、Windows_Server_Hybrid、Windows_Server_Perpetual。 默认值为: None。。 已知值为:“None”、“Windows_Server_Hybrid”和“Windows_Server_Perpetual”。

provisioning_time
datetime

首次预配主机的日期。

provisioning_state
str

预配状态,仅显示在响应中。

instance_view
DedicatedHostInstanceView

专用主机实例视图。

time_created
datetime

指定创建专用主机资源的时间。 最低 API 版本:2021-11-01。