Azure has lately started enforcing the TrustedLaunch security type on all gen2 VMs.
We use image gallery feature to freeze the image provided to Azure based clusters. When we tried to create new version, it enforced TrustedLaunch security type on new machine image.
But when we try to such image via machine-controller, it fails with below error..
failed to create machine at cloudprovider, due to trying to create a VM: 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."
We need to add a parameter in cloud provider spec to allow users to specify security type
Azure has lately started enforcing the TrustedLaunch security type on all gen2 VMs.
We use image gallery feature to freeze the image provided to Azure based clusters. When we tried to create new version, it enforced TrustedLaunch security type on new machine image.
But when we try to such image via machine-controller, it fails with below error..
We need to add a parameter in cloud provider spec to allow users to specify security type