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,240 points
652 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,440 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,100 points
13,194 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
18,811 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
6,107 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
422 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
6,524 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
3,147 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,440 points
434 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,440 points
223 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