你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IUpdate.WithExistingDataDisk 方法

定义

重载

WithExistingDataDisk(IDisk, Int32, CachingTypes)

将现有数据磁盘附加到此 VMSS 虚拟机。

WithExistingDataDisk(IDisk, Int32, CachingTypes, StorageAccountTypes)

将现有数据磁盘附加到此 VMSS 虚拟机。

WithExistingDataDisk(IDisk, Int32, CachingTypes)

将现有数据磁盘附加到此 VMSS 虚拟机。

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

参数

disk
IDisk

数据磁盘需要处于 DiskState.UNATTACHED 状态

lun
Int32

磁盘 LUN,不能与现有 LUN 冲突

cachingType
CachingTypes

缓存类型

返回

更新的下一阶段

适用于

WithExistingDataDisk(IDisk, Int32, CachingTypes, StorageAccountTypes)

将现有数据磁盘附加到此 VMSS 虚拟机。

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

参数

disk
IDisk

数据磁盘需要处于 DiskState.UNATTACHED 状态

lun
Int32

磁盘 LUN,不能与现有 LUN 冲突

cachingType
CachingTypes

缓存类型

storageAccountType
StorageAccountTypes

存储帐户类型

返回

更新的下一阶段

适用于