Difference between revisions of "Az account list"
Jump to navigation
Jump to search
Line 28: | Line 28: | ||
* [[client_id]] | * [[client_id]] | ||
* [[az ad sp list]] | * [[az ad sp list]] | ||
+ | |||
+ | |||
+ | 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 == | == See also == |
Revision as of 08:54, 16 July 2024
az account list
az account list | grep 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
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
Advertising: