How to get the azure account tenant Id?

后端 未结 21 1406
故里飘歌
故里飘歌 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:44

    Via PowerShell anonymously:

    (Invoke-WebRequest https://login.windows.net/YOURDIRECTORYNAME.onmicrosoft.com/.well-known/openid-configuration|ConvertFrom-Json).token_endpoint.Split('/')[3]
    

提交回复
热议问题