Skip to content

Commit 8a4f43b

Browse files
authored
Merge pull request #98339 from cvillagomez/main
Update troubleshooting.md
2 parents 0532e1f + c1fd5d4 commit 8a4f43b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/cloud-shell/troubleshooting.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ 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")"
165-
curl https://management.azure.com/providers/Microsoft.Portal/usersettings/cloudconsole?api-version=2017-12-01-preview -H Authorization:"$token" -s | jq
164+
token="Bearer $(curl http://localhost:50342/oauth2/token --data "resource=https://management.azure.com/" -H Metadata:true -s | jq -r ".accessToken")"
165+
curl https://management.azure.com/providers/Microsoft.Portal/usersettings/cloudconsole?api-version=2017-12-01-preview -H Authorization:"Bearer $token" -s | jq
166166
```
167167

168168
PowerShell:
@@ -185,8 +185,8 @@ 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")
189-
curl -X DELETE https://management.azure.com/providers/Microsoft.Portal/usersettings/cloudconsole?api-version=2017-12-01-preview -H Authorization:"$token"
188+
token=$(az account get-access-token --resource "https://management.azure.com/" | jq -r ".accessToken")
189+
curl -X DELETE https://management.azure.com/providers/Microsoft.Portal/usersettings/cloudconsole?api-version=2017-12-01-preview -H Authorization:"Bearer $token"
190190
```
191191

192192
PowerShell:

0 commit comments

Comments
 (0)