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
operations
Type: Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperationsReference to the Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperations.
parameters
Type: Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineDiskCreateParametersRequired. Parameters supplied to the Create Virtual Machine Disk operation.
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