Azure Virtual desktop - hostpool deployment failed

Alvin IT 0 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/9ee37919-9db5-42f9-8fae-f84f9289614e/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,688 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alex Burlachenko 1,665 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

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.