Skip to content

Commit 327b815

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/cloud-shell/troubleshooting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Bash:
162162

163163
```
164164
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
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 ".access_token")
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)