Azure/azure-devtestlab

Cannot set or update property userName for VM

Opened this issue · 3 comments

I renamed local admin account name on VM and I want to update userAdmin property too, but when I try to do that I see this error
Status code: 400
error": {
"code": "CannotSetProperty",
"message": "Cannot set or update property userName."
}

Is there a way to update this property? Or how to do it right?

Thank you!

Hi - just to confirm, are you working with DevTest Labs or Lab Services? In either case, I don't think you are able to update this property - but I can add it as a feature request to the team depending on which product you're using. Thanks!

Hi - just to confirm, are you working with DevTest Labs or Lab Services? In either case, I don't think you are able to update this property - but I can add it as a feature request to the team depending on which product you're using. Thanks!

Hello, thank you for reply.
It is DevTest Labs.
I update name of local user admin account on the VM itself. But this property in Azure Portal was not updated. I am wondering what is the impact of this attribute (where and how it is used). I am trying to avoid wrong behavior and security issues.

Thank you!

I think the only place it's used is when you try to connect to the VM, the RDP file provided has the username set to this property. I don't think we use the property anywhere else... It means that when you download the RDP file to connect, you'll need to update the username before connecting.

Hope that helps!