Azure Virtual desktop - hostpool deployment failed

Alvin IT 5 Reputation points
2025-02-28T06:18:22.6666667+00:00

Hello admin,

My creation of host pool within the Azure Virtual Desktop, kept failing the deployment. The error is as below:

{

  "code": "DeploymentFailed",

  "target": "/subscriptions/(removed)/resourceGroups/AVD-PH/providers/Microsoft.Resources/deployments/HostPool-ba4d11ef-de17-4079-a560-65e3b8b4d075-deployment",

  "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": "InvalidTemplateDeployment",

      "message": "The template deployment 'vmCreation-linkedTemplate-ba4d11ef-de17-4079-a560-65e3b8b4d075' is not valid according to the validation procedure. The tracking id is 'bc05b832-bebe-4672-8f95-5ce943de0615'. See inner errors for details."

    }

  ]

}

Can you please help me with that urgently? Thank you so much.

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,835 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Alex Burlachenko 9,780 Reputation points
    2025-02-28T07:22:12.5466667+00:00

    Hi Alvin IT,

    I'm not an admin here but I would try to help you )))) so, from the first point of view the error message you're encountering indicates that the deployment of your Azure Virtual Desktop (AVD) host pool failed due to an issue with the template deployment. First of all, I would like to give you a links whiches would help you to fix that issue.

    Azure Virtual Desktop Documentation

    https://learn.microsoft.com/en-us/azure/virtual-desktop/

    Troubleshooting ARM Deployment Issues

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/common-deployment-errors

    Validating ARM Templates

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-create-first-template?tabs=azure-powershell#validate-the-template

    InvalidTemplateDeployment Error

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-invalid-template-deployment

    Logs and Monitoring

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deployment-history?tabs=azure-portal#view-deployment-logs

    So, now anout my thinks what to do next... the error message suggests looking at the inner errors for more details. You can find these details by navigating to the deployment operations in the Azure portal. Go to the Azure portal -> Resource Groups -> Your Resource Group -> Deployments. Find the failed deployment and click on it to see the detailed error messages.

    Ensure that the ARM (Azure Resource Manager) template you are using is valid. You can use the Azure Resource Manager Tools extension in Visual Studio Code to validate the template or you can use the Azure CLI to validate the template

    az deployment group validate --resource-group <YourResourceGroup> --template-file <YourTemplateFile.json> --parameters <YourParametersFile.json> (if I'm correct:)

    Ensure that your Azure subscription has sufficient quotas for the resources you are trying to deploy (e.g., vCPUs, memory, etc.).

    Pls check your quotas in the Azure portal by navigating to Subscriptions -> Your Subscription -> Usage + quotas.

    Ensure that the network configuration like virtual network, subnet, NSGs is correctly set up and does not have any conflicts. Verify that the subnet you are using for the host pool has enough available IP addresses. Ensure that the account you are using to deploy the host pool has the necessary permissions to create resources in the specified resource group and subscription. The account should have at least the Contributor role assigned. As well check the activity log and metrics for any additional insights into what might have caused the failure.

    Navigate to the Azure portal -> Resource Groups -> Your Resource Group -> Activity log.

    If you identified any issues with the template or parameters, correct them and try to re-deploy the host pool.

    I hope that would help you.

    rgds,

    Alex

    0 comments No comments

  2. Anonymous
    2025-02-28T07:44:35.47+00:00

    Hi Alvin IT,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    Based on our understanding of your issue, we recommend that you refer to the following methods for troubleshooting:

    The error you're encountering, "InvalidTemplateDeployment", indicates that the deployment template failed validation. This could be due to several reasons, such as syntax errors, missing parameters, or invalid resource configurations.

    • Create a new host pool with the same parameters but fewer VMs and VM cores.
    • 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.
    • submit a request to increase the quota for your Azure subscription for the specified VM SKU.
    • Incorrect settings during the creation of the host pool can cause the deployment to fail.
    • Make sure the DNS servers listed under Custom match your domain controller or Active Directory domain. If you don't see your DNS server, you can add it by entering its value into the Add DNS server field.

    Please follow the below document for your reference:

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-desktop/troubleshoot-set-up-issues?source=recommendations#azure-resource-manager-template-errors

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-desktop/troubleshoot-powershell?source=recommendations

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deployment-history?tabs=azure-portal#deployment-operations-and-error-message

    If you found it helpful, could you kindly click the “upvote” on the post.

    If you have any further queries, please let us know we are glad to help you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.