Azure / Azure/bicep-registry-modules

[AVM Module Issue]: AKS deployment Prometheus not fully ena

Open
#4,466 15 comments 1 reaction 1 assignee Assigned to @JPEasier View on GitHub
Class: Resource Module :package: Needs: Immediate Attention :bangbang: Needs: Triage :mag: Status: Response Overdue :triangular_flag_on_post: Type: AVM :a: :v: :m: Type: Bug :bug:
Dominant language
Bicep
Stars
736
Forks
564
Avg merge
3d 15h
Merged PRs (30d)
30

Description

### Check for previous/existing GitHub issues

- [x] I have checked for previous/existing GitHub issues
### Issue Type?

Bug

### Module Name

avm/res/container-service/managed-cluster

### (Optional) Module Version

0.8.0

### Description

## Issue Summary

When deploying the AKS cluster, Prometheus is enabled by default. However, upon accessing the Azure portal, I encounter the following error message:
> You do not have access to the associated data collection rule to view the Azure Monitor workspace or the data collection rule has been deleted. Reconfigure

![Image](https://github.com/user-attachments/assets/df70484c-5077-40de-9cbb-af79042e7073)

## Steps to Reproduce:

Deploy AKS with bicep parameters I use to deploy monitoring for the aks cluster:

enableContainerInsights: true
enableAzureMonitorProfileMetrics: true
metricLabelsAllowlist: 'nodes=[*], pods=[*]'

Am I missing something in my configuration? I cannot find any data collection rule that should be created.

### (Optional) Correlation Id

_No response_

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.