docs/sources/datasources/azure-monitor/troubleshooting/index.md
This document provides solutions to common issues you may encounter when configuring or using the Azure Monitor data source.
These errors typically occur when setting up the data source or when authentication credentials are invalid.
Symptoms:
Possible causes and solutions:
| Cause | Solution |
|---|---|
| App registration doesn't have required permissions | Assign the Reader role to the app registration on the subscription or resource group you want to monitor. Refer to the Azure documentation for role assignments. |
| Incorrect tenant ID, client ID, or client secret | Verify the credentials in the Azure Portal under App registrations > your app > Overview (for IDs) and Certificates & secrets (for secret). |
| Client secret has expired | Create a new client secret in Azure and update the data source configuration. |
| Managed Identity not enabled on the Azure resource | For VMs, enable managed identity in the Azure Portal under Identity. For App Service, enable it under Identity in the app settings. |
| Managed Identity not assigned the Reader role | Assign the Reader role to the managed identity on the target subscription or resources. |
Symptoms:
Solutions:
Symptoms:
Solutions:
Symptoms:
Solutions:
managed_identity_enabled = true is set in the Grafana server configuration under [azure].managed_identity_client_id is set correctly.Reader role on the target resources.Symptoms:
Solutions:
workload_identity_enabled = true is set in the Grafana server configuration.These errors occur when executing queries against Azure Monitor services.
Symptoms:
Possible causes and solutions:
| Cause | Solution |
|---|---|
| Time range doesn't contain data | Expand the dashboard time range or verify data exists in Azure Portal. |
| Wrong resource selected | Verify you've selected the correct subscription, resource group, and resource. |
| Metric not available for resource | Not all metrics are available for all resources. Check available metrics in Azure Portal under the resource's Metrics blade. |
| Metric has no values | Some metrics only populate under certain conditions (e.g., error counts when errors occur). |
| Permissions issue | Verify the identity has read access to the specific resource. |
Symptoms:
Solutions for Logs queries:
Solutions for Metrics queries:
Symptoms:
Solutions:
Symptoms:
Solutions:
summarize to aggregate data instead of returning raw rows.Symptoms:
Solutions:
These errors are specific to Azure Resource Graph (ARG) queries.
Symptoms:
Solutions:
Resources, ResourceContainers).Symptoms:
Solutions:
These errors are specific to the Traces query type.
Symptoms:
Solutions:
For detailed troubleshooting of template variables, refer to the template variables troubleshooting section.
Solutions:
Solutions:
These errors indicate problems with network connectivity between Grafana and Azure services.
Symptoms:
Solutions:
Symptoms:
Solutions:
If you've tried the solutions above and still encounter issues: