An Azure service that is used to provision Windows and Linux virtual machines.
Virtual Machine: Linux OS provisioning timeout — Investigation into EFI boot issues in confidential mode
Problem description
I am experiencing an OS provisioning timeout issue when creating a Linux virtual machine in a confidential mode using a Marketplace image. The deployment fails with an 'OSProvisioningTimedOut' error, and the VM's guest agent remains 'Not Ready'. Boot diagnostics indicate UEFI is attempting to load specific EFI files that cannot be found, despite EFI partitions being byte-for-byte identical to a working VM. I need assistance in diagnosing whether this is an EFI boot configuration issue or a problem with the Marketplace image.
Environment
Azure Virtual Machine running Linux in West Europe, confidential scenario with AMD SEV-SNP, using the Standard_DC2ads_v5 size, involving a Marketplace image with version 5.29.0.
What I've already tried
I captured and compared EFI partition snapshots from the failed Marketplace VM and a working VM, and found identical EFI content. I deployed a public version of the same image (5.27.1), which boots successfully in confidential mode on the same VM size. Support suggested offline EFI inspection and snapshots, which I performed. The preview version was deployable on the day of the failure, but it has since become SubscriptionNotAuthorized for my subscription, with no change in permissions on my side. I re-published the preview, but it is still not visible, so I cannot retest it. The initial VM has been deleted.
Current status
The failure occurs at the UEFI stage in confidential mode: the firmware looks for an older kernel path and grubx64.efi, while the disk contains the correct files. I would like to know (1) why a preview version could stop being accessible to a subscription after it was deployable, and (2) what could cause a confidential VM to keep a stale UEFI boot entry when the disk content is correct.