簡體   English   中英

在 Visual Studio Code 中,使用 Connect-AzAccount 登錄 Azure 時,PowerShell 一直掛起

[英]Within Visual Studio Code PowerShell keeps hanging when logging into Azure with Connect-AzAccount

在 Visual Studio Code 的終端(安裝在 Ubuntu 上)我嘗試使用“Connect-AzAccount”登錄到 Azure。 看起來在后台 PowerShell 很忙(可能是 MFA),但沒有出現新的彈出窗口。

知道該怎么做嗎?

在此處輸入圖像描述

我已經安裝了以下擴展:

  • PowerShell (ms-vscode.powershell)
  • Azure CLI 工具 (ms-vscode.azurecli)
  • Python (ms-python.python)
  • Jupyter (ms-toolsai.jupyter)

$PSVersionTable

名稱 值


PSVersion 7.1.1 PSEdition Core GitCommitId 7.1.1 OS Linux 5.4.0-65-generic #73~18.04.1-Ubuntu SMP Tue Jan 19 09:02:24 UTC 2021 Platform Unix PSCompatibleVersions {1.0, 2.0, 3.0, 4.0… } PSRemotingProtocolVersion 2.3 序列化版本 1.1.0.1 WSManStackVersion 3.0

在不更改任何內容的情況下,它現在對我有用,似乎帶有以下消息:

警告:初始化:由於在檢查令牌緩存持久性期間出錯,要處理的回退上下文保存模式:無法訪問共享鎖定文件。在現有瀏覽器 session 中打開。

通過“az login”沒有問題

在現有瀏覽器 session 中打開。 您已登錄。現在讓我們查找您有權訪問的所有訂閱...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM