# Managed identity not usable: the identity endpoint refuses the request Environment: IDENTITY_HEADER does not match what the endpoint expects. WARN audit - provider=azure principal=unresolved model=gpt-4o-mini outcome=FAILED error=ClientAuthenticationException ms= FAILED 1: ClientAuthenticationException / root cause MsalServiceException: [Managed Identity] Error Code: bad identity header Error Message: null identity endpoint calls: 2, chat calls that reached the stub: 0