Connect-AzAccount提示问题
Connect-AzAccount prompt issue
当我使用 Connect-AzAccount 时,会在 window 之类的浏览器中打开提示(无法确定是哪个浏览器)。它正确地跟随,直到它到达组织的登录页面。然后提交按钮不起作用。还有一个应该遵循的第 3 方身份验证,但我们还没有到达那里。
现在,如果我输入 Connect-AzAccount -Credential $Credential -Subscription $subscription
(没有提示),我会收到错误消息“无法验证或授权安全令牌。”。
如何解决这个问题?
请试试这个:
$Credential = Get-Credential
$Tenant = 'xxxx-xxxx-xxxx-xxxx'
$Subscription = 'yyyy-yyyy-yyyy-yyyy'
Connect-AzAccount -Credential $Credential -Tenant $Tenant -Subscription $Subscription
提交按钮不起作用。所以解决方案是在光标位于密码文本上时按 'Enter' 键。
当我使用 Connect-AzAccount 时,会在 window 之类的浏览器中打开提示(无法确定是哪个浏览器)。它正确地跟随,直到它到达组织的登录页面。然后提交按钮不起作用。还有一个应该遵循的第 3 方身份验证,但我们还没有到达那里。
现在,如果我输入 Connect-AzAccount -Credential $Credential -Subscription $subscription
(没有提示),我会收到错误消息“无法验证或授权安全令牌。”。
如何解决这个问题?
请试试这个:
$Credential = Get-Credential
$Tenant = 'xxxx-xxxx-xxxx-xxxx'
$Subscription = 'yyyy-yyyy-yyyy-yyyy'
Connect-AzAccount -Credential $Credential -Tenant $Tenant -Subscription $Subscription
提交按钮不起作用。所以解决方案是在光标位于密码文本上时按 'Enter' 键。