不允许 WVD 管理员用户名更改

WVD AdminUsername Change NotAllowed

从 Windows 虚拟桌面

中的托管映像部署时出现奇怪错误

错误:

\"message\":\"Atleastoneresourcedeploymentoperationfailed.Pleaselistdeploymentoperationsfordetails.Pleaseseehttps://aka.ms/DeployOperationsforusagedetails.\"\"details\":[\r\n{\r\n\"code\":\"Conflict\"\"message\":\"{\"error\":{\"code\":\"PropertyChangeNotAllowed\",\"message\":\"Changingproperty'adminUsername'isnotallowed.\",\"target\":\"adminUsername\

知道我哪里出错了吗?提前致谢:)

如评论中所述,请确保您使用的是正确的用户名。

您可以参考此github issue了解更多详情。

This is likely because the local user name was 'admin', which is not allowed by Azure. The name that will be used by the command can be found in az vm create -h