Skip to content

Commit fb93269

Browse files
authored
Wrong audience
When requesting the authorization token - the audience should be 'monitor.azure.com' instead of 'management.azure.com' Following the current instructions - get an exception when executing the POST command later in the doc - Error: InvalidAudience changing the audience to 'monitor.azure.com' solve the problem.
1 parent 32edfdc commit fb93269

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-monitor/essentials/metrics-store-custom-rest-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ curl -X POST 'https://login.microsoftonline.com/<tennant ID>/oauth2/token' \
5050
--data-urlencode 'grant_type=client_credentials' \
5151
--data-urlencode 'client_id=<your apps client ID>' \
5252
--data-urlencode 'client_secret=<your apps client secret' \
53-
--data-urlencode 'resource=https://management.azure.com'
53+
--data-urlencode 'resource=https://monitor.azure.com'
5454
```
5555

5656
The response body appears as follows:
@@ -144,4 +144,4 @@ If you receive an error message with some part of the process, consider the foll
144144

145145
## Next steps
146146

147-
- Learn more about [custom metrics](./metrics-custom-overview.md).
147+
- Learn more about [custom metrics](./metrics-custom-overview.md).

0 commit comments

Comments
 (0)