Connect-AzAccount interactive login fails on macOS (Apple Silicon): "Interactive requests with mac broker enabled must be executed on the main thread"
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- csharp, powershell
- 領域
- authentication, cli
調査の方向性
まず、Az.Accounts 5.5.1 を使用して macOS Apple Silicon 上で Connect-AzAccount を再現し、次に 5.2.0 および回避策 -UseDeviceAuthentication と比較します。インタラクティブなブラウザー フローとその MSAL mac-broker パスを追跡します。標準コマンドでメインスレッド エラーなしにブラウザーが開けば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
Connect-AzAccount (interactive browser flow) fails on macOS with the following error, starting in Az.Accounts 5.5.1:
WARNING: Unable to acquire token for tenant 'organizations' with error
'InteractiveBrowserCredential authentication failed: Interactive requests
with mac broker enabled must be executed on the main thread on macOS.'
Connect-AzAccount: InteractiveBrowserCredential authentication failed:
Interactive requests with mac broker enabled must be executed on the main
thread on macOS.
Environment
- Az.Accounts version (broken): 5.5.1
- Az.Accounts version (last known good): 5.2.0
- OS: macOS (Apple Silicon)
- PowerShell: 7.6.4 (pwsh)
- Shell/terminal: zsh, running inside Ghostty
Steps to reproduce
- Install Az.Accounts 5.5.1 (via
Install-Module -Name Az -Repository PSGallery) - Run
Connect-AzAccount - Observe the error above instead of a browser window opening
Expected behavior
Interactive browser login opens as it did on 5.2.0.
Workaround found
Downgrading fixes it:
Uninstall-Module Az.Accounts -AllVersions -Force
Install-Module -Name Az.Accounts -RequiredVersion 5.2.0 -Repository PSGallery -Force -AllowClobber
Connect-AzAccount -UseDeviceAuthentication also works around it without downgrading, but the standard interactive flow should not require this.
Additional notes
This appears to be caused by the MSAL mac-broker interactive auth path requiring main-thread execution, which isn't guaranteed when pwsh is run from a non-default terminal host.
Duplicate of #29940 (filed from a different account by mistake; leaving that one open too so a maintainer can dedupe).
- 主要言語
- C#
- スター
- 4.8k
- フォーク
- 4.3k
- 平均マージ
- 2日 18時間
- マージ済み PR(30日)
- 91
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/azure-powershell のほかの issue
-
[Feature]:オープンcustomer-reported feature-request needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Azure/azure-powershell#30135 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
customer-reported feature-request
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Azure/azure-powershell#30100 ·
メンテナーはふだん 1 日以内に返信
-
Get-AzCognitiveServicesModelCapacity does not support querying models with the Format "Mistral AI"オープンbug customer-reported
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Azure/azure-powershell#29632 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug customer-reported Request X Engineering Agent
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Azure/azure-powershell#29615 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
AzApplicationGateway: Missing VerifyClientAuthMode in Az.Network PowerShell model causes unintended config changes再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug customer-reported
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Azure/azure-powershell#29540 · コメント 1 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
Azure/azure-powershell の issue をすべて見る
似ている issue
-
bug emitter:client:csharp
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
microsoft/typespec#12572 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs-area-label
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
AWS Lambda: KeyNotFoundException drops HTTP-triggered transactions when allowAllHeaders is disabledオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
newrelic/newrelic-dotnet-agent#3949 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area-networking
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
dotnet/aspnetcore#70545 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
メンテナーはふだん 1 日以内に返信