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 rohit23021997@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 Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,212 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Miguel Gonçalves | AVANADE 886 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 rohit23021997@gmail.com indicates that there are no Azure subscriptions associated with the email address rohit23021997@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