/// <summary> /// Upgrades one or more virtual machines to the latest SKU set in the VM scale /// set model. /// </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. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <OperationStatusResponseInner> BeginUpdateInstancesAsync(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, IList <string> instanceIds, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateInstancesWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, instanceIds, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Upgrades one or more virtual machines to the latest SKU set in the VM scale /// set model. /// </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. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginUpdateInstancesAsync(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, IList <string> instanceIds, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginUpdateInstancesWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, instanceIds, null, cancellationToken).ConfigureAwait(false)).Dispose(); }