明明有訂閱卻選不到 WARNING: Unable to acquire token for tenant

下powershell再切換AZURE訂閱帳戶時出現以下錯誤
WARNING: Unable to acquire token for tenant 'efd3b9d3-0d6f-4c40-8088-50feda8d385d'
Login-AzAccount : The default context can no longer be found; please run 'Get-AzContext -ListAvailable' to see all
available contexts, 'Select-AzContext' to select a new default context, or 'Connect-AzAccount' to login with a new
account.

可能是以啟用MFA需要重新驗證
執行以下指令
Connect-AzAccount -UseDeviceAuthentication
重新登入後即可成功
your code here
footer See also :

留言

這個網誌中的熱門文章

Office 2021 離線安裝封裝與KMS啟動步驟

Ollama使用心得與模型導入教學

ARC下NSMutableDictionary 無法使用retainCount