VirtualMachineDiskOperationsExtensions.GetDiskAsync Method (IVirtualMachineDiskOperations, String)
Asynchronously retrieves information about a disk in the user disk repository.
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
<ExtensionAttribute> Public Shared Function GetDiskAsync ( operations As IVirtualMachineDiskOperations, name As String ) As Task(Of VirtualMachineDiskGetResponse)
Parameters
- operations
-
Type:
Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperations
The IVirtualMachineDiskOperations object that specifies the Virtual Machine disk operations.
- diskName
The name of the disk.
Return Value
Type: System.Threading.Tasks.Task(Of VirtualMachineDiskGetResponse)The T:Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineDiskGetDiskResponse object that contains the information about the disk.
The disk can be an operating system disk or a data disk.
For more information about retrieving disk information, see Get-AzureDisk
Show: