Skip to content

[docs] Document TypeScript/JavaScript Azure Functions app support - #1878

Merged
Sébastien Ros (sebastienros) merged 4 commits into
release/17.0from
docs/pr-17980-38337214233-1-5214d40262dcfbfe
Nov 17, 2026
Merged

Sébastien Ros (sebastienros) merged 4 commits into
release/17.0from
docs/pr-17980-38337214233-1-5214d40262dcfbfe

Conversation

@aspire-repo-bot

@aspire-repo-bot aspire-repo-bot Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Documents microsoft/aspire#17980 and the directory-based Azure Functions debugging support from microsoft/aspire#20943 for release/17.0.

  • Adds C#, TypeScript, and Go AppHost examples, Node worker configuration, host storage and Core Tools requirements, and VS Code debugging guidance.
  • Documents generated and custom Dockerfiles, Azure Container Apps deployment, and considerations for restricted storage/networking policies.
  • Adds the ASPIREAZUREFUNCTIONS001 diagnostic page and sidebar entry. The diagnostic is a C# compiler error; the documented pragma and project NoWarn suppressions were verified.

Updated: azure-functions-host.mdx, reference.topics.ts. Created: aspireazurefunctions001.mdx.

Third-party links and affiliations

None.

Validation

Validated staging CLI 17.0.0+148071e36dbb16c1cad260dedec2496871b6f49a and the matching Aspire VS Code extension; the commit is an ancestor of the tested release/17.0 tip.

  • go build -o /tmp/aspire-nodefuncs-go-doc-20261116/sample apphost.go — passed for the Go documentation example against the staging-generated SDK.
  • ./node_modules/.bin/tsc -p tsconfig.apphost.json --noEmit — passed for the TypeScript documentation example against the staging-generated SDK.
  • dotnet build /tmp/aspire-nodefuncs-17-csharp-20261116/NodeFunctionsCSharp.csproj --no-restore --verbosity quiet — passed; the C# diagnostic and both documented suppression mechanisms were also checked in separate builds.
  • "$CLI" start --apphost "$APPHOST" --non-interactive, followed by "$CLI" wait and curl --fail "$FUNCTION_URL/api/proof?name=$REQUEST_ID" — passed for JavaScript and TypeScript Functions with each of the three AppHost languages. All six VS Code source breakpoints were hit, and all six requests succeeded after continuing. C# used a project-based AppHost; a file-based AppHost debug launch stalled and remains unverified.
  • "$CLI" publish --apphost "$APPHOST" --output-path "$OUTPUT" --non-interactive — passed for all three AppHosts. Azure deployments and HTTPS invocation passed for all six Functions after adapting networking and storage to the subscription's policy; the Go deployment required one retry after a transient subnet update conflict.

Generated by PR Documentation Check for #17980 · copilot · auto · 140.2 AIC · ⌖ 15.9 AIC · ⊞ 20.4K · ◷

- Document AddAzureFunctionsApp, AzureFunctionsAppResource, and
  AzureFunctionsLanguage for directory-based TypeScript/JavaScript
  Functions apps in the Azure Functions Hosting integration page.
- Add the ASPIREAZUREFUNCTIONS001 diagnostic reference page and
  register it in the reference sidebar.
- Document directory-based Functions app Dockerfile publishing and
  Azure Container Apps functionapp kind deployment behavior.

Documents changes from microsoft/aspire#17980

Co-authored-by: Copilot <[email protected]>
@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Oct 13, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

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

VS Code: Open PR #1878 artifacts

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

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

Release-specific API examples and deployment claims still require upstream source verification and example validation.

0 open findings

What changed in this PR

Documents directory-based TypeScript and JavaScript Azure Functions support for Aspire 17.0.

Changes:

  • Adds AppHost examples, host storage guidance, and container deployment behavior.
  • Documents the experimental API diagnostic and suppression options.
  • Registers the diagnostic in the reference sidebar.
File Description
src/​frontend/​src/​content/​docs/​integrations/​cloud/​azure/​azure-functions/​azure-functions-host.mdx Adds directory-based Functions app and deployment guidance.
src/​frontend/​src/​content/​docs/​diagnostics/​aspireazurefunctions001.mdx Explains affected APIs and diagnostic suppression.
src/​frontend/​config/​sidebar/​reference.topics.ts Adds the diagnostic reference link.

🧠 Review effort: Balanced


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

@IEvangelist

Copy link
Copy Markdown
Member

Documentation accuracy review [partial: source claims evaluated; Aspire 17 execution unavailable]

Reviewed PR head 60fc7d7531f71d72e151e57cc43c583eb6fc205d, targeting release/17.0. This is a conversation comment, not an approval or change-request review.

Phase A: microsoft/aspire, matching branch release/17.0, pinned SHA 55867ce9d33c8800e6c7278f7edc5e88e0f6b839. 25 grouped claims: 5 verified, 20 unverifiable, 0 contradicted, 0 verified-with-nuance. The verified group includes document destinations and supplementary compiler-mechanism checks; it is not confirmation of the new Aspire APIs.

Phase B: Independent blind doc-tester browsed both actual PR pages using playwright-cli, including language tabs and desktop/mobile navigation. No critical issue was demonstrated; two warnings concern rendered release-version context and test-environment/capture limitations. Aspire 17 sample execution, Functions startup, publishing, and deployment remain untested. The full frozen tester report follows Phase A.

Phase A - Claim verification

Release-source validation blocker: The matching source branch does not yet contain this feature. Its public contract contains AddAzureFunctionsProject and project-specific overloads, but no AddAzureFunctionsApp, AzureFunctionsAppResource, or AzureFunctionsLanguage. Its exported contract likewise only exposes the project entry point. The feature merge da9f076de522c5638d685e729c2d93ec7d4a0be6 is newer than the pinned branch; the GitHub compare reports the branch 182 commits behind that merge.

Consequently, the new directory-based API, host-storage, Node launch, publishing/deployment, and diagnostic claims cannot be verified against the PR's applicable release branch. Please identify a release-source SHA containing the feature, or synchronize the source release branch before treating this documentation as verified for 17.0. This is absence of release evidence, not a claim that the .NET implementation contradicts directory-based behavior or that the feature is missing from main. Because a matching branch exists, another branch was not substituted as the source of truth.

Pinned evidence:

Unverifiable claims, anchored to changed lines

Host below means src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx; Diagnostic means src/frontend/src/content/docs/diagnostics/aspireazurefunctions001.mdx. All entries below are unverifiable on the pinned release source and refer to microsoft/aspire.

ID PR location Exact claim excerpt / verification target Evidence
A01 Host:347,360; Diagnostic:20,38 AddAzureFunctionsApp("functions", "../functions", AzureFunctionsLanguage.TypeScript) - entry-point signature E1, E3
A02 Host:344; Diagnostic:23 AzureFunctionsAppResource - resource type E1, E3
A03 Host:397; Diagnostic:24 "AzureFunctionsLanguage has two values: TypeScript and JavaScript." - enum/member shape E1
A04 Host:344,401; Diagnostic:21 "WithHostStorage extension method on IResourceBuilder<AzureFunctionsAppResource>" - overload shape E1
A05 Host:361; Diagnostic:22 "WithReference extension method on IResourceBuilder<AzureFunctionsAppResource>" - overload shape E1
A06 Host:372-385 AzureFunctionsLanguage import, builder.addAzureFunctionsApp, and functions.withReference(blob) - generated TypeScript surface E2
A07 Host:347 "Aspire sets FUNCTIONS_WORKER_RUNTIME to node for you" - directory-app worker configuration E3, E4
A08 Host:395 "The path to the Functions app directory is relative to the AppHost project directory." - directory path resolution E4 covers projects only
A09 Host:399 "TypeScript apps are launched through npm run start -- --port <port>" - launch command and prestart behavior E3-E5
A10 Host:399 "JavaScript apps are launched directly with func host start --port <port>." - launch command E3-E5
A11 Host:401 "Aspire provisions an implicit Azure Storage account for host storage by default." - directory-app default storage E4 covers projects only
A12 Host:401 "Call WithHostStorage (or withHostStorage) to use a specific storage account instead" - directory-app storage override behavior E1, E2, E4 cover projects only
A13 Host:399,405-418 "scripts similar to the standard Azure Functions TypeScript template"; "start": "func start", azure-functions-core-tools and TypeScript dependencies - intended directory-app script/dependency contract E5 contains no directory-based template/example; JSON parsing alone does not validate this contract
A14 Host:545 "aspire publish generates one that uses the official Azure Functions Node image, copies the app to /home/site/wwwroot, installs npm dependencies, and (for TypeScript apps) runs npm run build." - generated Dockerfile E3-E5
A15 Host:545 "npm prune --omit=dev so the deployed container keeps only production dependencies." - generated build dependency pruning E3-E5
A16 Host:547 "Aspire uses it as-is instead of generating one" - existing Dockerfile selection E3-E5
A17 Host:549 "kind set to functionapp and the container's HTTP port set to 80" - directory-app ACA configuration E3-E5; the .NET port implementation is not a counterexample
A18 Host:344; Diagnostic:16-24,30 "ASPIREAZUREFUNCTIONS001" / "The following code generates ASPIREAZUREFUNCTIONS001" - experimental annotation, affected API set, and emitted diagnostic E1, E3, E5
A19 Diagnostic:10 "Version introduced: 17.0" - applicable release introduction E1-E6; rendered version-context warning also appears in Phase B
A20 Host:422; Diagnostic:73 "VS Code debugger support ... is not yet available"; "this diagnostic does not apply to addAzureFunctionsApp calls in apphost.mts" - directory-app tooling availability and exposure E2-E5 cannot establish behavior for a surface absent from this ref; the TypeScript/C# distinction is not a successful runtime test
Verified claims and evidence (5 grouped checks)
ID PR location Claim Evidence and scope
A21 Host:344; Diagnostic:26 Existing AddAzureFunctionsProject APIs do not require this new experimental suppression. E1: project entry points and overloads lack the new experimental attribute.
A22 Diagnostic:48-53 #pragma warning disable ASPIREAZUREFUNCTIONS001 / matching restore can suppress that diagnostic ID. Supplementary isolated .NET SDK 10.0.403 compiler probe with a synthetic [Experimental("ASPIREAZUREFUNCTIONS001")] API: baseline emitted the named diagnostic; pragma build emitted zero warnings. This tests the compiler mechanism, not the unavailable Aspire 17 API.
A23 Diagnostic:56-61 dotnet_diagnostic.ASPIREAZUREFUNCTIONS001.severity = none can suppress that ID. Same isolated compiler probe with the exact editorconfig setting: zero warnings; changing severity to default emitted the diagnostic.
A24 Diagnostic:65-70 <NoWarn>$(NoWarn);ASPIREAZUREFUNCTIONS001</NoWarn> suppresses that ID. Same isolated compiler probe, default-severity control versus NoWarn=ASPIREAZUREFUNCTIONS001: one diagnostic versus zero. The build property mechanism is verified, not actual release API emission.
A25 Host:344; Diagnostic:77; sidebar:667-670 Diagnostic and host-page reciprocal destinations exist at the documented routes. Pinned PR contains both pages. Independent Phase B clicked both reciprocal links and both desktop sidebar entries; mobile diagnostic navigation also passed. This does not claim all other links were checked.

No new hard-coded current Aspire package/SDK versions were introduced in the changed copy/paste guidance. The diagnostic's fixed introduction badge is an intentional version-history value. The rendered installation-version mismatch is retained below as a reader-facing warning, not attributed to a hard-coded string in this diff.

Phase B - Independent blind doc-tester report (verbatim)

Documentation Test Report — Phase B

Focus: Independent blind browser testing of microsoft/aspire.dev PR #1878
Date: 2026-10-30
Tester: doc-tester, using playwright-cli exclusively for browsing
Pinned head served: 60fc7d7531f71d72e151e57cc43c583eb6fc205d
PR base: release/17.0

Summary

Category Result
Rendered content Both requested pages loaded; affected sections readable
Content accuracy Product/runtime claims not independently validated
Code examples Language tabs and TypeScript copy button worked; displayed package.json parsed as JSON; no compilation/runtime verification
CLI commands Not executed against Aspire 17
Links/navigation Reciprocal page links, both desktop sidebar entries, mobile diagnostic sidebar, and same-page article anchors passed
Critical findings None demonstrated

This is a browser/reader-experience result, not a factual-accuracy or executable-example sign-off. No microsoft/aspire, CommunityToolkit/Aspire, or Azure/azure-sdk-for-net source was read, and no parent/source-verification findings were received.

Actual environment and routes

Served the exact detached PR head with:

node .\node_modules\astro\bin\astro.mjs dev --host 127.0.0.1 --port 4327

Routes tested:

  • http://127.0.0.1:4327/integrations/cloud/azure/azure-functions/azure-functions-host/
  • http://127.0.0.1:4327/diagnostics/aspireazurefunctions001/
  • Host fragments #typescript-and-javascript-functions-apps and #deploying-typescript-and-javascript-functions-apps.

Setup deviation: A missing-module startup confirmed absent frontend dependencies. The pinned checkout declares pnpm 11.9.0, rather than Bun, so its frozen lockfile was restored once using isolated npx [email protected] install --frozen-lockfile --ignore-scripts, with npm cache and pnpm store under this session's files directory. No global installation or production build was performed. CI run 38908963528 matched the head but its artifacts endpoint returned total_count: 0; no downloadable frontend-dist was available. Direct Astro dev bypassed generating prestart scripts and Aspire orchestration.

Critical Issues

None established by the browser tests. Unavailable Aspire 17 execution is a validation limitation, not evidence that an example or product claim is wrong.

Warnings

W1: Release-version context needs a reader-facing check

Location: Host page, Installation; diagnostic page, version badge.

Observed: The TypeScript installation example displays "Aspire.Hosting.Azure.Functions": "13.6.0", while the linked diagnostic says “Version introduced: 17.0”. The new host section labels the APIs experimental but does not state their minimum Aspire version.

Impact: A reader following the rendered installation example has no explicit explanation of whether that package version supports the new directory-based APIs.

Recommendation: Before publication, ensure release-version substitution matches the intended release and consider stating the feature's minimum version near the new section. This is a visible version-context ambiguity, not a demonstrated API failure. The skill-required, narrow documentation-only placeholder check confirmed %ASPIRE_VERSION% is used; this is not a hard-coded-version finding.

W2: Standalone-dev and capture limitations

Initial dependency optimization produced transient Vite 504 errors. Subsequent direct page loads no longer showed those failures. Standalone dev also produced /api/live/ and /api/live/stream/ 404s and a live-status warning without the StaticHost backend. These were not attributed to the PR.

Some deep-scroll screenshot captures were blank or partially painted despite readable snapshots, visible DOM elements, and successful hit-testing. Fresh direct loading produced a usable mobile capture of the new Functions section and a desktop capture of deployment text. Mobile deployment visual appearance is therefore not certified from the blank captures.

