Skip to content

[docs] Document AKS node pool OS SKU configuration - #1915

Closed
aspire-repo-bot[bot] wants to merge 1 commit into
release/17.0from
docs/pr-21118-39350071815-1-9de10cb44d0f9e8e
Closed

aspire-repo-bot[bot] wants to merge 1 commit into
release/17.0from
docs/pr-21118-39350071815-1-9de10cb44d0f9e8e

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Caution

agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.

Details

Potential security threats were detected in the agent output.

Review the workflow run logs for details.

Documents changes from microsoft/aspire#21118

@mitchdenny

Target branch

Targeting release/17.0 based on the source PR milestone 17.0 (exact match on microsoft/aspire.dev).

Why this is needed

microsoft/aspire#21118 adds an OsSku property to AksNodePoolConfig so AppHosts can select the AKS node pool OS SKU (e.g. AzureLinux) without hand-editing generated Bicep. It also introduces configuration-callback overloads of WithSystemNodePool/AddNodePool (and their TypeScript/Java/Python equivalents) as the only way for non-C# AppHosts to configure node pools going forward — the PR is labeled breaking-change because TypeScript, Java, and Python scalar-options overloads are replaced by callbacks (existing parameter-based C# calls are unaffected).

The existing AKS integration reference page described only the old scalar-parameter overloads, so it didn't cover the new OsSku option or the callback-based configuration shape.

What changed

