I want to make a Postgres DB available on-premise using a VPN / Virtual Network Gateway. I've created the Virtual Network Gateway with GatewaySubnet, the Local Network Gateway and the VPN Connection.
Now I want to create a private endpoint in the GatewaySubnet but I am getting the following errors:
Portal: "The selected subnet GatewaySubnet is restricted and cannot be used with a private endpoint"
or
ARM: "Subnet with name 'GatewaySubnet' can be used only for the Gateway resource."
Am I missing something? I thought the GatewaySubnet is exactly the Subnet that will be made accessible over the VPN?
