IUpdate.WithExistingDataDisk Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應