Trying to add Azure account on Azure Data Studio but I get the error "request_cannot_be_made" with the message "Token request cannot be made without authorization code or refresh token" and cannot sign in

Nick 0 Reputation points
2026-09-10T15:59:34.31+00:00

I am currently trying to access my SQL server through Azure Data Studio as I need to use it for my work but I am currently unable to access it as it is requiring me to create a new firewall rule and all of the Azure accounts currently linked were deleted and do not exist anymore. I am trying to sign in to the account that I currently use to access the Azure Portal but whenever I try and add it through Azure Data Studio I get the error "request_cannot_be_made" with the message "Token request cannot be made without authorization code or refresh token" and am unable to sign in. I have tried deleting the accessTokenCache file in AppData\Roaming\azuredatastudio\Azure Accounts but this does not help and the issue still persists. Any help with this issue would be much appreciated.error

Azure Data Studio
Azure Data Studio

A cross-platform database tool for data professionals using on-premises and cloud data platforms on Windows, macOS, and Linux.

0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.