Forum Discussion
robertyhn
May 22, 2019Copper Contributor
How to add a new host to WVD hostpool?
I've successfully built two 2 hostpools for testing purposes -- one for shared and one for personalized. The shared one consists of 1 D8s VM and the personal one consists of 5 individual smaller D2s ...
- May 23, 2019You should find your answer here: https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-powershell
Scroll down to the section create virtual machines for the host pool.
stevenzelenko
Jan 16, 2020Brass Contributor
Christian_Montoya Hi Christian. I posted it earlier in the thread but here it is again. I think it had something to do with the domain join process or installing the extensions because the VM was created with the correct naming, disk and vNic but we couldn't log into it and it wasn't an available session host in the host pool. Building a VM and manually adding it was the route we took. The error does mention a property called 'imageReference' but I looked to see if I could find specifics but that seems to be a pretty generic error but could be mistaken. I thought it meant to do with something on changing the sku size but the VM creates so that isn't it. Appreciate the help. You all have done a great job with WVD. It's still young so understand it isn't perfect.
"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"Conflict","message":"{\r\n \"error\": {\r\n \"code\": \"PropertyChangeNotAllowed\",\r\n \"message\": \"Changing property 'imageReference' is not allowed.\",\r\n \"target\": \"imageReference\"\r\n }\r\n}"}]}
{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"DeploymentFailed\",\r\n \"message\": \"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.\",\r\n \"details\": [\r\n {\r\n \"code\": \"Conflict\",\r\n \"message\": \"{\\r\\n \\\"error\\\": {\\r\\n \\\"code\\\": \\\"PropertyChangeNotAllowed\\\",\\r\\n \\\"message\\\": \\\"Changing property 'imageReference' is not allowed.\\\",\\r\\n \\\"target\\\": \\\"imageReference\\\"\\r\\n }\\r\\n}\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}"}]}
Kusumrao
Mar 29, 2020Copper Contributor
I am getting same error as stevenzelenko when I tried to change the Domain UPN for deploying new hostpool in existing tenant.
New-AzResourceGroupDeployment : 1:43:36 PM - Resource Microsoft.Compute/virtualMachines 'Testpool-1' failed with message '{
"error": {
"code": "PropertyChangeNotAllowed",
"message": "Changing property 'adminUsername' is not allowed.",
"target": "adminUsername"
}
}'
At line:1 char:1
+ New-AzResourceGroupDeployment -ResourceGroupName "a0031-WVD-USE" -Tem ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet
New-AzResourceGroupDeployment : 1:43:43 PM - Resource Microsoft.Compute/virtualMachines 'Testpool-0' failed with message '{
"error": {
"code": "PropertyChangeNotAllowed",
"message": "Changing property 'adminUsername' is not allowed.",
"target": "adminUsername"
}
}'
At line:1 char:1
+ New-AzResourceGroupDeployment -ResourceGroupName "a0031-WVD-USE" -Tem ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet
New-AzResourceGroupDeployment : 1:43:50 PM - Template output evaluation skipped: at least one resource deployment operation failed. Please list deployment operations for details.
Please see https://aka.ms/DeployOperations for usage details.
At line:1 char:1
+ New-AzResourceGroupDeployment -ResourceGroupName "a0031-WVD-USE" -Tem ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet
New-AzResourceGroupDeployment : 1:43:50 PM - Template output evaluation skipped: at least one resource deployment operation failed. Please list deployment operations for details.
Please see https://aka.ms/DeployOperations for usage details.
At line:1 char:1
+ New-AzResourceGroupDeployment -ResourceGroupName "a0031-WVD-USE" -Tem ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet
- stevenzelenkoMar 29, 2020Brass ContributorI have successfully deployed after checking my domain admin UPN for my on prem AD. When I initially did this, my UPN was wrong. Using the correct UPN successfully deployed and domain joined 3 WVD hosts to an existing pool.