VirtualMachineOSImageOperationsExtensions.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 operations As IVirtualMachineOSImageOperations
Dim imageName As String
Dim returnValue As Task(Of VirtualMachineOSImageGetResponse)
returnValue = VirtualMachineOSImageOperationsExtensions.GetAsync(operations, imageName)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetAsync ( _
operations As IVirtualMachineOSImageOperations, _
imageName As String _
) As Task(Of VirtualMachineOSImageGetResponse)
[ExtensionAttribute]
public static Task<VirtualMachineOSImageGetResponse> GetAsync (
IVirtualMachineOSImageOperations operations,
string imageName
)
[ExtensionAttribute]
public:
static Task<VirtualMachineOSImageGetResponse^>^ GetAsync (
IVirtualMachineOSImageOperations^ operations,
String^ imageName
)
/** @attribute ExtensionAttribute() */
public static Task<VirtualMachineOSImageGetResponse> GetAsync (
IVirtualMachineOSImageOperations operations,
String imageName
)
ExtensionAttribute
public static function GetAsync (
operations : IVirtualMachineOSImageOperations,
imageName : String
) : Task<VirtualMachineOSImageGetResponse>
Parameters
- operations
Reference to the Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOSImageOperations.
- imageName
Required. The name of the OS image to retrieve.
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
VirtualMachineOSImageOperationsExtensions Class
VirtualMachineOSImageOperationsExtensions Members
Microsoft.WindowsAzure.Management.Compute Namespace