-ERROR: OIDC ADO - Not 'ClientAssertionCredential authentication failed'. $_: 724378c1-37ef-42e2-9a84-16581ee48cf6
Likely your Azure credentials have not been set up or have expired, please run 'Connect-AzAccount -tenantId <tenantId>'
Write-Error: /home/vsts/.local/share/powershell/Modules/AzAPICall/1.4.1/functions/AzAPICallFunctions.ps1:1760
Line |
1760 | … Logging -logMessage "-ERROR processing new bearer token r …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| -ERROR processing new bearer token request (AzureDevOps) for
| targetEndPoint 'MicrosoftGraph' ([https://graph.microsoft.com):](https://graph.microsoft.com)/)
| 724378c1-37ef-42e2-9a84-16581ee48cf6
##[error]PowerShell exited with code '1'.
This happens within an OIDC service connection in Azure DevOps while using one of our internal products.
It was get EntraID group REST API command against the Microsoft Graph:
# https://learn.microsoft.com/en-us/graph/api/group-list?view=graph-rest-1.0&tabs=http#example-4-use-filter-and-top-to-get-one-group-with-a-display-name-that-starts-with-a-including-a-count-of-returned-objects
# GET https://graph.microsoft.com/v1.0/groups?$search="displayName:Video" OR "description:prod"&$orderby=displayName&$count=true
The pipeline failed after 22 seconds. This was the first call to the Microsoft Graph within this run.
Within the pipeline the timeoutInMinutes is set to 360.
As well, the system access token is set as well for the AzurePowerShell Task 5:
- task: AzurePowerShell@5
displayName: 'Run: Name AzurePowerShell@5'
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
This happens within an OIDC service connection in Azure DevOps while using one of our internal products.
It was get EntraID group REST API command against the Microsoft Graph:
The pipeline failed after 22 seconds. This was the first call to the Microsoft Graph within this run.
Within the pipeline the
timeoutInMinutesis set to360.As well, the system access token is set as well for the AzurePowerShell Task 5: