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

元亨 杨 1 Reputation point
2021-11-02T09:35:12.887+00:00

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.

145767-wechat-screenshot-20211102173218.png

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