Share via


IVirtualMachineOSImageOperations.GetAsync Method (String, CancellationToken)

 

The Get OS Image operation retrieves the details for an operating system image from the image repository. (see https://msdn.microsoft.com/en-us/library/windowsazure/jj157191.aspx for more information)

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

Syntax

Task<VirtualMachineOSImageGetResponse> GetAsync(
    string imageName,
    CancellationToken cancellationToken
)
Task<VirtualMachineOSImageGetResponse^>^ GetAsync(
    String^ imageName,
    CancellationToken cancellationToken
)
abstract GetAsync : 
        imageName:string *
        cancellationToken:CancellationToken -> Task<VirtualMachineOSImageGetResponse>
Function GetAsync (
    imageName As String,
    cancellationToken As CancellationToken
) As Task(Of VirtualMachineOSImageGetResponse)

Parameters

  • imageName
    Type: System.String

    The name of the OS image to retrieve.

Return Value

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

A virtual machine image associated with your subscription.

See Also

IVirtualMachineOSImageOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top