AnalysisTemplates oauth2 problems with Azure Managed Prometheus #3861
-
I am currently trying to get AnalysisRun to query a managed prometheus in Azure but having some issues with the oauth2 authentication. What i've done is creating a analysis run based on the documentation: ...
spec:
metrics:
- name: success-rate
provider:
prometheus:
address: https://<workspace>.prometheus.monitor.azure.com
authentication:
oauth2:
clientId: <clientid>
clientSecret: <clientsecret>
scope:
- https://monitor.azure.com/.default
tokenUrl: https://login.microsoftonline.com/<tenantid>/oauth2/token
... but i'm getting 401. I've tried to cURL it manually and got it to work if i add resource="https://monitor.azure.com" but that's not possible to do in the AnalysisRun manifest. Has anyone got it to work, and if so, how? |
Beta Was this translation helpful? Give feedback.
Answered by
OlleDecerno
Oct 9, 2024
Replies: 1 comment
-
Got this resolved by changeing the tokenUrl to use the v2 endpoint instead, ...
tokenUrl: https://login.microsoftonline.com/<tenantid>/oauth2/v2.0/token |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
OlleDecerno
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got this resolved by changeing the tokenUrl to use the v2 endpoint instead,