Skip to content

Azure VMs - Support 'TrustedLaunch' security type #2013

@dharapvj

Description

@dharapvj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/regressionCategorizes issue or PR as related to a regression from a prior release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions