my pc is windows 11 and I have created virtual machine on azure but not able to connect

namrata 0 Reputation points
2023-03-25T10:53:42.11+00:00

I have created inbound request but still not able to connect to VM which is creates 24 hrs before

restarted VM/Rest password still this error is coming

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,146 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,249 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Erkan Sahin 830 Reputation points
    2023-03-25T10:55:58.25+00:00

    If you have created an inbound request but are still unable to connect to your VM, there are a few things you can try:

    1. Check the network security group (NSG) associated with the VM: Make sure that the NSG associated with the VM allows inbound traffic on the port you are trying to connect to. You can do this in the Azure portal by navigating to the NSG and checking the inbound security rules.
    2. Check the public IP address associated with the VM: Make sure that the public IP address associated with the VM is correct and is still valid. You can do this in the Azure portal by navigating to the VM and checking the networking settings.
    3. Check the firewall on the VM: Make sure that the firewall on the VM is not blocking the inbound traffic on the port you are trying to connect to. You can do this by logging into the VM and checking the Windows Firewall settings.
    4. Check the RDP settings on the VM: Make sure that Remote Desktop Protocol (RDP) is enabled on the VM and that the correct users are allowed to connect. You can do this by logging into the VM and checking the RDP settings.
    5. Check the status of the VM: Make sure that the VM is running and is not in a stopped or deallocated state. You can do this in the Azure portal by navigating to the VM and checking the status.
    6. Try resetting the network interface: Try resetting the network interface on the VM by stopping and starting the VM. You can do this in the Azure portal by navigating to the VM and clicking on the Stop button, followed by the Start button.

    I hope these steps will help you, please mark if it is helpful :-)

    0 comments No comments

  2. vipullag-MSFT 24,206 Reputation points Microsoft Employee
    2023-03-27T09:57:57.9766667+00:00

    Hello namrata

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    Adding to previous response from Erkan, check using this link(https://ping.eu/port-chk/) if the public IP is accessible on the required port (3389 or 22) depending on your OS (Windows or Linux).

    If you get a Closed output from the above link, then the NSG is not configured correctly. Check your NSG ports and properties and make sure there are no deny rules taking precedence.

    Check if there are any other NSG's that are impacting the subnet of the VM which is blocking this access.

    Make sure that your Windows 11 PC is able to connect to the internet and has network connectivity.

    Cross check if the VM is running or not.

    Ref: https://learn.microsoft.com/en-us/azure/virtual-network/troubleshoot-vm-connectivity

    Hope this helps.

    0 comments No comments