AKS: Emit Container Insights and monitoring Bicep
Open
area-deployment
azure
kubernetes
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
## Problem
`WithContainerInsights()` and `WithAzureLogAnalyticsWorkspace()` exist as APIs on `AzureKubernetesEnvironmentResource` but the Bicep generation does not emit the necessary Azure resources.
## Missing Bicep
- `addonProfiles.omsagent` configuration with Log Analytics workspace ID
- `azureMonitorProfile.metrics.enabled` for managed Prometheus
- Data collection rules for container insights
- Optional Application Insights OTLP integration
## Current state
The extension methods set `ContainerInsightsEnabled` and `LogAnalyticsWorkspace` properties, but `GenerateAksBicep()` does not read them.
## Related
Part of AKS hosting support (PR #16088)
Contributor guide
Assessment
This issue has not been assessed yet.