Share via


VirtualMachineDiskOperationsExtensions.GetDiskAsync Method (IVirtualMachineDiskOperations, String)

 

Asynchronously retrieves information about a disk in the user disk repository.

Namespace:   Microsoft.WindowsAzure.Management.Compute
Assembly:  Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

Syntax

public static Task<VirtualMachineDiskGetResponse> GetDiskAsync(
    this IVirtualMachineDiskOperations operations,
    string name
)
public:
[ExtensionAttribute]
static Task<VirtualMachineDiskGetResponse^>^ GetDiskAsync(
    IVirtualMachineDiskOperations^ operations,
    String^ name
)
static member GetDiskAsync : 
        operations:IVirtualMachineDiskOperations *
        name:string -> Task<VirtualMachineDiskGetResponse>
<ExtensionAttribute>
Public Shared Function GetDiskAsync (
    operations As IVirtualMachineDiskOperations,
    name As String
) As Task(Of VirtualMachineDiskGetResponse)

Parameters

  • diskName
    The name of the disk.

Return Value

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

The T:Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineDiskGetDiskResponse object that contains the information about the disk.

Remarks

The disk can be an operating system disk or a data disk.

For more information about retrieving disk information, see Get-AzureDisk

See Also

VirtualMachineDiskOperationsExtensions Class
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top