Skip to content

Commit 5cbc2e7

Browse files
scottaddieCopilot
andauthored
Replace azd config list with azd auth status in TROUBLESHOOTING.md (#26032)
* Replace `azd config list` with `azd auth status` in TROUBLESHOOTING.md The `azd config list` command is no longer the recommended way to verify the logged-in Azure Developer CLI account. Update the troubleshooting guide to use `azd auth status` instead. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * React to feedback --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4a885ef commit 5cbc2e7

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

sdk/azidentity/TROUBLESHOOTING.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,17 +193,26 @@ az account get-access-token --output json --resource https://management.core.win
193193

194194
#### Verify the Azure Developer CLI can obtain tokens
195195

196-
You can manually verify that the Azure Developer CLI is properly authenticated and can obtain tokens. First, use the `config` command to verify the account that is currently logged in to the Azure Developer CLI.
196+
You can manually verify that the Azure Developer CLI is properly authenticated and can obtain tokens. Execute the command corresponding to your CLI version to verify the account currently logged in.
197197

198-
```sh
199-
azd config list
200-
```
198+
- In Azure Developer CLI versions >= 1.23.0:
199+
200+
```sh
201+
azd auth status
202+
```
203+
204+
- In Azure Developer CLI versions < 1.23.0:
205+
206+
```sh
207+
azd config list
208+
```
201209

202210
Once you've verified the Azure Developer CLI is using correct account, you can validate that it's able to obtain tokens for this account.
203211

204212
```sh
205213
azd auth token --output json --scope https://management.core.windows.net/.default
206214
```
215+
207216
>Note that output of this command will contain a valid access token, and SHOULD NOT BE SHARED to avoid compromising account security.
208217

209218
<a id="azure-pwsh"></a>

0 commit comments

Comments
 (0)