How to get the azure account tenant Id

0 votes

Hi Team,

I am new to Azure cloud. I want to know the tenant id of Azure account. How can I get that with the CLI command?

Dec 21, 2020 in Azure by akhtar
• 38,260 points
1,358 views

1 answer to this question.

0 votes

Hi@akhtar,

You can find the tenant id with the CLI command as shown below.

$ azure login
$ azure account show
info:    Executing command account show
data:    Name                        : XXXXXXX
data:    ID                          : XXXXXXXX
data:    State                       : Enabled
data:    Tenant ID                   : XXXXXXXXX
data:    Is Default                  : true
data:    Environment                 : AzureCloud
data:    Has Certificate             : No
data:    Has Access Token            : Yes
data:    User name                   : XXXXXXXXX
data:    
info:    account show command OK


Hope this helps!

Check out azure cloud training to become the master.

Thanks!

answered Dec 21, 2020 by MD
• 95,460 points

edited Oct 6, 2023 by Khan Sarfaraz

Related Questions In Azure

0 votes
2 answers

How can I download a .vhd image to my local machine from azure and upload the same to a different azure account?

From the Windows Azure Portal you can ...READ MORE

answered Aug 20, 2018 in Azure by Priyaj
• 58,020 points
13,984 views
0 votes
1 answer

How to get the list of names of Azure blob files in a container?

We can get some additional info like Size, ...READ MORE

answered Jun 27, 2018 in Azure by club_seesharp
• 3,450 points
21,800 views
0 votes
1 answer

How to get the Azure table Row count?

Unfortunately there's no other way to do ...READ MORE

answered Sep 25, 2018 in Azure by null_void
• 3,220 points
8,170 views
+1 vote
2 answers
0 votes
1 answer

What OS is Jenkins installed on Azure Virtual Machine?

Under Managed Jenkins there's a section called ...READ MORE

answered Apr 4, 2018 in DevOps & Agile by DareDev
• 6,890 points
853 views
+1 vote
3 answers

Where to find the Microsoft.IdentityModel dll?

Include Microsoft.IdentityModel.Extensions for WIF runtime support by following the following ...READ MORE

answered Oct 23, 2018 in Azure by Progbaaa
8,672 views
+1 vote
4 answers

How do Connect to Azure website via FTP?

First set up your FTP credentials are ...READ MORE

answered Oct 23, 2018 in Azure by abc
4,407 views
0 votes
1 answer

How to list the subscriptions of a Azure account?

Hi@akhtar, You can get all the subscriptions for ...READ MORE

answered Nov 10, 2020 in Azure by MD
• 95,460 points

edited Jul 4, 2023 by Khan Sarfaraz 1,194 views
0 votes
1 answer

How to set the subcription in the Azure account?

Hi@akhtar, You can set your required subscription to ...READ MORE

answered Nov 10, 2020 in Azure by MD
• 95,460 points
620 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP