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)

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay