Skip to content

Commit 2c99be2

Browse files
authored
Update Azure Monitor Log Analytics API docs
Add doc to request a token for Log Analytics API using the Microsoft Identity Platform v2.0 endpoint.
1 parent e99fe3e commit 2c99be2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

articles/azure-monitor/logs/api/authentication-authorization.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,19 @@ You can also use this flow to request a token to `https://api.loganalytics.io`.
4545
&client_secret=YOUR_CLIENT_SECRET
4646
```
4747

48+
##### Microsoft identity platform v2.0
49+
50+
```
51+
POST /YOUR_AAD_TENANT/oauth2/v2.0/token HTTP/1.1
52+
Host: https://login.microsoftonline.com
53+
Content-Type: application/x-www-form-urlencoded
54+
55+
grant_type=client_credentials
56+
&client_id=YOUR_CLIENT_ID
57+
&scope=https://management.azure.com/.default
58+
&client_secret=YOUR_CLIENT_SECRET
59+
```
60+
4861
A successful request receives an access token:
4962

5063
```

0 commit comments

Comments
 (0)