Skip to content

[docs] Explain Azure provisioning proxy authoring and diagnostics - #1747

Closed
Sébastien Ros (sebastienros) wants to merge 2 commits into
release/13.6from
sebros/provisioning-proxy-sdk-docs
Closed

Sébastien Ros (sebastienros) wants to merge 2 commits into
release/13.6from
sebros/provisioning-proxy-sdk-docs

Conversation

@sebastienros

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#19675 (microsoft/aspire#19675), authored by Sébastien Ros (@sebastienros).

Target

Targets release/13.6: candidate source pr_milestone, detail 13.6, candidate release/13.6, resolution exact_match. Docs base commit: 201a9af638b2454a4203bf9af900711dfbcc50a3. Source merge commit: 8c7e5fff471e5b619ae1175e7bfd58f823eaab51.

Documentation gap and changes

The resolved release already documents opt-in provisioning packages and typed infrastructure examples. This focused follow-up documents the missing integration-author contract, generator setup, shared value/resource handles, projection diagnostics, and SDK capability experimental metadata.

Updated existing pages:

  • src/frontend/src/content/docs/extensibility/multi-language-integration-authoring.mdx: source-generated export providers; Azure provisioning generator dependencies, bounded roots and language SDKs; Bicep values/handles; diagnostics; isExperimental.
  • src/frontend/src/content/docs/integrations/cloud/azure/customize-resources.mdx: one cross-link to integration-author guidance.

No new pages, generated catalogs, package mappings, or navigation changes. No changes to the expanded service coverage from microsoft/aspire#20131 or the whole-release aggregation PR #1599.

Deterministic signal evidence

Triggered category Source evidence and disposition
cli_command_file_changed src/Aspire.Cli/Commands/Sdk/SdkDumpCommand.cs adds CapabilityInfo.IsExperimental; docs/specs/cli-output-formats.md defines JSON isExperimental, scopes, false default, and older-output handling. Added those details to export testing guidance.
diagnostic_documentation_changed docs/list-of-diagnostics.md adds ASPIREEXPORT018 and ASPIREAZUREPROVISIONING001 through 006. Added the experimental contract and projection-warning meanings.
diff_scan_skipped_due_to_missing_patch The missing patch is src/Aspire.Hosting.Azure.Provisioning.Generators/AspireProvisioningProxyGenerator.cs. Read the merge-commit source directly: generated opt-in attribute, root controls, and diagnostics confirm the new guidance, including rejection of mutable struct roots.
integration_readme_changed Shared Aspire.Hosting.Azure.Provisioning/README.md explains generator setup, Bicep factories/declarations, and roots; KeyVault README shows typed setters and preserved metadata. Existing AppHost examples remain; added the missing authoring guidance and source link.
new_hosting_integration_project New shared/runtime, generator, and service projects provide opt-in proxies rather than new deployment targets. Explained the separate package roles without duplicating AppHost setup.
new_package_added Initial service packages: ApplicationInsights, CognitiveServices, ContainerRegistry, CosmosDB, EventHubs, KeyVault, OperationalInsights, Search, ServiceBus, Sql, Storage, WebPubSub; also shared runtime and generator. Existing customization page links the inventory; new guidance distinguishes private analyzer dependency from runtime.
new_public_type BicepValueProxy, ProvisionableResourceProxy, and AspireExportProviderAttribute are introduced. All three are now named and explained.
polyglot_code_generator_changed TypeScript, Python, Java generators and TypeScript projection/export files change. Source body and validation describe TS/Python/Go/Java support. Added language SDK generation scope and a requirement to verify each supported SDK, not a blanket member-compatibility claim.
pr_body_has_user_facing_section Source User-facing usage shows C# and TypeScript Key Vault customization. Existing customize-resources.mdx already has opt-in setup and typed customization; new authoring section explains the bounded proxy model behind it.
target_framework_changed Newly added projects target $(DefaultTargetFramework); the generator targets netstandard2.0. This is new project configuration, not evidence of changed AppHost prerequisites. Explained generator-vs-runtime dependency roles; did not invent a runtime-version requirement.

Source and review notes

Source review explicitly confirms the isExperimental JSON contract and the decision to reject mutable struct roots with ASPIREAZUREPROVISIONING006. Identifiers were checked against cached patches and the missing generator source at the merge commit. No unresolved code/prose discrepancy was found.

Human review is required before merging. Intended SME: Eric Erhardt (@eerhardt) (standing approved source reviewer). No automatic merge or workflow dispatch.

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

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

VS Code: Open PR #1747 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.

Copilot review overview

🟡 Changes recommended

Document the IsInfrastructureRoot setting required for separately selected child resources.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Low severity

Open (1)
What changed in this PR

Documents Azure provisioning proxy authoring, diagnostics, shared handles, and experimental capability metadata for Aspire 13.6.

Changes:

  • Adds generator setup and integration-author guidance.
  • Documents projection diagnostics and isExperimental metadata.
  • Links Azure customization documentation to the new guidance.
File Summary
src/​frontend/​src/​content/​docs/​extensibility/​multi-language-integration-authoring.mdx Adds proxy authoring, diagnostics, and CLI metadata guidance.
src/​frontend/​src/​content/​docs/​integrations/​cloud/​azure/​customize-resources.mdx Links to the integration-authoring guidance.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Clarified usage of the provisioning generator and its attributes for Azure SDK models, including details on assembly-level application and infrastructure lookups.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

@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.

🤖 Automated docs-accuracy review — PR #1747

Phase A source of truth: microsoft/aspire @ release/13.6 — f544a9c660afc22ac6cdb5650c21eb2f908b3054
Reviewed PR head: d341b570fc0ee3db62b77947af9191bd88748740
Claims extracted: 13 (12 verifiable + 1 narrative)

Verdict Count
✅ verified 10
🟡 verified-with-nuance 1
❔ unverifiable 0
❌ contradicted 1

Phase B (blind-user doc-tester): 2 routes exercised — /extensibility/multi-language-integration-authoring/ and /integrations/cloud/azure/customize-resources/. 0 critical, 2 warnings. Live browser rendering was not executed (no PR preview deployment; the frontend-dist artifact is ~2 GB; local site build disallowed by policy), so this phase evaluated the PR-built doc content and the docs collection.

Verdict: REQUEST_CHANGES

One contradicted Phase A claim: the aspire sdk dump --format json section documents the JSON field names as capabilities / isExperimental (camelCase), but the shipped command emits PascalCase keys. See the inline comment on the Inspect experimental capability metadata section. A second inline note flags an incomplete language list (nuance, non-blocking). Everything else is accurate.


Phase A — Claim verification

Two inline comments are anchored to the lines worth changing (the contradicted casing claim, and the nuance on the language list). Full evidence for every extracted claim:

✅ Verified / 🟡 nuance — all 13 claims with source evidence (click to expand)

Evidence paths are in microsoft/aspire @ f544a9c66 (release/13.6).

C1 — AspireExportProviderAttribute + assembly-scoped opt-in attribute (mlia.mdx:47) — ✅ verified
src/Aspire.Hosting/Ats/AspireExportProviderAttribute.cs:17 (public sealed class AspireExportProviderAttribute : Attribute;). Generated opt-in attribute is decorated [AspireExportProvider] and [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] — src/Aspire.Hosting.Azure.Provisioning.Generators/AspireProvisioningProxyGenerator.cs:90-101.

C2 — ASPIREEXPORT018 reported; experimental (mlia.mdx:52) — ✅ verified
AspireExportProviderAttribute.cs:15 ([Experimental("ASPIREEXPORT018", …)]); docs/list-of-diagnostics.md:25 (Warning).

C3 — packages: …Azure.Provisioning runtime + …Azure.Provisioning.Generators private analyzer (mlia.mdx:57) — ✅ verified
src/Aspire.Hosting.Azure.Provisioning/README.md:112 ("Private build-time analyzer") and :124 ("reference …Generators as a private analyzer dependency").

C4 — GenerateAspireProvisioningProxyAttribute (ns Aspire.Hosting.Azure.Provisioning, assembly-level, Type root ctor, IncludeContainingAssemblyTypes), KeyVaultService example (mlia.mdx:59) — ✅ verified
AspireProvisioningProxyGenerator.cs:16,94-104; example src/Aspire.Hosting.Azure.Provisioning.KeyVault/AtsTypeMappings.cs:7 ([assembly: GenerateAspireProvisioningProxy(typeof(KeyVaultService), IncludeContainingAssemblyTypes = true)]).

