【发布时间】:2022-08-24 22:22:55
【问题描述】:
我已经部署了一个函数应用程序,其中包含一个连接到 msolservice 的 azure 函数。但这最近产生了身份验证错误。 我正在使用的脚本:
$username = \'xxx\'
$password = \'xxx\'
$cred = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $username, $(convertto-securestring $password -asplaintext -force)
Connect-MsolService -Credential $cred
它产生的错误: Connect-MsolService:身份验证错误:意外身份验证失败。
功能应用详情 函数运行时:Powershell 运行时版本:3.8.2.0
用户未启用 MFA。 我可以从我的本地 powershell 连接它。有关此问题的任何帮助都会有所帮助
-
尝试使用 Get-Credential cmdtel 获取 Pscredential
-
现在有同样的问题。你解决了吗?
标签: azure-functions