We used to honor environment variable AZURE_POD_IDENTITY_AUTHORITY_HOST in IMDS
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/azure/identity/_credentials/imds.py#L36
Seems like MSAL changed the behavior which is a regression.