How do I make a VM with public IP accessible on port 5432 to WVD VMs under my company's private network?

Ritika Laddha 90 Reputation points
2024-07-05T10:45:52.07+00:00

Public IP VM is the server where postgresSQL is deployed.

I want to connect to this database from WVD VM which is under private network and has private IP. Creating Public IP for this VM is violating company policies.

I cannot add inbound rule for Postgres server with Any source as I want to open port 5432 which is a database port, so that is also violating company policies. I have tried adding inbound by adding private IP of WVD VMs, but that is not working. I am not even able to ssh to this server from my WVD VM.

I wanted to know if there is any solution to connet to that server?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,480 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,267 questions
{count} votes