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

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

Constructor

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

Parameters

location
str
Required

Required. Resource location.

tags
dict[str, str]
Required

A set of tags. Resource tags.

zones
list[str]
Required

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
Required

Number of fault domains that the host group can span.

support_automatic_placement
bool
Required

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

id
str

Resource Id.

name
str

Resource name.

type
str

Resource type.

hosts
list[SubResourceReadOnly]

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

instance_view
DedicatedHostGroupInstanceView

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