File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -25,22 +25,22 @@ You can use the [IoT Hub Resource](/rest/api/iothub/iothubresource) REST API to
25
25
26
26
## Get an Azure access token
27
27
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:
29
29
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):
34
34
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
+ ```
44
44
45
45
Save your access token (the string without quotes) for later.
46
46
You can’t perform that action at this time.
0 commit comments