When memory is constrained on the service named winrm, a PowerShell task might fail to respond.

Problem

When you run concurrent pipelines that contain one or more PowerShell tasks, some pipelines might fail.

Cause

This problem occurs when the memory is constrained on the service named winrm.

To resolve the problem, use the following procedure.

Procedure

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

    The acceptable value is 2048.

  2. Run the following command:

    winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="2048"}'

  3. Verify the configuration by running the following command:

    winrm get winrm/config

  4. Restart the winrm service.