Azure / Azure/azure-cli

az status

Open
#6,802 12 comments 13 reactions 2 assignees Claimed by @qianwens View on GitHub
act-platform-engineering-squad Core customer-reported feature-request MSAL
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

`az status` will tell you who you are logged in as if you are logged in.

I imagine the ability to get the same info after you use `az login`

```
~ > az login
Note, we have launched a browser for you to login. For old experience with device code, use "az login --use-device-code"
You have logged in. Now let us find all subscriptions you have access to...
[
{
"cloudName": "AzureCloud",
"id": "1e0b427a-fake-494e-numbers-ee558463ebbf",
"isDefault": true,
"name": "Engineering",
"state": "Enabled",
"tenantId": "THIS_IS_FAKE-afe1-4696-NOPE-f97a7ac416d7",
"user": {
"name": "jasghar@chef.io",
"type": "user"
}
},
{
"cloudName": "AzureCloud",
"id": "b02e675a-FAKE-49bd-IDSARECOOL-daa7ed05bf4e",
"isDefault": false,
"name": "Solutions",
"state": "Enabled",
"tenantId": "NEVEREVER-afe1-4696-PUTTHISOUT-f97a7ac416d7",
"user": {
"name": "jasghar@chef.io",
"type": "user"
}
}
]
```

For instance:

```
~ > az status
You are logged in and authenticated. Now let us find all subscriptions you have access to...
[
{
"cloudName": "AzureCloud",
"id": "1e0b427a-fake-494e-numbers-ee558463ebbf",
"isDefault": true,
"name": "Engineering",
"state": "Enabled",
"tenantId": "THIS_IS_FAKE-afe1-4696-NOPE-f97a7ac416d7",
"user": {
"name": "jasghar@chef.io",
"type": "user"
}
},
{
"cloudName": "AzureCloud",
"id": "b02e675a-FAKE-49bd-IDSARECOOL-daa7ed05bf4e",
"isDefault": false,
"name": "Solutions",
"state": "Enabled",
"tenantId": "NEVEREVER-afe1-4696-PUTTHISOUT-f97a7ac416d7",
"user": {
"name": "jasghar@chef.io",
"type": "user"
}
}
]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.