Skip to content

Microsoft Azure VM Connection Problems

A structured checklist for diagnosing RDP/SSH failures on an Azure virtual machine.

Microsoft Azure VM Connection Problems
Table of Contents
  1. Common Symptoms
  2. Possible Causes
  3. Before You Begin
  4. Method 1 โ€” Confirm VM status
  5. Method 2 โ€” Review the Network Security Group
  6. Method 3 โ€” Check for Just-in-Time access
  7. Method 4 โ€” Use Serial Console if fully locked out
  8. Frequently Asked Questions
  9. What is Just-in-Time VM access and why does it block me?
  10. Conclusion
  11. Related Articles

Azure VM connectivity issues follow a very similar pattern to AWS โ€” Network Security Groups (NSGs), the VM’s own OS firewall, and the actual VM state all need checking, in that order.

Common Symptoms

  • RDP/SSH connection times out
  • “Unable to connect” from the Azure portal’s Connect option
  • Connection worked previously and stopped after a configuration change

Possible Causes

  • Network Security Group missing or blocking the required inbound rule
  • The VM is deallocated or stopped
  • The VM’s own OS-level firewall blocking the port
  • A Just-in-Time VM access policy requiring a request before connecting

Before You Begin

Info

Method 1 โ€” Confirm VM status

Method 2 โ€” Review the Network Security Group

Check inbound rules

Open Networking on the VM resource and confirm an NSG rule allows the required port from your source IP.

Method 3 โ€” Check for Just-in-Time access

Confirm JIT VM access status

If Microsoft Defender for Cloud’s Just-in-Time VM access is enabled, you need to request access before connecting โ€” the port stays closed until a request is approved.

Method 4 โ€” Use Serial Console if fully locked out

Access without network connectivity

The Azure Serial Console (under Help in the VM blade) gives you a text-based connection to the VM independent of its network configuration, useful for checking or resetting the OS firewall.

Tip

Frequently Asked Questions

What is Just-in-Time VM access and why does it block me?

It’s a security feature that keeps management ports closed by default and only opens them temporarily after an approved request โ€” it’s a deliberate extra layer, not a misconfiguration, if your organization has enabled it.

Conclusion

Checking VM run state, the Network Security Group, and Just-in-Time access policy โ€” in that order โ€” resolves the majority of Azure VM connectivity issues.

AWS EC2 Instance Not Reachable โ€” Basic Troubleshooting Related Article AWS EC2 Instance Not Reachable โ€” Basic Troubleshooting → Basic Cloud Server Troubleshooting Checklist Related Article Basic Cloud Server Troubleshooting Checklist →

Was this guide helpful?

Share it with someone who needs it, or subscribe for more practical IT tutorials.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get practical IT tutorials in your inbox

No spam โ€” just useful troubleshooting guides and tips.