Azure / Azure/PSRule.Rules.Azure
[RULE] Use a dedicated path for container app http health probes
- Dominant language
- PowerShell
- Stars
- 447
- Forks
- 109
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 23
Description
### 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
Contributor guide
Assessment
This issue has not been assessed yet.