microsoft / microsoft/aspire

AKS: Emit Container Insights and monitoring Bicep

Open
#16,150 0 comments 0 reactions 0 assignees View on GitHub
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

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.