VirtualMachineImagesOperations.ListSkusAsync(String, String, String, CancellationToken) Method

Definition

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

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.ResourceManager.Compute.Models.VirtualMachineImageResource>>> ListSkusAsync (string location, string publisherName, string offer, System.Threading.CancellationToken cancellationToken = default);
abstract member ListSkusAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.ResourceManager.Compute.Models.VirtualMachineImageResource>>>
override this.ListSkusAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.ResourceManager.Compute.Models.VirtualMachineImageResource>>>
Public Overridable Function ListSkusAsync (location As String, publisherName As String, offer As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of VirtualMachineImageResource)))

Parameters

location
System.String

The name of a supported Azure region.

publisherName
System.String

A valid image publisher.

offer
System.String

A valid image publisher offer.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<Response<System.Collections.Generic.IReadOnlyList<VirtualMachineImageResource>>>

Applies to