Skip to content

Commit adaaf56

Browse files
committed
Very minor edit
1 parent f3efd37 commit adaaf56

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/iot-hub/iot-hub-rm-rest.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ You can use the [IoT Hub Resource](/rest/api/iothub/iothubresource) REST API to
2525

2626
## Get an Azure access token
2727

28-
1. In the Azure PowerShell cmdlet or Azure Cloud Shell, sign in and then retrieve a token with this command:
28+
In the Azure PowerShell cmdlet or Azure Cloud Shell, sign in and then retrieve a token with this command:
2929

30-
```azurecli-interactive
31-
az account get-access-token --resource https://management.azure.com
32-
```
33-
You should see a response in the console similar to this JSON (except the access token is long):
30+
```azurecli-interactive
31+
az account get-access-token --resource https://management.azure.com
32+
```
33+
You should see a response in the console similar to this JSON (except the access token is long):
3434

35-
```json
36-
{
37-
"accessToken": "eyJ ... pZA",
38-
"expiresOn": "2022-09-16 20:57:52.000000",
39-
"subscription": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
40-
"tenant": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
41-
"tokenType": "Bearer"
42-
}
43-
```
35+
```json
36+
{
37+
"accessToken": "eyJ ... pZA",
38+
"expiresOn": "2022-09-16 20:57:52.000000",
39+
"subscription": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
40+
"tenant": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
41+
"tokenType": "Bearer"
42+
}
43+
```
4444

4545
Save your access token (the string without quotes) for later.
4646

0 commit comments

Comments
 (0)