Can't connect to Windows 10 VM on Azure after installing update

I have a Windows 10 VM on Azure, to which I connect using remote desktop. Today I installed the latest preview build on it, and now I can no longer connect using RDP: my credentials no longer work, and I don't have any others.

What can I do to regain access to my VM?


I managed to access it again by resetting the password using Azure Powershell:

Get-AzureVM -ServiceName “xxx”-Name “xxx” | Set-AzureVMAccessExtension -UserName xxx -Password xxx | Update-AzureVM