Share via

Unable to Access Azure VM via RDP – Suspected Endpoint Security Blocking (ESET)

Ilya Mirolyubov 0 Reputation points
2026-03-31T16:42:23.72+00:00

I am currently unable to access my Azure Virtual Machine using Remote Desktop (RDP). The connection attempt fails consistently, and I receive connectivity-related issues when trying to establish the session.

Based on troubleshooting, I suspect that ESET Endpoint Security installed on the VM may be blocking RDP access (TCP port 3389).

  1. Please assist in verifying whether RDP (port 3389) is being blocked at the VM or network level
  2. Guidance on how to bypass or temporarily disable ESET protection to allow RDP access

Thank you.

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


1 answer

Sort by: Most helpful
  1. Jilakara Hemalatha 11,860 Reputation points Microsoft External Staff Moderator
    2026-03-31T17:32:07.4933333+00:00

    Hello IIya,

    Thank you for your patience. Based on the details provided, your Azure VM is reachable at the platform level. The RDP connectivity failure is most likely caused by ESET Endpoint Security blocking inbound TCP port 3389 at the guest OS level, even when Azure NSG rules are correctly configured.

    Please follow the steps below in order to isolate and resolve the issue.

    Before touching the VM, confirm that the Azure network layer is not blocking RDP.

    1. Go to Azure Portal → Virtual Machines → Your VM → Networking → Inbound port rules
    2. Confirm an Allow rule exists for TCP port 3389 with a lower priority number than any Deny rule.
    3. Use Network Watcher → IP Flow Verify to test if the NSG or UDR is dropping traffic before it reaches the VM

    Reference: network traffic with a network security group

    Since RDP is unavailable, use Azure Run Command to run PowerShell directly inside the VM:

    Azure Portal → Virtual Machines → Your VM → Operations → Run Command → RunPowerShellScript

    Begin by verifying that the Remote Desktop service is running using:

    Get-Service -Name TermService

    If the service is not running, start it and set it to automatic:

    Start-Service -Name TermService
    

    Next, ensure that RDP connections are enabled in the operating system:

    Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' -Name "fDenyTSConnections" -Value 0
    

    You should also verify that Windows Firewall is allowing RDP traffic. This can be done by enabling the default Remote Desktop rules:

    Get-NetFirewallRule -DisplayGroup "Remote Desktop"
    Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
    

    If needed, you can explicitly allow port 3389 using:

    New-NetFirewallRule -DisplayName "Allow RDP 3389" -Direction Inbound -Protocol TCP -LocalPort 3389 -Action Allow
    

    Confirm port 3389 is listening:

    netstat -an | findstr 3389
    

    Please refer below documentation clearly to resolve the issue:

    Azure VM Guest OS firewall is blocking inbound traffic

    Additionally, Azure provides alternative access methods when RDP is unavailable. You can use Serial Console to directly access the VM and execute commands: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/serial-console-windows

    You may also review Boot Diagnostics to check VM boot status and screenshots for any OS-level issues: https://learn.microsoft.com/en-us/azure/virtual-machines/boot-diagnostics

    Since ESET Endpoint Security is installed, it is important to validate whether it is blocking RDP traffic. You can check the related services:

    If RDP is still blocked after enabling Windows Firewall, ESET Endpoint Security is likely enforcing its own firewall / IDS rules on port 3389.

    From Azure Run Command, run:

    Get-Service | Where-Object {$_.DisplayName -like "*ESET*"}
    Stop-Service -Name ekrn -Force
    

    After this, please test RDP connectivity again. If access is restored, this confirms that ESET is blocking port 3389. In that case, you will need to allow inbound TCP port 3389 in the ESET firewall as per:

    If the issue persists, you may use the “Reset configuration only” option under the VM Help section in the Azure Portal to restore default RDP settings.

    Please find below documentations for detailed troubleshooting steps.

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/guest-os-firewall-blocking-inbound-traffic

    Hope this helps! Please let me know if you have any queries.
    Additionally, could you please check private message and provide necessary details

    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.