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.

C#
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);

Parameters

creatable
ICreatable<IDisk>

A creatable disk definition.

Returns

Applies to

Azure SDK for .NET Legacy
Продукт Версії
Azure SDK for .NET Legacy

WithNewDataDisk(Int32)

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

C#
public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithManagedCreate WithNewDataDisk(int sizeInGB);

Parameters

sizeInGB
Int32

The size of the managed disk in GB.

Returns

Applies to

Azure SDK for .NET Legacy
Продукт Версії
Azure SDK for .NET Legacy

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.

C#
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);

Parameters

creatable
ICreatable<IDisk>

A creatable disk.

lun
Int32

The data disk LUN.

cachingType
CachingTypes

A data disk caching type.

Returns

Applies to

Azure SDK for .NET Legacy
Продукт Версії
Azure SDK for .NET Legacy

WithNewDataDisk(Int32, Int32, CachingTypes)

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

C#
public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithManagedCreate WithNewDataDisk(int sizeInGB, int lun, Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes cachingType);

Parameters

sizeInGB
Int32

The size of the managed disk in GB.

lun
Int32

The disk LUN.

cachingType
CachingTypes

The caching type.

Returns

Applies to

Azure SDK for .NET Legacy
Продукт Версії
Azure SDK for .NET Legacy

WithNewDataDisk(Int32, Int32, CachingTypes, StorageAccountTypes)

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

C#
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);

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

Azure SDK for .NET Legacy
Продукт Версії
Azure SDK for .NET Legacy