ComputeExtensions.GetVirtualMachineImagesWithPropertiesAsync Method

Definition

Overloads

GetVirtualMachineImagesWithPropertiesAsync(SubscriptionResource, SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions, CancellationToken)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.cs

Gets a list of virtual machine images with their detailed properties.

public static Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage> GetVirtualMachineImagesWithPropertiesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions options, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualMachineImagesWithPropertiesAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage>
<Extension()>
Public Function GetVirtualMachineImagesWithPropertiesAsync (subscriptionResource As SubscriptionResource, options As SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of VirtualMachineImage)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

options
SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions

A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of VirtualMachineImage that may take multiple service requests to iterate over.

Exceptions

subscriptionResource or options is null.

Applies to

GetVirtualMachineImagesWithPropertiesAsync(SubscriptionResource, AzureLocation, String, String, String, String, Nullable<Int32>, String, CancellationToken)

Source:
ComputeExtensions.cs

GetVirtualMachineImagesWithProperties <item> Mocking. To mock this method, please mock GetVirtualMachineImagesWithPropertiesAsync(AzureLocation, String, String, String, String, Nullable<Int32>, String, CancellationToken) instead. </item>

public static Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage> GetVirtualMachineImagesWithPropertiesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string publisherName, string offer, string skus, string expand, int? top = default, string orderby = default, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualMachineImagesWithPropertiesAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * string * string * string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage>
<Extension()>
Public Function GetVirtualMachineImagesWithPropertiesAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, publisherName As String, offer As String, skus As String, expand As String, Optional top As Nullable(Of Integer) = Nothing, Optional orderby As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of VirtualMachineImage)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

location
AzureLocation

The name of the Azure region.

publisherName
String

A valid image publisher.

offer
String

A valid image publisher offer.

skus
String

A valid image SKU.

expand
String

The expand expression to apply on the operation.

orderby
String
cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of VirtualMachineImage that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to