How to connect to a on premise SQL Server from Azure Managed Grafana

Sean Lively 0 Reputation points
2025-01-09T23:26:58.8166667+00:00

I have a new Azure Managed Grafana instance, and I'd like to connect to a on-premise SQL Server.

We have all of the VPN/Virtual networks setup, and from a vnet connected VM, I'm able to query data.

I have a Private Endpoint (not managed) setup, and it's landing in the correct vnet.

When I attempt to setup the MSSQL data source in Grafana by DNS name (prd-sql01.company.net), I get an immediate failure: lookup prd-sql01.company.net on 127.0.0.11:53: no such host

What's necessary to get an Azure Managed Grafana instance connected to a SQL Instance on a private network?

Azure Managed Grafana
Azure Managed Grafana
An Azure service used to deploy Grafana dashboards for analytics and monitoring solutions.
120 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alemu Abate Asheber 80 Reputation points
    2025-01-20T22:32:28.5766667+00:00

    To connect your Azure Managed Grafana instance to an on-prem SQL Server, you’ll need to ensure proper DNS resolution for the private endpoint. Since Azure Managed Grafana doesn’t automatically resolve private endpoint DNS names, you'll need to configure a custom DNS solution that can resolve prd-sql01.company.net to the private IP. This may involve setting up DNS forwarding or using Azure DNS to handle private endpoint names. Additionally, ensure that your Azure VNet can route traffic to your on-prem network via the VPN or ExpressRoute connection, and check that the firewall and network security rules allow traffic to your SQL Server (usually port 1433 for SQL Server). From a VM within the same VNet as Grafana, test the DNS resolution to confirm the private DNS is working correctly by running tools like nslookup or ping. When configuring the SQL Server data source in Grafana, make sure to use the private DNS name and the appropriate authentication method. Lastly, if the issue persists, confirm that the Grafana instance has proper VNet integration, ensuring it has network access to the on-prem SQL Server. Proper DNS setup, network routing, and security rules are critical for making this connection work.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.