AvailabilitySetInner Class

public final class AvailabilitySetInner
extends Resource

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](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates). Currently, a VM can only be added to an availability set at creation time. An existing VM cannot be added to an availability set.

Constructor Summary

Constructor Description
AvailabilitySetInner()

Creates an instance of AvailabilitySetInner class.

Method Summary

Modifier and Type Method and Description
Integer platformFaultDomainCount()

Get the platformFaultDomainCount property: Fault Domain count.

Integer platformUpdateDomainCount()

Get the platformUpdateDomainCount property: Update Domain count.

SubResource proximityPlacementGroup()

Get the proximityPlacementGroup property: Specifies information about the proximity placement group that the availability set should be assigned to.

Sku sku()

Get the sku property: Sku of the availability set, only name is required to be set.

List<InstanceViewStatus> statuses()

Get the statuses property: The resource status information.

void validate()

Validates the instance.

List<SubResource> virtualMachines()

Get the virtualMachines property: A list of references to all virtual machines in the availability set.

AvailabilitySetInner withLocation(String location)
AvailabilitySetInner withPlatformFaultDomainCount(Integer platformFaultDomainCount)

Set the platformFaultDomainCount property: Fault Domain count.

AvailabilitySetInner withPlatformUpdateDomainCount(Integer platformUpdateDomainCount)

Set the platformUpdateDomainCount property: Update Domain count.

AvailabilitySetInner withProximityPlacementGroup(SubResource proximityPlacementGroup)

Set the proximityPlacementGroup property: Specifies information about the proximity placement group that the availability set should be assigned to.

AvailabilitySetInner withSku(Sku sku)

Set the sku property: Sku of the availability set, only name is required to be set.

AvailabilitySetInner withTags(Map<String,String> tags)
AvailabilitySetInner withVirtualMachines(List<SubResource> virtualMachines)

Set the virtualMachines property: A list of references to all virtual machines in the availability set.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

AvailabilitySetInner

public AvailabilitySetInner()

Creates an instance of AvailabilitySetInner class.

Method Details

platformFaultDomainCount

public Integer platformFaultDomainCount()

Get the platformFaultDomainCount property: Fault Domain count.

Returns:

the platformFaultDomainCount value.

platformUpdateDomainCount

public Integer platformUpdateDomainCount()

Get the platformUpdateDomainCount property: Update Domain count.

Returns:

the platformUpdateDomainCount value.

proximityPlacementGroup

public SubResource proximityPlacementGroup()

Get the proximityPlacementGroup property: Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.

Returns:

the proximityPlacementGroup value.

sku

public Sku sku()

Get the sku property: 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'.

Returns:

the sku value.

statuses

public List statuses()

Get the statuses property: The resource status information.

Returns:

the statuses value.

validate

public void validate()

Validates the instance.

virtualMachines

public List virtualMachines()

Get the virtualMachines property: A list of references to all virtual machines in the availability set.

Returns:

the virtualMachines value.

withLocation

public AvailabilitySetInner withLocation(String location)

Overrides:

AvailabilitySetInner.withLocation(String location)

Parameters:

location

withPlatformFaultDomainCount

public AvailabilitySetInner withPlatformFaultDomainCount(Integer platformFaultDomainCount)

Set the platformFaultDomainCount property: Fault Domain count.

Parameters:

platformFaultDomainCount - the platformFaultDomainCount value to set.

Returns:

the AvailabilitySetInner object itself.

withPlatformUpdateDomainCount

public AvailabilitySetInner withPlatformUpdateDomainCount(Integer platformUpdateDomainCount)

Set the platformUpdateDomainCount property: Update Domain count.

Parameters:

platformUpdateDomainCount - the platformUpdateDomainCount value to set.

Returns:

the AvailabilitySetInner object itself.

withProximityPlacementGroup

public AvailabilitySetInner withProximityPlacementGroup(SubResource proximityPlacementGroup)

Set the proximityPlacementGroup property: Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.

Parameters:

proximityPlacementGroup - the proximityPlacementGroup value to set.

Returns:

the AvailabilitySetInner object itself.

withSku

public AvailabilitySetInner withSku(Sku sku)

Set the sku property: 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'.

Parameters:

sku - the sku value to set.

Returns:

the AvailabilitySetInner object itself.

withTags

public AvailabilitySetInner withTags(Map tags)

Overrides:

AvailabilitySetInner.withTags(Map<String,String> tags)

Parameters:

tags

withVirtualMachines

public AvailabilitySetInner withVirtualMachines(List virtualMachines)

Set the virtualMachines property: A list of references to all virtual machines in the availability set.

Parameters:

virtualMachines - the virtualMachines value to set.

Returns:

the AvailabilitySetInner object itself.

Applies to