I am trying to connect az by calling following command.
az login -u <username> -p <password>
WsTrust server returned error in RSTR: {'reason': 'MSIS7068: Access denied.', 'code': 'a:FailedAuthentication'}
Here we are getting errors as follow.
P:S: The user has no mfa and no conditional policies.I can able to login interactively.
Please help me to solve this.
Please note that you cannot login through azure cli by providing
Microsoft account credentialsinside the command.I tried in my environment and got below results:
Initially I tried with my
Microsoft accountand I got an error like below :Command:
Response:
When I used
Azure AD accountI can login successfully.Command:
Response:
Please check the similar kind of issue in GitHub by yonzhan