I'm trying to enable "automaticRepairsPolicy" for my azure VMSS via terraform. I can't find the right option in azurerm documentation. Is there another way how to enable it? Maybe by creating a policy or adding an extension?
I'm grateful for any help!
CodePudding user response:
You are using a deprecated resource azurerm_virtual_machine_scale_set
As documentation says, rely on one of the below resources::
- azurerm_linux_virtual_machine_scale_set for linux VMSS
- azurerm_windows_virtual_machine_scale_set for windows VMSS
Above resources have automatic_instance_repair
block where you can set them accordingly.