Databases SQL Managed Instance complete template-specs-five-use-cases template-specs-five-use-cases-three-case-studies

SQL Managed Instance private endpoint

A SQL Managed Instance private endpoint gives clients in another virtual network a private IP path to the managed instance. Instead of opening broad routing or relying on public connectivity, you place a Private Link endpoint in the client network and approve the connection to the SQL Managed Instance. Applications then connect through private DNS and the instance name. It is especially useful for hub-spoke designs, partner subscriptions, managed service environments, and regulated workloads where database traffic must stay on private Azure network paths.

Aliases
SQL MI private endpoint, Azure SQL MI Private Link, managed instance Private Link endpoint
Difficulty
intermediate
CLI mappings
5
Last verified
2026-05-25

Microsoft Learn

Microsoft Learn describes private endpoints for Azure SQL Managed Instance as private IP-based connections that use Azure Private Link to provide secure, isolated client connectivity from virtual networks without exposing the managed instance network infrastructure to broader public paths. Properly. and DNS.

Microsoft Learn: Azure Private Link for Azure SQL Managed Instance2026-05-25

Technical context

Technically, the private endpoint is a Microsoft.Network/privateEndpoints resource connected to the Microsoft.Sql/managedInstances subresource named managedInstance. The endpoint lives in a subnet selected by the consumer network and creates a private endpoint connection on the SQL Managed Instance. DNS is not optional; clients must resolve the managed instance name to the endpoint address when connecting through that path. The feature carries client traffic on port 1433, while replication scenarios such as failover groups and Managed Instance link use other connectivity patterns.

Why it matters

The private endpoint matters because SQL Managed Instance networking is often the hardest part of a migration or shared platform design. Applications may live in different virtual networks, subscriptions, or tenants from the instance. Traditional peering can work, but it may expose more network surface than the application actually needs. A private endpoint gives teams a narrow, approved connection path for one service while preserving private addressing and clear ownership. It also makes security reviews easier: the database team approves the endpoint, the network team controls DNS and subnet placement, and application teams receive a stable private connection pattern without asking for broad network reachability.

Where you see it

Signals, screens, and Azure surfaces where this term usually becomes operational.

Signal 01

In the Azure portal, the managed instance Private endpoint connections blade shows pending, approved, rejected, and disconnected endpoint requests from consumer networks. and owners. clearly. for each private access request.

Signal 02

In CLI output, private endpoint show commands reveal the endpoint IP, subnet, connection resource ID, group ID, and provisioning state for troubleshooting. during investigations. quickly. too used by DNS troubleshooting runbooks.

Signal 03

In Private DNS zones, A records and virtual network links show whether clients will resolve the managed instance name to the private endpoint address. clearly. before cutover.

When this becomes relevant

Specific situations where this term helps solve real Azure design, operations, migration, security, reliability, cost, or governance problems.

  • Connect a spoke application VNet to SQL Managed Instance without granting broad peering reach to the entire managed instance virtual network.
  • Allow a managed service or analytics environment to reach one managed instance through an approved Private Link request and controlled DNS path.
  • Support cross-subscription or cross-tenant database access where the SQL owner must explicitly review and approve endpoint requests.
  • Reduce public endpoint use for regulated workloads that require private network paths, documented approvals, and auditable connection ownership.
  • Segment application teams by giving each one a private endpoint in its own subnet instead of sharing one large network trust boundary.

Real-world case studies

Different enterprise-style examples that show the term being used to hit measurable objectives.

Case study 01

Manufacturing analytics uses a scoped data path

Scenario, objectives, solution, measured impact, and takeaway.

Scenario

A manufacturer needed a plant-floor analytics workspace in one subscription to read production data from SQL Managed Instance in another. Security rejected broad VNet peering because the plant network contained sensitive control systems.

Business/Technical Objectives
  • Provide database access without opening broad network reachability.
  • Keep approval authority with the SQL platform owner.
  • Validate DNS and encryption before onboarding analysts.
  • Document endpoint ownership for quarterly access review.
Solution Using SQL Managed Instance private endpoint

The cloud network team created a SQL Managed Instance private endpoint in the analytics virtual network using the managed instance resource ID and the managedInstance group ID. The database owner approved the private endpoint connection after checking the requester, subnet, and tags. Private DNS records were linked only to the analytics VNet, and analysts used the managed instance FQDN rather than an IP address. Azure CLI output captured the endpoint IP, provisioning state, and DNS record for the security evidence pack. SQL permissions were granted separately through database roles, so network approval did not become data approval.

Results & Business Impact
  • Security review time dropped from four weeks to nine business days.
  • No broad peering route was added between the analytics and plant-control networks.
  • Connection failures during onboarding fell by 70 percent after DNS validation was scripted.
  • Access review evidence listed every endpoint, owner, subnet, and approval state in one export.
Key Takeaway for Glossary Readers

A private endpoint gives SQL Managed Instance consumers a narrow private path while preserving separation between network access and database permissions.

Case study 02

University research platform isolates department access

Scenario, objectives, solution, measured impact, and takeaway.

Scenario

A university hosted grant data on SQL Managed Instance but needed separate research departments to query approved datasets. The central team wanted private connectivity without letting every department peer into the main data VNet.

Business/Technical Objectives
  • Give each department a controlled private database path.
  • Avoid shared credentials or undocumented firewall exceptions.
  • Support cross-subscription endpoint requests with central approval.
  • Reduce troubleshooting caused by inconsistent DNS setup.
Solution Using SQL Managed Instance private endpoint

The data platform team standardized SQL Managed Instance private endpoint onboarding. Each department created a private endpoint in its own spoke VNet and submitted the connection request with owner tags and a grant identifier. The central SQL administrator approved requests from the managed instance Private endpoint connections blade after verifying the subscription and project. A CLI-driven checklist gathered the endpoint IP, DNS zone link, approval state, and SQL role assignment status. Departments connected through the managed instance name, and custom DNS servers were updated to forward the private zone correctly.

Results & Business Impact
  • Four departments were onboarded without adding VNet peering to the central data network.
  • DNS-related tickets dropped from twelve in the pilot to three in the next semester.
  • Every endpoint had a grant owner tag, improving audit cleanup at project close.
  • Database access reviews separated network path approval from dataset-level role approval.
Key Takeaway for Glossary Readers

Private endpoints make multi-team SQL Managed Instance access practical when network ownership and data ownership must stay separate.

Case study 03

Payments processor removes public database dependency

Scenario, objectives, solution, measured impact, and takeaway.

Scenario

A payments processor still used a public endpoint for one legacy reconciliation application. Auditors asked for a private connectivity design that did not require rehosting the application immediately.

Business/Technical Objectives
  • Move reconciliation traffic to a private Azure path.
  • Preserve the existing managed instance and database security model.
  • Prove that DNS directed the application to the private endpoint.
  • Remove the old public dependency after a monitored cutover.
Solution Using SQL Managed Instance private endpoint

Engineers deployed a SQL Managed Instance private endpoint into the application VNet and linked the required Private DNS zone. Before cutover, they ran name-resolution tests from the reconciliation hosts and confirmed the managed instance FQDN returned the endpoint address. SQL login behavior, encryption settings, and connection pool retries were tested in parallel with the old path. During the change window, the application was restarted, successful connections were verified through logs, and the team left the public endpoint unchanged until two daily reconciliation cycles completed. Afterward, they disabled the public path through a separate approved change.

Results & Business Impact
  • Public endpoint usage for reconciliation traffic fell to zero after two business days.
  • Audit findings on database network exposure were closed in the next evidence cycle.
  • Cutover caused no missed settlement files and no emergency rollback.
  • Connection troubleshooting time dropped because DNS and endpoint state were captured before the change.
Key Takeaway for Glossary Readers

A private endpoint can reduce SQL Managed Instance exposure without forcing an immediate application rewrite or platform move.

Why use Azure CLI for this?

With ten years of Azure engineering experience, I use Azure CLI for private endpoints because every failed connection has several moving parts: the managed instance resource ID, group ID, endpoint subnet, approval state, private IP, DNS record, and client resolution path. Portal wizards are fine once, but they do not scale to ten spokes or cross-tenant requests. CLI lets me create the endpoint, list connection states, export private IP addresses, update DNS records, and prove which side owns the failure. It also keeps security reviews honest because the exact resource IDs and group-id values are captured in change evidence. Consistently. It also supports repeatable evidence capture.

CLI use cases

  • Create a private endpoint with the managed instance resource ID and managedInstance group ID from an approved network subnet.
  • List private endpoint connections on a managed instance to find pending requests that need database owner approval.
  • Capture the endpoint private IP address and create or validate the matching private DNS A record.
  • Approve, reject, or remove private endpoint connections as applications are onboarded, retired, or moved to new networks.
  • Test drift by comparing expected endpoint subnet, DNS zone links, connection state, and resource tags across environments.

Before you run CLI

  • Confirm the tenant, subscription, resource group, managed instance resource ID, target VNet, endpoint subnet, and Private DNS zone ownership.
  • Verify permissions on both Microsoft.Sql managed instance approval and Microsoft.Network private endpoint or DNS resources.
  • Use the managedInstance group ID, not a generic SQL group ID, and confirm the endpoint is for client traffic only.
  • Plan DNS before creation; without correct name resolution, an approved private endpoint still leaves clients unable to connect.
  • Check policy, subnet capacity, route tables, TLS settings, and change-window impact before modifying a production endpoint or DNS record.

What output tells you

  • Connection state shows whether the SQL Managed Instance owner has approved, rejected, or left the private endpoint request pending.
  • The private endpoint IP and subnet identify the client-side network path that applications should use for database connectivity.
  • The group ID confirms the endpoint targets the managedInstance subresource rather than an unrelated service or wrong SQL resource type.
  • DNS record output proves whether the instance name resolves to the private endpoint IP from the expected virtual network.
  • Provisioning state and activity logs help separate deployment failures from approval delays, DNS mistakes, or client firewall problems.

