Azure / avdaccelerator

AVD Accelerator deployment automation to simplify the setup of AVD (Azure Virtual Desktop) based on best practices
MIT License
305 stars 198 forks source link

Management VM Deploy Fails with Confidential VM option #609

Closed JCoreMS closed 2 months ago

JCoreMS commented 2 months ago

What happened? Provide a clear and concise description of the bug, including deployment details.

Trying to deploy with all security options like Confidential VM and Zero Trust - Noted Error during Subscription scope deployment of the Management VM. MGMT-VM-20240416T151046Z - Deployment Name

Error: The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'. (Code: ResourceDeploymentFailure, Target: /subscriptions//resourceGroups/rg-eastus2-AVDLab/providers/Microsoft.Resources/deployments/MGMT-VM-20240416T151046Z)

Required parameter for Confidential VMs 'managedDisk.securityProfile.securityEncryptionType' is missing (null). (Code: BadRequest)

Verified the Parameters / Inputs for the following:

Please provide the correlation id associated with your error or bug.

29d635c4-84fc-4d57-bb8d-9557e3835308 Start time: 4/16/2024, 11:16:24 AM

What was the expected outcome?

Deploy Management VM with security options selected for Confidential VM.

Relevant log output

Suspect the VM's managed Disk section is not adding the noted property for encryption type when deploying the Management VM even though the parameters are set.

JCoreMS commented 2 months ago

Failures confirmed to be when you select Zero Trust and deployment of the Management VM needing additional properties for the managed disk per the noted error.

JCoreMS commented 2 months ago

This issue was related to trying to deploy and redeploy over top existing resources. Thus the errors and issues. Closing the issue as re-deploying after removing all previously created resources and resource groups was successful.