An Azure service that is used to provision Windows and Linux virtual machines.
Hello @Michal Hrcka
Yes, known bug - vTPM state corruption after resize on Trusted Launch.
Your boot log tpm_crb: Bad ACPI memory layout + Disabling hwrng = vTPM NVRAM got out of sync when you resized D2as -> D4as. When vTPM is broken, Debian cloud kernel blocks nf_tables/iptable_filter with EPERM even though lockdown says [none] and Secure Boot says disabled. GuestAttestation extension installs but never starts for same reason.
Fix:
Don't troubleshoot modules - fix vTPM:
Bash
# 1. Remove attestation extensionaz vm extension delete -g RG -n VM --name GuestAttestation
# 2. Disable vTPM + SecureBoot fully and force re-create TPMaz vm update -g RG -n VM --set securityProfile.uefiSettings.vTpmEnabled=false securityProfile.uefiSettings.secureBootEnabled=falseaz vm deallocate -g RG -n VMaz vm update -g RG -n VM --set securityProfile.uefiSettings.vTpmEnabled=true securityProfile.uefiSettings.secureBootEnabled=falseaz vm start -g RG -n VM
If still Bad ACPI layout -> VM is stuck in Trusted Launch with broken TPM. Only clean fix is redeploy to Standard security type - you can't downgrade Trusted Launch in place:
Create snapshot of OS disk > create new disk > create new VM with --security-type Standard - then nf_tables loads fine.
For prod, avoid resizing Trusted Launch VMs - always deallocate before resize.
If this answers your query, do click Accept Answer and Up-Vote for the same. And, if you have any further query do let us know.