Mapped Azure CLI commands

SQL Managed Instance private endpoint CLI operations

direct
az sql mi show --resource-group <resource-group> --name <managed-instance> --query id --output tsv
az sql midiscoverDatabases
az network private-endpoint create --resource-group <resource-group> --name <endpoint-name> --vnet-name <vnet-name> --subnet <subnet-name> --private-connection-resource-id <managed-instance-resource-id> --group-id managedInstance --connection-name <connection-name>
az network private-endpointsecureDatabases
az network private-endpoint show --resource-group <resource-group> --name <endpoint-name> --query "{ip:customDnsConfigs[0].ipAddresses[0],state:provisioningState}"
az network private-endpointdiscoverDatabases
az network private-dns record-set a list --resource-group <dns-resource-group> --zone-name <private-dns-zone> --output table
az network private-dns record-set adiscoverDatabases
az network private-endpoint delete --resource-group <resource-group> --name <endpoint-name>
az network private-endpointremoveDatabases

Architecture context

Architecturally, the SQL Managed Instance private endpoint is a targeted connectivity bridge between a client network and a managed SQL boundary. I use it when a spoke application, analytics workspace, or managed service needs database access but should not inherit broad VNet peering reach. The design must include endpoint subnet placement, Private DNS zone strategy, approval workflow, connection strings, TLS host-name behavior, and monitoring for failed logins. It is not a substitute for failover group networking or Managed Instance link replication, and it must not disturb the managed instance local DNS behavior that Azure uses for platform operations. Document ownership. Ownership should be recorded before approval.

Security

Security is the main driver for private endpoints. They reduce exposure by keeping client traffic on private Azure connectivity and avoiding reliance on public endpoints for application access. The control point is still identity and SQL permissions, but the network boundary becomes much tighter. Administrators should approve only expected private endpoint requests, restrict who can create endpoints, protect Private DNS zones, and monitor connection state changes. A common security failure is approving an endpoint without confirming the requester, subnet, and subscription. Another is fixing DNS by weakening TLS validation or trusting certificates broadly, which shifts risk from network exposure to client security.

Cost

The private endpoint has a direct networking cost and an indirect operations cost. Azure Private Link resources and data processing can add charges, and private DNS zones, monitoring, and troubleshooting effort also belong in the model. The bigger financial value is risk reduction: avoiding broad network peering, public exposure reviews, or custom VPN paths for every application. Costs rise if every team creates duplicate endpoints, keeps stale connections, or builds separate DNS zones without governance. FinOps reviews should group endpoints by owning application, environment, and business justification so secure connectivity remains intentional rather than invisible spend. Review monthly ownership. Remove unused endpoints promptly.

Reliability

Private endpoints improve reliability for cross-network connectivity when they replace brittle firewall openings or overloaded hub routing. They also introduce dependencies that must be managed carefully. If the private DNS record is wrong, stale, or shadowed by custom DNS, clients can fail even when the endpoint is approved. If the endpoint subnet, route tables, or name resolution differ between production and disaster recovery networks, failover testing can produce surprises. Reliable designs document the private IP, DNS zone links, approval state, and client connection string requirements. They also test reconnection behavior after endpoint changes, subnet migrations, and managed instance maintenance. Monitor DNS. Validation should run from real clients.

Performance

Performance impact is usually about network path quality and name-resolution correctness, not database engine speed. A private endpoint can reduce exposure and keep traffic on private Azure networking paths, but it will not fix slow queries, CPU pressure, or poor indexing. Bad DNS can add failed retries and long connection delays. Cross-region or cross-network routing choices can still affect latency, especially for chatty applications. Operators should measure connection establishment time, query latency from the application subnet, DNS resolution results, and database waits separately. Private endpoint success means the path is secure and predictable; SQL performance still needs normal tuning. Measure client latency. Measure both.

Operations

Operators work with private endpoints during onboarding, access reviews, troubleshooting, and segmentation projects. The normal workflow is to capture the managed instance resource ID, create or validate the endpoint, approve the connection if required, configure private DNS, and test from the consuming subnet using the instance hostname. They inspect pending or rejected connections, document the endpoint owner, and remove stale endpoints when applications retire. Troubleshooting usually starts with DNS resolution, endpoint connection state, subnet placement, and whether the application tried to connect to the private IP address instead of the SQL hostname. Validation should run from each approved client subnet before go-live. Ownership records make later recertification and cleanup much easier. Document approvers, DNS owners, and subnet change history.

Common mistakes

  • Creating the private endpoint but forgetting Private DNS, causing clients to keep resolving the public or local instance endpoint.
  • Using the private endpoint IP directly in connection strings, which can break TLS host-name validation and future operations.
  • Assuming private endpoints support failover group or Managed Instance link replication traffic; they are for client connectivity.
  • Approving endpoint requests without verifying the requester, target subnet, subscription, and business owner tags.
  • Changing DNS for the managed instance local VNet and disrupting platform operations or existing clients in the instance network.