[Eng]: Cosmos API throwing unauthorized Error #26952
Labels
customer-reported
DevOps
needs-author-feedback
More information is needed from author to address the issue.
no-recent-activity
There has been no recent activity on this issue.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
Context:
I am trying to call the Cosmos DB GET API from an Azure PowerShell task within an Azure DevOps (ADO) build pipeline. To authenticate, I opted for a service connection using Workload Identity Federation (WIF).
Steps Taken:
Issue:
I encountered the following error during execution:
This error occurs despite the MSI being in the same tenant as the Cosmos DB account.
Request for Help:
Resolution: What steps can I take to resolve this issue?
Alternate Approach: If this method isn’t feasible, is there an alternate approach for securely calling the Cosmos DB GET API from an ADO pipeline using Azure PowerShell?
Any guidance would be greatly appreciated!
The text was updated successfully, but these errors were encountered: