Skip to content

Commit c1fd5d4

Browse files
authored
Update troubleshooting.md
Updating invalid bash commands to retrieve token MicrosoftDocs#98334
1 parent 327b815 commit c1fd5d4

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
@@ -161,7 +161,7 @@ In order to **export** the user settings Cloud Shell saves for you such as prefe
161161
Bash:
162162

163163
```
164-
token="Bearer $(curl http://localhost:50342/oauth2/token --data "resource=https://management.azure.com/" -H Metadata:true -s | jq -r ".access_token")"
164+
token="Bearer $(curl http://localhost:50342/oauth2/token --data "resource=https://management.azure.com/" -H Metadata:true -s | jq -r ".accessToken")"
165165
curl https://management.azure.com/providers/Microsoft.Portal/usersettings/cloudconsole?api-version=2017-12-01-preview -H Authorization:"Bearer $token" -s | jq
166166
```
167167

@@ -185,7 +185,7 @@ In order to **delete** your user settings Cloud Shell saves for you such as pref
185185
Bash:
186186

187187
```
188-
token=$(az account get-access-token --resource "https://management.azure.com/" | jq -r ".access_token")
188+
token=$(az account get-access-token --resource "https://management.azure.com/" | jq -r ".accessToken")
189189
curl -X DELETE https://management.azure.com/providers/Microsoft.Portal/usersettings/cloudconsole?api-version=2017-12-01-preview -H Authorization:"Bearer $token"
190190
```
191191

0 commit comments

Comments
 (0)