Passed Checks

  • Both requested URLs loaded directly with the expected titles and headings.
  • The new directory-based section rendered its experimental warning, both AppHost language examples, relative-directory explanation, Node-worker explanation, startup commands, package.json snippet, host-storage cross-reference, and debugger limitation.
  • Switching C# and TypeScript tabs changed the displayed examples. The C# sample visibly included matching disable/restore directives for ASPIREAZUREFUNCTIONS001.
  • The TypeScript copy button copied the import, addAzureFunctionsApp call, and resource reference. The displayed package.json parsed successfully; this does not prove its dependencies or application are runnable.
  • The deployment subsection displayed generated-Dockerfile behavior, existing-Dockerfile behavior, dependency pruning, functionapp, and port 80 coherently as prose.
  • Clicking the experimental-warning link reached the diagnostic; its See also link returned to the host page.
  • The diagnostic rendered its version badge, affected API list, example, three suppression approaches, TypeScript exemption, and See also section.
  • Both desktop sidebar entries resolved to the intended pages. On mobile, opening Menu exposed ASPIREAZUREFUNCTIONS001; selecting it kept the correct route and closed Menu.
  • Checked same-page article fragment targets existed on both pages. Reciprocal content links were site-relative with trailing slashes.
  • At 390 px, both documents had a measured document width of 390 px, without page-level horizontal overflow. The stable mobile new-section and diagnostic screenshots showed readable wrapped content.

Knowledge Gaps

What a reader still needs: An existing working Functions app at ../functions, an initialized AppHost, npm/TypeScript configuration and function code, and the appropriate local Core Tools installation for the selected Functions language.

Knowledge source: These prerequisites were not supplied from intrinsic knowledge to make a test pass. No missing scaffolding was invented and no sample application was executed.

Assessment: Assuming an existing project is reasonable for this explicitly labeled reference page, which links a Get started guide. That guide was outside this restricted test scope, so its coverage of these prerequisites remains unverified.

Recommendations and Remaining Validation

  1. Reconcile or explain the displayed package-version context before publication.
  2. With the intended Aspire 17 build, literally execute the C# and TypeScript AppHost samples, verify diagnostic emission/suppression, and test TypeScript and JavaScript Functions startup.
  3. Execute aspire publish with and without a Dockerfile; inspect generated artifacts and test deployment separately. None of these behaviors was runtime-validated here.
  4. Validate other internal/external destinations and the prerequisite tutorial in a broader pass. Only the two requested pages and their scoped navigation interactions were browsed; full-site link validation, the diagnostics-overview target anchor, NuGet availability, cloud deployment, and debugger behavior were not tested.

The installed Aspire CLI is 13.4.0, not 17.0. It was not used as evidence for Aspire 17 behavior.

Evidence and Cleanup

Evidence is under this session's files directory: phase-b-host-initial.yml, phase-b-host-csharp.yml, phase-b-diagnostic.yml, phase-b-diagnostic-mobile-menu.yml, phase-b-copy-json-checks.txt, phase-b-host-new-section-mobile-direct.png, phase-b-diagnostic-desktop.png, phase-b-diagnostic-mobile.png, and phase-b-server.log.

Only the Phase B browser and server were stopped. Port 4327 had no listener and Test-NetConnection returned False. Astro's icon integration automatically rewrote four tracked generated icon files during startup; those outputs were restored. The original branch ievangelist-review-azure-functions-release-docs and original HEAD f05f5561b1b858344124cd848ff06469627d7e6e were restored; final git status --short was empty. No authored repository edits, commits, pushes, comments, reviews, or publication were made.

@IEvangelist

Copy link
Copy Markdown
Member

Code review

Reviewed the four-line sidebar registration in src/frontend/config/sidebar/reference.topics.ts:667-670 at head 60fc7d7531f71d72e151e57cc43c583eb6fc205d, base release/17.0, after the documentation report. This publishes the already-completed code review; no review rerun was performed.

No actionable code findings. The entry matches the existing typed sidebar structure, its label and unique target match the new diagnostic page, and the topic is included in the exported sidebar configuration. Documentation prose and examples were handled separately in the docs report.

Coverage and limits: The independent browser pass at this exact PR head confirmed desktop and mobile diagnostic-sidebar navigation. This is a static entry using the existing renderer, with no new rendering or interaction logic. No automated unit/e2e suite, tablet-specific check, or axe-core audit was run; this is not an accessibility or full-site regression certification. No production build was run. This conversation comment is not an approval or change-request review.

@IEvangelist David Pine (IEvangelist) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[partial - phase A: 21 of 21 non-narrative contracts evaluated; phase B: available source-blind browser testing complete, compatible Functions runtime/publishing unverified]

Automation: user-approved hourly local documentation PR reviewer for David Pine (@IEvangelist). This is its single combined report for this PR, including partial reviews; it will not automatically repeat after later commits.
Inspected head: 60fc7d7531f71d72e151e57cc43c583eb6fc205d; target release/17.0 at 1080319c049894e3b96436a694e98027ea3f123c. All three changed files and all 177 added lines were read. Documentation accuracy/user experience only, not standard code review.
Trusted policy: default-branch doc-pr-reviewer, doc-tester, playwright-cli and relevant Astro/TypeScript guidance at 9bf972c559d50ab5fdc73f0da5318959aa6be757. Native reviewer registration was unavailable; the trusted file workflow was invoked as doc-pr-reviewer https://github.com/microsoft/aspire.dev/pull/1878. PR-head policy was not authoritative.
Owning product source: microsoft/aspire / release/17.0 / 55867ce9d33c8800e6c7278f7edc5e88e0f6b839, matching the PR target exactly and fetched/pinned read-only. Source/API content from the linked main-branch change was not substituted. No Toolkit or Azure SDK API definition is introduced by this diff requiring a separate owning-source lookup.
Website-only evidence: microsoft/aspire.dev at inspected head 60fc7d7531f71d72e151e57cc43c583eb6fc205d establishes declarations/routes/headings, not product API correctness.

Claim counts: 22 explicit contract groups: 2 verified, 0 verified-with-nuance, 0 contradicted, 19 unverifiable, 1 narrative; 0 not evaluated. The 21 non-narrative groups include all new prose, code samples, configuration snippets, package ranges and cross-reference declarations. Groups preserve enumerated subassertions and duplicate locations; passing primitive calls do not certify a sample that calls the missing directory-app API.
Independent Phase B: two affected pages, scoped host-storage/editorconfig/prerequisite cross-references, reference sidebar, desktop/mobile tabs/TOC/readability, clipboard and real Markdown new tabs: 25 passed, 0 failed, 0 critical issues, 3 warnings (2 execution-capability gaps, 1 low-severity existing-Functions-app prerequisite/teaching gap). Frontend passes do not establish compilation, runtime behavior or publishing/deployment correctness. The full report preserves incidental observations without unsupported PR attribution.

Why this is partial, not approval

The matching source pin exports the existing project-based APIs, but its complete Functions C# and ATS contracts, owning implementation and whole-source searches do not contain AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource, AzureFunctionsLanguage or ASPIREAZUREFUNCTIONS001. The branch therefore cannot establish the new directory-app/diagnostic/Node-worker/publishing contract. Linked PR #17980 metadata records a merge to main, not proof of this release branch. Source absence is reported as unverifiable, not as evidence that the feature on another ref is incorrect.

The independent browser walkthrough cannot replace compatible target-version example compilation, Functions Core Tools launch, generated Dockerfile inspection or ACA publishing/deployment verification. Those checks must not be inferred from a successfully rendered docs page. No full-site build, source build, AppHost runtime, container startup, cloud provisioning, certificate/trust changes, remote branch mutation or arbitrary PR hooks were used to manufacture a pass. Incomplete required validation results in this explicitly labeled partial COMMENT, never approval.

Phase A - frozen owning-source verification

The authoritative C# API and ATS export contract expose AddAzureFunctionsProject, not the new directory-app surface. The existing project implementation setting FUNCTIONS_WORKER_RUNTIME=dotnet-isolated and port 8080 is not misreported as a direct contradiction of the separate, missing directory-resource implementation.

