When trying to connect to AZ Account using powershell giving error #25131
Unanswered
vkumar0284
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PS C:\Users\vikas> Connect-AzAccount -deviceCode
Please select the account you want to login with.
[Login to Azure] To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code S6RNJSQ8Q to authenticate.
Retrieving subscriptions for the selection...
WARNING: Unable to acquire token for tenant '1fab1ee2-c847-4dc0-8420-78c45cb023f3' with error 'Authentication failed against tenant 1fab1ee2-c847-4dc0-8420-78c45cb023f3. User interaction is required. This may be due to the conditional access policy settings such as multi-factor authentication (MFA). If you need to access subscriptions in that tenant, please rerun 'Connect-AzAccount' with additional parameter '-TenantId 1fab1ee2-c847-4dc0-8420-78c45cb023f3'.'
WARNING: Unable to set default context 'Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureContext'.
[Announcements]
With the new Azure PowerShell login experience, you can select the subscription you want to use more easily. Learn more about it and its configuration at https://go.microsoft.com/fwlink/?linkid=2271909.
If you encounter any problem, please open an issue at: https://aka.ms/azpsissue
Subscription name Tenant
Beta Was this translation helpful? Give feedback.
All reactions