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

Ritika Laddha 140 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.
8,000 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,509 questions
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 47,046 Reputation points Microsoft Employee
    2024-07-05T11:59:53.59+00:00

    @Ritika Laddha ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I understand that you have AVD (formerly WVD) machines from which you would like to access another VM on Port 5432

    Per your verbatim,

    • The VM cannot have a NSG that allows incoming connections on Port 5432 with "Source" as Any
    • The AVD machine cannot be attached a Public IP (Fixed IP)

    In this case,

    Hope this helps.

    Cheers

    Kapil

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.