Hi Tristano,
- The Azure Windows VM Agent needs at least Windows Server 2008 SP2 (64-bit) to run, with the .NET Framework 4.0. See Minimum version support for virtual machine agents in Azure.
Reference: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows
About RDP connection, make sure that the NSG is releasing the entry for the RDP connection (default port 3389)
also connect via Azure Serial Console:
Go to the Azure portal.
Navigate to your VM and click on Serial console from the left-hand menu.
This should allow you to log in directly to the VM, even without RDP access.
Once connected, check the status of the Azure agent by executing
net stop RdAgent
net stop WindowsAzureGuestAgent
net start RdAgent
net start WindowsAzureGuestAgent
In the Serial Console, check if RDP is enabled and the firewall allows it. Use the following commands to check and modify RDP settings:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
netsh advfirewall firewall set rule group="remote desktop" new enable=yes
Get in touch if you need more help with this issue.
--please don't forget to "[Accept the answer]" if the reply is helpful--