Search code examples
azureterraformazure-rm

How to enable automaticRepairsPolicy for vmss via terraform


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!


Solution

  • You are using a deprecated resource azurerm_virtual_machine_scale_set

    As documentation says, rely on one of the below resources::

    Above resources have automatic_instance_repair block where you can set them accordingly.