Using DAC (Dedicated Admin Connection) with a SQL Server Managed Instance

Daniel Warne 0 Reputation points
2026-06-23T13:58:58.5166667+00:00

Hi,

Azure SQL Managed instances

Is it possible to use DAC with a SQL Managed instance? If so how? Does it need to be on a vm that is within the same vnet as the managed instance? Is it possible to use the DAC from my remote laptop which connects to our azure subscriptions via VPN.

Thanks

Daniel

Azure SQL Database
0 comments No comments

2 answers

Sort by: Most helpful
  1. Manoj Kumar Boyini 17,950 Reputation points Microsoft External Staff Moderator
    2026-06-26T15:22:38.19+00:00

    Hi @Daniel Warne

    Yes, Dedicated Administrator Connection (DAC) is supported for Azure SQL Managed Instance.

    However, there is an important limitation: DAC listens on port 1434, while Azure SQL Managed Instance private endpoints only support port 1433. Because of this, DAC cannot be used through a private endpoint. To use DAC, the client must have connectivity through the Managed Instance's VNet-local endpoint and be able to reach the Managed Instance from the same VNet (or through appropriate network routing such as VPN/ExpressRoute into that VNet).

    You can connect using:

    • SSMS: admin:<managed-instance-name>
    • sqlcmd: sqlcmd -A -S <managed-instance-name>

    If your laptop connects to the Azure VNet through a Site-to-Site VPN, Point-to-Site VPN, or ExpressRoute and has proper DNS resolution and network connectivity to the Managed Instance, you may be able to use DAC directly from your laptop. Otherwise, using a VM within the same VNet is a common approach.

    **References:
    **https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/diagnostic-connection-for-database-administrators?view=sql-server-ver17
    https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/private-endpoint-overview?view=azuresql&tabs=separate-vnets

    Hope this helps, Please let us know if you have any questions.

    Was this answer helpful?


  2. Bruce (SqlWork.com) 84,251 Reputation points
    2026-06-23T14:51:51.57+00:00

    Yes it’s supported, but there is no public access. You must connect from the same vlan as the managed instance. This basically means you need a VM hosted on the same Vlan, and you can connect from this host.

    Was this answer helpful?

    0 comments No comments

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.