/// <summary>
 /// Reimages (upgrade the operating system) one or more virtual machines in a
 /// VM scale set.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='vmScaleSetName'>
 /// The name of the VM scale set.
 /// </param>
 /// <param name='instanceIds'>
 /// The virtual machine scale set instance ids. Omitting the virtual machine
 /// scale set instance ids will result in the operation being performed on all
 /// virtual machines in the virtual machine scale set.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <OperationStatusResponseInner> BeginReimageAsync(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, IList <string> instanceIds = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginReimageWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, instanceIds, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Reimages (upgrade the operating system) one or more virtual machines in a
 /// VM scale set.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='vmScaleSetName'>
 /// The name of the VM scale set.
 /// </param>
 /// <param name='instanceIds'>
 /// The virtual machine scale set instance ids. Omitting the virtual machine
 /// scale set instance ids will result in the operation being performed on all
 /// virtual machines in the virtual machine scale set.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginReimageAsync(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, IList <string> instanceIds = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginReimageWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, instanceIds, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Reimages (upgrade the operating system) one or more virtual machines in a
 /// VM scale set which don't have a ephemeral OS disk, for virtual machines who
 /// have a ephemeral OS disk the virtual machine is reset to initial state.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='vmScaleSetName'>
 /// The name of the VM scale set.
 /// </param>
 /// <param name='vmScaleSetReimageInput'>
 /// Parameters for Reimaging VM ScaleSet.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginReimageAsync(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, VirtualMachineScaleSetReimageParametersInner vmScaleSetReimageInput = default(VirtualMachineScaleSetReimageParametersInner), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginReimageWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, vmScaleSetReimageInput, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }