We have time to time Error: unable to get MSAL authorization token for resource manager API: failed to get an oauth token from MSI for user assigned identity from MSI endpoint error msi is not available

Ozden Akinci 0 Reputation points
2025-10-17T11:46:25.8366667+00:00

Hi,

Time to time we have the following error on our VM attached with managed identity while running terraform commands:

Error: unable to get MSAL authorization token for resource manager API: failed to get an oauth token from MSI for user assigned identity from MSI endpoint "

What is the root cause of the issue?

Thanks for your support and help

Azure Managed Applications
Azure Managed Applications
An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.