Private IP VM connection to RDP with out using firwall public IP

sns 9,251 Reputation points
2022-11-20T15:33:48.167+00:00

My VM machine private IP is 10.2.1.5 and its subnet is associated with firewall public IP which is already configured.
I can connect this private IP using firewall public IP after configuration. however why I am still not able to RDP to this private VM with its private IP why? Please suggest.

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.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Roderick Bant 2,056 Reputation points
    2022-11-20T16:27:16.493+00:00

    When you connect to the public firewall IP you are using public networking. When you want to connect to the private IP, the computer you connect from needs to have a private connection to the network containing your VM. Azure VPN Gateways and ExpressRoute are two ways to create a private network between an on premises location (Site-2-Site VPN or ExpressRoute) or home and mobile locations (Point-2-Site VPN).

    If you want to connect to your VM's without exposing them on a public IP through the firewall, Azure Bastion provides an excellent means of home- and on-premise access to your VM's with all the security mechanisms like MFA and Azure RBAC for security through terminals in the Azure Portal.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. KapilAnanth 49,851 Reputation points Moderator
    2022-11-21T06:23:28.367+00:00

    Hi @sns ,

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

    I see @Roderick Bant has already addressed your query.
    As stated, if you would like to have access to your VM using private IP, you would be required to set up a private Network between Azure and your OnPrem machines.

    The following options are useful if you would like to connect your OnPrem and Azure,

    You can consider Azure Bastion if you would like to provide connectivity to your VMs via Internet.

    Azure Bastion : https://learn.microsoft.com/en-us/azure/bastion/bastion-overview
    SKU Comparison : https://learn.microsoft.com/en-us/azure/bastion/bastion-overview#sku
    FAQ : https://learn.microsoft.com/en-us/azure/bastion/bastion-faq

    I hope this helps.

    Thanks,
    Kapil

    ------------------------------------------------------------------------------

    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    0 comments No comments

Your answer

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