VirtualMachineImagesOperationsExtensions.ListAsync(IVirtualMachineImagesOperations, String, String, String, String, ODataQuery<VirtualMachineImageResource>, CancellationToken) VirtualMachineImagesOperationsExtensions.ListAsync(IVirtualMachineImagesOperations, String, String, String, String, ODataQuery<VirtualMachineImageResource>, CancellationToken) Method

Definition

Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.

public static System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.VirtualMachineImageResource>> ListAsync (this Microsoft.Azure.Management.Compute.IVirtualMachineImagesOperations operations, string location, string publisherName, string offer, string skus, Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Compute.Models.VirtualMachineImageResource> odataQuery = null, System.Threading.CancellationToken cancellationToken = null);
static member ListAsync : Microsoft.Azure.Management.Compute.IVirtualMachineImagesOperations * string * string * string * string * Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Compute.Models.VirtualMachineImageResource> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.VirtualMachineImageResource>>

Parameters

operations
IVirtualMachineImagesOperations IVirtualMachineImagesOperations

The operations group for this extension method.

location
String String

The name of a supported Azure region.

publisherName
String String

A valid image publisher.

offer
String String

A valid image publisher offer.

skus
String String

A valid image SKU.

odataQuery
Microsoft.Rest.Azure.OData.ODataQuery<VirtualMachineImageResource>

OData parameters to apply to the operation.

cancellationToken
CancellationToken CancellationToken

The cancellation token.

Returns

Applies to