你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VirtualMachine.DefinitionStages.WithAvailabilitySet Interface

public interface WithAvailabilitySet

The stage of the virtual machine definition allowing to specify availability set.

Method Summary

Modifier and Type Method and Description
VirtualMachine.DefinitionStages.WithCreate withExistingAvailabilitySet(AvailabilitySet availabilitySet)

Specifies an existing availability set to associate with the virtual machine.

VirtualMachine.DefinitionStages.WithCreate withNewAvailabilitySet(Creatable<AvailabilitySet> creatable)

Specifies definition of a not-yet-created availability set definition to associate the virtual machine with.

VirtualMachine.DefinitionStages.WithCreate withNewAvailabilitySet(String name)

Specifies the name of a new availability set to associate with the virtual machine.

Method Details

withExistingAvailabilitySet

public WithCreate withExistingAvailabilitySet(AvailabilitySet availabilitySet)

Specifies an existing availability set to associate with the virtual machine.

Parameters:

availabilitySet - an existing availability set

Returns:

the next stage of the definition

withNewAvailabilitySet

public WithCreate withNewAvailabilitySet(Creatable creatable)

Specifies definition of a not-yet-created availability set definition to associate the virtual machine with.

Parameters:

creatable - a creatable availability set definition

Returns:

the next stage of the definition

withNewAvailabilitySet

public WithCreate withNewAvailabilitySet(String name)

Specifies the name of a new availability set to associate with the virtual machine.

Parameters:

name - the name of an availability set

Returns:

the next stage of the definition

Applies to