Partager via


DedicatedHostGroup Class

Specifies information about the dedicated host group that the dedicated hosts should be assigned to. <br>``<br> Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group.

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.

Inheritance
azure.mgmt.compute.v2021_03_01.models._models_py3.Resource
DedicatedHostGroup

Constructor

DedicatedHostGroup(*, location: str, tags: Dict[str, str] | None = None, zones: List[str] | None = None, platform_fault_domain_count: int | None = None, support_automatic_placement: bool | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
location
str

Resource location. Required.

tags

Resource tags.

zones

Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone.

platform_fault_domain_count
int

Number of fault domains that the host group can span.

support_automatic_placement

Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided. <br>:code:>><<<br>Minimum api-version: 2020-06-01.

Variables

Name Description
id
str

Resource Id.

name
str

Resource name.

type
str

Resource type.

location
str

Resource location. Required.

tags

Resource tags.

zones

Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone.

platform_fault_domain_count
int

Number of fault domains that the host group can span.

hosts

A list of references to all dedicated hosts in the dedicated host group.

instance_view

The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the dedicated host group.

support_automatic_placement

Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided. <br>:code:>><<<br>Minimum api-version: 2020-06-01.