Compartir vía


VirtualMachine.DefinitionStages.WithUnmanagedDataDisk Interface

public interface WithUnmanagedDataDisk

The stage of a virtual machine definition allowing to add an unmanaged data disk.

Method Summary

Modifier and Type Method and Description
VirtualMachineUnmanagedDataDisk.DefinitionStages.Blank<VirtualMachine.DefinitionStages.WithUnmanagedCreate> defineUnmanagedDataDisk(String name)

Begins definition of an unmanaged data disk to be attached to the virtual machine.

VirtualMachine.DefinitionStages.WithUnmanagedCreate withExistingUnmanagedDataDisk(String storageAccountName, String containerName, String vhdName)

Attaches an existing unmanaged VHD as a data disk to the virtual machine.

VirtualMachine.DefinitionStages.WithUnmanagedCreate withNewUnmanagedDataDisk(Integer sizeInGB)

Attaches a new blank unmanaged data disk to the virtual machine.

Method Details

defineUnmanagedDataDisk

public VirtualMachineUnmanagedDataDisk.DefinitionStages.Blank defineUnmanagedDataDisk(String name)

Begins definition of an unmanaged data disk to be attached to the virtual machine.

Parameters:

name - the name for the data disk

Returns:

the first stage of an unmanaged data disk definition

withExistingUnmanagedDataDisk

public WithUnmanagedCreate withExistingUnmanagedDataDisk(String storageAccountName, String containerName, String vhdName)

Attaches an existing unmanaged VHD as a data disk to the virtual machine.

Parameters:

storageAccountName - a storage account name
containerName - the name of the container holding the VHD file
vhdName - the name for the VHD file

Returns:

the next stage of the definition

withNewUnmanagedDataDisk

public WithUnmanagedCreate withNewUnmanagedDataDisk(Integer sizeInGB)

Attaches a new blank unmanaged data disk to the virtual machine.

Parameters:

sizeInGB - the disk size in GB

Returns:

the next stage of the definition

Applies to