0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ある日突然Azure Data StudioがDBにADログインできなくなった件。。

Last updated at Posted at 2021-12-09

会社でSQLDBに繋げるのに重宝していたAzure Data Studioを久しぶりに使おうと思ったら、以下のようなエラーが出た。

Screen Shot 2021-12-09 at 8.58.08.png

繋げ方は今のところ2通りできるはずで、ユーザー名とパスワードであれば問題なくつながる。
最近対応したActive Directoryを利用したログインも対応直後はもちろん確認もし、繋がっていたが、今回はなぜかエラーがでた。。

##解決方法
そこでググってみたところ以下の解決方法を見つけ試したところ簡単に直りました。

簡単にいうとazure studioのアカウントフォルダー内にあるazureTokenCache_azure_publicCloudというファイルを削除してリスタートするだけ。

###修正箇所
Windows: C:\Users{UserNameHere}\AppData\Roaming\azuredatastudio\Azure Accounts 配下
Mac: ~/Library/Application Support/azuredatastudio/Azure Accounts 配下

自分の場合はアプリを起動しなおしたらすぐに使えたけど、場合によっては、1度目はブランクのエラー画面がでて、2度目の再起動で直る、ということもあるみたい。

AADのパスワードを変えたことが原因っぽいらしいけど、毎回パスワード変えるとこれやらなくてはいけないのかな。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?