An Azure relational database service.
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.