Condividi tramite


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

Constructor

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

Name Description
tags

Resource tags.

Default value: None
location
str

The geo-location where the resource lives. Required.

sku
Sku

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.

platform_fault_domain
int

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

Default value: None
auto_replace_on_failure

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

Default value: None
license_type

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. The default value is: None.. Known values are: "None", "Windows_Server_Hybrid", and "Windows_Server_Perpetual".

Default value: None

Variables

Name Description
id
str

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
str

The name of the resource.

type
str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

system_data

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags

Resource tags.

location
str

The geo-location where the resource lives. Required.

sku
Sku

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.

platform_fault_domain
int

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

auto_replace_on_failure

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

host_id
str

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

virtual_machines

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

license_type

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. The default value is: None.. Known values are: "None", "Windows_Server_Hybrid", and "Windows_Server_Perpetual".

provisioning_time

The date when the host was first provisioned.

provisioning_state
str

The provisioning state, which only appears in the response.

instance_view

The dedicated host instance view.

time_created

Specifies the time at which the Dedicated Host resource was created. Minimum api-version: 2021-11-01.