Skip to content

Default AKS clusters to the Standard control-plane tier - #20917

Merged
Mitch Denny (mitchdenny) merged 1 commit into
mainfrom
mitchdenny-aks-standard-default
Oct 12, 2026
Merged

Mitch Denny (mitchdenny) merged 1 commit into
mainfrom
mitchdenny-aks-standard-default

Conversation

@mitchdenny

@mitchdenny Mitch Denny (mitchdenny) commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Description

Use the Standard control-plane tier by default for Aspire-managed AKS clusters, providing an uptime SLA appropriate for production workloads as the integration moves toward general availability. This replaces the Free default without changing the Base SKU, node VM sizes, node counts, or Kubernetes version. Package preview status is unchanged.

Applying updated infrastructure to an existing Aspire-managed cluster can update its tier to Standard and introduce a cluster-management charge. Upgrading the package alone does not modify a deployed cluster. Explicit ConfigureInfrastructure overrides remain supported. Documentation links to current Azure tier information without embedding dollar rates.

Updates the generated-Bicep snapshots and adds a snapshot regression test for explicitly selecting Free.

User-facing usage

Existing AppHost code now generates sku: { name: 'Base', tier: 'Standard' }:

var aks = builder.AddAzureKubernetesEnvironment("aks");
const aks = await builder.addAzureKubernetesEnvironment("aks");

A C# AppHost can retain Free for development or testing:

using Azure.Provisioning.ContainerService;

var aks = builder.AddAzureKubernetesEnvironment("aks")
    .ConfigureInfrastructure(infrastructure =>
    {
        var cluster = infrastructure.GetProvisionableResources()
            .OfType<ContainerServiceManagedCluster>()
            .Single();

        cluster.Sku.Tier = ManagedClusterSkuTier.Free;
    });

Validation

  • ./restore.sh — passed.
  • dotnet test --project tests/Aspire.Hosting.Azure.Kubernetes.Tests/Aspire.Hosting.Azure.Kubernetes.Tests.csproj --no-launch-profile -- --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true" — passed, 111 tests. Reviewed the three default-tier snapshot changes and the new Free-override snapshot.
  • git diff --check — passed.
  • PR CI — passed, including AKS hosting and Azure hosting tests on Windows and Linux. All reported checks finished successfully or were intentionally skipped by CI selection.
  • gh workflow run deployment-tests.yml --repo microsoft/aspire --ref mitchdenny-aks-standard-default -f pr_number=20917 -f test_filter=Aks — passed; all 12 AKS deployment scenario jobs succeeded against commit 630b8fe3412402d9be16e0066d999de70d06e062.

Fixes #17715

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: e34dd839-7de2-40bc-874d-e71afeca4844
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20917

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20917"

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Deployment tests starting on PR #20917...

This will deploy to real Azure infrastructure. Results will be posted here when complete.

View workflow run

@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot October 12, 2026 04:43
@github-actions github-actions Bot added the area-integrations Issues pertaining to Aspire Integrations packages label Oct 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

2 / 98 PR test projects · 2 PR jobs, from 6 changed files.

Selected PR test projects (2 / 98)

Aspire.Hosting.Azure.Kubernetes.Tests, Aspire.Hosting.Azure.Tests

Selected PR jobs (2)

polyglot, typescript-api-compat


How these were chosen — grouped by what changed

🔧 src/Aspire.Hosting.Azure.Kubernetes/AzureKubernetesEnvironmentExtensions.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.Kubernetes.Tests, Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.Kubernetes.Tests/AzureKubernetesEnvironmentExtensionsTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.Kubernetes.Tests

🧪 tests/Aspire.Hosting.Azure.Kubernetes.Tests/Snapshots/AzureKubernetesEnvironmentExtensionsTests.AddAzureKubernetesEnvironment_BasicConfiguration.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Kubernetes.Tests

🧪 tests/Aspire.Hosting.Azure.Kubernetes.Tests/Snapshots/AzureKubernetesEnvironmentExtensionsTests.AddAzureKubernetesEnvironment_ConfigureInfrastructureCanSelectFreeTier.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Kubernetes.Tests

🧪 tests/Aspire.Hosting.Azure.Kubernetes.Tests/Snapshots/AzureKubernetesEnvironmentExtensionsTests.AddLoadBalancer_BicepEnablesIngressProfileAndUsesPreviewApi.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Kubernetes.Tests

🧪 tests/Aspire.Hosting.Azure.Kubernetes.Tests/Snapshots/AzureKubernetesEnvironmentExtensionsTests.WithSystemNodePool_BicepReflectsCustomVmSize.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.Kubernetes.Tests

Job reasons

Job Triggered by
polyglot • affected project Aspire.Hosting.Azure.Kubernetes
• affected project Aspire.Hosting.Azure.Provisioning.ContainerService
typescript-api-compat affected project Aspire.Hosting.Azure.Kubernetes

Selection computed for commit 630b8fe.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused behavior change is accurately documented and covered by default and override snapshots.

0 open findings

What changed in this PR

Defaults Aspire-managed AKS clusters to the Standard control-plane tier while preserving explicit Free-tier overrides.

Changes:

  • Changes the AKS Bicep default from Free to Standard.
  • Documents pricing, SLA, upgrade implications, and Free-tier configuration.
  • Adds regression coverage and updates affected snapshots.
File Description
src/​Aspire.Hosting.Azure.Kubernetes/​AzureKubernetesEnvironmentExtensions.cs Sets and documents the Standard default.
src/​Aspire.Hosting.Azure.Kubernetes/​README.md Documents tier behavior and override guidance.
tests/​Aspire.Hosting.Azure.Kubernetes.Tests/​AzureKubernetesEnvironmentExtensionsTests.cs Tests explicit Free-tier selection.
tests/​...BasicConfiguration.verified.bicep Updates default-tier snapshot.
tests/​...WithSystemNodePool_BicepReflectsCustomVmSize.verified.bicep Updates node-pool snapshot.
tests/​...AddLoadBalancer_BicepEnablesIngressProfileAndUsesPreviewApi.verified.bicep Updates load-balancer snapshot.
tests/​...ConfigureInfrastructureCanSelectFreeTier.verified.bicep Verifies the Free override output.

🧠 Review effort: Balanced


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@mitchdenny
Mitch Denny (mitchdenny) merged commit e6e35b7 into main Oct 12, 2026
77 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 17.0 milestone Oct 12, 2026
aspire-repo-bot Bot added a commit to microsoft/aspire.dev that referenced this pull request Oct 12, 2026
Adds a Cluster tier section to both the AKS hosting integration
reference and the Deploy to AKS guide, describing the new Standard
default, its uptime SLA and cluster-management charge, and how to
opt back into the Free tier via ConfigureInfrastructure.

Documents changes from microsoft/aspire#20917.

Co-authored-by: Copilot <[email protected]>
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Pull request created: #1872

Generated by PR Documentation Check · copilot · auto · 64.8 AIC · ⌖ 20.4 AIC · ⊞ 20.4K

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

📝 Documentation has been drafted in microsoft/aspire.dev#1872 targeting release/17.0.

Triggered signals: integration_readme_changed (src/Aspire.Hosting.Azure.Kubernetes/README.md added a "Cluster tier" section), pr_body_has_user_facing_section and pr_body_has_cli_flag_mention (PR body's "User-facing usage" section shows the new sku: { tier: 'Standard' } default and the ConfigureInfrastructure Free-tier override). Added a "Cluster tier" section to both integrations/cloud/azure/aks/index.mdx (hosting integration reference) and deployment/kubernetes/aks.mdx (Deploy to AKS guide), documenting the new Standard default, its uptime SLA/cluster-management charge, that existing clusters pick up the tier change on next provision (not on package upgrade alone), and the ConfigureInfrastructure snippet to retain Free for dev/test.

Note

This draft PR needs human review before merging.

This branch was previously deployed

1 inactive deployment
deployment-testing — 630b8fe3 Deployed Oct 12, 2026 by mitchdenny via Deploy (Deployment.EndToEnd-AksVnetInfraDeploymentTests) #843
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-integrations Issues pertaining to Aspire Integrations packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Look at standard tier selection for AKS resources being provisioned.

4 participants