Is it possible to use an external table with an Azure SQL VM?

John Ellison 1 Reputation point
2025-10-20T17:42:13.5266667+00:00

Hello,

I am using an instance of SQL Server on an Azure VM, and I wanted to know if it is possible to use ADX External Tables. The VM does not have a public IP.

Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Smaran Thoomu 32,520 Reputation points Microsoft External Staff Moderator
    2025-10-21T16:19:00.9033333+00:00

    Hi John Ellison

    Yes, you can use Azure Data Explorer (ADX) external tables to query data from a SQL Server running on an Azure VM, but there are a few things to check:

    • The SQL VM must be reachable from ADX - if there’s no public IP, make sure the VM is in the same virtual network (VNet) as your ADX cluster or that there’s VNet peering between them.

    You’ll need to create a data connection in ADX using the externaldata() function or by defining an external table that connects via ODBC or SQL connector.

    Ensure the SQL port (default 1433) is open in the VM’s NSG (Network Security Group) so ADX can connect.

    If the SQL VM isn’t network-accessible (no public or private route), ADX won’t be able to read from it.

    Reference:

    Azure SQL external table connection strings

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

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