2015-12-09 31 views
10

私はAzure CLIの新しいユーザーです。だから、私は昨日それを使い始めました。 Azureログインコマンドを使用して、再度ログインする必要のあるメッセージをコンソールで受け取るまでは、すべてが正常でした。エラー:Azure CLIで有効な空白がありません

私はメッセージにこう言った。ブラウザを開き、コードを入力してください。ブラウザは、すべてのことがOKであるページをロードします。しかし、私はコンソールウィンドウに行くとき、私はこれらのメッセージが表示されます。

error: We don't have a valid access token. Please run "azure login" again. 
info: Error information has been recorded to C:\Users\julia\.azure\azure.err 
error: login command failed 

on the detail error file, this is the content: 
2015-12-09T14:25:39.477Z - info: Executing command login 
2015-12-09T14:25:40.278Z - info: To sign in, use a web browser to open the page aka.ms/devicelogin. Enter the code FYEBRSSSW to authenticate. If you're signing in as an Azure AD application, use the --username and --password parameters. 
2015-12-09T14:25:40.278Z - verbose: code response from AAD is :{"userCode":"FYEBRSSSW","deviceCode":"FAAABAAEAiL9Kn2Z27UubvWFPbm0gLSP06OmChH0nnUbKKbL9_GLsujCsreUiKWZtv3DBNS6o5dK7vblnGRAk_b_3oO64FJ9f6Dd306_5P_ZlMUwIPCD-a02NydqTyYXXXXXXX","verificationUrl":"aka.ms/devicelogin","expiresIn":900,"interval":5,"message":"To sign in, use a web browser to open the page https://aka.ms/devicelogin. Enter the code FYEBRSSSW to authenticate. If you're signing in as an Azure AD application, use the --username and --password parameters."} 
2015-12-09T14:36:25.449Z - error: We don't have a valid access token. Please run "azure login" again. 
2015-12-09T14:36:25.451Z - silly: { 
2015-12-09T14:36:25.451Z - silly:  stack: "Error: We don't have a valid access token. Please run "azure login" again.\n at _polishError (C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\lib\\util\\authentication\\adalAuthForUser.js:64:10)\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\lib\\util\\authentication\\adalAuthForUser.js:48:25\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\lib\\util\\authentication\\token-cache.js:96:9\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\node_modules\\async\\lib\\async.js:52:16\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\node_modules\\async\\lib\\async.js:272:32\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\node_modules\\async\\lib\\async.js:44:16\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\lib\\util\\authentication\\win-token-storage.js:169:16\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\node_modules\\async\\lib\\async.js:697:13\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\node_modules\\async\\lib\\async.js:52:16\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\node_modules\\async\\lib\\async.js:272:32", 
2015-12-09T14:36:25.452Z - silly:  message: "We don't have a valid access token. Please run "azure login" again.", 
2015-12-09T14:36:25.452Z - silly:  __frame: { 
2015-12-09T14:36:25.452Z - silly:   name: '__1', 
2015-12-09T14:36:25.452Z - silly:   line: 47, 
2015-12-09T14:36:25.452Z - silly:   file: 'C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\lib\\commands\\login.js', 
2015-12-09T14:36:25.452Z - silly:   prev: undefined, 
2015-12-09T14:36:25.452Z - silly:   calls: 0, 
2015-12-09T14:36:25.452Z - silly:   active: false, 
2015-12-09T14:36:25.452Z - silly:   offset: 53, 
2015-12-09T14:36:25.452Z - silly:   col: 27 
2015-12-09T14:36:25.452Z - silly:  }, 
2015-12-09T14:36:25.452Z - silly:  rawStack: " token. Please run "azure login" again.\n at _polishError (C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\lib\\util\\authentication\\adalAuthForUser.js:64:10)\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\lib\\util\\authentication\\adalAuthForUser.js:48:25\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\lib\\util\\authentication\\token-cache.js:96:9\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\node_modules\\async\\lib\\async.js:52:16\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\node_modules\\async\\lib\\async.js:272:32\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\node_modules\\async\\lib\\async.js:44:16\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\lib\\util\\authentication\\win-token-storage.js:169:16\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\node_modules\\async\\lib\\async.js:697:13\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\node_modules\\async\\lib\\async.js:52:16\n at C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI\\node_modules\\async\\lib\\async.js:272:32" 
2015-12-09T14:36:25.452Z - silly: } 
2015-12-09T14:36:25.458Z - info: Error information has been recorded to C:\Users\julia\.azure\azure.err 

私がポータルに参加すると、それは大丈夫ですすべてが、私のアカウントがアクティブになって、私は問題なくすべての私のマシンを作成してmonitoreすることができます。これはAzure CLI v2.8の特別な状況です。

ところで、私は "青空のログアウトと空白のクリア-q"コマンドを成功せずに試してみます。

答えて

5

これは通常、複数の晴れたアカウントがある場合に発生します。つまり、これはブラウザ - >キャッシュ/クッキー問題です。

プライベートブラウザセッションを開くか、別のブラウザを使用してコンソールCLIから提供されるリンクを使用して新しいセッションを開始する必要があります。

これは動作するはずです。

1

問題が解決しない場合は、他の代替案があります。 Windows資格情報マネージャにアクセスできます。 Windowsの資格]タブでは、にMicrosoft_PaidWifi_MicroRefreshTokenまたはlogin.microsoftonline.comを持っている誰かのようなマイクロソフトのcredetial storagedを、削除....

私は私の問題へのそば日付で資格情報を削除することでした。今私は問題なしで紺碧のcliにログオンすることができます。

enter image description here ジュリアン

+0

私は同じ問題に直面しますが、私のUbuntuマシンで。最初の解決策は私のために働いていません。 – Reshma

関連する問題