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)
Problem
WithContainerInsights()andWithAzureLogAnalyticsWorkspace()exist as APIs onAzureKubernetesEnvironmentResourcebut the Bicep generation does not emit the necessary Azure resources.Missing Bicep
addonProfiles.omsagentconfiguration with Log Analytics workspace IDazureMonitorProfile.metrics.enabledfor managed PrometheusCurrent state
The extension methods set
ContainerInsightsEnabledandLogAnalyticsWorkspaceproperties, butGenerateAksBicep()does not read them.Related
Part of AKS hosting support (PR #16088)