MockableComputeSubscriptionResource.GetVirtualMachineImagesWithPropertiesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetVirtualMachineImagesWithPropertiesAsync(SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions, CancellationToken) |
Gets a list of virtual machine images with their detailed properties. |
| GetVirtualMachineImagesWithPropertiesAsync(AzureLocation, String, String, String, String, Nullable<Int32>, String, CancellationToken) |
GetVirtualMachineImagesWithProperties
|
GetVirtualMachineImagesWithPropertiesAsync(SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions, CancellationToken)
Gets a list of virtual machine images with their detailed properties.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage> GetVirtualMachineImagesWithPropertiesAsync(Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualMachineImagesWithPropertiesAsync : Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage>
override this.GetVirtualMachineImagesWithPropertiesAsync : Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage>
Public Overridable Function GetVirtualMachineImagesWithPropertiesAsync (options As SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of VirtualMachineImage)
Parameters
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
options is null.
Applies to
GetVirtualMachineImagesWithPropertiesAsync(AzureLocation, String, String, String, String, Nullable<Int32>, String, CancellationToken)
GetVirtualMachineImagesWithProperties
- Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions?$expand=Properties.
- Operation Id. : VirtualMachineImagesOperationGroup_ListWithProperties.
- Default Api Version. : 2026-03-01.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage> GetVirtualMachineImagesWithPropertiesAsync(Azure.Core.AzureLocation location, string publisherName, string offer, string skus, string expand, int? top = default, string orderby = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualMachineImagesWithPropertiesAsync : Azure.Core.AzureLocation * string * string * string * string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage>
override this.GetVirtualMachineImagesWithPropertiesAsync : Azure.Core.AzureLocation * string * string * string * string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage>
Public Overridable Function GetVirtualMachineImagesWithPropertiesAsync (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
- 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
publisherName, offer, skus or expand is null.
publisherName, offer, skus or expand is an empty string, and was expected to be non-empty.