When concurrent operations for a user exceed the acceptable value, a PowerShell task fails.

Problem

One or more pipelines fail when you run concurrent pipelines that exceed the maximum number.

Cause

This problem occurs when the pipeline consists of a PowerShell task, and concurrent operations exceed the acceptable value for a user. As a result, vRealize Code Stream displays the following error: The WS-Management service cannot process the request. The maximum number of concurrent operations for this user has been exceeded. Close existing operations for this user, or raise the quota for this user.

To resolve the problem, use the following procedure.

Procedure

  1. Modify the configuration for the service named winrm to set a higher value for MaxShellsPerUser.

    The acceptable value is 500 for 50 concurrent pipelines, with 5 PowerShell tasks for each pipeline.

  2. Run the following command:

    winrm set winrm/config/winrs '@{MaxShellsPerUser="500"}'

  3. Verify the configuration by running the following command:

    winrm get winrm/config

  4. Restart the winrm service.