When trying to create a VM with a gallery image using Terraform got the following error
Error: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 – Original Error: Code=“BadRequest” Message=“The provided gallery image only supports creation of VMs and VM Scale Sets with ‘TrustedLaunch’ security type.”
Although the image is created using a Trusted launch and there is no option to add code to the terraform script for Trusted Lunch (Tried *security_type *- An argument named “security_type” is not expected here, *trusted_launch_enabled *- An argument named “trusted_launch_enabled” is not expected here, *extended_security_configuration *- Blocks of type “extended_security_configuration” are not expected here) after applying all 3 options still no luck.
Is there a way to get it done?