Share via


IVirtualMachineImages.GetImageAsync Method

Definition

Overloads

GetImageAsync(Region, String, String, String, String, CancellationToken)

Gets a virtual machine image.

GetImageAsync(String, String, String, String, String, CancellationToken)

Gets a virtual machine image.

GetImageAsync(Region, String, String, String, String, CancellationToken)

Gets a virtual machine image.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineImage> GetImageAsync (Microsoft.Azure.Management.ResourceManager.Fluent.Core.Region region, string publisherName, string offerName, string skuName, string version, System.Threading.CancellationToken cancellationToken = default);
abstract member GetImageAsync : Microsoft.Azure.Management.ResourceManager.Fluent.Core.Region * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineImage>
Public Function GetImageAsync (region As Region, publisherName As String, offerName As String, skuName As String, version As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IVirtualMachineImage)

Parameters

region
Region

The region.

publisherName
String

Publisher name.

offerName
String

Offer name.

skuName
String

SKU name.

version
String

Version name.

cancellationToken
CancellationToken

Returns

Applies to

GetImageAsync(String, String, String, String, String, CancellationToken)

Gets a virtual machine image.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineImage> GetImageAsync (string region, string publisherName, string offerName, string skuName, string version, System.Threading.CancellationToken cancellationToken = default);
abstract member GetImageAsync : string * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineImage>
Public Function GetImageAsync (region As String, publisherName As String, offerName As String, skuName As String, version As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IVirtualMachineImage)

Parameters

region
String

The region.

publisherName
String

Publisher name.

offerName
String

Offer name.

skuName
String

SKU name.

version
String

Version name.

cancellationToken
CancellationToken

Returns

Applies to