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.
Sign in to answer