This Azure tutorial 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
I was trying to access my Azure Virtual Machine recently, But unfortunately, I forgot my virtual machine password. So I tried resetting the password from the Azure Portal and could see the 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
I logged in to the Azure Portal and navigated to the Azure Virtual Machine for which I wanted 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 also true when you are trying to reset the password. It would be best to concentrate on generating a new password and not the username.
But Here is the catch: The funny part is I tried to change the User name from Rajkishore, which was there when I created the virtual machine, to Rajkishore1, and then I clicked on the Update button as shown below.
You can see above this time, I was able to reset the Password Successfully without any issues. Then, I tried using the new username and password to log into the Azure Virtual Machine and could connect successfully without any issues.
You may also like following the article below
- 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
In this article, we discussed how to fix the error Cannot Update Remote Desktop Connection Settings For Administrator Account. Reset Virtual Machine Password Error. I hope it will help you to fix your issue as well !!!
I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.