Answer accepted by question author
Welcome to Microsoft Q&A
Hello @ganrad I hope you are doing well,
To directly answer your questions: For existing, long-running Azure Linux Virtual Machines, the 2023 Secure Boot certificates (CA and KEK) are not applied automatically by the Azure platform. You must deploy them manually from within the guest operating system. Because Azure Trusted Launch and Gen2 VMs expose the virtualized UEFI firmware directly to the guest OS, Microsoft treats the update of these cryptographic variables as a customer-managed OS-level operation. While Azure updates the default virtual motherboard templates so that newly deployed VMs include the 2023 certificates by default, running VMs retain their original 2011 certificates until explicitly updated by the administrator.
Regarding the documentation: Yes, the article you referenced (Secure Boot certificate updates for Linux on Azure virtual machines) is the authoritative, supported guide for this procedure. You should follow the exact steps outlined there, utilizing tools like fwupdmgr or efi-updatevar to push the signed .auth payloads into the EFI variable store.
""""""""""""""""""""""""""""""""""""Crucial architectural note: If you are running Linux Confidential VMs (CVMs) deployed prior to April 2024 with Full Disk Encryption tied to the vTPM, do not run this manual update. Modifying the Secure Boot DB will alter PCR7 measurements, which will break the disk decryption seal on the next reboot. For those specific legacy CVMs, the supported path is to recreate the VM entirely rather than attempting an in-place certificate swap.""""""""""""""""""""""""""""
Important caveats and safety notes
Do not perform the update on certain legacy Confidential VMs (CVMs) or VMs with Full Disk Encryption tied to vTPM if the vendor guidance warns against it. Updating DB/KEK changes PCR measurements and can break disk decryption on reboot. For those VMs the supported path may be to recreate the VM with updated firmware.
Test first on a non‑production VM that mirrors your production configuration.
Back up any critical data and snapshots before changing EFI variables.
- Use only signed .auth payloads provided by Microsoft’s guidance; do not craft unsigned payloads.
If my answer helped you resolve your issue, please consider marking it as the correct answer. This helps others in the community find solutions more easily. Thanks!
