The Virtual Network Rule allows you to connect your Azure PostgreSQL server to a virtual network (VNet) in your Azure subscription. This enables you to access your PostgreSQL server from resources within the VNet, such as virtual machines, Azure App Service, and other services.
Before you can create a virtual network rule, you need the following:
- An existing Azure PostgreSQL server.
- A virtual network (VNet) in your Azure subscription.
- Appropriate permissions to create network interfaces and virtual network rules.
Follow these steps to create a virtual network rule:
- Create the virtual network rule using PowerShell.
- Verify the virtual network rule is created and associated with your PostgreSQL server.