Unable to enable vtpm by using Set-AzVMUefi and then Update-AzVM

元亨 杨 1 Reputation point

I use azure powershell create a Win11 VM(V2), then I found the vTPM is not enabled by default , then I try to use Set-AzVMUefi -VM $ItemVM -EnableVtpm $true -EnableSecureBoot $true and then use Update-AzVM -ResourceGroupName "xxxxxx" -VM $ItemVM then I got below issue.


How can I use powershell to enable the vTPM? Any suggestion would be much appreciated.

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