Azure / Azure/PSRule.Rules.Azure

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

Open
#3,112 0 comments 0 reactions 0 assignees View on GitHub
pillar: reliability rule: container-apps
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.