C13 — apply the attribute again with IsInfrastructureRoot = false for additional child/discovery-only roots; otherwise each selected root gets a no-argument infrastructure lookup (mlia.mdx:59) — ✅ verified
Property + default: AspireProvisioningProxyGenerator.cs:100 — public bool IsInfrastructureRoot { get; set; } = true;. AllowMultiple = true (per C1) permits reapplying it; real integrations do exactly this — IsInfrastructureRoot = false in KeyVault/ServiceBus/CosmosDB/AppContainers/Sql/Storage/EventHubs/WebPubSub AtsTypeMappings.cs. No-arg infra lookup gated on the default-true flag: generator filter AspireProvisioningProxyGenerator.cs:1484 (.Where(root => root.IsInfrastructureRoot && …)); src/Aspire.Hosting.Azure.Provisioning/README.md:135. Minor nuance (not blocking): the README also conditions that no-arg lookup on the root's Bicep identifier matching the callback's hosting-resource identifier; the PR simplifies but stays substantively correct.

C5 — root no-arg lookup + id-based lookups/creation for others; languages "TypeScript, Python, Go, and Java" (mlia.mdx:61) — 🟡 verified-with-nuance
Lookup behavior: src/Aspire.Hosting.Azure.Provisioning/README.md:19. Nuance: the language list omits Rust, a peer experimental polyglot codegen present on the same branch — src/Aspire.Hosting.CodeGeneration.Rust/*, plus src/Aspire.Cli/Projects/DefaultLanguageDiscovery.cs (Rust LanguageInfo, IsExperimental: true; feature flag ExperimentalPolyglotRust). Python/Go/Java (which the doc does list) are all experimental too, so excluding only Rust is inconsistent. See inline note.

C6 — BicepValueProxy, ProvisionableResourceProxy; BicepValue<T> setters; runtime provides Bicep parameters/variables/outputs (mlia.mdx:63) — ✅ verified
src/Aspire.Hosting.Azure.Provisioning/BicepValueProxy.cs (literal/expression/resource-ref; IsSecure/Kind), ProvisionableResourceProxy.cs; ProvisioningDeclarationExtensions.cs:119-165 — AddBicepParameter/AddBicepOutput/AddBicepVariable → ProvisioningParameterProxy/OutputProxy/VariableProxy.

C7 — README anchor #creating-a-provisioning-proxy-integration (mlia.mdx:65) — ✅ verified
src/Aspire.Hosting.Azure.Provisioning/README.md:122 (## Creating a provisioning proxy integration).

C8 — ASPIREAZUREPROVISIONING001 marks runtime + generated proxies experimental (mlia.mdx:69) — ✅ verified
src/Aspire.Hosting.Azure.Provisioning/ExperimentalAssemblyInfo.cs:6 ([assembly: Experimental("ASPIREAZUREPROVISIONING001", …)]); generator ExperimentalDiagnosticId; docs/list-of-diagnostics.md:24.

C9 — ASPIREAZUREPROVISIONING002–006 meanings (mlia.mdx:73-77) — ✅ verified
docs/list-of-diagnostics.md:31-35 and AspireProvisioningProxyGenerator.cs:36-68. All five match: 002 unsupported property shape/type · 003 unsupported method signature · 004 duplicate exported signature · 005 root not a supported non-generic/non-static class or struct · 006 mutable-struct root.

C10 — aspire sdk dump --format json; capabilities[].isExperimental semantics (mlia.mdx:1206) — ❌ contradicted (field-name casing) / ✅ semantics
Command exists (src/Aspire.Cli/Commands/Sdk/SdkDumpCommand.cs:31). Semantics accurate (src/Aspire.TypeSystem/AttributeDataReader.cs:113-142 — member, enclosing/declaring types, module, assembly; property accessors). But actual JSON keys are PascalCase (Capabilities, IsExperimental), not camelCase — see inline comment for the serializer + test evidence.

C11 — omitted isExperimental should be treated as false (mlia.mdx:1208) — narrative
Forward-compat guidance; consistent with docs/specs/cli-output-formats.md:614. Same casing caveat as C10.

C12 — internal link to #generate-azure-provisioning-proxies (customize-resources.mdx:187) — ✅ verified
Target heading exists (### Generate Azure Provisioning proxies). (Internal-link validity is CI-owned.)


Phase B — Doc-tester results (blind-user)

Environment: Live browser (Playwright) rendering was not executed for this run — there is no PR preview deployment, the frontend-dist build artifact is ~2 GB (impractical for an hourly job), and a local site build is disallowed by policy. The blind-user evaluation below was performed against the PR-built documentation content and the aspire.dev docs content collection. No microsoft/aspire source was consulted in this phase.

Focus routes: /extensibility/multi-language-integration-authoring/, /integrations/cloud/azure/customize-resources/

Category Passed Failed Warnings
Content accuracy (blind) — 0 1
Code examples n/a 0 0
CLI commands — 0 1
Links 2 0 0

Critical issues

None detectable from the documentation alone. (The casing issue in C10 is only observable by running the tool / reading source, which this phase deliberately does not do — Phase A caught it.)

Warnings

  1. No sample output for aspire sdk dump --format json. The Inspect experimental capability metadata section describes capabilities[].isExperimental in prose but shows no example JSON. A blind reader has nothing concrete to verify field names/shape against. Recommend adding a short JSON snippet. (Independently, this is the blind-user shadow of the Phase A casing contradiction.)
  2. Assumed-knowledge gap. Source-generated export providers and Generate Azure Provisioning proxies assume familiarity with source generators, analyzers, Bicep, and the Azure.Provisioning SDK. ATS is defined at the top of the page, so the audience is reasonable, but a one-line prerequisite pointer would help newcomers.

Passed checks

  • Internal cross-reference anchors resolve both ways: …multi-language-integration-authoring/#generate-azure-provisioning-proxies and …customize-resources/#enable-typed-provisioning-proxies (the "Enable typed provisioning proxies" heading exists).
  • :::caution[Experimental contract] matches the established repo convention (14 uses across docs, incl. two more in this same file).
  • Heading nesting is correct; the sdk-dump subsection nests under ## Test your exports.
  • Diagnostics table renders as a standard markdown table with consistently formatted IDs.
  • No casual language, duplicate asides, or obvious typos in the added prose.

Recommendations

  1. Add a short JSON sample for aspire sdk dump --format json (also lets readers see the correct field-name casing).
  2. Consider a prerequisite pointer for source-generator / Bicep concepts.

Automated hourly docs-from-code review. Phase A reads microsoft/aspire release source; Phase B evaluates the docs blind to that source; this comment merges both.


### Inspect experimental capability metadata

Use `aspire sdk dump --format json` to inspect discovered capabilities. Each entry in `capabilities` includes `isExperimental`, which is `true` when `System.Diagnostics.CodeAnalysis.ExperimentalAttribute` applies to the member, a property accessor, an enclosing type, the module, or the assembly. Otherwise it is `false`.

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.

Phase A — ❌ contradicted (JSON field-name casing). Source of truth: microsoft/aspire@f544a9c66 (release/13.6).

This documents the fields as capabilities and isExperimental (camelCase), but aspire sdk dump --format json actually emits PascalCase keys — Capabilities and IsExperimental:

  • The serializer sets no naming policy: [JsonSourceGenerationOptions(WriteIndented = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull)] in src/Aspire.Cli/Commands/Sdk/SdkDumpCommand.cs, and the DTOs (CapabilitiesInfo.Capabilities, CapabilityInfo.IsExperimental) carry no [JsonPropertyName], so names serialize verbatim in PascalCase.
  • The shipped unit test proves it: tests/Aspire.Cli.Tests/Commands/SdkDumpCommandTests.cs → FormatJson_IncludesExportedValues invokes the real FormatJson and asserts with case-sensitive JsonDocument.GetProperty("ExportedValues"), GetProperty("Value"), GetProperty("IsNullable").

A reader who greps the real output for capabilities / isExperimental (lowercase) will find nothing.

The semantics you describe are accurate — isExperimental is true when ExperimentalAttribute applies to the member, a property accessor, an enclosing type, the module, or the assembly (src/Aspire.TypeSystem/AttributeDataReader.cs:113-142).

⚠️ Worth knowing: microsoft/aspire's own spec doc docs/specs/cli-output-formats.md uses the same camelCase wording, so this PR faithfully mirrors an internal doc that is itself inconsistent with the serializer. Please either (a) change these two field names to Capabilities / IsExperimental to match the shipped output, or (b) confirm with the product team whether the serializer is meant to emit camelCase — in which case the code + spec doc need fixing, not just this page.


The generator supplies `GenerateAspireProvisioningProxyAttribute` in the `Aspire.Hosting.Azure.Provisioning` namespace. Apply it at assembly level with the selected SDK root type, such as `KeyVaultService`. Set `IncludeContainingAssemblyTypes = true` to include compatible public classes and readonly structs from that root's assembly. For additional child or discovery-only roots, apply the attribute again with `IsInfrastructureRoot = false`; otherwise each selected root gets a no-argument infrastructure lookup. This keeps the projection bounded to the selected SDK rather than every referenced assembly.

The selected infrastructure root receives a no-argument lookup in the infrastructure callback. Other provisionable resources receive identifier-based lookups and creation methods. The generated surface supports TypeScript, Python, Go, and Java SDK generation; verify the generated SDK for each language your integration supports rather than assuming every SDK member can be projected.

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.

Phase A — 🟡 verified-with-nuance (incomplete language list). Source of truth: microsoft/aspire@f544a9c66 (release/13.6).

The no-argument root lookup and identifier-based lookups/creation methods are accurate (src/Aspire.Hosting.Azure.Provisioning/README.md:19). The language list, though, omits Rust: it's a peer polyglot codegen present on the same branch — src/Aspire.Hosting.CodeGeneration.Rust/ plus a LanguageInfo entry in src/Aspire.Cli/Projects/DefaultLanguageDiscovery.cs (with feature flag ExperimentalPolyglotRust).

Note that Python, Go, and Java — which this sentence does list — are all flagged IsExperimental: true in that same file, exactly like Rust, so excluding only Rust is inconsistent. Consider either adding Rust or rewording to make clear the set is illustrative/non-exhaustive. Non-blocking.

@sebastienros

Copy link
Copy Markdown
Contributor Author

I don't think we should document this in our customers docs, this is for our own usage only.

David Pine (IEvangelist) pushed a commit that referenced this pull request Sep 28, 2026
Documents changes from microsoft/aspire#19675:
microsoft/aspire#19675, authored by
@sebastienros.

## Scope and documentation gap

This is the explicitly requested **separate follow-up**, not a
replacement for #1747 (integration authoring/diagnostics) or #1748
(service coverage). Neither existing PR nor its branch is modified. The
release rollup #1599 is not the source PR and is untouched.

Adds a focused, user-oriented reference for `infrastructure.bicep()`:

- All **32 factory exports**, including the `resourceIdentifier` export
alias, with arguments, return/value semantics, underlying C# SDK
counterpart or AST node, and emitted Bicep.
- All **3 string-builder methods**, **3 infrastructure declaration
helpers**, **16 binary / 3 unary operators**, value/security metadata,
and explicit array/object/null constructor and declaration-type
boundaries.
- Complete TypeScript and C# Storage examples: deterministic
valid-length naming, resource-group location, parameter/deployment tags,
concatenation, and resource-ID output.
- Complete TypeScript and C# Key Vault examples: JSON object/array data,
variable/member/index access, deployment-time equality/conditional,
retention settings, purge-protection caveats, and integer output.
Existing authorization stays intact.
- Clear separation of remote handles, host-language evaluation,
deployment-time functions, GUID/URI literals versus functions, SDK
typing versus conversions, and secure metadata versus protection of
output destinations.

### Files

- Added
`src/frontend/src/content/docs/integrations/cloud/azure/bicep-helpers.mdx`.
- Added one cross-link in
`src/frontend/src/content/docs/integrations/cloud/azure/customize-resources.mdx`;
existing guidance and examples are preserved.
- Added discovery entries in
`src/frontend/config/sidebar/integrations.topics.ts` and
`deployment.topics.ts`.

## Exact target rationale and provenance

Prepared target resolution: `candidate_source=pr_milestone`,
`candidate_source_detail=13.6`, `candidate_target_branch=release/13.6`,
`target_resolution=exact_match`. The matching docs release branch
exists; this is not a latest-release or main fallback.

- Docs base: `release/13.6` at
`e20e81f100b699c4dd6adbf01a52f6fd7bad11bd`.
- Head: `sebros/bicep-helper-reference`, on the origin
`microsoft/aspire.dev`, not a fork.
- Product release source:
[`43496a2a306c81c862c947b11b4f4e5494b6fe08`](https://github.com/microsoft/aspire/tree/43496a2a306c81c862c947b11b4f4e5494b6fe08).
Factory, value wrapper, declaration and string-builder implementations
checked against this release, not 14.x main.
- Actual generated SDK and installed CLI: **13.6.0-preview.1.26473.12**,
source `a11eca9611073f7cf66fa87faac63c2119e87713`, matching this docs
branch's generated API data.
- Exact Aspire packages restored from the official public `dotnet9` feed
after the original staging darc feed returned HTTP 404. Only isolated
scratch configuration changed.

## Official Azure SDK verification

Verified Microsoft Learn and the corresponding official SDK
implementation, rather than inferring mappings from Aspire XML
summaries:

- [BicepFunction, Azure.Provisioning
1.6.0](https://learn.microsoft.com/dotnet/api/azure.provisioning.expressions.bicepfunction?view=azure-dotnet),
with [stable pinned
source](https://github.com/Azure/azure-sdk-for-net/blob/4d32854480515e716c762be7925660bce6da251a/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepFunction.cs).
-
[BicepValue<T>](https://learn.microsoft.com/dotnet/api/azure.provisioning.bicepvalue-1?view=azure-dotnet),
[expression AST
namespace](https://learn.microsoft.com/dotnet/api/azure.provisioning.expressions?view=azure-dotnet),
and declaration types.
- [Stable literal serialization
implementation](https://github.com/Azure/azure-sdk-for-net/blob/4d32854480515e716c762be7925660bce6da251a/sdk/provisioning/Azure.Provisioning/src/Expressions/BicepTypeMapping.cs):
`double(1.5)` emits `json('1.5')`, whole `double(2)` emits `2`,
standalone one-hour `TimeSpan` emits `'01:00:00'`; property-specific
formats can differ.
- [StorageAccount
1.1.2](https://learn.microsoft.com/dotnet/api/azure.provisioning.storage.storageaccount?view=azure-dotnet),
[KeyVaultProperties
1.1.0](https://learn.microsoft.com/dotnet/api/azure.provisioning.keyvault.keyvaultproperties?view=azure-dotnet),
and [retention
bounds](https://learn.microsoft.com/dotnet/api/azure.provisioning.keyvault.keyvaultproperties.softdeleteretentionindays?view=azure-dotnet).
- Bicep language references for string/resource/scope functions,
operators, secure parameters and Azure resource naming; Key Vault
soft-delete documentation for immutable retention and purge protection.

## Validation

- Extracted both exact TypeScript snippets and compiled them using `tsc
-p tsconfig.apphost.json` against **genuine generated release SDK
code**, with no SDK patches, casts, diagnostics suppression or
production changes.
- Both TypeScript AppHosts successfully ran local `aspire publish` with
a nonsecret `Parameters__environment=Production` input and generated
Storage / Key Vault Bicep. Expected warning: no compute environment in
these resource-only examples.
- Compiled both exact C# counterparts with the matching Aspire packages
and generated local manifests. **Storage and Key Vault Bicep files are
each byte-for-byte identical between the C# and TypeScript versions.**
- Independently ran Azure.Provisioning 1.6.0 offline generation to
confirm literals, interpolation and all operator spellings.
- The full existing `pnpm test:unit:twoslash-blocks` gate passed (2
tests). New proxy examples intentionally use ordinary TypeScript fences,
as their operator/runtime surface is checked against genuine SDK modules
rather than the site's simplified declaration bundle.
- Frontmatter SEO checks passed (3 tests); touched sidebar files passed
ESLint; Prettier and `git diff --check` passed.
- Local Astro route returned 200; Playwright inspected desktop/mobile
tables, synchronized TypeScript/C# tabs, headings and cross-link
navigation. No page-wide mobile overflow. Unrelated dev-only
`/api/live/` and `/api/live/stream/` requests return 404 without the
static host.
- All 19 external links in the new page returned HTTP 200.
- No production site build, Azure deployment, cloud access mutation,
secret creation, billing operation, workflow dispatch, or
dependency-manifest/lockfile change in this PR.

### SME attention: tested preview string-builder limitation

The exact generated **13.6.0-preview.1.26473.12 TypeScript SDK**
implements `BicepStringBuilderProxyImpl.build()` with `await
this._client.flushPendingPromises()`
(`.aspire/modules/aspire.mts:18905-18906`). Inside
`configureInfrastructure`, this waits for the enclosing pending
callback. The fully awaited original Storage sample consistently timed
out after 120 seconds, with `Flushing 2 pending promise(s)` in the
trace.

The runnable sample now uses `concat` and publishes successfully. The
page preserves the underlying string-builder reference and narrowly
labels this exact preview limitation; it does not attribute the problem
to C# `BicepStringBuilder` or Bicep itself. Please reassess/remove this
caveat when the generated SDK is fixed. No product fix, SDK
modification, or new product issue is included.

Minimal reproduction (inside a configured callback, after obtaining
`bicep`):

```typescript
const label = await bicep.createStringBuilder();
await label.appendLiteral('storage-');
await label.appendValue(await bicep.string('example'));
await label.build();
```

## Original source signal accounting

Prepared inputs require documentation and are not excluded. This
user-requested helper follow-up narrows the original broad PR's
remaining gap; #1747 remains the relevant authoring/diagnostics draft.

| Triggered category | Concrete source evidence and treatment |
| --- | --- |
| `cli_command_file_changed` |
`src/Aspire.Cli/Commands/Sdk/SdkDumpCommand.cs`: experimental capability
metadata. Existing authoring draft #1747; this page documents
experimental helper boundaries, not CLI behavior again. |
| `diagnostic_documentation_changed` | `docs/list-of-diagnostics.md`:
provisioning/projection diagnostics. Existing #1747; new page retains
`ASPIREAZUREPROVISIONING001` caveat. |
| `diff_scan_skipped_due_to_missing_patch` |
`AspireProvisioningProxyGenerator.cs` exceeded cached patch coverage.
This follow-up directly reads release source and validates actual
generated package SDK instead of treating missing patch as a skip. |
| `integration_readme_changed` | Shared
`Aspire.Hosting.Azure.Provisioning/README.md` and per-service READMEs.
New page adds the missing complete helper-to-SDK/Bicep mapping without
duplicating general authoring prose. |
| `new_hosting_integration_project` | Shared runtime and original
provisioning service `.csproj` additions. New examples explicitly name
Storage/KeyVault opt-in packages; service inventory stays separate. |
| `new_package_added` | Runtime, generator and original 12 provisioning
service packages. Actual matching runtime/Storage/KeyVault packages used
to generate and execute snippets. |
| `new_public_type` | `BicepValueProxy`, `ProvisionableResourceProxy`,
export provider attribute. Reference explains value/resource handle
distinctions and factory/declaration semantics; export provider
authoring stays in #1747. |
| `polyglot_code_generator_changed` | TypeScript/Python/Java code
generators and TypeScript projector. Genuine generated TypeScript SDK
validated; the observed build-method limitation is explicitly surfaced.
|
| `pr_body_has_user_facing_section` | Source PR's “User-facing usage”
section contains customization examples. This adds complete
user-oriented Storage and Key Vault scenarios, not more internal
authoring guidance. |
| `target_framework_changed` | New provisioning project target-framework
declarations. No evidence of a changed AppHost prerequisite; this PR
doesn't change prerequisites or dependency manifests. |

**Human review is required before merging**, especially the
exact-preview string-builder caveat and exhaustive mapping tables. SME
requested: @eerhardt.

---------

Co-authored-by: Sébastien Ros <[email protected]>
Co-authored-by: Copilot App <[email protected]>
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.

3 participants