Terraform-provider-azurerm: Application gateway - support for health probe return code range

Created on 15 Mar 2019  路  1Comment  路  Source: terraform-providers/terraform-provider-azurerm

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

For the health probe, you can supply a comma separated list OR you can give it a range and Azure will accept it. I would like to be able to support the range.

Example:

200-999

In one case we needed to do this for a legacy app.

image

New or Affected Resource(s)

  • azurerm_application_gateway

Potential Terraform Configuration

  #######################################################################
  # Health Probes
  #
  probe {
    name = "mysite.domain.com-probe"
    host = "mysite.domain.com"
    path = "/"
    interval = 30
    timeout = 30
    unhealthy_threshold = 3
    protocol = "Http"

    match {
      # define a local for this big list and put it here.
      status_code = "200-999" ### Doesn't work because it's a list.
    }
  }

References

  • 0000

  • enhancement servicapplication-gateway

    Most helpful comment

    This works here with 1.29.0 provider version:

      probe {
        name                = "http_probe"
        ...blabla...
        match {
          status_code = ["100-999"]
          body        = ""
        }
    

    The result in Azure Portal is:

    grafik

    >All comments

    This works here with 1.29.0 provider version:

      probe {
        name                = "http_probe"
        ...blabla...
        match {
          status_code = ["100-999"]
          body        = ""
        }
    

    The result in Azure Portal is:

    grafik

    Was this page helpful?
    0 / 5 - 0 ratings