The AzurePowerShell@5 fails nondeterministically on the Connect-AzAccount part with the following errors: There was an error with the service principal used for the deployment/The operation was canceled. The task does not start executing the inline script. Just retry (without changing anything) usually helps. It always hangs for around 2 minutes 8 seconds before the error is printed out.
The task runs on a self hosted agent based on Azure Container jobs.
Agent is behind a firewall and at the similar time the firewall is blocking outgoing requests to raw.githubusercontent.com from the agent subnet.
Current agent version: '3.225.0'
PowerShell: 7.3.6
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
Task name
AzurePowerShell
Task version
5
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu 20.04
Task log
Relevant log output
Additional info
The AzurePowerShell@5 fails nondeterministically on the Connect-AzAccount part with the following errors:
There was an error with the service principal used for the deployment
/The operation was canceled.
The task does not start executing the inline script. Just retry (without changing anything) usually helps. It always hangs for around 2 minutes 8 seconds before the error is printed out. The task runs on a self hosted agent based on Azure Container jobs. Agent is behind a firewall and at the similar time the firewall is blocking outgoing requests toraw.githubusercontent.com
from the agent subnet. Current agent version: '3.225.0' PowerShell: 7.3.6Usage:
Output of Get-Module (on the agent)