Difference between revisions of "Az account list"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lc}} az account list == See also == * {{az account}} Category:Azure")
 
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  [[az account list]]
+
  [[az account]] list
  
 +
az account list | grep -i id
  
  
 +
[
 +
  {
 +
    "cloudName": "[[AzureCloud]]",
 +
    "homeTenantId": "XXXXXXXXXXXX",
 +
    "id": "xxxxxx-3bca-46ed-a141-yyyyyy",
 +
    "isDefault": true,
 +
    "managedByTenants": [],
 +
    "name": "Azure subscription 1",
 +
    "state": "Enabled",
 +
    "tenantDefaultDomain": "xxxxx.onmicrosoft.com",
 +
    "tenantDisplayName": "Default Directory",
 +
    "tenantId": "2xxxxxxx",
 +
    "user": {
 +
      "name": "[email protected]",
 +
      "type": "user"
 +
    }
 +
  }
 +
]
  
 +
== Related ==
 +
* <code>[[az account show]]</code>
 +
* <code>[[az login]]</code>
 +
* <code>[[client_id]]</code>
 +
* <code>[[az ad sp list]]</code>
  
 +
 +
export [[ARM_SUBSCRIPTION_ID]]="<[[azure_subscription_id]]>"
 +
export [[ARM_TENANT_ID]]="<[[azure_subscription_tenant_id]]>"
 +
export [[ARM_CLIENT_ID]]="<[[service_principal_appid]]>"
 +
export [[ARM_CLIENT_SECRET]]="<[[service_principal_password]]>"
 +
 +
* <code>[[invalid_tenant]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 13:51, 18 July 2024

az account list
az account list | grep -i id


[
 {
   "cloudName": "AzureCloud",
   "homeTenantId": "XXXXXXXXXXXX",
   "id": "xxxxxx-3bca-46ed-a141-yyyyyy",
   "isDefault": true,
   "managedByTenants": [],
   "name": "Azure subscription 1",
   "state": "Enabled",
   "tenantDefaultDomain": "xxxxx.onmicrosoft.com",
   "tenantDisplayName": "Default Directory",
   "tenantId": "2xxxxxxx",
   "user": {
     "name": "[email protected]",
     "type": "user"
   }
 }
]

Related[edit]


export ARM_SUBSCRIPTION_ID="<azure_subscription_id>"
export ARM_TENANT_ID="<azure_subscription_tenant_id>"
export ARM_CLIENT_ID="<service_principal_appid>"
export ARM_CLIENT_SECRET="<service_principal_password>"

See also[edit]

Advertising: