Hey @Marek Matonok , I used 4.0.1 package when I enabled Managed Identity on the sample app. I did initially receive that error message; however, it went away when replaced username and password with Authentication=Active Directory Default;
and added the app service name as an identity to the table.
Now I know you indicated this error is intermittent, but is it sporadic or on a consistent interval? How are you using your DbContext across different requests? If you change the authentication to Active Directory Default, does it improve or completely mitigate the issue?