VirtualMachineScaleSetVM.Update Interface

Implements

public static interface VirtualMachineScaleSetVM.Update
extends Appliable<VirtualMachineScaleSetVM>

The template for an update operation, containing all the settings that can be modified.

Method Summary

Modifier and Type Method and Description
abstract Update withExistingDataDisk(Disk dataDisk, int lun, CachingTypes cachingTypes)

Attaches an existing data disk to this VMSS virtual machine.

abstract Update withExistingDataDisk(Disk dataDisk, int lun, CachingTypes cachingTypes, StorageAccountTypes storageAccountTypes)

Attaches an existing data disk to this VMSS virtual machine.

abstract Update withoutDataDisk(int lun)

Detaches an existing data disk from this VMSS virtual machine.

Method Details

withExistingDataDisk

public abstract VirtualMachineScaleSetVM.Update withExistingDataDisk(Disk dataDisk, int lun, CachingTypes cachingTypes)

Attaches an existing data disk to this VMSS virtual machine.

Parameters:

dataDisk - data disk, need to be in DiskState.UNATTACHED state
lun - the disk LUN, cannot conflict with existing LUNs
cachingTypes - the caching type

Returns:

the next stage of the update

withExistingDataDisk

public abstract VirtualMachineScaleSetVM.Update withExistingDataDisk(Disk dataDisk, int lun, CachingTypes cachingTypes, StorageAccountTypes storageAccountTypes)

Attaches an existing data disk to this VMSS virtual machine.

Parameters:

dataDisk - data disk, need to be in DiskState.UNATTACHED state
lun - the disk LUN, cannot conflict with existing LUNs
cachingTypes - the caching type
storageAccountTypes - the storage account type

Returns:

the next stage of the update

withoutDataDisk

public abstract VirtualMachineScaleSetVM.Update withoutDataDisk(int lun)

Detaches an existing data disk from this VMSS virtual machine.

Parameters:

lun - the disk LUN

Returns:

the next stage of the update

Applies to