The Azure Cli on Login is giving error of No Subscription found though I have an active one

Rajesh Kalarikkal 15 Reputation points
2023-10-05T07:34:56.04+00:00

On the login to Azure cloud through the command 'az login', A popup appears.

I select the emailId of my Azure account in which I have an active Pay-as-you-go Subscription.

Yet as response for login command, it gives me a message like the following in the terminal.

Failed to authenticate 34812c67-dbb7-4158-9e7a-2d08051338fd 'Default Directory' due to error '(pii). Status: Response_St

atus.Status_InteractionRequired, Error code: 3399614476, Tag: 557973645'

Please help me to resolve this

Thanks,

Rajesh

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
3,615 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Dan Rios 2,020 Reputation points MVP
    2023-10-05T21:56:45.6533333+00:00

    Try clearing the account and then logging in specifying the tenant id:

    az account clear
    az login --tenant <TenantID>
    
    9 people found this answer helpful.

  2. Carlos Roberto Domingues 1 Reputation point
    2023-10-06T01:23:18.3133333+00:00

    Select directory ID as default directory on ARM

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.