i can't connect to VM

Mario Rivas 20 Reputation points
2025-03-17T15:09:14.1833333+00:00

I have a VM running in Azure. It has been working good, but today I can't access it from Bastion.

I've reset NIC, redeployed and even thought I can't access it

I can see VM is running from Boot Diagnostics, but I need to access it to extract some info

NIC doesn't have security group applied, but It has been working for more than 3 months

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,716 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nikhil Duserla 6,865 Reputation points Microsoft External Staff
    2025-03-17T19:50:37.3+00:00

    Hi @Mario Rivas,

    As we discussed that you have enabled Microsoft Defender recently, Please Enable just-in-time access at VM and try accessing with bastion. Click on configure and request access by giving source IP.

    User's image

    https://learn.microsoft.com/en-us/azure/defender-for-cloud/just-in-time-access-usage?WT.mc_id=Portal-Microsoft_Azure_Security_R3

    If an answer has been helpful, please consider accepting the answer to help increase visibility of this question for other members of the Microsoft Q&A community. If not, please let us know what is still needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!User's image


1 additional answer

Sort by: Most helpful
  1. Nikhil Duserla 6,865 Reputation points Microsoft External Staff
    2025-03-17T15:33:55.1266667+00:00

    Hi @Mario Rivas,

    Can you able to access through Public IP to the VM by allowing 3389 ports at NSG?

    Can you access the VM from another VM in the same subnet using its private IP?

    Can you use this Bastion and access a different VM in the same subnet?


Your answer

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