Compartilhar via


ComputeExtensions.GetVirtualMachineImagesEdgeZoneAsync Method

Definition

Overloads

GetVirtualMachineImagesEdgeZoneAsync(SubscriptionResource, 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(SubscriptionResource, 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(SubscriptionResource, AzureLocation, String, String, String, String, String, CancellationToken)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.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 static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.VirtualMachineImage>> GetVirtualMachineImagesEdgeZoneAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string edgeZone, string publisherName, string offer, string skus, string version, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualMachineImagesEdgeZoneAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.VirtualMachineImage>>
<Extension()>
Public Function GetVirtualMachineImagesEdgeZoneAsync (subscriptionResource As SubscriptionResource, 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

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

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

GetVirtualMachineImagesEdgeZoneAsync(SubscriptionResource, SubscriptionResourceGetVirtualMachineImagesEdgeZoneOptions, CancellationToken)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.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 static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.VirtualMachineImage>> GetVirtualMachineImagesEdgeZoneAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesEdgeZoneOptions options, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualMachineImagesEdgeZoneAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Compute.Models.SubscriptionResourceGetVirtualMachineImagesEdgeZoneOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.VirtualMachineImage>>
<Extension()>
Public Function GetVirtualMachineImagesEdgeZoneAsync (subscriptionResource As SubscriptionResource, options As SubscriptionResourceGetVirtualMachineImagesEdgeZoneOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VirtualMachineImage))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

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

subscriptionResource or options is null.

Applies to