How to get the azure account tenant Id?

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

    As of now (06/07/2018), an easy approach would be running az account show in the Azure Cloud Shell (requires a Storage Account) in the Azure Portal.

    --- Command ---

    az account show
    

    --- Command Output ---

    {
      "environmentName": "AzureCloud",
      "id": "{Subscription Id (GUID)}",
      "isDefault": true,
      "name": "{Subscription Name}",
      "state": "Enabled",
      "tenantId": "{Tenant Id (GUID)}",
      "user": {
        "cloudShellID": true,
        "name": "{User email}",
        "type": "user"
      }
    }
    

    Find more details on Azure Cloud Shell at https://docs.microsoft.com/en-us/azure/cloud-shell/overview.

提交回复
热议问题