ansible-collections / azure

Development area for Azure Collections

Home Page:https://galaxy.ansible.com/azure/azcollection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a match status codes parameter to the probes section of Application Gateway

pwakano opened this issue · comments

SUMMARY

On the application gateway module, include a match status codes parameter in the probes section to allow the configuration of a different status code to be considered as a match by the probing mechanism.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

azure_rm_appgateway_module

ADDITIONAL INFORMATION

Sometimes it is needed to change the probe's matching condition but currently the ansible module lacks this option forcing the default 200-399 value.
Azure portal and terraform allow this configuration.

- name: Create instance of Application Gateway with complex routing and redirect rules
  azure_rm_appgateway:
...
    probes:
      - name: "http-probe1"
        interval: 30
        path: "/abc"
        protocol: "https"
        pick_host_name_from_backend_http_settings: true
        timeout: 30
        unhealthy_threshold: 2
        match_status_code: 200 # ==> Proposed new parameter
...