Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AVM Module Issue]: Deployment is failing while using the managed cluster #4479

Open
1 task done
Bayanapurnima opened this issue Feb 19, 2025 · 3 comments
Open
1 task done
Assignees
Labels
Class: Resource Module 📦 This is a resource module Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue

Comments

@Bayanapurnima
Copy link

Check for previous/existing GitHub issues

  • I have checked for previous/existing GitHub issues

Issue Type?

I'm not sure

Module Name

avm/res/container-service/managed-cluster

(Optional) Module Version

0.8.0

Description

I you have created this AKS cluster “aks-weu-prd” with Azure Verified Modules(br/public:avm/res/container-service/managed-cluster:0.1.7). However when I tried to upgrade the version(0.8.0) of the cluster it has failed with this error “Deployment template parse failed: 'Required property 'type' expects a value but got null”
The template we followed is:
//AKS with Azure Network
module managedCluster 'br/public:avm/res/container-service/managed-cluster:0.8.0' = {
scope: cmdsResourceGroup
name: 'aks-${deploymentSuffix}'
params: {
// Required parameters
name: 'aks-${resourceSuffix}'
primaryAgentPoolProfiles: [
{
availabilityZones: [
3
]
count: 1
enableAutoScaling: true
maxCount: 3
maxPods: 30
minCount: 1
mode: 'System'
name: 'systempool'
nodeTaints: [
'CriticalAddonsOnly=true:NoSchedule'
]
osDiskSizeGB: 0
osType: 'Linux'
serviceCidr: ''
storageProfile: 'ManagedDisks'
type: 'VirtualMachineScaleSets'
vmSize: environment.cmdsSettings.aks.nodepools.systempoolSKU
vnetSubnetID: AKSSubnet
}
]
// Non-required parameters
agentPools: [
{
availabilityZones: [
1
3
]
count: 2
enableAutoScaling: true
maxCount: environment.cmdsSettings.aks.nodepools.maxInstancesUserpool4
maxPods: 40
minCount: environment.cmdsSettings.aks.nodepools.minInstancesUserpool4
minPods: 2
mode: 'User'
name: 'userpool4'
nodeLabels: {}
osDiskSizeGB: 0
osSKU: 'AzureLinux'
osType: 'Linux'
scaleSetEvictionPolicy: 'Delete'
scaleSetPriority: 'Regular'
type: 'VirtualMachineScaleSets'
vmSize: environment.cmdsSettings.aks.nodepools.userpool4SKU
vnetSubnetID: AKSSubnet
}
{
availabilityZones: [
2
]
count: 2
enableAutoScaling: true
maxCount: environment.cmdsSettings.aks.nodepools.maxInstancesUserpool2
maxPods: 40
minCount: environment.cmdsSettings.aks.nodepools.minInstancesUserpool2
minPods: 2
mode: 'User'
name: 'userpool2'
nodeLabels: {
app: 'clamav'
}
osDiskSizeGB: 128
osSKU: 'AzureLinux'
osType: 'Linux'
scaleSetEvictionPolicy: 'Delete'
scaleSetPriority: 'Regular'
type: 'VirtualMachineScaleSets'
vmSize: environment.cmdsSettings.aks.nodepools.userpool2SKU
vnetSubnetID: AKSSubnet
}
]
enableStorageProfileDiskCSIDriver: true
enableStorageProfileFileCSIDriver: true
enableStorageProfileSnapshotController: true
networkPlugin:'azure'
privateDNSZone: pdnszone_aks.id
enablePrivateCluster: true
enableKeyvaultSecretsProvider: true
enableSecretRotation: true
enableOidcIssuerProfile: true
disableRunCommand: true
omsAgentEnabled:true
monitoringWorkspaceResourceId:aiLogAnalyticsWorkspaceResourceId
openServiceMeshEnabled: false
autoUpgradeProfileUpgradeChannel: 'none'
kubernetesVersion: '1.29.7'
managedIdentities: {userAssignedResourcesIds:['${managedIdentityAks.outputs.resourceId}']}
tags: commonTags
}
}
In the above template I have provided the value for type as 'VirtualMachineScaleSets'
Given that we are working with a tight deadline of March 3rd, 2025, it is essential that we deploy it as soon as possible. Please consider this issue as priority and it would be helpful for us

(Optional) Correlation Id

No response

@Bayanapurnima Bayanapurnima added Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue labels Feb 19, 2025

Important

The "Needs: Triage 🔍" label must be removed once the triage process is complete!

Tip

For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation.

@avm-team-linter avm-team-linter bot added the Class: Resource Module 📦 This is a resource module label Feb 19, 2025
Copy link

@Bayanapurnima, thanks for submitting this issue for the avm/res/container-service/managed-cluster module!

Important

A member of the @Azure/avm-res-containerservice-managedcluster-module-owners-bicep or @Azure/avm-res-containerservice-managedcluster-module-contributors-bicep team will review it soon!

@Bayanapurnima
Copy link
Author

Purnima Bayana [email protected], Mercedes-Benz Research and Development India, Provider Information](https://github.com/mercedes-benz/foss/blob/master/PROVIDER_INFORMATION.md)%3C/sup%3E)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Class: Resource Module 📦 This is a resource module Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue
Projects
Status: Needs: Triage
Development

No branches or pull requests

2 participants