JustiPhi
❔ Azure DevOps API Authentication issue (Managed Identity)
I am currently trying to add authentication to Azure managed Identity using Azure.Identity and Azure.Core in the following code:
I successfully get the token but when I try to use it in a bearer token auth header to get projects from
I get the following error
is there anything im missing as using a PAT (basic token auth header) from my own account works with the same fetch but using the managed identity one seems to not associate with an account
the app is running through azure app services and it is a system managed identity
Thanks
57 replies
Using Azure Managed Identities API
I am trying to get an api token using azure managed identity through an application hosted by azure app services, when trying to get the token through a get request using
System.Environment.GetEnvironmentVariable("MSI_ENDPOINT");
as my endpoint I get a 403 status on the response, any ideas what I could be missing?28 replies