Create AKS cluster with node pool VMSS setting automatic_os_upgrade enabled

I am currently trying out the terraform azure provider and trying to create a kubernetes cluster.

Let’s say I have a policy in azure (out of my control) that enforces “Enforce automatic OS upgrade with app health checks on VMSS”. Basically meaning automatic_os_upgrade needs to enabled on the virtual machine scale set.

Is is possible to create the AKS cluster default_node_pool with this setting enabled directly?

Bump for this one; there doesn’t seem to be a clear way to make the node pool be backed by a custom VM scale set resource where automatic OS upgrades can be enabled. The policy I need to follow requires automatic OS patching on Virtual Machine Scale Sets.

BTW, let me know if you figured it out, OP.