Share via


VirtualMachineDiskOperationsExtensions.CreateDiskAsync Method (IVirtualMachineDiskOperations, VirtualMachineDiskCreateParameters)

 

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

public static Task<VirtualMachineDiskCreateResponse> CreateDiskAsync(
    this IVirtualMachineDiskOperations operations,
    VirtualMachineDiskCreateParameters parameters
)
public:
[ExtensionAttribute]
static Task<VirtualMachineDiskCreateResponse^>^ CreateDiskAsync(
    IVirtualMachineDiskOperations^ operations,
    VirtualMachineDiskCreateParameters^ parameters
)
static member CreateDiskAsync : 
        operations:IVirtualMachineDiskOperations *
        parameters:VirtualMachineDiskCreateParameters -> Task<VirtualMachineDiskCreateResponse>
<ExtensionAttribute>
Public Shared Function CreateDiskAsync (
    operations As IVirtualMachineDiskOperations,
    parameters As VirtualMachineDiskCreateParameters
) As Task(Of VirtualMachineDiskCreateResponse)

Parameters

Return Value

Type: System.Threading.Tasks.Task<VirtualMachineDiskCreateResponse>

A virtual machine disk associated with your subscription.

See Also

VirtualMachineDiskOperationsExtensions Class
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top