Hello @justin da rocha
I understand that you are having trouble connecting to your VM. Firstly, check if the VM has booted fine, for this you can check the boot diagnostics blade on the VM. If yes, below are some steps you can take to troubleshoot the issue:
Check the VM's network security group (NSG) rules: Make sure that the NSG associated with your VM allows inbound RDP traffic on port 3389. You can check this by going to the Azure portal, navigating to your VM's Networking settings, and reviewing the inbound security rules.
Check the VM's public IP address: If you're trying to connect to your VM over the internet, make sure that the VM has a public IP address assigned to it. You can check this by going to the Azure portal, navigating to your VM's Networking settings, and reviewing the Public IP address settings.
Check the VM's operating system: Make sure that the operating system on your VM is configured to allow RDP connections. For example, on Windows Server, you need to enable Remote Desktop connections in the System Properties settings.
Check the VM's firewall settings: Make sure that the Windows Firewall on your VM is configured to allow inbound RDP traffic on port 3389. You can check this by going to the VM's Windows Firewall settings and reviewing the inbound rules.
Check the VM's boot diagnostics: If you're still having trouble connecting to your VM, you can check the VM's boot diagnostics to see if there are any errors during the boot process. You can access the boot diagnostics by going to the Azure portal, navigating to your VM's Diagnostics settings, and reviewing the Boot diagnostics logs.
If none of these steps resolve the issue, you can try resetting the RDP configuration on your VM by following these steps:
Stop the VM: Go to the Azure portal, navigate to your VM, and click the Stop button.
Reset the RDP configuration: Go to the Azure portal, navigate to your VM's Networking settings, and click the Reset password button. This will reset the RDP configuration on your VM.
Start the VM: Go to the Azure portal, navigate to your VM, and click the Start button.
Connect to the VM: Try connecting to your VM again using RDP or bastion.
Reference: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/cannot-connect-rdp-azure-vm
If you're still having trouble connecting to your VM after trying these steps, you may need to contact Azure support for further assistance.
If this does answer your question, please accept it as the answer as a token of appreciation.