DEV Community

Jonas Samuelsson
Jonas Samuelsson

Posted on • Edited on

Azure Data Studio account cache

I prefer using Azure Data Studio when I need to interact with SQL Server databases.
Each time I want to connect to our production databases I need to elevate using Privileged Identity Management.
Azure Data Studio caches my token but isn't smart enough to handle when the token has expired, instead I get this modal.

Image description

The solution to this is to close Azure Data Studio and then delete the files located in %userprofile%\AppData\Roaming\azuredatastudio\Azure Accounts, either manually or by using this powershell script:

Get-ChildItem "$($env:userprofile)\AppData\Roaming\azuredatastudio\Azure Accounts" | Remove-Item
Enter fullscreen mode Exit fullscreen mode

Top comments (0)