Azure - An Authentication Error Has Occurred And The Local Security Authority Cannot Be Contacted

While doing remote connection to a Virtual Machine in Azure, I put the credentials but got the below error.



An authentication error has occurred. the local security authority cannot be contacted

Remote Computer: XX.XXX.XXX.XXX

For the solution, I just restarted the Virtual Machine from Azure portal and it helped the remote server again.

Hope it helps !