/// <summary> /// Save an image from a lab VM to the attached shared image gallery. /// </summary> /// <remarks> /// Saves an image from a lab VM to the attached shared image gallery. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// The request body. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='labPlanName'> /// The name of the lab plan that uniquely identifies it within containing /// resource group. Used in resource URIs and in UI. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginSaveImageAsync(this ILabPlansOperations operations, SaveImageBody body, string resourceGroupName, string labPlanName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginSaveImageWithHttpMessagesAsync(body, resourceGroupName, labPlanName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Save an image from a lab VM to the attached shared image gallery. /// </summary> /// <remarks> /// Saves an image from a lab VM to the attached shared image gallery. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// The request body. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='labPlanName'> /// The name of the lab plan that uniquely identifies it within containing /// resource group. Used in resource URIs and in UI. /// </param> public static void BeginSaveImage(this ILabPlansOperations operations, SaveImageBody body, string resourceGroupName, string labPlanName) { operations.BeginSaveImageAsync(body, resourceGroupName, labPlanName).GetAwaiter().GetResult(); }