Skip to content

-ERROR: OIDC ADO - Not 'ClientAssertionCredential authentication failed'. $_: 724378c1-37ef-42e2-9a84-16581ee48cf6 #53

@kaiaschulz

Description

@kaiaschulz
-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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions