Skip to content

[Bug] Unable to Authenticate with a User Assigned Managed Identity In Azure Function Apps #5263

@saisrivathsa

Description

@saisrivathsa

Library version used

Microsoft.Identity.Client (>= 4.70.0)

.NET version

8

Scenario

ManagedIdentityClient - managed identity

Is this a new or an existing app?

The app is in production, and I have upgraded to a new version of MSAL

Issue description and reproduction steps

We are seeing the following error while using the 4.70.0 version. At version 4.67.2 everything was working fine.

Exception: System.AggregateException: One or more errors occurred. (ManagedIdentityCredential authentication failed: [Managed Identity] Error Message: Unable to load the proper Managed Identity. Managed Identity Correlation ID: 70c95bc9-5985-4bf1-9b28-72a8e813e3cd Use this Correlation ID for further investigation.
See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/managedidentitycredential/troubleshoot)
 ---> Azure.Identity.AuthenticationFailedException: ManagedIdentityCredential authentication failed: [Managed Identity] Error Message: Unable to load the proper Managed Identity. Managed Identity Correlation ID: 70c95bc9-5985-4bf1-9b28-72a8e813e3cd Use this Correlation ID for further investigation.
See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/managedidentitycredential/troubleshoot
 ---> MSAL.NetCore.4.70.2.0.MsalServiceException:
	ErrorCode: managed_identity_request_failed

Relevant code snippets

Expected behavior

No response

Identity provider

Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)

Regression

4.67.2

Solution and workarounds

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions