azure – Visual Studio and managed identity


I am running a windows form locally and accessing an Azure SQL Server. But I get following error:

enter image description here

I can access the SQL server locally from studio management. I am using PIM and I noticed when I elevate my self I need to restart SQL Studio Management. I wonder if it can be something similar. Yesterday it worked fine after 4-5 minutes, today after 45 mins I still get the error.

This is my connection string:

Server=sql-xx-prd.database.windows.net;Database=db-xx-prd;Authentication=Active Directory Default;Encrypt=True;Timeout=90″

And I setup Visual Studio with:

enter image description here

Any pointers how to solve this?

Leave a Reply

Your email address will not be published. Required fields are marked *