Skip to content

Validate aks_name length to prevent cluster creation failure#1056

Open
liyu-ma wants to merge 1 commit intomainfrom
len-validation-aksname
Open

Validate aks_name length to prevent cluster creation failure#1056
liyu-ma wants to merge 1 commit intomainfrom
len-validation-aksname

Conversation

@liyu-ma
Copy link
Contributor

@liyu-ma liyu-ma commented Feb 12, 2026

AKS creates a node resource group in the background for each aks cluster. The node RG names follows format MC_{cluster_rg}_{aks_name}_{region}. This name is allowed at 80 chars max length. Place a validation step to fail fast if aks_name is long and potentially fail cluster creation.

How it looks like when validation failed:
image

@liyu-ma liyu-ma force-pushed the len-validation-aksname branch from 187356d to 46c75c2 Compare February 12, 2026 06:39
@liyu-ma liyu-ma marked this pull request as ready for review February 12, 2026 06:45
Copilot AI review requested due to automatic review settings February 12, 2026 06:45
@liyu-ma liyu-ma requested a review from wonderyl as a code owner February 12, 2026 06:45
@liyu-ma liyu-ma changed the title Len validation aksname Validate aks_name length to prevent cluster creation failure Feb 12, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Actions validation in the Terraform PR workflow to fail fast when an Azure aks_name is too long and would cause AKS node resource group naming to exceed Azure’s 80-character limit.

Changes:

  • Introduces an Azure-only workflow step to parse aks_name from the scenario .tfvars file.
  • Fails the job if any detected aks_name exceeds a configured maximum length.

Copy link

Copilot AI commented Feb 12, 2026

@liyu-ma I've opened a new pull request, #1057, to work on those changes. Once the pull request is ready, I'll request review from you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants