Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yaobaobao2002 opened this issue Jul 7, 2020 · 5 comments
Assignees
Labels
azure-powershell/svc Service - azure-powershell/svc cxp needs-more-info Waiting - for more information Pri3 Priority - Low triaged

Comments

@yaobaobao2002
Copy link

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

@PRMerger20 PRMerger20 added the Pri3 Priority - Low label Jul 7, 2020
@MonikaReddy-MSFT MonikaReddy-MSFT self-assigned this Jul 7, 2020
@MonikaReddy-MSFT MonikaReddy-MSFT added cxp needs-more-info Waiting - for more information triaged labels Jul 7, 2020
@MonikaReddy-MSFT
Copy link
Contributor

MonikaReddy-MSFT commented Jul 7, 2020

@yaobaobao2002 - Thank you for your question.

Can you please share with us the URL of the document that you are having issues with?

Please note that we scope issues on this repo to feedback related to the docs. If you have a product question, please post it on Microsoft Q&A or Stack Overflow. Thank you for your understanding.

@MonikaReddy-MSFT
Copy link
Contributor

@mikefrobbins - Do you have any insights on the above?

@mikefrobbins
Copy link
Contributor

The specified docs don't reference MFA because service principals don't support MFA. Based on my research, this is occurring because security defaults have been enabled for your tenant that are being applied automatically to the new service principal that you're trying to create. For more information, see "What are security defaults?".

@MonikaReddy-MSFT
Copy link
Contributor

@mikefrobbins - Thank you for providing your insights.
@yaobaobao2002 - I hope @mikefrobbins has answered your question.
At this moment, Since there is no doc update required, We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

@BhargaviAnnadevara BhargaviAnnadevara added the azure-powershell/svc Service - azure-powershell/svc label Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-powershell/svc Service - azure-powershell/svc cxp needs-more-info Waiting - for more information Pri3 Priority - Low triaged
Projects
None yet
Development

No branches or pull requests

5 participants