The review carries one inline finding per unverifiable grouped contract, with exact current-head anchors. Multiple contracts in a shared sentence have distinct findings. The complete catalog and its grouped subassertions follow.

C01 - The package exposes the five listed directory-app APIs/types for TypeScript/JavaScript Functions apps without a .NET project, introduced in 17.0.

Verdict: unverifiable. Location: src/frontend/src/content/docs/diagnostics/aspireazurefunctions001.mdx:18-24. Type: api-shape.

This diagnostic warning is reported when using the experimental directory-based Azure Functions app APIs in the `Aspire.Hosting.Azure.Functions` package. These APIs let you model a TypeScript or JavaScript Azure Functions app — one that has no .NET project file — as a resource in your AppHost. The following APIs are affected:

- `AddAzureFunctionsApp` extension method on `IDistributedApplicationBuilder`
- `WithHostStorage` extension method on `IResourceBuilder<AzureFunctionsAppResource>`
- `WithReference` extension method on `IResourceBuilder<AzureFunctionsAppResource>`
- `AzureFunctionsAppResource` class
- `AzureFunctionsLanguage` enum

Included checks: AddAzureFunctionsApp(IDistributedApplicationBuilder,...); WithHostStorage(IResourceBuilder,...); WithReference(IResourceBuilder,...); AzureFunctionsAppResource; AzureFunctionsLanguage; No .NET project required; Introduced in 17.0.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches.

Repeated/related new locations: src/frontend/src/content/docs/diagnostics/aspireazurefunctions001.mdx:2-4, src/frontend/src/content/docs/diagnostics/aspireazurefunctions001.mdx:10-10, src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:102-104, src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:344-347.

C02 - Directory-app APIs emit experimental diagnostic ASPIREAZUREFUNCTIONS001 requiring opt-in suppression.

Verdict: unverifiable. Location: src/frontend/src/content/docs/diagnostics/aspireazurefunctions001.mdx:16-18. Type: api-behavior.

> Directory-based Azure Functions app APIs are for evaluation purposes only and are subject to change or removal in future updates. Suppress this diagnostic to proceed.

This diagnostic warning is reported when using the experimental directory-based Azure Functions app APIs in the `Aspire.Hosting.Azure.Functions` package. These APIs let you model a TypeScript or JavaScript Azure Functions app — one that has no .NET project file — as a resource in your AppHost. The following APIs are affected:

Included checks: Experimental attribute/diagnostic ID; Evaluation-only warning; Suppression required.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches. No Experimental("ASPIREAZUREFUNCTIONS001") attribute or diagnostic declaration was located. docs/list-of-diagnostics.md likewise has no entry; absence there alone is not the basis for this verdict.

Repeated/related new locations: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:343-345.

C03 - Directory-based apps use Node worker runtime and Aspire sets FUNCTIONS_WORKER_RUNTIME=node.

Verdict: unverifiable. Location: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:347-347. Type: config-key.

Use `AddAzureFunctionsApp` (or `addAzureFunctionsApp`) to model a TypeScript or JavaScript Azure Functions app that does not have a .NET project file. Directory-based apps run on the Azure Functions Node language worker — Aspire sets `FUNCTIONS_WORKER_RUNTIME` to `node` for you:

Included checks: Node language worker; FUNCTIONS_WORKER_RUNTIME exact key; node exact value.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches. microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/AzureFunctionsProjectResourceExtensions.cs:122-132 creates AzureFunctionsProjectResource; :134-233 handles project-based setup; :216 explicitly sets dotnet-isolated for that resource. This is not a contrary Node setting for the missing directory-app resource.

C04 - AzureFunctionsLanguage has exactly TypeScript and JavaScript values, both using Node.

Verdict: unverifiable. Location: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:397-397. Type: api-shape.

1. `AzureFunctionsLanguage` has two values: `TypeScript` and `JavaScript`. Both run on the Node language worker.

Included checks: TypeScript enum member; JavaScript enum member; Exactly two values; Both Node workers.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches.

C05 - The directory-app path is interpreted relative to the AppHost project directory.

Verdict: unverifiable. Location: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:395-395. Type: api-behavior.

1. The path to the Functions app directory is relative to the AppHost project directory.

Included checks: Directory-app relative path base.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches. Existing projectPath normalization at AzureFunctionsProjectResourceExtensions.cs:128 cannot establish path handling for the absent AddAzureFunctionsApp overload.

C06 - TypeScript Functions launch via npm run start -- --port , allowing prestart to build and resolving local Core Tools.

Verdict: unverifiable. Location: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:399-399. Type: cli-surface.

1. TypeScript apps are launched through `npm run start -- --port <port>`, so the standard Azure Functions Core Tools-generated `prestart` script can build the app before the host starts. The `start` script should resolve Azure Functions Core Tools from the app's local npm dependencies, for example by depending on the `azure-functions-core-tools` package in `devDependencies`. JavaScript apps are launched directly with `func host start --port <port>`.

Included checks: npm executable; run start arguments; -- --port forwarding; prestart lifecycle used; Local azure-functions-core-tools resolution.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches. microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/AzureFunctionsProjectResourceExtensions.cs:122-132 creates AzureFunctionsProjectResource; :134-233 handles project-based setup; :216 explicitly sets dotnet-isolated for that resource. This is not a contrary Node setting for the missing directory-app resource. No directory TypeScript npm launch/configuration exists in the owning source at this pin.

C07 - JavaScript directory apps launch directly with func host start --port .

Verdict: unverifiable. Location: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:399-399. Type: cli-surface.

1. TypeScript apps are launched through `npm run start -- --port <port>`, so the standard Azure Functions Core Tools-generated `prestart` script can build the app before the host starts. The `start` script should resolve Azure Functions Core Tools from the app's local npm dependencies, for example by depending on the `azure-functions-core-tools` package in `devDependencies`. JavaScript apps are launched directly with `func host start --port <port>`.

Included checks: func executable; host start arguments; --port forwarding.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches. The existing project-based func prerequisite at AzureFunctionsProjectResourceExtensions.cs:196-200 is not a directory JavaScript launcher.

C08 - Directory apps get implicit host storage and app-specific WithHostStorage/withHostStorage can override it.

Verdict: unverifiable. Location: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:401-401. Type: api-behavior.

