How to get the azure account tenant Id?

后端 未结 21 1493
故里飘歌
故里飘歌 2020-11-30 17:47

My question is: Is it possible to get the azure active directory tenant id without using powershell command?

I found this two blogs and with this help, I\'m already

21条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-30 18:28

    A simple way to get the tenantID is

    Connect-MsolService -cred $LiveCred #sign in to tenant

    (Get-MSOLCompanyInformation).objectid.guid #get tenantID

提交回复
热议问题