Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Azure Authentication
Here are the detailed steps on how to connect Microsoft Azure APIs
- Create a new service client in azure portal
- Create a client secret for the client created above
- Note down the Client ID, Client Secret and Tenant ID
- Give reader/monitoring reader access to the resources/subscriptions as necessary
- Install the infinity plugin in Grafana and add data source for the same
- Expand Authentication section and select “OAuth2”
- Select “Client Credentials” as OAuth2 type
- Specify the Client ID
- Specify the Client Secret
- Specify the Token URL
https://login.microsoftonline.com/<TENANT_ID>/oauth2/token
. Replace<TENANT_ID>
with yours - Leave the Scopes section empty
- Add the following Endpoint param
- Key :
resource
Value:https://management.azure.com/
- Key :
- If you are using Infinity 1.0.0+, then also specify
https://management.azure.com/
as an allowed URL.
- Click Save and Test.
- Click the
Explore
button - Configure the query
- Specify
json
as query type - Specify
url
as source - Specify
default
parser ( only applicable for Infinity 1.0.0+) - Specify
table
as format - Method : GET
- URL :
https://management.azure.com/subscriptions?api-version=2020-01-01
- Specify
- Click Run Query and you will see the results