[AVM Module Issue]: Mixing workspace types in avm/res/container-service/managed-cluster #3670
Open
1 task done
Labels
Class: Resource Module 📦
This is a resource module
Needs: Triage 🔍
Maintainers need to triage still
Type: AVM 🅰️ ✌️ Ⓜ️
This is an AVM related issue
Type: Bug 🐛
Something isn't working
Check for previous/existing GitHub issues
Issue Type?
Bug
Module Name
avm/res/container-service/managed-cluster
(Optional) Module Version
0.4.1
Description
In Azure, Log Analytics Workspace and Monitor Workspace are two different types of resources. However, in the current main branch of container-service/managed-cluster, log analytics workspace is used interchangeably with monitor workspace at the following code lines:
Is this intentional?
Practically, this leads to situation, where the first deployment of an AKS cluster seems to succeed, but all the following deployments will fail due to errors such as:
A potential reason for this behaviour is that at the first run the monitor workspace is empty (blob storage), but then on the following runs, the monitor workspace is initialised as a “monitoring blob storage”.
Nevertheless, ARM seems to want a resource ID of a log analytics workspace for container insights, but a monitoring workspace ID is passed here instead: line 770
When it comes to container insights, I was able to fix the issue by altering the managed-cluster AVM module by adding a new parameter, containerInsightsLawResourceId, and passing it a valid log analytics workspace id:
Generally, here’s the parameters I’m using when calling the managed-cluster AVM module:
And for the hot fixed module version, I'm passing otherwise the same parameters, but adding along
containerInsightsLawResourceId
, which gets passed to container insights:Are you able to reproduce the issue?
Thanks in advance
(Optional) Correlation Id
No response
The text was updated successfully, but these errors were encountered: