Share via


MockableComputeSubscriptionResource.GetVirtualMachineImagesEdgeZoneAsync Method

Definition

Overloads

GetVirtualMachineImagesEdgeZoneAsync(SubscriptionResourceGetVirtualMachineImagesEdgeZoneOptions, CancellationToken)

Gets a virtual machine image in an edge zone.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}
  • Operation Id: VirtualMachineImagesEdgeZone_Get
  • Default Api Version: 2024-07-01
GetVirtualMachineImagesEdgeZoneAsync(AzureLocation, String, String, String, String, String, CancellationToken)

Gets a virtual machine image in an edge zone.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}
  • Operation Id: VirtualMachineImagesEdgeZone_Get

GetVirtualMachineImagesEdgeZoneAsync(SubscriptionResourceGetVirtualMachineImagesEdgeZoneOptions, CancellationToken)

Source:
MockableComputeSubscriptionResource.cs
Source:
MockableComputeSubscriptionResource.cs

Gets a virtual machine image in an edge zone.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}
  • Operation Id: VirtualMachineImagesEdgeZone_Get
  • Default Api Version: 2024-07-01
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.VirtualMachineImage>> GetVirtualMachineImagesEdgeZoneAsync (Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesEdgeZoneOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualMachineImagesEdgeZoneAsync : Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesEdgeZoneOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.VirtualMachineImage>>
override this.GetVirtualMachineImagesEdgeZoneAsync : Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesEdgeZoneOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.VirtualMachineImage>>
Public Overridable Function GetVirtualMachineImagesEdgeZoneAsync (options As SubscriptionResourceGetVirtualMachineImagesEdgeZoneOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VirtualMachineImage))

Parameters

options
SubscriptionResourceGetVirtualMachineImagesEdgeZoneOptions

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

Exceptions

options is null.

Applies to

GetVirtualMachineImagesEdgeZoneAsync(AzureLocation, String, String, String, String, String, CancellationToken)

Source:
MockableComputeSubscriptionResource.cs
Source:
MockableComputeSubscriptionResource.cs

Gets a virtual machine image in an edge zone.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}
  • Operation Id: VirtualMachineImagesEdgeZone_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.VirtualMachineImage>> GetVirtualMachineImagesEdgeZoneAsync (Azure.Core.AzureLocation location, string edgeZone, string publisherName, string offer, string skus, string version, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualMachineImagesEdgeZoneAsync : Azure.Core.AzureLocation * string * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.VirtualMachineImage>>
override this.GetVirtualMachineImagesEdgeZoneAsync : Azure.Core.AzureLocation * string * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.VirtualMachineImage>>
Public Overridable Function GetVirtualMachineImagesEdgeZoneAsync (location As AzureLocation, edgeZone As String, publisherName As String, offer As String, skus As String, version As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VirtualMachineImage))

Parameters

location
AzureLocation

The name of a supported Azure region.

edgeZone
String

The name of the edge zone.

publisherName
String

A valid image publisher.

offer
String

A valid image publisher offer.

skus
String

A valid image SKU.

version
String

A valid image SKU version.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

edgeZone, publisherName, offer, skus or version is an empty string, and was expected to be non-empty.

edgeZone, publisherName, offer, skus or version is null.

Applies to