title: Getting tenant name from azure CLI
body: <p>I would like to retrieve the tenant name <code>THIS-THING-HERE.onmicrosoft.com</code> using Azure CLI. I can't really find in documentation.</p>
  
  <p>EDIT:
  When I'm calling azure account list I don't get user name in the domain provided since I'm login with corporate email:</p>
  
  <pre><code>[
    {
      "cloudName": "AzureCloud",
      "id": "46ee2f65-7112-4c96-ad0a-3ff6ca22a615",
      "isDefault": true,
      "name": "Visual Studio Professional",
      "state": "Enabled",
      "tenantId": "1caf5d6b-58cb-40e6-88b3-eb9ab9c0c010",
      "user": {
        "name": "a.krajniak@avanade.com",
        "type": "user"
      }
    },
    {
      "cloudName": "AzureCloud",
      "id": "1efd84d6-173f-42cc-80db-7b2c17eb0edd",
      "isDefault": false,
      "name": "Microsoft Azure Enterprise",
      "state": "Enabled",
      "tenantId": "c48d02ad-7efd-4910-9b51-ebb7a4b75379",
      "user": {
        "name": "a.krajniak@avanade.com",
        "type": "user"
      }
    }
  ]
  </code></pre>