Deploy windows VM azure edition

When trying to deploy a windows vm 2022 core azure edition I get below error when I preform terraform apply

Error: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 – Original Error: Code=“InvalidParameter”
Message=“PatchSettings must be specified for hotpatch compatible VMs.” Target=“windowsConfiguration.patchSettings”

I have tried to find where this should be configured and in which block (os_profile_windows_config ?) but have not found any good guidence

My subscription have been registered for using Hot Patching