Forum Discussion
VM creation keeps failing while deploying AVD in host pool.
Hi vihanga
Sorry for my question, but what reason/error is given in the deployment operations?
There could be several reasons for the problem.
For example:
- Quota Limits - With a free subscription, there are specific resource limits, including CPU cores and storage, which might be insufficient for creating VMs used by AVD.
- Region Availability - Certain VM sizes or types may not be available in the region you're deploying.
Best regards,
Matthias
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}"
}
]
}
}
- TahasinSep 13, 2024Copper Contributor
I,m having the same error while deploying an AVD.
{"code":"VMExtensionProvisioningError","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. "}
After attaching a public ip immediately after the VM creation the issue got fixed. It seems like the default outbound internet connection is not working for new VMs.
- Mr_BiskitsSep 12, 2024Copper ContributorI'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.