/// <summary> /// Create or update an image. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='imageName'> /// The name of the image. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create Image operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Image> BeginCreateOrUpdateAsync(this IImagesOperations operations, string resourceGroupName, string imageName, Image parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, imageName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }