IWithManagedDataDisk.WithExistingDataDisk 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
WithExistingDataDisk(IDisk) |
Associates an existing source managed disk with the VM. |
WithExistingDataDisk(IDisk, Int32, CachingTypes) |
Specifies an existing source managed disk and settings. |
WithExistingDataDisk(IDisk, Int32, Int32, CachingTypes) |
Specifies an existing source managed disk and settings. |
WithExistingDataDisk(IDisk)
Associates an existing source managed disk with the VM.
public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Update.IUpdate WithExistingDataDisk (Microsoft.Azure.Management.Compute.Fluent.IDisk disk);
abstract member WithExistingDataDisk : Microsoft.Azure.Management.Compute.Fluent.IDisk -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Update.IUpdate
Public Function WithExistingDataDisk (disk As IDisk) As IUpdate
Parameters
- disk
- IDisk
A managed disk.
Returns
Applies to
WithExistingDataDisk(IDisk, Int32, CachingTypes)
Specifies an existing source managed disk and settings.
public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Update.IUpdate 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.Update.IUpdate
Public Function WithExistingDataDisk (disk As IDisk, lun As Integer, cachingType As CachingTypes) As IUpdate
Parameters
- disk
- IDisk
The managed disk.
- lun
- Int32
The disk LUN.
- cachingType
- CachingTypes
A caching type.
Returns
Applies to
WithExistingDataDisk(IDisk, Int32, Int32, CachingTypes)
Specifies an existing source managed disk and settings.
public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Update.IUpdate 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.Update.IUpdate
Public Function WithExistingDataDisk (disk As IDisk, newSizeInGB As Integer, lun As Integer, cachingType As CachingTypes) As IUpdate
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
Azure SDK for .NET