Hello, @Juan Pedro !
What should I do if my VM has been locked due to too many sign in attempts (error code 0xd07)?
If you did not make multiple attempts to sign in, then this is usually due to a brute force attack being made on your VM.
- Disable RDP/open ports: If you have open ports, disable them to prevent further brute force attempts against your VM (on your VM resource, go to Networking > Inbound Port Rules, and remove access to port 3389 (RDP) or other open ports).
- Change your username and password: Use a complex username as common usernames like "testadmin" are much more vulnerable to brute force attacks:
https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/reset-rdp#reset-by-using-the-azure-portal - Consider redeploying your VM: If your VM has been the target of an attack, it may be a good idea to redeploy the VM to avoid using compromised resources. Be very careful when enabling features like RDP and be sure to use strong username/passwords if you are not using SSH.
https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/redeploy-to-new-node-windows
I hope this has been helpful! Your feedback is important so please take a moment to accept answers.
If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!