Is it possible to enable Trusted Launch when creating a virtual machine from a custom image?

Tomoki Endo 40 Reputation points
2024-03-16T14:59:15.1266667+00:00

I have a question regarding Trusted Launch. I'm attempting to redeploy a virtual machine image that was running on Hyper-V on my local PC on Azure. However, I'm having trouble creating this virtual machine with Trusted Launch. Is it possible to create a custom image with Trusted Launch? My image has been prepared with the following steps:

  1. Prepare a Windows VHD or VHDX to upload to Azure

https://learn.microsoft.com/en-us/azure/virtual-machines/windows/prepare-for-upload-vhd-image

  1. Upload a VHD to Azure

https://learn.microsoft.com/en-us/azure/virtual-machines/windows/disks-upload-vhd-to-managed-disk-powershell?source=recommendations

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,130 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 26,301 Reputation points Microsoft Employee
    2024-03-16T21:10:53.87+00:00

    Hello, @Tomoki Endo ! If you already have a VHD you can try going the direct deployment route if you meet the requirements however it sounds like you may want to create the VM from your VHD and enable Trusted Launch after the fact. I've included steps and information below. Make sure you meet all the requirements before you start!

    Is it possible to enable Trusted Launch when creating a virtual machine from a custom image?

    Yes, you can use custom OS image or disks however there are several requirements.

    A direct deployment of a Trusted Launch VM supports the following image sources:

    For the following image sources, the security type on the image definition should be set to TrustedLaunchsupported:

    It is also possible to enable Trusted Launch on an existing Azure VM:

    https://learn.microsoft.com/en-us/azure/virtual-machines/trusted-launch-existing-vm?tabs=portal

    If you are able to create a VM that meets those requirements, then you will be able to deploy a VM with Trusted Launch enabled. The following pages of documentation includes relevant information:


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image

    1 person found this answer helpful.
    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.