Delen via


IWithManagedDataDisk.WithExistingDataDisk Method

Definition

Overloads

WithExistingDataDisk(IDisk)

Associates an existing source managed disk with the virtual machine.

WithExistingDataDisk(IDisk, Int32, CachingTypes)

Associates an existing source managed disk with the virtual machine and specifies additional settings.

WithExistingDataDisk(IDisk, Int32, Int32, CachingTypes)

Associates an existing source managed disk with the virtual machine and specifies additional settings.

WithExistingDataDisk(IDisk)

Associates an existing source managed disk with the virtual machine.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithManagedCreate WithExistingDataDisk (Microsoft.Azure.Management.Compute.Fluent.IDisk disk);
abstract member WithExistingDataDisk : Microsoft.Azure.Management.Compute.Fluent.IDisk -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithManagedCreate
Public Function WithExistingDataDisk (disk As IDisk) As IWithManagedCreate

Parameters

disk
IDisk

An existing managed disk.

Returns

Applies to

WithExistingDataDisk(IDisk, Int32, CachingTypes)

Associates an existing source managed disk with the virtual machine and specifies additional settings.

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

Parameters

disk
IDisk

A managed disk.

lun
Int32

The disk LUN.

cachingType
CachingTypes

A caching type.

Returns

Applies to

WithExistingDataDisk(IDisk, Int32, Int32, CachingTypes)

Associates an existing source managed disk with the virtual machine and specifies additional settings.

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

Parameters

disk
IDisk

A managed disk.

newSizeInGB
Int32

The disk resize size in GB.

lun
Int32

The disk LUN.

cachingType
CachingTypes

A caching type.

Returns

Applies to