MockableComputeSubscriptionResource.GetVirtualMachineImagesEdgeZoneAsync 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
GetVirtualMachineImagesEdgeZoneAsync(SubscriptionResourceGetVirtualMachineImagesEdgeZoneOptions, CancellationToken) |
Gets a virtual machine image in an edge zone.
|
GetVirtualMachineImagesEdgeZoneAsync(AzureLocation, String, String, String, String, String, CancellationToken) |
Gets a virtual machine image in an edge zone.
|
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
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
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)
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
Azure SDK for .NET