AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '797f4846-ba00-4fd7-ba43-dac1f8f63013' #1460
Labels
azure-powershell/svc
Service - azure-powershell/svc
cxp
needs-more-info
Waiting - for more information
Pri3
Priority - Low
triaged
I would like to connect AzAccount without manual input username and password. I use below code.
Quote: $User = "xxxxxxxxxx"
$PWord = ConvertTo-SecureString -String "xxxxxxxxxx" -AsPlainText -Force
$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $User, $PWord
Connect-AzAccount -Credential $Credential
UnQuote
There is error saying "AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '797f4846-ba00-4fd7-ba43-dac1f8f63013'"
I;m afraid I have no access right to MFA? How to solve this problem , so that I can automatic log in Azure
The text was updated successfully, but these errors were encountered: