ComputeExtensions.GetCommunityGalleryImageAsync Method

Definition

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

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

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.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

subscriptionResource is null.

Applies to