Closed phantomcosmonaut closed 11 months ago
Facing same issue in Azure devops pipelines. Please have a fix
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
Please reopen
Also facing this problem. Please re-open and address this issue.
Note
Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo
For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
If you have an issue or request for the Azure Pipelines service, use developer community instead:
https://developercommunity.visualstudio.com/spaces/21/index.html )
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Question
Enter Task Name: AzurePowerShell@5
list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
Environment
Server - Azure Pipelines or TFS on-premises?
If using TFS on-premises, provide the version:
If using Azure Pipelines, provide the account name, team project name, build definition name/build number: Account: https://dev.azure.com/dealerpolicy Project: DealerPolicy Build definition: "vstfs:///Build/Definition/115"
Agent - Hosted or Private:
If using Hosted agent, provide agent queue name: "Hosted Ubuntu 1604"
If using private agent, provide the OS of the machine running the agent and the agent version:
Issue Description
I run the following task to invoke dotnet test on a list of projects
A call to Azure Keyvaults is made within one of the test files that relies on the DefaultAzureCredential. I would expect this call to succeed given that the Azure Powershell task provides a credential to executing the script. Actual:
Azure.Identity.AuthenticationFailedException: Azure PowerShell authentication timed out.. Aborting test execution.
Note: Needed to disable the CLI credential provider because that was timing out before the powershell credential could be reached.Task logs
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Error logs