IWithManagedDataDisk.WithNewDataDisk Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WithNewDataDisk(ICreatable<IDisk>) |
Specifies that a managed disk needs to 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 attached to the virtual machine as a 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 needs to be created explicitly with the given definition and attached to the virtual machine as a data disk.
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
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.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
Parameters
- sizeInGB
- Int32
The size of the managed disk.
Returns
Applies to
WithNewDataDisk(ICreatable<IDisk>, Int32, CachingTypes)
Specifies that a managed disk needs to be created explicitly with the given definition and attached to the virtual machine as a data disk.
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
Parameters
- creatable
- ICreatable<IDisk>
A creatable disk definition.
- 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.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
Parameters
- sizeInGB
- Int32
The size of the managed disk.
- lun
- Int32
The disk LUN.
- cachingType
- CachingTypes
A 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.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
Parameters
- sizeInGB
- Int32
The size of the managed disk.
- lun
- Int32
The disk LUN.
- cachingType
- CachingTypes
A caching type.
- storageAccountType
- StorageAccountTypes
A storage account type.
Returns
Applies to
Azure SDK for .NET