Hello @DevOpps
The error you're encountering when trying to create a VM in Azure DevTest Labs with the Standard_DC2as_v5 size is due to a mismatch between the VM size and the security type configuration. The specific error message:
"The VM size 'Standard_DC2as_v5' is not supported for creation of VMs and Virtual Machine Scale Set with '<NULL>' security type."
Here you need to select the security type as Trusted Launch. For Standard_DC2as_v5 size if you select the security type to Trusted launch VM creation will fail with below error.
The VM size 'Standard_DC2as_v5' is not supported for creation of VMs and Virtual Machine Scale Sets with 'TrustedLaunch' security type.
This is because DCas_v5 sizes are not compatible with either <NULL> or Trusted Launch. They only work when deployed as Confidential VMs, which DevTest Labs does not support.
Confidential VMs support the following VM sizes:
- General Purpose without local disk: DCasv5-series, DCesv5-series
- General Purpose with local disk: DCadsv5-series, DCedsv5-series
- Memory Optimized without local disk: ECasv5-series, ECesv5-series
- Memory Optimized with local disk: ECadsv5-series, ECedsv5-series
- NVIDIA H100 Tensor Core GPU powered NCCadsH100v5-series
Reference: About Azure confidential VMs
Azure DevTest Labs does not support Confidential VM SKUs. Therefore, we recommend selecting a non-confidential (standard) VM size when creating VMs inside DevTest Labs.
Hope this helps! Please let me know if you have any queries.