Try Login into Azure Account using CMD | az login

IBNABBAS-9487 0 Reputation points
2023-12-31T07:12:10.88+00:00

enter image description hereHi

I Try Login into Azure Account using CMD Command az login

give me thias message

C:\Users\Home>az login

Please select the account you want to log in with.

No subscriptions found for <xxxx.xxxx>@hotmail.com.

What is solution?

Thaks

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
456 questions
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
700 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,874 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,427 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,700 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 4,290 Reputation points Microsoft Employee
    2023-12-31T08:39:22.9133333+00:00

    Hello Abbas Mohammed.

    This behavior is as expected. When you do

    az login 
    

    it expects you to sign in with the email that you have used with which you have an azure subscription.

    In this case you do not have a subscription with your Hotmail account so use other (usually your company domain) account.

    Also you need to use the Powershell terminal and not the CMD terminal.

    when you do az login you’d be redirected to the browser to authenticate with MFA. After you have authenticated, you can then see all your subscriptions with that email address by using

     az account list
    
    1 person 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.