DedicatedHost Class

Specifies information about the Dedicated host.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.compute.v2019_07_01.models._models_py3.Resource
DedicatedHost

Constructor

DedicatedHost(*, location: str, sku: azure.mgmt.compute.v2019_07_01.models._models_py3.Sku, tags: Optional[Dict[str, str]] = None, platform_fault_domain: Optional[int] = None, auto_replace_on_failure: Optional[bool] = None, license_type: Optional[Union[str, azure.mgmt.compute.v2019_07_01.models._compute_management_client_enums.DedicatedHostLicenseTypes]] = None, **kwargs)

Parameters

location
str
Required

Required. Resource location.

tags
dict[str, str]
Required

A set of tags. Resource tags.

sku
Sku
Required

Required. 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.

platform_fault_domain
int
Required

Fault domain of the dedicated host within a dedicated host group.

auto_replace_on_failure
bool
Required

Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided.

license_type
str or DedicatedHostLicenseTypes
Required

Specifies the software license type that will be applied to the VMs deployed on the dedicated host. <br>``<br> Possible values are: <br>``<br> None <br>``<br> Windows_Server_Hybrid <br>``<br> Windows_Server_Perpetual <br>``<br> Default: None. Possible values include: "None", "Windows_Server_Hybrid", "Windows_Server_Perpetual".

Variables

id
str

Resource Id.

name
str

Resource name.

type
str

Resource type.

host_id
str

A unique id generated and assigned to the dedicated host by the platform. <br>``<br> Does not change throughout the lifetime of the host.

virtual_machines
list[SubResourceReadOnly]

A list of references to all virtual machines in the Dedicated Host.

provisioning_time
datetime

The date when the host was first provisioned.

provisioning_state
str

The provisioning state, which only appears in the response.

instance_view
DedicatedHostInstanceView

The dedicated host instance view.