IVirtualMachineOSImageOperations.GetAsync Method
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)
Usage
'Usage
Dim instance As IVirtualMachineOSImageOperations
Dim imageName As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of VirtualMachineOSImageGetResponse)
returnValue = instance.GetAsync(imageName, cancellationToken)
Syntax
'Declaration
Function GetAsync ( _
imageName As String, _
cancellationToken As CancellationToken _
) As Task(Of VirtualMachineOSImageGetResponse)
Task<VirtualMachineOSImageGetResponse> GetAsync (
string imageName,
CancellationToken cancellationToken
)
Task<VirtualMachineOSImageGetResponse^>^ GetAsync (
String^ imageName,
CancellationToken cancellationToken
)
Task<VirtualMachineOSImageGetResponse> GetAsync (
String imageName,
CancellationToken cancellationToken
)
function GetAsync (
imageName : String,
cancellationToken : CancellationToken
) : Task<VirtualMachineOSImageGetResponse>
Parameters
- imageName
The name of the OS image to retrieve.
- cancellationToken
Cancellation token.
Return Value
A virtual machine image associated with your subscription.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012
Target Platforms
See Also
Reference
IVirtualMachineOSImageOperations Interface
IVirtualMachineOSImageOperations Members
Microsoft.WindowsAzure.Management.Compute Namespace