1. As with .NET Functions projects, Aspire provisions an implicit Azure Storage account for host storage by default. Call `WithHostStorage` (or `withHostStorage`) to use a specific storage account instead — see [Add Azure Functions resource with host storage](#add-azure-functions-resource-with-host-storage).

Included checks: Implicit host Azure Storage; C# app-specific override; TypeScript app-specific override.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches. Project-only default storage is implemented at AzureFunctionsProjectResourceExtensions.cs:139-157,186 and project-only override at :322-329; it cannot be extrapolated to AzureFunctionsAppResource.

C09 - The shown C# AppHost snippet can add a directory TypeScript Functions app and reference the blob resource after suppression.

Verdict: unverifiable. Location: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:352-366. Type: api-shape.

```csharp title="AppHost.cs"
#pragma warning disable ASPIREAZUREFUNCTIONS001

var builder = DistributedApplication.CreateBuilder(args);

var storage = builder.AddAzureStorage("storage").RunAsEmulator();
var blob = storage.AddBlobs("blob");

builder.AddAzureFunctionsApp("functions", "../functions", AzureFunctionsLanguage.TypeScript)
    .WithReference(blob);

builder.Build().Run();

#pragma warning restore ASPIREAZUREFUNCTIONS001
```

Included checks: CreateBuilder; Storage emulator/blob chaining; AddAzureFunctionsApp arguments; AzureFunctionsLanguage.TypeScript; WithReference(blob); Build/Run; Diagnostic pragma pair.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches.

Repeated/related new locations: src/frontend/src/content/docs/diagnostics/aspireazurefunctions001.mdx:32-42.

C10 - Generated aspire.mjs exports AzureFunctionsLanguage and an awaited addAzureFunctionsApp/withReference flow as shown.

Verdict: unverifiable. Location: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:371-388. Type: api-shape.

```typescript title="apphost.mts"
import { AzureFunctionsLanguage, createBuilder } from './.aspire/modules/aspire.mjs';

const builder = await createBuilder();

const storage = await builder.addAzureStorage("storage");
await storage.runAsEmulator();
const blob = await storage.addBlobs("blob");

const functions = await builder.addAzureFunctionsApp(
    "functions",
    "../functions",
    AzureFunctionsLanguage.TypeScript
);
await functions.withReference(blob);

// After adding all resources, run the app...
```

Included checks: aspire.mjs enum import; createBuilder import; Storage and blob calls; addAzureFunctionsApp signature; Enum argument; withReference(blob).

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches. The pinned ATS contract lists addAzureFunctionsProject, not addAzureFunctionsApp, and no AzureFunctionsLanguage handle/export. Correctness of ordinary awaited storage calls cannot certify this entire new sample.

C11 - The displayed package.json scripts and Core Tools/TypeScript devDependencies provide the documented directory-app startup/build contract.

Verdict: unverifiable. Location: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:405-419. Type: package-or-version.

A directory-based Functions app's `package.json` should include scripts similar to the standard Azure Functions TypeScript template:

```json title="package.json"
{
  "scripts": {
    "build": "tsc",
    "prestart": "npm run build",
    "start": "func start"
  },
  "devDependencies": {
    "azure-functions-core-tools": "^4.0.0",
    "typescript": "^5.0.0"
  }
}
```

Included checks: build=tsc; prestart=npm run build; start=func start; azure-functions-core-tools ^4.0.0; typescript ^5.0.0.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches. microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/AzureFunctionsProjectResourceExtensions.cs:122-132 creates AzureFunctionsProjectResource; :134-233 handles project-based setup; :216 explicitly sets dotnet-isolated for that resource. This is not a contrary Node setting for the missing directory-app resource. The source branch supplies no directory Functions npm template/package contract to compare. npm/Core Tools/TypeScript package behavior was not inferred from unrelated Node app support or unexecuted packages.

C12 - VS Code directory-app debugging support is tracked separately and is not yet available in this release.

Verdict: unverifiable. Location: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:421-423. Type: api-behavior.

<Aside type="note">
  VS Code debugger support for directory-based Functions apps is tracked separately from this release and is not yet available.
</Aside>

Included checks: Directory-specific debugging availability; Separate follow-up/release scope.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches. Existing project-based debug configuration appears at AzureFunctionsProjectResourceExtensions.cs:188-194,445-454. Searches find project_path-based extension support, not a directory resource. Neither linked future work nor absence of the entire API establishes the precise release-timing promise.

C13 - aspire publish generates the specified Functions Node Dockerfile when none exists, with copy/install/build/prune behavior.

Verdict: unverifiable. Location: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:545-545. Type: api-behavior.

When a directory-based Functions app doesn't already contain a `Dockerfile`, `aspire publish` generates one that uses the official Azure Functions Node image, copies the app to `/home/site/wwwroot`, installs npm dependencies, and (for TypeScript apps) runs `npm run build`. After the build step, Aspire runs `npm prune --omit=dev` so the deployed container keeps only production dependencies.

Included checks: aspire publish trigger; Only absent Dockerfile; Official Azure Functions Node image; COPY /home/site/wwwroot; Install npm dependencies; TypeScript npm run build; Post-build npm prune --omit=dev; Only production dependencies remain.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839: complete owning Functions implementation/API lacks the directory resource and its Dockerfile publishing path. Whole-src search for /home/site/wwwroot, mcr.microsoft.com/azure-functions/node and npm prune --omit=dev returns no matches. Existing generic Docker/Node support is not evidence that these exact Functions-specific transformations execute.

C14 - An existing Functions-app Dockerfile is used as-is rather than replaced by the generator.

Verdict: unverifiable. Location: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:547-547. Type: api-behavior.

If the Functions app directory already contains a `Dockerfile`, Aspire uses it as-is instead of generating one — use this to select a different Azure Functions Node image, pin a Node version, or add project-specific build steps.

Included checks: Existing Dockerfile detection; Use as-is; Override image/Node version/build steps.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839: complete owning Functions implementation/API lacks the directory resource and its Dockerfile publishing path. Whole-src search for /home/site/wwwroot, mcr.microsoft.com/azure-functions/node and npm prune --omit=dev returns no matches. Existing generic Docker/Node support is not evidence that these exact Functions-specific transformations execute.

C15 - Directory Functions resources deployed to ACA receive container-app kind=functionapp.

Verdict: unverifiable. Location: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:549-549. Type: api-behavior.

When deployed to Azure Container Apps, directory-based Functions resources are published with the container app `kind` set to `functionapp` and the container's HTTP port set to `80`, matching the shape of the Azure Functions Node host image.

Included checks: Directory resource annotation/path; kind exact property; functionapp exact value.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches. src/Aspire.Hosting.Azure.AppContainers/ContainerAppContext.cs:134-138 sets ContainerAppKind.Functionapp only for resources carrying AzureFunctionsAnnotation. Project resources receive that annotation at AzureFunctionsProjectResourceExtensions.cs:192. The missing directory resource cannot be shown to carry it.

C16 - Directory Functions deployment uses HTTP port 80 matching the Node host image.

Verdict: unverifiable. Location: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx:549-549. Type: api-behavior.

When deployed to Azure Container Apps, directory-based Functions resources are published with the container app `kind` set to `functionapp` and the container's HTTP port set to `80`, matching the shape of the Azure Functions Node host image.

Included checks: Directory container HTTP port 80; Node host image compatibility.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches. Existing project publish endpoints use 8080 at AzureFunctionsProjectResourceExtensions.cs:258-265. These are different resource types, so this is not reported as a direct contradiction of the claimed directory-app port.

C17 - The unsuppressed C# sample generates ASPIREAZUREFUNCTIONS001.

Verdict: unverifiable. Location: src/frontend/src/content/docs/diagnostics/aspireazurefunctions001.mdx:30-42. Type: api-behavior.

The following code generates `ASPIREAZUREFUNCTIONS001`:

```csharp title="AppHost.cs"
var builder = DistributedApplication.CreateBuilder(args);

var storage = builder.AddAzureStorage("storage").RunAsEmulator();
var blob = storage.AddBlobs("blob");

builder.AddAzureFunctionsApp("functions", "../functions", AzureFunctionsLanguage.TypeScript)
    .WithReference(blob);

builder.Build().Run();
```

Included checks: Unsuppressed sample diagnostic identity; New method/type/enum availability.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches. The missing method/type/enum and absent diagnostic attribute prevent evidence that this sample produces the documented experimental warning rather than missing-symbol diagnostics.

C18 - Pragma, editorconfig severity=none and NoWarn permit use of this experimental API as shown.

Verdict: unverifiable. Location: src/frontend/src/content/docs/diagnostics/aspireazurefunctions001.mdx:46-71. Type: config-key.

Suppress the warning with any of the following methods:

- Add a `#pragma warning disable` directive in the source file where the API is used:

  ```csharp title="AppHost.cs"
  #pragma warning disable ASPIREAZUREFUNCTIONS001
  builder.AddAzureFunctionsApp("functions", "../functions", AzureFunctionsLanguage.TypeScript);
  #pragma warning restore ASPIREAZUREFUNCTIONS001
  ```

- Set the severity of the rule in the _.editorconfig_ file:

  ```ini title=".editorconfig"
  [*.{cs,vb}]
  dotnet_diagnostic.ASPIREAZUREFUNCTIONS001.severity = none
  ```

  For more information about editor config files, see [Configuration files for code analysis rules](/diagnostics/overview/#suppress-in-the-editorconfig-file).

- Add the following `PropertyGroup` to your project file:

  ```xml title="C# project file"
  <PropertyGroup>
      <NoWarn>$(NoWarn);ASPIREAZUREFUNCTIONS001</NoWarn>
  </PropertyGroup>
  ```

Included checks: #pragma warning disable/restore ASPIREAZUREFUNCTIONS001; [*.{cs,vb}] dotnet_diagnostic.ASPIREAZUREFUNCTIONS001.severity=none; $(NoWarn);ASPIREAZUREFUNCTIONS001.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches. This verdict concerns applicability to the absent API/diagnostic, not a claim that the generic pragma/editorconfig/MSBuild syntax is invalid. No target-version compiler execution was performed.

C19 - TypeScript AppHosts have no C# compiler, so the diagnostic does not apply to addAzureFunctionsApp calls.

Verdict: unverifiable. Location: src/frontend/src/content/docs/diagnostics/aspireazurefunctions001.mdx:73-73. Type: api-behavior.

<Badge text="TypeScript AppHost" variant="note" size="medium" class:list={'mb-1'} /> The TypeScript AppHost does not have a C# compiler, so this diagnostic does not apply to `addAzureFunctionsApp` calls in `apphost.mts`.

Included checks: TypeScript compiler statement; Diagnostic non-applicability for exported call.

Evidence: microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/api/Aspire.Hosting.Azure.Functions.cs:10-29 exports only project-based AddAzureFunctionsProject/WithHostStorage/WithReference; the complete generated C# and ATS contracts contain no AddAzureFunctionsApp/addAzureFunctionsApp, AzureFunctionsAppResource or AzureFunctionsLanguage. A pinned whole-src/tests/docs search for all four symbols/diagnostic returns exit 1, no matches. The current ATS surface has no addAzureFunctionsApp capability. Absence of a new Experimental attribute/export cannot establish its intended TypeScript diagnostic behavior or justify the broad compiler statement.

Verified / verified-with-nuance entries and narrative context

C20 - The existing AddAzureFunctionsProject APIs do not require ASPIREAZUREFUNCTIONS001 suppression.

verified - src/frontend/src/content/docs/diagnostics/aspireazurefunctions001.mdx:26-26.

These APIs are pending API review and may change shape, or be removed, before becoming generally available (GA). The existing .NET project APIs, such as `AddAzureFunctionsProject`, are unaffected and do not require this suppression.

microsoft/aspire 55867ce9d33c8800e6c7278f7edc5e88e0f6b839 src/Aspire.Hosting.Azure.Functions/AzureFunctionsProjectResourceExtensions.cs:63-72,120-132 and api/Aspire.Hosting.Azure.Functions.cs:12-29: project methods carry AspireExport/AspireExportIgnore, not that Experimental attribute. Complete owning package contains no such diagnostic.

Included checks: Existing project API remains present; No new experimental suppression on project overloads.

C21 - New diagnostic/sidebar and the new cross-reference declarations target actual docs pages and headings.

verified - src/frontend/config/sidebar/reference.topics.ts:667-670.

            {
              label: 'ASPIREAZUREFUNCTIONS001',
              link: '/diagnostics/aspireazurefunctions001',
            },

microsoft/aspire.dev 60fc7d7: reference.topics.ts:667-670 declares the new route; diagnostic file exists; diagnostic:63 targets overview.mdx heading "Suppress in the .editorconfig file"; diagnostic:77 targets the existing Functions-host route; host:103 targets new heading:341; host:344 targets the diagnostic; host:401 targets existing heading "Add Azure Functions resource with host storage". These are website-source declarations only; actual rendered navigation belongs to independent Phase B.

Included checks: Sidebar diagnostic entry; New section same-page pointer; Diagnostic from integration; Host-storage heading; Editorconfig overview heading; Integration return link.

C22 - Pending API review and potential future change/removal are forward-looking evaluation cautions, not current implementation guarantees.

narrative - src/frontend/src/content/docs/diagnostics/aspireazurefunctions001.mdx:26-26.

These APIs are pending API review and may change shape, or be removed, before becoming generally available (GA). The existing .NET project APIs, such as `AddAzureFunctionsProject`, are unaffected and do not require this suppression.

No current implementation verdict is inferred from planned API review or future GA language. The actual Experimental attribute claim is separately evaluated as C02.

Included checks: Pending review; Possible future shape/removal.

Current-version placeholders: the new “Version introduced: 17.0” badge intentionally records diagnostic history. Core Tools ^4.0.0 and TypeScript ^5.0.0 are third-party package ranges, not hard-coded current Aspire versions. No placeholder finding is asserted.

Phase B received no product source, Phase A findings or owning-source conclusions. Its report is preserved verbatim below, including all runtime gaps and the limits of its frontend observations.

Phase B - independent source-blind doc-tester report (complete available report)

Documentation Test Report

Focus Area: Independent, source-blind Phase B for #1878 — directory-based TypeScript/JavaScript Azure Functions documentation.
Date: 2026-11-03 UTC (2026-11-02 local).
Tester: doc-tester agent, following the trusted repository doc-pr-reviewer Phase B and playwright-cli skills.
PR head served: 60fc7d7531f71d72e151e57cc43c583eb6fc205d.
Target branch supplied: release/17.0.
Local server: http://localhost:4321/, already running and parent-owned.
Policy revision: 9bf972c559d50ab5fdc73f0da5318959aa6be757.
Evidence directory: This report's directory, outside the checkout.

Summary

Category Passed Failed Warnings
Content Accuracy — rendered coverage and clarity only 5 0 1
Code Examples — display/copy/JSON checks only 7 0 1
CLI Commands — execution 0 0 1
Links — affected navigation groups 9 0 0
Presentation and document controls 4 0 0
Total 25 0 3

Critical issues: 0. Proven PR-introduced defects: 0. All feasible scoped frontend checks completed. Two warnings are explicit execution-capability gaps, not documentation failures. One is a low-severity new-user prerequisite/teaching gap. Rendering, copying, and parsing do not establish product behavior, successful compilation, or deployment correctness.

Counts represent the numbered checks below, not every click, snippet line, or individual URL.

Scope and independence

Inputs were the supplied changed-files artifact and locally rendered documentation. The artifact identifies:

  • src/frontend/config/sidebar/reference.topics.ts
  • src/frontend/src/content/docs/diagnostics/aspireazurefunctions001.mdx
  • src/frontend/src/content/docs/integrations/cloud/azure/azure-functions/azure-functions-host.mdx

The checkout HEAD was verified before and after testing. No checkout, repository edits, product implementation/source/tests, Phase A output, or previous review reports were used. The changed MDX files were scanned only for version-placeholder checks; other content was read through the browser. Trusted policy and browser configuration were read separately.

Browser interaction used only global playwright-cli, session -s=pr1878, from this evidence directory, with the checkout's absolute .playwright\cli.config.json selecting Microsoft Edge. No other browser tooling was used. Tests covered initial loads, client-side link navigation, tabs, clipboard actions, new tabs, desktop 1440×1000, and mobile 375×812.

Routes and sections exercised

  1. /integrations/cloud/azure/azure-functions/azure-functions-host/
    • Existing installation/project-constraint context and newly added pointer.
    • #typescript-and-javascript-functions-apps: experimental caution, C#/TypeScript AppHost tabs, app-directory path explanation, language selection, npm/Core Tools explanation, scripts JSON, storage cross-reference, debugger limitation.
    • #deploying-typescript-and-javascript-functions-apps: generated Dockerfile, pre-existing Dockerfile, and Azure Container Apps paragraphs.
    • #add-azure-functions-resource-with-host-storage: linked prerequisite section.
  2. /diagnostics/aspireazurefunctions001/
    • Introduction/version badge/API list, #example, #to-correct-this-warning, and See also.
    • New Reference → Diagnostics → Warnings sidebar entry.
  3. Necessary scoped cross-references:
    • /diagnostics/overview/#suppress-in-the-editorconfig-file
    • /integrations/cloud/azure/azure-functions/azure-functions-get-started/ — linked setup context only.
  4. Browser-opened Markdown views:
    • /diagnostics/aspireazurefunctions001.md
    • /integrations/cloud/azure/azure-functions/azure-functions-host.md

Critical Issues

None established by this source-blind frontend run. No claim is made that the APIs, experimental diagnostic, local execution, generated Dockerfile, or Azure deployment were validated against runtime behavior.

Warnings

Warning 1: Version-17 code and experimental-diagnostic behavior were not compiled or run

Location: Integration #typescript-and-javascript-functions-apps; diagnostic Example and suppression sections.
Type: Execution-capability gap, not a proven defect.

What the documentation says:

“Directory-based apps run on the Azure Functions Node language worker — Aspire sets FUNCTIONS_WORKER_RUNTIME to node for you”

“The following code generates ASPIREAZUREFUNCTIONS001:”

“The TypeScript AppHost does not have a C# compiler, so this diagnostic does not apply to addAzureFunctionsApp calls in apphost.mts.”

What was actually established: Both AppHost examples, the package JSON, the diagnostic-generating sample, and all three suppression snippets render and copy. The JSON parses. No compile/run or diagnostic emission/suppression outcome was established.

Blocker: The supplied environment has CLI 13.4.0, which does not establish availability of the documented version-17 feature. No compatible version-17 fixture was supplied. Installing dependencies, starting containers/AppHosts, and provisioning were outside the authorized safe scope. No attempt was made to substitute the older CLI as proof.

Unexecuted examples/claims: C# and TypeScript AppHost execution; JavaScript language variant; npm run start -- --port <port> and func host start --port <port> behavior; build/prestart lifecycle; Core Tools resolution; host-storage/resource injection; emulator behavior; actual ASPIREAZUREFUNCTIONS001 generation and pragma/editorconfig/NoWarn suppression.

Evidence: copied-apphost-csharp.txt, copied-apphost-typescript.txt, copied-package-json.txt, diagnostic-copied-examples.txt, and the corresponding browser snapshots. These are clipboard/display evidence only.

Recommendation: Test the verbatim examples in a separately authorized version-17 environment with an existing Functions application and isolated dependencies; verify both AppHost languages and diagnostic outcomes before describing runtime testing as passed.

Warning 2: Publishing and Azure deployment claims remain unexecuted

Location: Integration #deploying-typescript-and-javascript-functions-apps.
Type: Execution-capability gap, not a proven defect.

What the documentation says:

“When a directory-based Functions app doesn’t already contain a Dockerfile, aspire publish generates one that uses the official Azure Functions Node image, copies the app to /home/site/wwwroot, installs npm dependencies, and (for TypeScript apps) runs npm run build.”

“After the build step, Aspire runs npm prune --omit=dev so the deployed container keeps only production dependencies.”

“When deployed to Azure Container Apps, directory-based Functions resources are published with the container app kind set to functionapp and the container’s HTTP port set to 80, matching the shape of the Azure Functions Node host image.”

What was actually established: All deployment paragraphs display, and the desktop/mobile TOC links resolve to the correct heading. No generated artifact, image, live container, or Azure resource was examined.

Blocker: No compatible version-17 publishing fixture; no authorized dependency installation, container startup, resource provisioning, or deployment. aspire publish, aspire deploy, npm scripts, image builds, and Azure operations were not executed.

Evidence: deployment-anchor-mobile.txt, integration-desktop-toc-deployment.txt, deployment-mobile.png, deployment-desktop.png.

Recommendation: In a separate safe fixture, test absent/present-Dockerfile cases, build/prune behavior, and emitted Container Apps kind/port before claiming deployment validation. Actual Azure deployment needs separate authorization and resources.

Warning 3 / Knowledge Gap: A pre-existing Functions app is assumed rather than created

Location: Integration #typescript-and-javascript-functions-apps; linked Get started guide.
Type: Low-severity teaching/prerequisite gap, not a demonstrated product or code defect.

What the documentation says:

“The path to the Functions app directory is relative to the AppHost project directory.”

“A directory-based Functions app’s package.json should include scripts similar to the standard Azure Functions TypeScript template:”

The samples reference ../functions.

What I needed to know: How a first-time reader obtains the existing TypeScript/JavaScript Functions application/template to place at that path. The section provides the AppHost wiring and scripts fragment, not a complete application-creation recipe. The linked local Get started guide explains the integration model and routes readers back to this reference, but does not supply that recipe.

Source of knowledge: Only those rendered pages. I did not silently supply a scaffolding command, file list, or presumed template contents from prior knowledge.

User impact: An existing-Functions-app owner can use this as a reference. A new user attempting to start from an empty directory cannot treat the shown scripts JSON as a complete runnable Functions application.

Recommendation: Add a short “existing TypeScript/JavaScript Azure Functions app” prerequisite and a direct template/creation-guide link, or explicitly clarify that application scaffolding is out of scope. This is an improvement recommendation; a reference article need not become a full tutorial.

Evidence: integration-rendered.txt, prerequisites-rendered.txt, prerequisites-getstarted.yml.

Passed Checks

Content Accuracy — rendered coverage and clarity only (5)

  1. C1: The new directory-based section, the earlier .NET-project pointer, and the new deployment subsection are present and readable in their expected contexts. Evidence: integration-rendered.txt, integration-typescript.yml, deployment-anchor-mobile.txt.
  2. C2: The integration caution explicitly names the experimental APIs, gives the C# opt-in diagnostic/directive, and states existing .NET project APIs are unaffected. Evidence: integration-desktop.png, integration-mobile-changed-section.png.
  3. C3: The diagnostic displays “Version introduced: 17.0”, lists the five affected API surfaces, explains the .NET-project exception, and distinguishes TypeScript AppHost from C# suppression. This checks displayed guidance, not compiler behavior. Evidence: main-diagnostic.txt, diagnostic-desktop.yml.
  4. C4: The section explains relative app paths, the two language values, local start-script expectations, host-storage reuse, scripts, and the debugger caveat; all three deployment paragraphs are visible. Evidence: integration-rendered.txt, deployment-mobile.png.
  5. C5: The permitted placeholder-only scan found the existing current package reference uses %ASPIRE_VERSION% at integration line 88. Added versions are the intentional diagnostic introduction 17.0 and non-Aspire npm ranges ^4.0.0/^5.0.0; no newly hard-coded current Aspire version was found. Evidence: placeholder-only-scan.txt, diagnostic-placeholder-only-scan.txt, added-version-lines.txt.

Code Examples — display/copy/JSON checks only (7)

  1. E1: Clicked the C# tab and its copy button. Clipboard contains the complete shown snippet, including disable/restore directives, storage/blob setup, app registration/reference, and builder.Build().Run(). Evidence: copied-apphost-csharp.txt, integration-desktop.png.
  2. E2: Clicked back to TypeScript and copied its complete sample, including generated-module import, language enum, awaited builder/resource calls, and final instructional comment. Evidence: copied-apphost-typescript.txt, integration-typescript.yml.
  3. E3: Copied the scripts/dependencies JSON and successfully parsed it with JSON.parse; build, prestart, start, and dependency ranges match the display. No package command was executed. Evidence: copied-package-json.txt.
  4. E4: Copied the diagnostic's complete unsuppressed example. Evidence: first entry of diagnostic-copied-examples.txt.
  5. E5: Copied the diagnostic pragma snippet with matching disable/restore identifier. Evidence: second entry of diagnostic-copied-examples.txt.
  6. E6: Copied [*.{cs,vb}] and dotnet_diagnostic.ASPIREAZUREFUNCTIONS001.severity = none intact. Evidence: third entry of diagnostic-copied-examples.txt.
  7. E7: Copied the project XML preserving literal $(NoWarn);ASPIREAZUREFUNCTIONS001. Evidence: fourth entry of diagnostic-copied-examples.txt.

Links — affected navigation groups (9)

  1. L1: Clicked the earlier “TypeScript and JavaScript Functions apps” pointer; it reaches #typescript-and-javascript-functions-apps.
  2. L2: Clicked the caution's diagnostic link; it reaches /diagnostics/aspireazurefunctions001/ and the correct page title.
  3. L3: Clicked diagnostic See also → “Azure Functions Hosting integration”; it returns to the integration page. This link intentionally targets the page root, not a section anchor. Evidence: diagnostic-return-link.txt.
  4. L4: Clicked “Add Azure Functions resource with host storage”; the exact hash resolves to the matching heading. Evidence: hoststorage-anchor.txt.
  5. L5: Clicked “Configuration files for code analysis rules”; it reaches /diagnostics/overview/#suppress-in-the-editorconfig-file, where the named heading exists. Evidence: editorconfig-link-check.txt (the final CLI Page URL is the completed navigation).
  6. L6: The new sidebar entry appears under Reference → Diagnostics → Warnings and works on desktop and through the mobile Main menu. Its active state identifies the diagnostic. Evidence: diagnostic-links-sidebar.txt, diagnostic-mobile-menu-open.yml.
  7. L7: Integration TOC includes both added headings. Actual desktop clicks reach both correct hashes; the mobile deployment click also resolves correctly. Evidence: integration-desktop-toc-newsection.txt, integration-desktop-toc-deployment.txt, integration-mobile-toc.txt, deployment-anchor-mobile.txt.
  8. L8: Diagnostic TOC lists Example, To correct this warning, and See also. Desktop Example and mobile To correct this warning were clicked successfully. Evidence: diagnostic-desktop-toc.txt, diagnostic-toc-anchor.txt, diagnostic-desktop-examples.png.
  9. L9: Clicked the integration's Get started prerequisite link; the intended local guide loads, and its AppHost link returns to the integration. Evidence: prerequisites-getstarted.yml.

Changed article links tested use site-relative paths with trailing slashes, or valid same-page hashes. The unchanged ../azure-functions-connect/ links remain within the same integration section, an allowed convention. The site's generated .md utility links are separately tested below, not treated as article-route convention failures.

Presentation and document controls (4)

  1. P1: Desktop 1440×1000 screenshots/snapshots show readable headings, caution, tabs, snippets, suppression options, and deployment prose. Evidence: integration-desktop.png, diagnostic-desktop.png, diagnostic-desktop-examples.png, deployment-desktop.png.
  2. P2: Mobile 375×812 preserves readable body/caution content and working TOC/menu/tab controls. Both pages have document scroll width 375, not whole-page horizontal overflow. Code blocks scroll locally: the C# block measured client width 341, content width 915, and horizontal scroll position 574 at its right edge. The long diagnostic title wraps rather than being lost. Evidence: diagnostic-mobile.png, integration-mobile-changed-section.png, integration-mobile-csharp-code.png, deployment-mobile.png, diagnostic-mobile-metrics.txt, integration-mobile-metrics.txt, mobile-csharp-scroll.txt.
  3. P3: Both pages' Copy Markdown buttons produce article Markdown after asynchronous completion. Integration output includes both additions and the diagnostic link; diagnostic output includes the new guidance and suppression text. Evidence: integration-markdown-copy.txt, diagnostic-markdown-copy-delayed.txt. The immediate first diagnostic clipboard read was stale; the subsequent completed copy succeeded and is the reported result.
  4. P4: Open → View in Markdown opens each real .md route in a new browser tab, with the added content present. Both auxiliary tabs were closed. Evidence: integration-markdown-newtab.txt, diagnostic-markdown-newtab.txt.

Incidental observations and test-harness retries

  • The local site reported /api/live/ 404 and “Live API not found (404); live updates disabled until reload.” This is recorded in .playwright-cli\console-2026-11-03T03-24-46-504Z.log. It did not prevent the tested content/controls from working. No evidence ties it to these changed files, so it is not counted as a PR-introduced failure.
  • The diagnostic raw Markdown browser view showed mojibake around an em dash (—), while the rendered page and copied Markdown displayed the dash correctly. No baseline/product-source comparison was performed, so no attribution to this PR is made and no critical issue is claimed. The raw Markdown route/content-presence check passed; encoding quality is not certified.
  • Stale snapshot refs after navigation, an ambiguous unscoped TOC locator, a wrongly banner-scoped mobile Menu locator, and an empty-hash diagnostic-return evaluation were test-harness mistakes. They were retried using live/scoped locators and corrected evidence. They are not documentation defects.

Recommendations

  1. Priority fixes: None established by this frontend-only run.
  2. Validation priority: Run version-17 compile/runtime/diagnostic and publish/deployment checks separately; keep Warnings 1–2 explicitly unverified until then.
  3. Documentation gap: Consider the existing-Functions-app prerequisite/link in Warning 3, without expanding this reference into an unrelated tutorial.
  4. Product issues: None proven. Do not infer API correctness or a runtime regression from this report's frontend passes.

Cleanup and persistence

  • Browser session pr1878 was closed with playwright-cli -s=pr1878 close.
  • Ran playwright-cli -s=pr1878 delete-data; result: “No user data found for browser 'pr1878'.” The session used an in-memory profile.
  • Both Markdown tabs were closed; screenshots, snapshots, clipboard evidence, and this report remain in this directory.
  • No npm/pnpm/bun package commands, installs, builds, AppHost runtime actions, containers, publish/deploy actions, certificate/trust changes, GitHub comments/reviews, commits, pushes, or merges were performed.
  • The parent-owned Astro server was neither started, restarted, nor stopped. Final checkout HEAD remained 60fc7d7531f71d72e151e57cc43c583eb6fc205d.

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#17980 (docs PR targets release/17.0; no matching branch checked).
PR status: non-draft, mergeable, opened 2026-10-13 (not stale)

Phase A — claims

  • ✅ verified: [Experimental("ASPIREAZUREFUNCTIONS001")] on AddAzureFunctionsApp(builder, name, appDirectory, AzureFunctionsLanguage); AzureFunctionsLanguage.TypeScript used in the playground; the diagnostic is listed in docs/list-of-diagnostics.md.
  • ⚠️ nuance: the 'version introduced: 17.0' badge and the rest of azure-functions-host.mdx were not fully traced.

Phase B — doc-tester

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

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

@sebastienros

Copy link
Copy Markdown
Contributor

Updated the Azure Functions docs with C#, TypeScript, and Go AppHost examples for directory-based JavaScript/TypeScript Functions; local Core Tools and launch guidance; VS Code Node debugging and TypeScript source-map/output-path configuration; and Dockerfile publishing and ACA deployment details. Added the ASPIREAZUREFUNCTIONS001 diagnostic reference, clarified that it is an error by default, and documented the verified C# suppression options.

@sebastienros
Sébastien Ros (sebastienros) merged commit 612fa61 into release/17.0 Nov 17, 2026
17 checks passed
@sebastienros
Sébastien Ros (sebastienros) deleted the docs/pr-17980-38337214233-1-5214d40262dcfbfe branch November 17, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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