ComputeExtensions.GetCommunityGalleryImageVersionAsync Method

Definition

Get a community gallery image version. <item> Mocking. To mock this method, please mock GetCommunityGalleryImageVersionAsync(AzureLocation, String, String, String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.CommunityGalleryImageVersionData>> GetCommunityGalleryImageVersionAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string publicGalleryName, string galleryImageName, string galleryImageVersionName, System.Threading.CancellationToken cancellationToken = default);
static member GetCommunityGalleryImageVersionAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.CommunityGalleryImageVersionData>>
<Extension()>
Public Function GetCommunityGalleryImageVersionAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, publicGalleryName As String, galleryImageName As String, galleryImageVersionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CommunityGalleryImageVersionData))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

location
AzureLocation

The name of the Azure region.

publicGalleryName
String

The public name of the community gallery.

galleryImageName
String

The name of the community gallery image definition.

galleryImageVersionName
String

The name of the community gallery image version. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

publicGalleryName, galleryImageName or galleryImageVersionName is an empty string, and was expected to be non-empty.

subscriptionResource is null.

Applies to