Share via


IUpdate.WithExistingDataDisk Method

Definition

Overloads

WithExistingDataDisk(IDisk, Int32, CachingTypes)

Attaches an existing data disk to this VMSS virtual machine.

WithExistingDataDisk(IDisk, Int32, CachingTypes, StorageAccountTypes)

Attaches an existing data disk to this VMSS virtual machine.

WithExistingDataDisk(IDisk, Int32, CachingTypes)

Attaches an existing data disk to this VMSS virtual machine.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachineScaleSetVM.Update.IUpdate WithExistingDataDisk (Microsoft.Azure.Management.Compute.Fluent.IDisk disk, int lun, Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes cachingType);
abstract member WithExistingDataDisk : Microsoft.Azure.Management.Compute.Fluent.IDisk * int * Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachineScaleSetVM.Update.IUpdate
Public Function WithExistingDataDisk (disk As IDisk, lun As Integer, cachingType As CachingTypes) As IUpdate

Parameters

disk
IDisk

the data disk, need to be in DiskState.UNATTACHED state

lun
Int32

the disk LUN, cannot conflict with existing LUNs

cachingType
CachingTypes

the caching type

Returns

the next stage of the update

Applies to

WithExistingDataDisk(IDisk, Int32, CachingTypes, StorageAccountTypes)

Attaches an existing data disk to this VMSS virtual machine.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachineScaleSetVM.Update.IUpdate WithExistingDataDisk (Microsoft.Azure.Management.Compute.Fluent.IDisk disk, int lun, Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes cachingType, Microsoft.Azure.Management.Compute.Fluent.Models.StorageAccountTypes storageAccountType);
abstract member WithExistingDataDisk : Microsoft.Azure.Management.Compute.Fluent.IDisk * int * Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes * Microsoft.Azure.Management.Compute.Fluent.Models.StorageAccountTypes -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachineScaleSetVM.Update.IUpdate
Public Function WithExistingDataDisk (disk As IDisk, lun As Integer, cachingType As CachingTypes, storageAccountType As StorageAccountTypes) As IUpdate

Parameters

disk
IDisk

the data disk, need to be in DiskState.UNATTACHED state

lun
Int32

the disk LUN, cannot conflict with existing LUNs

cachingType
CachingTypes

the caching type

storageAccountType
StorageAccountTypes

the storage account type

Returns

the next stage of the update

Applies to