다음을 통해 공유


IWithManagedDataDisk.WithNewDataDisk Method

Definition

Overloads

WithNewDataDisk(ICreatable<IDisk>)

Specifies that a managed disk should be created explicitly with the given definition and attached to the virtual machine as a data disk.

WithNewDataDisk(Int32)

Specifies that a managed disk needs to be created implicitly with the given size.

WithNewDataDisk(ICreatable<IDisk>, Int32, CachingTypes)

Specifies that a managed disk needs to be created explicitly with the given definition and attach to the virtual machine as data disk.

WithNewDataDisk(Int32, Int32, CachingTypes)

Specifies that a managed disk needs to be created implicitly with the given settings.

WithNewDataDisk(Int32, Int32, CachingTypes, StorageAccountTypes)

Specifies that a managed disk needs to be created implicitly with the given settings.

WithNewDataDisk(ICreatable<IDisk>)

Specifies that a managed disk should be created explicitly with the given definition and attached to the virtual machine as a data disk.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithManagedCreate 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.Definition.IWithManagedCreate
Public Function WithNewDataDisk (creatable As ICreatable(Of IDisk)) As IWithManagedCreate

Parameters

creatable
ICreatable<IDisk>

A creatable disk definition.

Returns

Applies to

WithNewDataDisk(Int32)

Specifies that a managed disk needs to be created implicitly with the given size.

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

Parameters

sizeInGB
Int32

The size of the managed disk in GB.

Returns

Applies to

WithNewDataDisk(ICreatable<IDisk>, Int32, CachingTypes)

Specifies that a managed disk needs to be created explicitly with the given definition and attach to the virtual machine as data disk.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithManagedCreate 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.Definition.IWithManagedCreate
Public Function WithNewDataDisk (creatable As ICreatable(Of IDisk), lun As Integer, cachingType As CachingTypes) As IWithManagedCreate

Parameters

creatable
ICreatable<IDisk>

A creatable disk.

lun
Int32

The data disk LUN.

cachingType
CachingTypes

A data disk caching type.

Returns

Applies to

WithNewDataDisk(Int32, Int32, CachingTypes)

Specifies that a managed disk needs to be created implicitly with the given settings.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithManagedCreate 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.Definition.IWithManagedCreate
Public Function WithNewDataDisk (sizeInGB As Integer, lun As Integer, cachingType As CachingTypes) As IWithManagedCreate

Parameters

sizeInGB
Int32

The size of the managed disk in GB.

lun
Int32

The disk LUN.

cachingType
CachingTypes

The caching type.

Returns

Applies to

WithNewDataDisk(Int32, Int32, CachingTypes, StorageAccountTypes)

Specifies that a managed disk needs to be created implicitly with the given settings.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithManagedCreate 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.Definition.IWithManagedCreate
Public Function WithNewDataDisk (sizeInGB As Integer, lun As Integer, cachingType As CachingTypes, storageAccountType As StorageAccountTypes) As IWithManagedCreate

Parameters

sizeInGB
Int32

The size of the managed disk in GB.

lun
Int32

The disk LUN.

cachingType
CachingTypes

The caching type.

storageAccountType
StorageAccountTypes

The storage account type.

Returns

Applies to