Error in azure login, no subscription found

Rohit Kumar 21 Reputation points
2024-06-13T10:51:22.3266667+00:00

PS C:\Users\Student\AzureAI search\mslearn-knowledge-mining\Labfiles\01-azure-search> az login

A web browser has been opened at https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize. Please continue the login in the web browser. If no web browser is available or if the web browser fails to open, use device code flow with az login --use-device-code.

The following tenants require Multi-Factor Authentication (MFA). Use 'az login --tenant TENANT_ID' to explicitly login to a tenant.

1c63197d-c09d-41ee-84a7-689f54bec395 'Default Directory'

No subscriptions found for ******@gmail.com.

PS C:\Users\Student\AzureAI search\mslearn-knowledge-mining\Labfiles\01-azure-search>

This question is related to the following Learning Module

Azure | Azure Training
{count} votes

1 answer

Sort by: Most helpful
  1. Miguel Gonçalves 971 Reputation points
    2024-06-13T15:21:27.04+00:00

    Hi, @Rohit Kumar

    You’re trying to log in to Azure using the Azure CLI (az login). Seems that Multi-Factor Authentication (MFA) is required for your tenant. If you’ve already set up MFA, you should be able to complete the login process in the web browser that was opened. If you’re unable to do so, you can use the device code flow by running az login --use-device-code in the CLI as suggested. The message No subscriptions found for ******@gmail.com indicates that there are no Azure subscriptions associated with the email address ******@gmail.com. You’ll need to use an account that has an associated Azure subscription to be able to use Azure services.
    When you login in browser, you can see your directory and subscription?

    |-------------------------------->>> If the reply was helpful please don't forget to upvote and/or accept as answer, thank you

    2 people found this answer helpful.

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.