An Azure service that is used to provision Windows and Linux virtual machines.
Check the current security type:
az vm show -g <resource-group> -n <vm-name> --query securityProfile.securityType
If it returns TrustedLaunch, create a new VM with security type set to Standard:
az vm create \
-g <resource-group> \
-n <vm-name> \
--image <image> \
--security-type Standard
Security type cannot be changed from TrustedLaunch after creation, so redeployment is required.
Alternatively, you can simply use a Gen1 image because Gen1 does not support Trusted Launch or Secure Boot.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin