IVirtualMachineDiskOperations.CreateDiskAsync Method (VirtualMachineDiskCreateParameters, CancellationToken)
The Create Disk operation adds a disk to the user image repository. The disk can be an operating system disk or a data disk. (see https://msdn.microsoft.com/library/windowsazure/jj157178.aspx for more information)
Namespace: Microsoft.WindowsAzure.Management.Compute
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Syntax
Task<VirtualMachineDiskCreateResponse> CreateDiskAsync(
VirtualMachineDiskCreateParameters parameters,
CancellationToken cancellationToken
)
Task<VirtualMachineDiskCreateResponse^>^ CreateDiskAsync(
VirtualMachineDiskCreateParameters^ parameters,
CancellationToken cancellationToken
)
abstract CreateDiskAsync :
parameters:VirtualMachineDiskCreateParameters *
cancellationToken:CancellationToken -> Task<VirtualMachineDiskCreateResponse>
Function CreateDiskAsync (
parameters As VirtualMachineDiskCreateParameters,
cancellationToken As CancellationToken
) As Task(Of VirtualMachineDiskCreateResponse)
Parameters
parameters
Type: Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineDiskCreateParametersParameters supplied to the Create Virtual Machine Disk operation.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<VirtualMachineDiskCreateResponse>
A virtual machine disk associated with your subscription.
See Also
IVirtualMachineDiskOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top