VirtualMachine.UpdateStages.WithManagedDataDisk 接口

定义

The stage of a virtual machine update allowing to specify a managed data disk.

public interface WithManagedDataDisk

方法

withExistingDataDisk(Disk disk)

Associates an existing source managed disk with the VM.

withExistingDataDisk(Disk disk, int lun, CachingTypes cachingType)

Specifies an existing source managed disk and settings.

withExistingDataDisk(Disk disk, int newSizeInGB, int lun, CachingTypes cachingType)

Specifies an existing source managed disk and settings.

withNewDataDisk(Creatable<Disk> creatable)

Specifies that a managed disk needs to be created explicitly with the given definition and attached to the virtual machine as a data disk.

withNewDataDisk(Creatable<Disk> creatable, int lun, CachingTypes cachingType)

Specifies that a managed disk needs to be created explicitly with the given definition and attached to the virtual machine as a data disk.

withNewDataDisk(int sizeInGB)

Specifies that a managed disk needs to be created implicitly with the given size.

withNewDataDisk(int sizeInGB, int lun, CachingTypes cachingType)

Specifies that a managed disk needs to be created implicitly with the given settings.

withNewDataDisk(int sizeInGB, int lun, CachingTypes cachingType, StorageAccountTypes storageAccountType)

Specifies that a managed disk needs to be created implicitly with the given settings.

withoutDataDisk(int lun)

Detaches a managed data disk with the given LUN from the virtual machine.

适用于