PSRule.Rules.Azure icon indicating copy to clipboard operation
PSRule.Rules.Azure copied to clipboard

[RULE] Use a dedicated path for container app http health probes

Open BernieWhite opened this issue 1 year ago • 0 comments

Existing rule

No response

Suggested rule

This rule is similar to #3111, however in this rule we are only checking existing health probes if they have been configured. If the health probes have not been configured then this rule passes.

If a health probe of type httpGet is configured it must set a path that is not / i.e. the root of the application.

Pillar

None

Additional context

See similar: https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.AppService.WebProbePath/

  • https://learn.microsoft.com/en-gb/azure/container-apps/health-probes?tabs=arm-template
  • https://learn.microsoft.com/en-gb/azure/templates/microsoft.app/containerapps?pivots=deployment-language-bicep#ingress

BernieWhite avatar Oct 13 '24 04:10 BernieWhite