Governance Policies Integration APIM To Container Apps - Azure/az-prototype GitHub Wiki

APIM To Container Apps

Governance policies for Apim To Container Apps

Domain: integration

Patterns

Name Description
APIM backend with managed identity Configure APIM backend pointing to internal Container App

Anti-Patterns

Description Instead
Do not expose Container App endpoints directly to the internet Use APIM as the gateway; set Container App ingress to internal

References


Checks (4)

Check Severity Description
CC-INT-APIM-001 Required Route all external API traffic through API Management
CC-INT-APIM-002 Required Use APIM managed identity to authenticate to Container Apps
CC-INT-APIM-003 Recommended Set Container App ingress to internal-only when fronted by APIM
CC-INT-APIM-004 Recommended Configure APIM caching policies for read-heavy endpoints

CC-INT-APIM-001

Route all external API traffic through API Management

Severity: Required
Rationale: Centralizes auth, rate limiting, and observability
Agents: cloud-architect, terraform-agent, bicep-agent, biz-analyst

Targets

  • Microsoft.ApiManagement/service
  • Microsoft.App/containerApps

CC-INT-APIM-002

Use APIM managed identity to authenticate to Container Apps

Severity: Required
Rationale: No shared keys or certificates between services
Agents: cloud-architect, terraform-agent, bicep-agent

Targets

  • Microsoft.ApiManagement/service
  • Microsoft.App/containerApps

CC-INT-APIM-003

Set Container App ingress to internal-only when fronted by APIM

Severity: Recommended
Rationale: Container App should not be directly accessible from the internet
Agents: cloud-architect, terraform-agent, bicep-agent

Targets

  • Microsoft.ApiManagement/service
  • Microsoft.App/containerApps

CC-INT-APIM-004

Configure APIM caching policies for read-heavy endpoints

Severity: Recommended
Rationale: Reduces backend load and improves response latency
Agents: cloud-architect, app-developer, csharp-developer, python-developer

Targets

  • Microsoft.ApiManagement/service
  • Microsoft.App/containerApps

⚠️ **GitHub.com Fallback** ⚠️