A PostgreSQL database connects through a secure API to cloud services, servers, and distributed systems.
Azure Database for PostgreSQL flexible server now has a generally available way to move an existing VNet-integrated server to a network configuration that supports private endpoints. Microsoft's Azure Updates item is dated November 2, 2026, and marks it "Launched." That status means fully released and production-ready in Azure's own terms. The catch is that the move is permanent, it causes a brief outage, and it leaves the server unreachable until you finish some follow-up work.

A PostgreSQL database connects through a secure API to cloud services, servers, and distributed systems. Why this matters​

Servers deployed with private access use virtual network injection. The server sits in a delegated subnet inside your virtual network. That model was a dead end for anyone who later wanted Private Link. Microsoft's Private Link documentation has said that servers using virtual network integration aren't eligible for private endpoint configuration.

The usual workaround was a full migration to a new server. A Microsoft Tech Community post on the Migration Service lists "Change from VNET integration to Private Endpoint networking" as a common reason to migrate between flexible servers. The in-place operation removes the need for a second server and a data copy in those cases.

Microsoft says the change replaces VNet-injected networking with private endpoint support, so you can reach the server over a private IP in your virtual network. That gives you more flexibility in network design while keeping private connectivity.

The feature was in preview earlier. An earlier version of the documentation page was labelled Preview and said the operation wasn't available through the Azure portal. The current Learn page, updated October 30, 2026, documents a portal route as well as the CLI.

What to know before you start​

Microsoft's guidance covers these points:

  • It can't be undone. You can't move the server back into a virtual network afterward.
  • Public access is off by default. To allow it, you have to enable it and add firewall rules.
  • Timing. The change typically takes up to 20 minutes, and the server shows as Updating. It is typically inaccessible for up to 10 minutes. Existing connections are closed and new attempts are rejected. These are typical figures, not guarantees.
  • Backups are kept. Backups taken before the change, including geo-redundant ones, remain available.
  • No private endpoint is created for you. The server stays unreachable until you add one, or enable public access and add firewall rules for your clients.

Logical replication​

If the server is a logical replication publisher, check connectivity first. Subscribers always initiate the connection to the publisher, and the private path that VNet integration gave them ends when the server leaves its delegated subnet. After the change, each subscriber must be able to reach the private endpoint. Microsoft's examples are the same virtual network, VNet peering, or a VPN or ExpressRoute link.

How to make the change​

Azure portal​

  1. Select your flexible server.
  2. Under Settings, open Networking.
  3. Under Network connectivity, set Connectivity method to "Public access (allowed IP addresses) and private endpoints."
  4. Select Save.
  5. Read the confirmation dialog. It repeats the irreversibility warning and the outage.
  6. Select Save again to start the change.
  7. Refresh the portal until the status goes from Updating to Ready.

Azure CLI​

Code:
az postgres flexible-server migrate-network \
  --resource-group <resource_group> \
  --name <server>

az postgres flexible-server show \
  --resource-group <resource_group> \
  --name <server> \
  --query "state"

Microsoft's CLI reference describes the command as migrating a server from VNet integration to a Private Link network model. The second command lets you poll the server state.

Restoring connectivity afterward​

Plan for the private endpoint work before you begin. A private endpoint is a network interface that gives the resource a private IP address from your virtual network. A few details from the Learn guide on adding endpoints:

  • The endpoint's region must match the region of the virtual network that hosts it.
  • The portal can integrate the endpoint with a private DNS zone. The default zone is privatelink.postgres.database.azure.com.
  • Only the portal sets up DNS integration automatically. The CLI create command makes the zone if it's missing and links it to the virtual network. It does not create a DNS zone group on the endpoint, so you add one separately if you want that integration.
  • If DNS isn't right, applications may fail to connect even though the endpoint exists. Test name resolution from the clients' own network.

Terraform: avoid an accidental rebuild​

This is the part most likely to cause trouble. After the change, Microsoft says to update your Terraform configuration:

  1. Remove delegated_subnet_id from the azurerm_postgresql_flexible_server resource. If it stays, Terraform plans to replace the server, because changes to that argument force a new server.
  2. Set public_network_access_enabled to match the server's actual state. The provider defaults it to true, so leaving it out makes Terraform try to enable public access.
  3. Run terraform plan and confirm it doesn't replace the server before you apply.

A plan that proposes destroying a production database is the kind of surprise to catch in review, not in production.

Assessment​

This is useful for teams that locked themselves into VNet injection and now need Private Link. That includes hub-and-spoke designs, multiple consuming networks, and policies that call for private endpoints. The feature is not a quick toggle. It is a one-way change with a short outage and a required follow-up task. A sensible order of work:

  • Pick a maintenance window.
  • Prepare the private endpoint, DNS and firewall plan.
  • Check replication subscribers.
  • Update Terraform.
  • Rehearse the steps on a non-production server first.

One caveat on the evidence: the Azure Updates page I could inspect didn't show the item's full text, so the launch date and status come from the submitted listing. The behaviour described here comes from Microsoft Learn. Check the current documentation for your region and configuration before you schedule the change.

 

References

  1. (Launched) Generally Available: Change from virtual network integration to a private endpoint capable network configuration in Azure Database for PostgreSQL flexible server Azure Updates 2026-11-02T19:20:33Z
  2. Change from Virtual Network Integration to a Private Endpoint-Capable Network Configuration in Azure Database for PostgreSQL Flexible Server - Azure Database for PostgreSQL | Microsoft Learn learn.microsoft.com
  3. Add Private Endpoint Connections in Azure Database for PostgreSQL Flexible Server - Azure Database for PostgreSQL | Microsoft Learn learn.microsoft.com