/// <summary> /// Downloads a product from azure marketplace. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroup'> /// The resource group the resource is located under. /// </param> /// <param name='activationName'> /// Name of the activation. /// </param> /// <param name='productName'> /// Name of the product. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DownloadAsync(this IProductsOperations operations, string resourceGroup, string activationName, string productName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DownloadWithHttpMessagesAsync(resourceGroup, activationName, productName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }