You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using Bicep to deploy and upgrade AKS clusters - when trying to upgrade the Kubernetes cluster (control plane and node pools), it throws this error:
{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/.../aks-upgrade-rg/providers/Microsoft.Resources/deployments/aks","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"BadRequest","target":"/subscriptions/.../aks-upgrade-rg/providers/Microsoft.ContainerService/managedClusters/testcluster-2","message":"{\r\n\"code\": \"NotAllAgentPoolOrchestratorVersionSpecifiedAndUnchanged\",\r\n\"details\": null,\r\n\"message\": \"Using managed cluster api, all Agent pools' OrchestratorVersion must be all specified or all unspecified. If all specified, they must be stay unchanged or the same with control plane. For agent pool specific change, please use per agent pool operations: https://aka.ms/agent-pool-rest-api\",\r\n\"subcode\": \"\"\r\n}"}]}}
To Reproduce
Here is the minimal, reproducible example.
Deploy the bicep az deployment group create --resource-group $RESOURCE_GROUP --subscription $SUBSCRIPTION_ID --template-file aks.bicep. Deployment suceeds at version 1.29.4.
After a while, auto-upgrade kicks in and updates control plane and nodes to 1.29.11
Now change the kubernetesVersion to 1.30.1 and deploy it again. This should trigger an update for both control plane and nodes. It fails!
Expected behavior
The upgrade should have gone through.
Additionally, if the bicep is different and contains the nodepool as a nested resource instead of a separate resource, it passes!
Describe the bug
Using Bicep to deploy and upgrade AKS clusters - when trying to upgrade the Kubernetes cluster (control plane and node pools), it throws this error:
To Reproduce
Here is the minimal, reproducible example.
aks.bicep
az deployment group create --resource-group $RESOURCE_GROUP --subscription $SUBSCRIPTION_ID --template-file aks.bicep
. Deployment suceeds at version 1.29.4.kubernetesVersion
to 1.30.1 and deploy it again. This should trigger an update for both control plane and nodes. It fails!Expected behavior
The upgrade should have gone through.
Additionally, if the bicep is different and contains the nodepool as a nested resource instead of a separate resource, it passes!
aks.bicep
According to the bicep docs there should not be any difference if the nodepool is within the parent resource or outside of it with a reference, but it results in failure to upgrade. https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/child-resource-name-type
Screenshots
Error message from portal:
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: