MockableComputeSubscriptionResource.GetVirtualMachineImagesWithProperties Method

Definition

Overloads

Name Description
GetVirtualMachineImagesWithProperties(SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions, CancellationToken)

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

GetVirtualMachineImagesWithProperties(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.

GetVirtualMachineImagesWithProperties(SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions, CancellationToken)

Source:
MockableComputeSubscriptionResource.cs
Source:
MockableComputeSubscriptionResource.cs

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

public virtual Azure.Pageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage> GetVirtualMachineImagesWithProperties(Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualMachineImagesWithProperties : Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage>
override this.GetVirtualMachineImagesWithProperties : Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage>
Public Overridable Function GetVirtualMachineImagesWithProperties (options As SubscriptionResourceGetVirtualMachineImagesWithPropertiesOptions, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of VirtualMachineImage)

Parameters

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

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

Exceptions

options is null.

Applies to

GetVirtualMachineImagesWithProperties(AzureLocation, String, String, String, String, Nullable<Int32>, String, CancellationToken)

Source:
MockableComputeSubscriptionResource.cs

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.Pageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage> GetVirtualMachineImagesWithProperties(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 GetVirtualMachineImagesWithProperties : Azure.Core.AzureLocation * string * string * string * string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage>
override this.GetVirtualMachineImagesWithProperties : Azure.Core.AzureLocation * string * string * string * string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.Models.VirtualMachineImage>
Public Overridable Function GetVirtualMachineImagesWithProperties (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 Pageable(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.

Applies to