我正在尝试使用terraform为azure web应用程序设置自动愈合设置
what have I try ?
- 我正在使用windows_web_app
- 我有
auto_heal_enabled
我如何找出一个参考示例来为这里的文档中提到的auto_heal_settings
设置触发器和操作
我能够通过使用azure门户手动添加自动修复设置来找出一个自动修复的示例,然后运行terraform plan
,这向我展示了计划要删除的auto_heal_settings
的确切语法。
这个设置显示了当
- 5000个请求到/HealthCheck抛出500个在5分钟(300秒)
- 5000个请求/Get在5分钟(300秒)内抛出500个
^可能不是您的应用程序在生产环境中的正确设置,但是找出设置的策略可以应用于该特性支持的所有场景
- auto_heal_setting {
- action {
- action_type = "Recycle" -> null
- minimum_process_execution_time = "00:00:00" -> null
}
- trigger {
- private_memory_kb = 0 -> null
- status_code {
- count = 5000 -> null
- interval = "00:05:00" -> null
- path = "/HealtCheck" -> null
- status_code_range = "500" -> null
- sub_status = 0 -> null
}
- status_code {
- count = 6000 -> null
- interval = "00:05:00" -> null
- path = "/Get" -> null
- status_code_range = "500" -> null
- sub_status = 0 -> null
}
}