Problem to create Virtual Machine.

Ken Ekholm 151 Reputation points
2024-03-28T11:26:55.8866667+00:00

I get following error message when I try to create Virtual Machine at Azure.

What I am doing wrong?

{"code":"DeploymentFailed","target":"/subscriptions/381bd204-01bd-4ab9-8516-74111a7cd942/resourceGroups/wvd-dm-rg1/providers/Microsoft.Resources/deployments/HostPool-d3326b1a-ec33-4176-86a5-84a5ee4c10e2-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":"ResourceDeploymentFailure","target":"/subscriptions/381bd204-01bd-4ab9-8516-74111a7cd942/resourceGroups/wvd-dm-rg1/providers/Microsoft.Resources/deployments/vmCreation-linkedTemplate-d3326b1a-ec33-4176-86a5-84a5ee4c10e2","message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'."}]}

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,129 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sedat SALMAN 13,160 Reputation points
    2024-03-28T12:03:43.9+00:00

    Use this link to understand the error details

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

    there may be some possible reasons for this error

    1. Azure Policy may be prevent you to create this machine
    2. Permission
    3. Template Issues

    Please try with Powershell as well

    https://learn.microsoft.com/en-us/azure/virtual-desktop/virtual-desktop-fall-2019/manage-resources-using-ui-powershell

    0 comments No comments

  2. Prrudram-MSFT 21,971 Reputation points
    2024-04-04T03:42:56.76+00:00

    Hi @Ken Ekholm

    Thank you for reaching out to the Microsoft Q&A platform.

    It seems that your Virtual Machine deployment has failed due to a resource deployment operation failure. The error message indicates that the resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.

    There could be several reasons for this error, such as a transient error with the Azure Virtual Desktop environment or a transient error with the connection. You can confirm that the Azure Virtual Desktop environment is healthy by signing in using PowerShell. You can also try to finish the VM registration manually in Create a host pool with PowerShell.

    If the error persists, you can check the Azure portal for more detailed error messages. You can also try to change region to one that can access the required features. If you still see an issue, you can also contact Microsoft support to get a deeper analysis on this issue.

    If I have answered your query, please click "Accept as answer" as a token of appreciation

    0 comments No comments