issues connecting via RDP to a new Virtual Machine in Azure

Amato, Andy 85 Reputation points
2025-11-21T19:07:04.0866667+00:00

Just recently created a new VM in an existing resource group. I am having trouble using RDP to get into the VM using the private IP. However, as a troubleshooting steps I attached a public ip and successfully log in via the public means. I want to be able to remove the public ip and only log in via the private ip. But, i can't do that until i resolve the RDP issue. Can someone help me address this issue?

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

Answer accepted by question author
  1. Adam Zachary 2,025 Reputation points
    2025-11-21T20:53:43.8066667+00:00

    Typically, when RDP works with a public IP but fails with the private IP, it means the VM itself is fine and the problem is in the network path. There are only a few things that block private-IP RDP in Azure.

    The first thing to check is whether the machine you are connecting from actually has a route to that private IP. You must be on the same VNet, a peered VNet, connected over VPN, or connected through ExpressRoute. If none of those are true, private-IP RDP will never work.

    Second, check the NSG on both the subnet and the VM NIC. You need an inbound rule allowing TCP 3389 from your source network. Many people only check the subnet NSG and forget the NIC NSG is also blocking it.

    Third, if you are using Azure Firewall or a custom NVA, make sure they allow RDP and that the route table for the VM points to the correct next hop. A wrong UDR (for example pointing 0.0.0.0/0 at a firewall that does not allow RDP) will block private-IP access immediately.

    So the quick steps are:

    Make sure your client can actually reach the VM’s private IP (same VNet, VPN, or peering).

    Check the NIC NSG and subnet NSG and make sure 3389 inbound is allowed from your network.

    Check the route table for the VM if you are using Azure Firewall or UDRs.

    Once RDP works privately, remove the public IP.

    This is always a network path issue, not a VM issue. If you check those three things, you will find the blocker.


1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2025-11-21T19:07:26.6066667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To resolve the RDP connection issue to your Azure VM using the private IP address, you can follow these troubleshooting steps:

    1. Check Network Security Group (NSG) Rules: Ensure that the NSG associated with your VM allows inbound traffic on TCP port 3389, which is the default port for RDP. If there are any rules blocking this port, you will need to modify them.
    2. Verify Local Network Equipment: Make sure that local network equipment such as routers and firewalls are not blocking outbound TCP port 3389. This can prevent you from connecting to the VM using its private IP.
    3. Reset Remote Desktop Configuration: Sometimes, resetting the Remote Desktop configuration on the VM can help. You can do this through the Azure portal or using PowerShell commands.
    4. Review VM Resource Health: Check the health of the VM in the Azure portal to ensure there are no underlying issues affecting connectivity.
    5. Restart the VM: If the above steps do not resolve the issue, try restarting the VM to refresh its network settings.
    6. Check the VM Console Logs: Reviewing the console logs can provide insights into any errors or issues that might be affecting the RDP service.

    If you have followed these steps and are still unable to connect via the private IP, consider checking if the VM's private IP address has changed, as this could affect your connection attempts. You can also try connecting from another machine within the same virtual network to rule out local network issues.


    References:

    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.