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

IWithManagedDataDisk.WithNewDataDisk 方法

定义

重载

WithNewDataDisk(ICreatable<IDisk>)

指定需要使用给定定义显式创建托管磁盘,并将其作为数据磁盘附加到虚拟机。

WithNewDataDisk(Int32)

指定需要使用给定大小隐式创建托管磁盘。

WithNewDataDisk(ICreatable<IDisk>, Int32, CachingTypes)

指定需要使用给定定义显式创建托管磁盘,并将其作为数据磁盘附加到虚拟机。

WithNewDataDisk(Int32, Int32, CachingTypes)

指定需要使用给定设置隐式创建托管磁盘。

WithNewDataDisk(Int32, Int32, CachingTypes, StorageAccountTypes)

指定需要使用给定设置隐式创建托管磁盘。

WithNewDataDisk(ICreatable<IDisk>)

指定需要使用给定定义显式创建托管磁盘,并将其作为数据磁盘附加到虚拟机。

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Update.IUpdate WithNewDataDisk (Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.Compute.Fluent.IDisk> creatable);
abstract member WithNewDataDisk : Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.Compute.Fluent.IDisk> -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Update.IUpdate
Public Function WithNewDataDisk (creatable As ICreatable(Of IDisk)) As IUpdate

参数

creatable
ICreatable<IDisk>

可创建磁盘定义。

返回

适用于

WithNewDataDisk(Int32)

指定需要使用给定大小隐式创建托管磁盘。

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Update.IUpdate WithNewDataDisk (int sizeInGB);
abstract member WithNewDataDisk : int -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Update.IUpdate
Public Function WithNewDataDisk (sizeInGB As Integer) As IUpdate

参数

sizeInGB
Int32

托管磁盘的大小。

返回

适用于

WithNewDataDisk(ICreatable<IDisk>, Int32, CachingTypes)

指定需要使用给定定义显式创建托管磁盘,并将其作为数据磁盘附加到虚拟机。

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Update.IUpdate WithNewDataDisk (Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.Compute.Fluent.IDisk> creatable, int lun, Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes cachingType);
abstract member WithNewDataDisk : Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.Compute.Fluent.IDisk> * int * Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Update.IUpdate
Public Function WithNewDataDisk (creatable As ICreatable(Of IDisk), lun As Integer, cachingType As CachingTypes) As IUpdate

参数

creatable
ICreatable<IDisk>

可创建磁盘定义。

lun
Int32

数据磁盘 LUN。

cachingType
CachingTypes

数据磁盘缓存类型。

返回

适用于

WithNewDataDisk(Int32, Int32, CachingTypes)

指定需要使用给定设置隐式创建托管磁盘。

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

参数

sizeInGB
Int32

托管磁盘的大小。

lun
Int32

磁盘 LUN。

cachingType
CachingTypes

缓存类型。

返回

适用于

WithNewDataDisk(Int32, Int32, CachingTypes, StorageAccountTypes)

指定需要使用给定设置隐式创建托管磁盘。

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

参数

sizeInGB
Int32

托管磁盘的大小。

lun
Int32

磁盘 LUN。

cachingType
CachingTypes

缓存类型。

storageAccountType
StorageAccountTypes

存储帐户类型。

返回

适用于