gpt4 book ai didi

azure - 连接-MsolService : Authentication Error: Unexpected authentication failure

转载 作者:行者123 更新时间:2023-12-02 06:26:04 29 4
gpt4 key购买 nike

我正在尝试通过 powershell 脚本使用“应用程序密码”作为身份验证 MFA 方法连接到 azure AD。

这是我的脚本:

$username = '<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="285d5b4d5a684d50494558444d064b4745" rel="noreferrer noopener nofollow">[email protected]</a>'
$Password = ConvertTo-SecureString 'MyPassword' -AsPlainText -Force
$creds = new-object System.Management.Automation.PSCredential($username, $password)
Connect-MsolService -Credential $creds

但是我收到了这个错误:

Connect-MsolService : Authentication Error: Unexpected authentication failure

最佳答案

我也有类似的问题。我运行了下面的 PowerShell:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Connect-MsolService

关于azure - 连接-MsolService : Authentication Error: Unexpected authentication failure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65822568/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com