From my case, seems the issue is with the token. So I have upgraded azure-identity and pyodbc versions, and then it works as expected.