Skip to content

Issue with agentPoolProfile.count when create AKS and AKS-ASO #5947

@aliksax-teknika

Description

@aliksax-teknika

/kind bug

[Before submitting an issue, have you checked the Troubleshooting Guide self-managed & managed?]

What steps did you take and what happened:
I tried to deploy AKS Managed using HOW-TO and repository examples for ASK and AKS-ASO.
I set all environment variables and used clusterctl to generate files.

After applying yaml file via kubectl I got the same issue for both versions AKS and AKS-ASO
Cause: agentPoolProfile.count was 0. It must be greater or equal to minCount:1 and less than or equal to maxCount:1000. If allowedMinCount was expected to be 0 but is 1: 1) The nodepool is a VMAS pool. 2) api Version is less than 2020-03-01. 3) The node is a system pool.: PUT

What did you expect to happen:
AKS will be created

Environment:
Azure managed cluster with workload-identity and user-identity

  • cluster-api-provider-azure version: v1.21.1
  • Kubernetes version: (use kubectl version): 1.32

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions