Unable to create VM in Azure Devtest Lab

DevOpps 25 Reputation points
2025-11-24T15:57:42.83+00:00

Hi,

I have a free tier Azure devtest lab account with $200 credits added. I am trying to create a VM with using the Linux base with default available DC series and Standard_DC2as_v5 available VM size, still I keep getting error on VM creation. I tried selecting different base images and sizes but always keep getting error. Below is the latest error

"statusMessage": "{"status":"Failed","error":{"code":"ResourceOperationFailure","message":"The resource operation completed with terminal provisioning state 'Failed'.","details":[{"code":"BadRequest","message":"The VM size 'Standard_DC2as_v5' is not supported for creation of VMs and Virtual Machine Scale Set with '<NULL>' security type."}]}}

Help me resolve this at the earliest, as this is blocking the progress.

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Jilakara Hemalatha 6,050 Reputation points Microsoft External Staff Moderator
    2025-11-24T20:45:14.3233333+00:00

    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."

    User's image

    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.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2025-11-24T15:57:55.7633333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error message you are encountering indicates that the VM size 'Standard_DC2as_v5' is not supported for the creation of VMs with the specified security type. Here are a few steps you can take to resolve this issue:

    1. Check VM Size Availability: Ensure that the VM size you are trying to use is available in the region where your Azure DevTest Lab is located. You can verify the availability of VM sizes in your region on the Azure portal or through the Azure documentation.
    2. Change Security Type: If the security type is set to '<NULL>', you may want to specify a valid security type for the VM. This could involve selecting a different VM size that supports the required security type or adjusting the configuration settings in your DevTest Lab.
    3. Use Different Base Images: Since you mentioned trying different base images, ensure that the images you are selecting are compatible with the VM size and security type you are using.
    4. Review Quotas and Limits: Since you are using a free tier account, check if you have reached any quotas or limits for the resources you can create in Azure DevTest Labs.
    5. Consult Activity Logs: Look at the activity logs for your lab to find more detailed error messages that could provide further insight into the failure. This can help identify if there are other underlying issues affecting the VM creation.

    If these steps do not resolve the issue, consider reaching out to Azure support for further assistance.


    References:

    0 comments No comments

Your answer

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