In this azure tutorial, we will discuss how to fix the error, Cannot Update Remote Desktop Connection Settings For Administrator Account while trying to reset the Azure Virtual Machine Password in the Azure Portal.
Table of Contents
Cannot Update Remote Desktop Connection Settings For Administrator Account
Recently, I was trying to access my Azure Virtual Machine, But unfortunately, I forgot my virtual machine password. So I tried resetting the password from the Azure Portal itself and could able to see azure VM password reset not working properly. my bad luck, end up with an error “Cannot Update Remote Desktop Connection Settings For Administrator Account“.
So I have followed the below steps to reset the password of the Azure VM
Logged in to the Azure Portal and navigate to the Azure Virtual Machine for which I want to reset the Password.
From the left navigation, click on the Reset Password link. Now you can able to see the below reset Password window.
Select the mode as Reset Password and Provide Username( In my case It is Rajkishore which was there as the username from the time I created the virtual machine), Type a valid password, confirm the same and then click on the Update button.
The moment I clicked on the Update button, after a few seconds, I got an error message Cannot Update Remote Desktop Connection Settings For Administrator Account.
VM has reported a failure when processing extension ‘enablevmaccess’
The complete error message was as below
VM has reported a failure when processing extension ‘enablevmaccess’. Error message: “Cannot update Remote Desktop Connection settings for Administrator account. Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.Runtime.InteropServices.COMException: The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements. — End of inner exception stack trace — at System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object args) at Microsoft.WindowsAzure.GuestAgent.Plugins.WindowsUser.SetPassword(SecureString password) at Microsoft.WindowsAzure.GuestAgent.Plugins.RemoteAccessAccountManager.AddOrUpdateRemoteUserAccount(String userName, SecureString password) at Microsoft.WindowsAzure.GuestAgent.Plugins.JsonExtensions.VMAccess.VMAccessExtension.OnEnable()” More information on troubleshooting is available at https://aka.ms/vmextensionwindowstroubleshoot
Cannot Update Remote Desktop Connection Settings For Administrator Account [Solved]
Now, To fix this, I have tried a couple of ways, but nothing worked out, I tried a different password, I tried the password with different characters, I have tried increasing the length of the password, etc. But nothing worked out.
The funny thing is I missed concentrating on the User Name. It’s true also, Obviously, when you are trying to reset the password. You actually need to concentrate on generating a new password and not on the username.
But Here is the catch, The funny part, I tried to change the User name from Rajkishore which was there from the time I created the virtual machine to Rajkishore1, and then I clicked on the Update button as shown below.
You can able to see above, this time, I could able to reset the Password Successfully without any issues. Then I tried using the new username and password to login into the Azure Virtual Machine and could able to connect successfully without any issues.
You may also like following the below article
- Get-AzVm: ‘this.Client.SubscriptionId’ cannot be null
- response_type ‘id_token’ is not enabled for the application
- CS1061 C# ‘HttpRequest’ does not contain a definition for ‘Content’ and no accessible extension method ‘Content’ accepting a first argument of type ‘HttpRequest’ could be found
Well, In this article, we discussed how to fix the error Cannot Update Remote Desktop Connection Settings For Administrator Account. Reset Virtual Machine Password Error. Hope it will help you to fix your issue as well !!!