Updated src/frontend/src/content/docs/integrations/cloud/azure/aks/index.mdx:

  • "Configure the system node pool": Added a configuration-callback example (C# and TypeScript) showing how to set OsSku/osSku, alongside the existing parameter-overload example. Documented that an unset OS SKU preserves the AKS default, that OS SKU changes can reimage nodes, and linked to the [AKS OS SKU migration guidance]((learn.microsoft.com/redacted)
  • "Add node pools": Added the same callback-based OsSku example for AddNodePool/addNodePool.
  • Added <Aside type="caution"> admonitions in both sections noting that TypeScript, Java, and Python AppHosts must use the callback overload (the scalar-options overloads are no longer supported for those languages), while C# parameter-based calls remain supported.
  • Noted that the C# callback operates on the configuration retained in the app model (not a copy), so later mutations are reflected until Bicep generation, consistent with the source PR's description.

Files modified

  • src/frontend/src/content/docs/integrations/cloud/azure/aks/index.mdx (updated existing page; no new pages created)

Generated by PR Documentation Check for #21118 · copilot · auto · 64.6 AIC · ⌖ 18.8 AIC · ⊞ 20.4K · ◷

@aspire-repo-bot aspire-repo-bot Bot added docs-from-code Copilot initiated issue from dotnet/aspire repo agentic-threat-detected labels Oct 20, 2026

@aspire-repo-bot aspire-repo-bot Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Threat detection produced a warning for this pull request output.

These changes need to be scrutinized before merge and only merged after a careful manual review.

@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1915. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1915 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

Copy link
Copy Markdown
Member

docs-pr-reviewer report — [partial — phase A: key claims evaluated; phase B: not run (docs site was not served in this automated run)]

Recommendation: approve

Source used: microsoft/aspire main via merged source PR microsoft/aspire#21118
PR status: draft, mergeable, opened 2026-10-20 (not stale)

Phase A — claims

  • ✅ verified: AksNodePoolConfig exposes VmSize, MinCount, MaxCount and OsSku (null = AKS default); the callback overload of WithSystemNodePool exists.
  • ⚠️ nuance: the stated defaults (Standard_D2s_v5, 1–3 nodes) and the TypeScript callback shape (pool.vmSize, await aks.withSystemNodePool(async pool => …)) were not re-checked.

Phase B — doc-tester

Not run; rendering of the changed pages is not browser-checked.

🤖 Posted by aspire.dev - squad (AI Agent)

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.

🔵 Needs a closer look

Required rendered-page and runnable-example validation remains blocked by environment restrictions, and an unresolved agentic-threat warning requires human inspection.

No open issues 🎉

What changed in this PR

Updates the AKS integration reference to document node pool OS SKU configuration introduced by microsoft/aspire#21118 for Aspire 17.0.

Changes:

  • Adds C# and TypeScript callback examples for configuring the OS SKU of system and additional node pools.
  • Explains callback requirements for TypeScript, Java, and Python while noting continued support for C# parameter-based calls.
  • Documents default OS SKU behavior, migration risks, configuration replacement, and when retained C# configuration changes affect generated Bicep.
File Description
src/​frontend/​src/​content/​docs/​integrations/​cloud/​azure/​aks/​index.mdx Expands node pool guidance with OS SKU examples, compatibility cautions, and configuration behavior.

Review effort: Balanced

@eerhardt
Eric Erhardt (eerhardt) force-pushed the docs/pr-21118-39350071815-1-9de10cb44d0f9e8e branch from df46c43 to 00d5c49 Compare November 16, 2026 19:46
Document the new configuration-callback overloads for WithSystemNodePool
and AddNodePool, including the OsSku property, and call out the
TypeScript/Java/Python breaking change requiring callbacks instead of
scalar-options overloads.

Documents changes from microsoft/aspire#21118

Co-authored-by: Copilot <[email protected]>
@mitchdenny

Copy link
Copy Markdown
Member

Superseded by the consolidated AKS documentation in #2042: #2042. Its pushed changes incorporate this PR's relevant content and review feedback for Aspire 17.0. Please review #2042 instead; this PR is closed without merging.

Mitch Denny (mitchdenny) added a commit that referenced this pull request Nov 17, 2026
…dance (#2042)

## Summary

<!-- Describe what this pull request changes and why. -->

Consolidate the AKS-specific documentation for Aspire 17.0 into this PR,
targeting `release/17.0`.

- Document existing AKS clusters, scoping, identity/network
prerequisites, private-cluster connectivity, and cleanup behavior:
[microsoft/aspire#20921](microsoft/aspire#20921).
- Document existing registries, cross-resource-group and
cross-subscription references, kubelet `AcrPull`, separate cluster
identities, and migration precautions:
[microsoft/aspire#20919](microsoft/aspire#20919).
- Explain the Standard control-plane tier default, billing and upgrade
implications, and working C# and TypeScript Free-tier overrides:
[microsoft/aspire#20917](microsoft/aspire#20917).
- Document node pool OS SKUs, callback configuration, defaults, and
migration risks; correct stale TypeScript calls on both AKS pages:
[microsoft/aspire#21118](microsoft/aspire#21118).

Supersedes docs PRs #1900 (registry and identities), #1872 (Standard
tier), and #1915 (node pool OS SKU). Their relevant content and review
feedback are incorporated here. Generic Kubernetes PRs #1935 and #1963
are intentionally excluded and unchanged.

The integration reference contains the detailed configuration examples.
The deployment guide explains the defaults and upgrade considerations
and links to those examples instead of duplicating them.
Existing-resource references are explicitly distinguished from
reprovisioning an Aspire-managed cluster.

## Third-party links and affiliations

<!--
List any third-party links added or changed by this pull request and
disclose any
material affiliation with the linked organizations, such as employment,
sponsorship, or ownership. Write "None" if this pull request doesn't add
or
change third-party links.
-->

None. Added external guidance links are first-party Microsoft Learn AKS
documentation: pricing tiers, IMDS restrictions, control-plane role
assignments, pre-created kubelet identities, and OS SKU migration.

## Validation

<!-- List the checks you ran or explain why validation isn't needed. -->

- `git diff --check` — passed.
- `pnpm --dir src/frontend exec vitest run --config vitest.config.ts
tests/unit/twoslash-blocks.vitest.test.ts
tests/unit/api-reference.vitest.test.ts
tests/unit/seo-lengths.vitest.test.ts
tests/unit/apphost-examples.vitest.test.ts` — passed, 66 tests across 4
files.
- `npx tsc --project tsconfig.apphost.json --noEmit` — passed in a
temporary Aspire 17.0 TypeScript AppHost for both the new-cluster and
existing-cluster examples.
- `aspire publish --apphost apphost.mts --output-path ./artifacts
--non-interactive` — passed in the temporary TypeScript AppHost.
Asserted generated Free tier, AzureLinux and Ubuntu OS SKUs, separate
user-assigned identities, registry subscription scope, and removal of
the default ACR module.
- `env 'Parameters__cluster-name=docs-cluster'
'Parameters__cluster-resource-group=docs-cluster-rg'
'Parameters__cluster-subscription=00000000-0000-0000-0000-000000000002'
aspire publish --apphost apphost.mts --output-path ./existing-artifacts
--non-interactive` — passed. Asserted an existing-cluster reference, no
cluster tier/node-pool mutations or replacement identities, and a
separate kubelet registry role module.
- `aspire publish --apphost apphost.cs --output-path ./artifacts
--non-interactive` — passed in a temporary Aspire 17.0 C# AppHost.
Asserted the Free-tier and OS SKU outputs.
- `aspire start --non-interactive --isolated --apphost
src/apphost/Aspire.Dev.AppHost/Aspire.Dev.AppHost.csproj --format Json`
and `aspire wait frontend --apphost
src/apphost/Aspire.Dev.AppHost/Aspire.Dev.AppHost.csproj
--non-interactive` — passed. The isolated preview remains running for
live-site review.
- Playwright browser checks — both impacted pages render without an
Astro error overlay; C#/TypeScript tabs show the new examples; the
deployment guide's tier link resolves to the integration section;
internal documentation targets exist; all five added Microsoft Learn
guidance URLs return HTTP 200.
- `pnpm --dir src/frontend exec prettier --check
src/content/docs/integrations/cloud/azure/aks/index.mdx
src/content/docs/deployment/kubernetes/aks.mdx` — reports formatting
differences already present in both base files. Avoided unrelated
reformatting, including formatter changes to existing code fences and
indentation.

Source behavior was checked against `microsoft/aspire` `release/17.0` at
`ada71fb1409066a7082f3a80d20a7d848cab15d8`; smoke tests used the
installed Aspire 17.0 SDK and generated TypeScript modules. No Azure
resources were provisioned or destroyed, no local production site build
was run, and no PR was merged. Cloud deployment and in-place cluster
migration remain untested. User review of the live preview is the next
step.
@eerhardt
Eric Erhardt (eerhardt) deleted the docs/pr-21118-39350071815-1-9de10cb44d0f9e8e branch November 18, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agentic-threat-detected docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants