Skip to content

Commit ccfd21d

Browse files
authored
Update troubleshooting.md
Updated Bash, and checked other scripts on the page.
1 parent 4bdea4c commit ccfd21d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cloud-shell/troubleshooting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ TODO:
223223
- Should we be using a newer API version?
224224
-->
225225
```bash
226-
token=$(curl http://localhost:50342/oauth2/token --data "resource=https://management.azure.com/" -H Metadata:true -s | jq -r ".accessToken")
226+
token=$(curl http://localhost:50342/oauth2/token --data "resource=https://management.azure.com/" -H Metadata:true -s | jq -r ".access_token")
227227
curl https://management.azure.com/providers/Microsoft.Portal/usersettings/cloudconsole?api-version=2017-12-01-preview -H Authorization:"Bearer $token" -s | jq
228228
```
229229

@@ -259,7 +259,7 @@ again.
259259
Bash:
260260

261261
```bash
262-
TOKEN=$(az account get-access-token --resource "https://management.azure.com/" | jq -r ".accessToken")
262+
TOKEN=$(az account get-access-token --resource "https://management.azure.com/" | jq -r ".access_token")
263263
curl -X DELETE https://management.azure.com/providers/Microsoft.Portal/usersettings/cloudconsole?api-version=2017-12-01-preview -H Authorization:"Bearer $TOKEN"
264264
```
265265

0 commit comments

Comments
 (0)