PowerShell – Fix Unable to load adalsql.dll exception

I have quite a few databases in Azure and use PowerShell from time to time to connect and execute queries on them. This is pretty straight forward and normally works as intended. However, sometimes I get the following exception: Unable to load adalsql.dll (Authentication=ActiveDirectoryPassword). Error code: 0x2. For more information, see http://go.microsoft.com/fwlink/?LinkID=513072 This usually happens … Continue reading PowerShell – Fix Unable to load adalsql.dll exception