共用方式為


IWithManagedDataDisk.WithNewDataDiskFromImage Method

Definition

Overloads

WithNewDataDiskFromImage(Int32)

Specifies the data disk to be created from the data disk image in the virtual machine image.

WithNewDataDiskFromImage(Int32, Int32, CachingTypes)

Specifies the data disk to be created from the data disk image in the virtual machine image.

WithNewDataDiskFromImage(Int32, Int32, CachingTypes, StorageAccountTypes)

Specifies the data disk to be created from the data disk image in the virtual machine image.

WithNewDataDiskFromImage(Int32)

Specifies the data disk to be created from the data disk image in the virtual machine image.

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

Parameters

imageLun
Int32

The LUN of the source data disk image.

Returns

Applies to

WithNewDataDiskFromImage(Int32, Int32, CachingTypes)

Specifies the data disk to be created from the data disk image in the virtual machine image.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithManagedCreate WithNewDataDiskFromImage (int imageLun, int newSizeInGB, Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes cachingType);
abstract member WithNewDataDiskFromImage : int * int * Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithManagedCreate
Public Function WithNewDataDiskFromImage (imageLun As Integer, newSizeInGB As Integer, cachingType As CachingTypes) As IWithManagedCreate

Parameters

imageLun
Int32

The LUN of the source data disk image.

newSizeInGB
Int32

The new size that overrides the default size specified in the data disk image.

cachingType
CachingTypes

A caching type.

Returns

Applies to

WithNewDataDiskFromImage(Int32, Int32, CachingTypes, StorageAccountTypes)

Specifies the data disk to be created from the data disk image in the virtual machine image.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithManagedCreate WithNewDataDiskFromImage (int imageLun, int newSizeInGB, Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes cachingType, Microsoft.Azure.Management.Compute.Fluent.Models.StorageAccountTypes storageAccountType);
abstract member WithNewDataDiskFromImage : 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 WithNewDataDiskFromImage (imageLun As Integer, newSizeInGB As Integer, cachingType As CachingTypes, storageAccountType As StorageAccountTypes) As IWithManagedCreate

Parameters

imageLun
Int32

The LUN of the source data disk image.

newSizeInGB
Int32

The new size that overrides the default size specified in the data disk image.

cachingType
CachingTypes

A caching type.

storageAccountType
StorageAccountTypes

A storage account type.

Returns

Applies to