How do I login in my Azure Account

AKASH MAJUMDAR 0 Reputation points
2024-06-25T18:53:20.0933333+00:00

Unable to login my azure portal via azure powershell by az login command there is an error as follows:
Authentication failed against tenant 115142-e0fd-4b46-*718-9631f6a**53d8 'Default Directory': (pii). Status: Response_Status.Status_InteractionRequired, Error code: 3399614476, Tag: 557973645

If you need to access subscriptions in the following tenants, please use az login --tenant TENANT_ID.

115142-e0fd-4b46-718-9631f6a53d8 'Default Directory'

I gave made some changes in my directory name here for security reasons so please tell me how do i resolve this

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Wesley Li 6,760 Reputation points
    2024-07-03T07:40:20.8766667+00:00

    Hello

    This error is usually related to Azure's conditional access policies or accounts that require multi-factor authentication (MFA). Please check the following factors first:

    Check if an MFA is required: If your account requires an MFA, try logging in through the Azure CLI or Azure portal, as PowerShell may not support interactive MFA prompts.

    Log in with a tenant ID: Use the .az login --tenant TENANT_ID command, where TENANT_ID is your actual tenant ID.

    Check the Azure PowerShell version: Make sure your Azure PowerShell is up to date. Older versions may not support some authentication methods or features.

    Clear cache: Try to log out of all sessions and delete Azure PowerShell cache files.

    Check account permissions: Make sure your account has access to target tenants and subscriptions.

    Using Azure Portal: Try logging in through Azure Portal to rule out PowerShell related issues.

    0 comments No comments

  2. Wesley Li 6,760 Reputation points
    2024-07-03T07:42:58.4266667+00:00

    Hello

    This error is usually related to Azure's conditional access policies or accounts that require multi-factor authentication (MFA). Please check the following factors first:

    Check if an MFA is required: If your account requires an MFA, try logging in through the Azure CLI or Azure portal, as PowerShell may not support interactive MFA prompts.

    Log in with a tenant ID: Use the .az login --tenant TENANT_ID command, where TENANT_ID is your actual tenant ID.

    Check the Azure PowerShell version: Make sure your Azure PowerShell is up to date. Older versions may not support some authentication methods or features.

    Clear cache: Try to log out of all sessions and delete Azure PowerShell cache files.

    Check account permissions: Make sure your account has access to target tenants and subscriptions.

    Using Azure Portal: Try logging in through Azure Portal to rule out PowerShell related issues.

    0 comments No comments