Forum Discussion
vihanga
Sep 12, 2024Copper Contributor
VM creation keeps failing while deploying AVD in host pool.
Hello, I am trying to deploy AVD, but it keeps failing when it comes to creating the VM. The error message is: "Deployment to resource group 'AVD-RG' failed. Additional detail...
vihanga
Sep 12, 2024Copper Contributor
Hi Matthias-Braun
I did the deployment many times. This time, i got the below
{
"status": "Failed",
"error": {
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details": [
{
"code": "Conflict",
"message": "{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"VMExtensionProvisioningError\",\r\n \"message\": \"VM has reported a failure when processing extension 'Microsoft.PowerShell.DSC' (publisher 'Microsoft.Powershell' and type 'DSC'). Error message: 'The DSC Extension failed to execute: Error downloading https://wvdportalstorageblob.blob.core.windows.net/galleryartifacts/Configuration_1.0.02774.414.zip after 17 attempts: Unable to connect to the remote server.\\r\\nMore information about the failure can be found in the logs located under 'C:\\\\WindowsAzure\\\\Logs\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.83.5' on the VM.'. More information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot. \"\r\n }\r\n ]\r\n }\r\n}"
}
]
}
}
I did the deployment many times. This time, i got the below
{
"status": "Failed",
"error": {
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details": [
{
"code": "Conflict",
"message": "{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"VMExtensionProvisioningError\",\r\n \"message\": \"VM has reported a failure when processing extension 'Microsoft.PowerShell.DSC' (publisher 'Microsoft.Powershell' and type 'DSC'). Error message: 'The DSC Extension failed to execute: Error downloading https://wvdportalstorageblob.blob.core.windows.net/galleryartifacts/Configuration_1.0.02774.414.zip after 17 attempts: Unable to connect to the remote server.\\r\\nMore information about the failure can be found in the logs located under 'C:\\\\WindowsAzure\\\\Logs\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.83.5' on the VM.'. More information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot. \"\r\n }\r\n ]\r\n }\r\n}"
}
]
}
}
Mr_Biskits
Sep 12, 2024Copper Contributor
I'm getting this error as well. The issue seems to be related to the VM not having an internet connection when it first starts up for some reason so it can't download the configuration file. After connecting to the vm it created remotely I was able to restart it a few times then the internet access son it kicked in but it was too late as the deployment has already failed. It's not NSG or firewall related. Can someone please advise?
- Matthias-BraunSep 13, 2024Brass Contributor
Hi Mr_Biskits,
If you're struggling to get internet access from a newly deployed Azure VM in a new subnet, check if the VM is connected to a subnet where āEnable private subnet (no default outbound access)ā is enabled.
This feature is enabled by default when new subnets are created in a VNET and cannot be disabled once it was enabled during subnet creation.
More info about default outbound access: https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/default-outbound-access
Hope this helps!
Matthias
- vihangaSep 13, 2024Copper Contributor
Mr_BiskitsTrue. When you create hosts inside host pool it has an outbound connectivity issue. So I tried creating a NAT gateway and then create hosts in the AVD host pool and it worked.