你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AvailabilitySet Class
Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see Availability sets overview. For more information on Azure planned maintenance, see Maintenance and updates for Virtual Machines in Azure. Currently, a VM can only be added to an availability set at creation time. An existing VM cannot be added to an availability set.
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.v2024_07_01.models._models_py3.ResourceAvailabilitySet
Constructor
AvailabilitySet(*, location: str, tags: Dict[str, str] | None = None, sku: _models.Sku | None = None, platform_update_domain_count: int | None = None, platform_fault_domain_count: int | None = None, virtual_machines: List[_models.SubResource] | None = None, proximity_placement_group: _models.SubResource | None = None, scheduled_events_policy: _models.ScheduledEventsPolicy | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
location
|
Resource location. Required. |
tags
|
Resource tags. |
sku
|
Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'. |
platform_update_domain_count
|
Update Domain count. |
platform_fault_domain_count
|
Fault Domain count. |
virtual_machines
|
A list of references to all virtual machines in the availability set. |
proximity_placement_group
|
Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01. |
scheduled_events_policy
|
Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set. |
Variables
Name | Description |
---|---|
id
|
Resource Id. |
name
|
Resource name. |
type
|
Resource type. |
location
|
Resource location. Required. |
tags
|
Resource tags. |
sku
|
Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'. |
platform_update_domain_count
|
Update Domain count. |
platform_fault_domain_count
|
Fault Domain count. |
virtual_machines
|
A list of references to all virtual machines in the availability set. |
proximity_placement_group
|
Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01. |
statuses
|
The resource status information. |
scheduled_events_policy
|
Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set. |