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,170 points
114 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
answered Dec 21, 2020 by MD
• 95,180 points

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,120 points
10,422 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
10,561 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
3,408 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
152 views
+1 vote
4 answers

Where to find the Microsoft.IdentityModel dll?

I finally found this Nuget package: https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM, which ...READ MORE

answered Oct 23, 2018 in Azure by Trisha
3,358 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
1,590 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,180 points
68 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,180 points
42 views