Skip to content

[docs] Document Azure Front Door Private Link for Container Apps and App Service - #2084

Merged
Eric Erhardt (eerhardt) merged 2 commits into
release/17.0from
eerhardt-afd-private-link-docs
Nov 11, 2026
Merged

Eric Erhardt (eerhardt) merged 2 commits into
release/17.0from
eerhardt-afd-private-link-docs

Conversation

@eerhardt

Copy link
Copy Markdown
Member

Summary

Documents WithAzureFrontDoorPrivateLink (withAzureFrontDoorPrivateLink in TypeScript) for Azure Container Apps and Azure App Service in Aspire 17.0. This consolidates the two bot drafts, #1965 (Container Apps) and #2062 (App Service), into one set of docs and supersedes both. The source changes are microsoft/aspire#21228 and microsoft/aspire#21396, and the final code and README on release/17.0 are identical to main for the affected files.

What changed:

  • azure-front-door.mdx: new Private Link origins section with requirements and SKU constraints, a complete TypeScript and C# example for each target, what Aspire provisions (with a generated Bicep excerpt), App Service publish/deploy behavior, deployment slots, existing sites, service-to-service limits, connection approval commands for both targets, the private endpoint region mapping and override (TypeScript and C#), and a troubleshooting table. The frontmatter description now mentions private origins.
  • Short cross-links from the App Service host page, the Configure Container Apps page, the two Azure deployment pages, and the Azure security best practices page. The security page no longer says App Service can only be a public website model.
  • ASPIREAZURE003 diagnostic page: notes that WithAzureFrontDoorPrivateLink reports the diagnostic and adds an example.

Decisions and assumptions:

  • Examples use AddDotnetProject / addDotnetProject, because AddProject is marked obsolete on release/17.0. The new section notes the Aspire.Hosting.Dotnet package requirement.
  • The TypeScript App Service example uses withDashboard({ enable: false }). The withDashboard(false) form in the source PR description is a type error against the generated SDK. Existing pages (deployment/azure/app-service.mdx, deployment/azure/container-apps.mdx) still show withDashboard(false); I left those alone because they are unrelated to this change.
  • The region override sets a literal region in both languages. The C# parameter-based variant from the Front Door README was left out to keep the TypeScript and C# samples equivalent. TypeScript needs the opt-in, experimental Aspire.Hosting.Azure.Provisioning.Cdn package.
  • App Service plan tiers that support private endpoints come from Azure docs, not from the source PRs. The default Aspire plan (P0V3) qualifies.
  • No ApiReference links for the new APIs, because the generated API data in this repo (13.6) does not contain them yet.
  • Did not edit the 17.0 what's-new page, per the task scope.

Not verified and flagged in the docs where relevant:

  • Same-environment Container Apps calls when public network access is disabled. The source PR says this was not verified against a deployed environment, so the docs tell readers to verify after the first deployment.
  • An end-to-end Container Apps deployment. Source PR #21396 deployed App Service end to end (27 steps, direct URL returned 403, Front Door returned 200). Source PR #21228 did not run an end-to-end deployment.

Third-party links and affiliations

None. The added links point to Microsoft Learn and to NuGet.org package pages for Aspire packages.

Validation

  • pnpm install --frozen-lockfile (from src/frontend): passed.
  • pnpm exec vitest run --config vitest.config.ts tests/unit/seo-lengths.vitest.test.ts tests/unit/api-reference-components.vitest.test.ts tests/unit/typescript-first-apphost-tabs.vitest.test.ts: passed (3 files, 8 tests).
  • pnpm test:unit:twoslash-blocks: passed (2 tests). No new twoslash fences were added.
  • pnpm dev, then requesting all 7 edited pages: all returned HTTP 200 with no error overlay. Checked the rendered tabs, code blocks, and troubleshooting table with playwright-cli.
  • TypeScript samples: type-checked with tsc against the SDK generated by aspire add for 17.1.0-preview.1.26556.5 (Front Door, Container Apps, App Service, Dotnet, and Provisioning.Cdn packages). Passed. withAzureFrontDoorPrivateLink is present on both AzureContainerAppEnvironmentResource and AzureAppServiceEnvironmentResource, and on 17.0.0-preview.1.26552.6 for Container Apps.
  • C# samples: dotnet build apphost.cs with the same packages: passed with no warnings. Removing the #pragma produced error ASPIREAZURE003.
  • aspire publish for the TypeScript Container Apps sample (with the region override) and the App Service sample: both succeeded. The generated Bicep confirmed the Premium_AzureFrontDoor SKU, publicNetworkAccess: 'Disabled', managedEnvironments and sites group IDs, the request message, privateLinkLocation: 'westus2', and the <name>_website_resourceId_input parameters in main.bicep.
  • Not run: pnpm build (CI does this per repo policy) and an end-to-end Azure deployment.

…App Service

Consolidates the drafts in #1965 and #2062 into one set of docs for
WithAzureFrontDoorPrivateLink (microsoft/aspire#21228 and #21396).

- Add a Private Link origins section to the Azure Front Door page covering
  requirements, Container Apps and App Service examples, connection approval,
  private endpoint region mapping and override, and troubleshooting.
- Add pointers from the App Service, Container Apps, deployment, and security
  best practices pages, and note the API in the ASPIREAZURE003 diagnostic page.

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

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.

🟡 Changes recommended

The documentation incorrectly extends the existing-site public-access exception beyond slot deployments and omits the slot-specific private endpoint and DNS configuration required for pre-swap testing.

2 open issues
What changed in this PR

Documents Azure Front Door Private Link support for Container Apps and App Service in Aspire 17.0, consolidating the two earlier documentation drafts into the existing Azure guides.

Changes:

  • Adds TypeScript and C# examples, requirements, deployment behavior, connection approval steps, region overrides, and troubleshooting.
  • Links deployment, hosting, and security guidance to the new Private Link section.
  • Extends ASPIREAZURE003 documentation with the new experimental API.
File Description
src/​frontend/​src/​content/​docs/​integrations/​cloud/​azure/​configure-container-apps.mdx Adds Private Link guidance and cross-links.
src/​frontend/​src/​content/​docs/​integrations/​cloud/​azure/​azure-front-door.mdx Adds the main Private Link documentation for both hosting targets.
src/​frontend/​src/​content/​docs/​integrations/​cloud/​azure/​azure-app-service/​azure-app-service-host.mdx Connects App Service ingress guidance to Private Link.
src/​frontend/​src/​content/​docs/​diagnostics/​aspireazure003.mdx Adds the Private Link API and diagnostic example.
src/​frontend/​src/​content/​docs/​deployment/​azure/​container-apps.mdx Links Container Apps deployment guidance to Private Link setup.
src/​frontend/​src/​content/​docs/​deployment/​azure/​azure-security-best-practices.mdx Updates networking guidance to cover private origins.
src/​frontend/​src/​content/​docs/​deployment/​azure/​app-service.mdx Adds a Private Link deployment overview and cross-link.

Review effort: Balanced

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

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

VS Code: Open PR #2084 artifacts

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

@eerhardt Eric Erhardt (eerhardt) left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Docs accuracy and conciseness review: Front Door Private Link

Verdict: I'm posting this as COMMENT because the reviewer is the PR author. On the merged results, the verdict would be REQUEST_CHANGES: Phase A found one claim that contradicts the source.

Phase A sources:

  • microsoft/aspire, branch release/17.0, commit cec195f2d0bf3f1d714badf74f205fa855fdf963. These files are identical to main.
  • Azure CLI az network private-endpoint-connection list --help, used to check the --type values.
  • Azure Learn, used for the App Service plan tiers and slot private-endpoint behavior.

Phase A: 47 claims, with these verdicts:

Verdict Count
Verified 40
Verified, with nuance 5
Unverifiable 0
Contradicted 2 (one root cause)

Phase B: I served PR head 671a9e92 at http://127.0.0.1:4321. The doc-tester agent ran blind to the source code, using playwright-cli, across 7 routes:

  • 0 critical issues, 7 warnings, and 4 knowledge gaps.
  • All samples type-check or build.
  • aspire publish output matches the docs for both targets.
  • Every internal link and anchor resolves.

What to fix first

  1. Accuracy: The Existing websites H4 and the matching troubleshooting row are wrong outside deployment slots. Without a slot, existing sites are locked down. This matches the open Copilot thread. See the inline comments at L491 and L621.
  2. Accuracy (nuance):
    • The slot pre-swap test sentence implies a private network is enough, but the slot needs its own private endpoint (L487).
    • The security page says App Service "environment" where it should say "websites" (security page L109).
  3. Conciseness: The user asked for "only what someone using the feature needs to know". Both phases independently flagged the same implementation details. Remove or trim these:
    • The generated Bicep excerpt (L383).
    • The "When you publish, Aspire:" bullets about group ID, certificate check, and request message (L375).
    • The Deploy and publish H4 internals (L479).
    • The privateLinkRegions sentence (L534).
    • The repeated Premium mentions: the Requirements bullet, the ACA list, the App Service list, and the stubs.
    • The repeated dashboard point (L420 and the App Service bullet).
    • The extra Front Door mentions on the security page.
    • The stub on azure-app-service-host and configure-container-apps, which should be one or two sentences plus the link.
Phase A: verified and verified-with-nuance claims (45)

Unless noted, file references point into microsoft/aspire@release/17.0 (cec195f2d).

# Claim (location in PR) Verdict Evidence
1 Premium SKU is selected automatically when an origin uses Private Link (AFD L294, L314) verified AzureFrontDoorExtensions.cs:340-346 (_targets.Count > 0 → CdnSkuName.PremiumAzureFrontDoor)
2 Public network access is disabled on the ACA environment verified AzureContainerAppExtensions.cs:450-454
3 WithOrigin can be called before or after WithAzureFrontDoorPrivateLink verified AzureFrontDoorPrivateLinkExtensions.cs remarks, and test WithAzureFrontDoorPrivateLinkOrderDoesNotMatter
4 Origins in other compute environments aren't changed verified AzureFrontDoorExtensions.cs:287-292
5 No effect when the AppHost runs locally verified AzureFrontDoorPrivateLinkExtensions.cs (!IsPublishMode → return)
6 C# reports ASPIREAZURE003 as an error until suppressed verified [Experimental("ASPIREAZURE003")], and the reproduced error ASPIREAZURE003
7 Requires the FrontDoor package plus the AppContainers or AppService package verified IAzureCdnPrivateLinkTarget is implemented in AzureContainerAppEnvironmentResource.cs:24 and AzureAppServiceEnvironmentResource.cs:33
8 Origins need an external HTTP endpoint verified AzureFrontDoorExtensions.cs:236-246
9 ACA must be an Aspire-provisioned, non-Express environment verified AzureContainerAppExtensions.cs:287-293 (Express) and :838-845 (existing)
10 App Service plan tiers that support private endpoints; default P0V3 verified, with nuance The tier list comes from Learn, not Aspire. P0V3 is set at AzureAppServiceEnvironmentExtensions.cs:175.
11 AddDotnetProject requires Aspire.Hosting.Dotnet verified AddProject is [Obsolete("Use AddDotnetProject…")] in ProjectResourceBuilderExtensions.cs, so the switch is intentional
12 ACA TypeScript and C# samples verified tsc --noEmit and dotnet build pass, and aspire publish succeeds (both phases)
13 Publish bullets: managedEnvironments group, certificate name check, HTTPS only, request message verified AzureFrontDoorExtensions.cs:315-322, AzureContainerAppEnvironmentResource.cs:46, and AzureFrontDoorPrivateLinkAnnotation.cs
14 Bicep excerpt verified Matches snapshot AzureFrontDoorPrivateLinkTests.WithAzureFrontDoorPrivateLinkConvertsOriginsToPrivateLinkOrigins.verified.bicep
15 Same-environment references stay inside the environment (L416) verified, with nuance Not evidenced in code. microsoft/aspire#21228 says it was "not verified against a deployed environment".
16 App Service samples verified type-check, build, and publish pass
17 Dashboard website is unchanged verified The generated env.bicep dashboard site has no publicNetworkAccess
18 Each origin targets its own website with group ID sites, not the plan verified AzureAppServiceEnvironmentResource.cs:44-50
19 Public access is disabled on every workload website, not just origins verified AzureAppServiceWebsiteContext.cs:493-495, and test WebsitesWithoutOriginsAreAlsoPrivate
20 Existing plans are supported verified Front Door README, and test ExistingPlanCanHostPrivateWebsites
21 aspire deploy orders websites before Front Door verified README, and microsoft/aspire#21396 description
22 aspire publish takes *_website_resourceId_input / *_resourceLocation_input parameters verified AzurePublishingContext.cs:266-272
23 Slots: origins target the production site; slot is public-disabled with no private endpoint verified AzureAppServiceWebsiteContext.cs:444-447
24 "To test the slot … connect to it over a private network" (L487) verified, with nuance A slot needs its own private endpoint (sites-<slot>); see the inline comment
25 No environment-local ingress on App Service; WithReference still resolves to the host name verified Front Door README, App Service section
26 frontDoor.Resource.GetEndpointUrl("api") verified AzureFrontDoorResource.cs:30. It's C#-only (no [AspireExport]).
27 Passing a Front Door output to its own origin creates a cycle verified README
28 Pending state, no auto-approval, possibly several requests, approve in portal Networking verified AzureFrontDoorPrivateLinkExtensions.cs remarks
29 Request message text verified AzureFrontDoorPrivateLinkAnnotation.cs
30 az network private-endpoint-connection list --type Microsoft.App/managedEnvironments and Microsoft.Web/sites verified az … list --help lists both types
31 Traffic flows minutes after approval, with a Front Door error until then; direct URL denied verified Remarks; Learn; #21396 live test (403 direct, 200 through Front Door)
32 api_endpointUrl output verified Generated frontdoor.bicep
33 Same-geography remap (westus → westus2), never crosses a geography, Switzerland fails verified FrontDoorPrivateLinkRegions.cs
34 privateLinkRegions variable with a deploy-time lookup verified FrontDoorPrivateLinkRegions.cs (CreateBicepObject, CreateLookup)
35 Region override samples, plus the TypeScript Provisioning.Cdn requirement verified Both compile; publish emits privateLinkLocation: 'westus2'
36 Changing the region creates a new connection request verified FrontDoorPrivateLinkRegions.cs MAINTENANCE remark
37 Troubleshooting: existing or Express environment verified as #9
38 Troubleshooting: no origin in the connected environment verified AzureFrontDoorExtensions.cs:330-338; reproduced in Phase B
39 Troubleshooting: origin in an environment connected to another Front Door verified AzureFrontDoorExtensions.cs:296-303
40 Troubleshooting: pending approval and geography rows verified as #28 and #33
41 Security page: "disables public network access on the environment" for App Service verified, with nuance It's per website; see the inline comment
42 Security page: "creates a managed private endpoint for each origin" verified, with nuance Front Door creates it; ACA origins share the environment target (AzureContainerAppEnvironmentResource.cs:40)
43 ASPIREAZURE003: other private-networking APIs report it, plus the example verified AzureFrontDoorPrivateLinkExtensions.cs attribute
44 Stubs on the ACA, App Service, and deployment pages verified as #2, #9, #18, #19, #28
45 Cross-page anchors (#connect-to-an-existing-app-service-plan, #deployment-slots, #enable-typed-provisioning-proxies) verified Resolved in Phase B

Contradicted (2, one root cause): "Existing websites" (L491) and the troubleshooting row (L621). See the inline comments.

Version placeholders: The PR adds no hard-coded Aspire versions.

Phase B: doc-tester report

This is the blind-user report, as produced (lightly reformatted).

Full doc-tester report

Focus area: PR #2084, Azure Front Door Private Link for Container Apps and App Service.

Versions used:

  • Aspire CLI: 17.0.0-preview.1.26555.11, daily channel.
  • AppHost SDK: 17.0.0-preview.1.26555.11.
  • Integration packages: 17.1.0-preview.1.26560.7.

Summary

Category Passed Failed Warnings
Content accuracy 14 0 6
Code examples 9 0 3
CLI commands 6 0 1
Links 7 pages, 0 broken internal links or anchors 0 1

Critical issues: None. Every sample tested compiles, and published output matches the docs.

Warnings

  • W1 (Medium), security page #restrict-ingress-to-azure-front-door: "Aspire then disables public network access on the environment…" For App Service, access is disabled on each website, as the main page and the publish output (api.bicep) show. Suggestion: "on the environment (Container Apps) or on each website (App Service)".
  • W2 (Medium), AFD page, Approve: "Use the Front Door endpoint URL of each origin, which the Front Door module emits as an output such as api_endpointUrl." The output exists only in frontdoor/frontdoor.bicep; main.bicep doesn't re-export it. Suggestion: say where to find the URL, such as the aspire deploy output or the portal (resource group > Deployments > frontdoor > Outputs).
  • W3 (Low), AFD page, end of Requirements: The section switches from addProject to addDotnetProject without saying why. Suggestion: use the same API as the rest of the page and drop the paragraph. Reviewer note (Phase A): the switch is intentional, because AddProject is [Obsolete] on release/17.0.
  • W4 (Low): Small inconsistencies in the samples:
    • The TypeScript sample uses withDashboard({ enable: false }), but the bullet says WithDashboard(false).
    • The ACA sample uses two withOrigin awaits, while the App Service sample chains them.
  • W5 (Low): Inline API names mix styles, and WithAzureFrontDoorPrivateLink isn't linked. Its TypeScript API reference URL returns 404, because the reference data hasn't been regenerated.
  • W6 (Low): The same cross-link section has three different headings across four pages. Suggestion: use one.
  • W7 (Low), /diagnostics/aspireazure003/: The header ("Version introduced: 13.2", "Azure Virtual Network types and members…") still reads as VNet-only.

Knowledge gaps

  • Connection ID: Nothing says <private-endpoint-connection-id> is the id field of the list output. Suggestion: add --query "[?properties.privateLinkServiceConnectionState.status=='Pending'].id" -o tsv.
  • Who can approve: "The person who approves the connection can manage private endpoint connections on the target resource." The role isn't named. Suggestion: name it, or link to Azure docs.
  • Workload profiles: "A Container Apps environment is a workload profiles environment that Aspire provisions." This reads like a setup step, but the default environment already uses workload profiles. Suggestion: "Use an environment that Aspire provisions (the default). Existing and Express environments aren't supported."
  • TypeScript: The page doesn't say what TypeScript users see for the experimental API, and GetEndpointUrl is C#-only.

Passed checks

  • TypeScript tsc --noEmit passes for the ACA, App Service, and region samples. The region sample needs aspire add Aspire.Hosting.Azure.Provisioning.Cdn, exactly as documented.
  • C# builds pass for all three samples. Removing the #pragma produces error ASPIREAZURE003.
  • aspire publish of the ACA sample shows:
    • Premium_AzureFrontDoor
    • groupId: 'managedEnvironments'
    • the request message
    • enforceCertificateNameCheck
    • publicNetworkAccess: 'Disabled' and workloadProfiles on the environment
    • outputs api_endpointUrl and web_endpointUrl
  • aspire publish of the App Service sample shows:
    • groupId: 'sites', with one origin per website
    • publicNetworkAccess: 'Disabled' on each website
    • the *_website_resource*_input parameters in main.bicep
    • plan P0V3
  • The "none of its origins run in that environment" troubleshooting row reproduced exactly.
  • All internal links and anchors on the 7 pages resolve, and all tabs render.

Recommendations

  1. Priority: W1 and W2.
  2. Gaps: the connection ID, the approver role, and TypeScript notes.
  3. Product observation: in TypeScript, validation errors surface as Capability Error … Code: INTERNAL_ERROR, which looks like a crash.

Conciseness and relevance findings

These are the tester's table rows, condensed.

On the AFD page:

# Location Verdict
1 Premium sentence above the section Keep
2 "one Front Door can serve both private and public origins" and "no effect when the AppHost runs locally" Keep
3 Requirements Premium bullet Trim to "Front Door Premium tier (Aspire selects it automatically)"
4 Workload profiles bullet Reword
5 AddDotnetProject paragraph Remove (reviewer: keep the API, shorten the note)
6 "When you publish, Aspire:" bullets 2–5 Trim to 1–2 bullets
7 Generated Bicep excerpt Remove
8 "Verify these service-to-service calls…" Remove
9 The dashboard point, stated twice Keep one
10 sites group ID and Premium bullets Trim or remove
11 "because Aspire still provisions the websites" Drop the clause
12 aspire deploy ordering sentence Remove
13 aspire publish paragraph Trim to one sentence
14 Existing websites H4 and troubleshooting row Keep one (and see the Phase A contradiction)
15 "requests access to env.." Fix the double period
16 privateLinkRegions sentence Remove
17 "empty private link model…" Trim to "changes only Private Link origins"
18 "same code applies to App Service" Keep
19 Troubleshooting rows that repeat earlier sections Keep the table, trim the duplicate prose
20 Tier comparison link in See also Optional remove; it's already linked

On the other pages:

# Location Verdict
21 azure-app-service-host stub Trim to the call, "every workload website", and the link
22 VNet-note pointer Keep
23 configure-container-apps stub Drop the Premium and private-endpoint clauses; keep the existing/Express caveat
24 Deployment-page stubs Keep
25 Security page Remove 2 of the 3 extra Front Door mentions
26 Security table "and/or" Reword
27 Security Restrict-ingress subsection Drop the Premium clause and fix W1
28 ASPIREAZURE003 addition Keep

Routes exercised:

  • /integrations/cloud/azure/azure-front-door/ (Private Link section and See also)
  • /integrations/cloud/azure/azure-app-service/azure-app-service-host/
  • /integrations/cloud/azure/configure-container-apps/
  • /deployment/azure/container-apps/
  • /deployment/azure/app-service/
  • /deployment/azure/azure-security-best-practices/
  • /diagnostics/aspireazure003/

- Scope the "existing site stays public" caveat to deployment slots, which is
  the only case where Aspire skips updating an existing production site.
- Remove implementation details (generated Bicep excerpt, group IDs,
  certificate checks, privateLinkRegions variable, publish parameter names)
  and repeated Premium/dashboard mentions.
- Drop WithDashboard(false) from the App Service sample; explain the dashboard
  stays public instead.
- Add a --query to find pending connection IDs and say where to find the
  Front Door endpoint.
- Use one heading for the cross-link sections, shorten the stubs, and say App
  Service access is disabled per website on the security page.

Co-authored-by: Copilot App <[email protected]>
@eerhardt
Eric Erhardt (eerhardt) enabled auto-merge (squash) November 10, 2026 23:23
@eerhardt
Eric Erhardt (eerhardt) merged commit 8eebbfa into release/17.0 Nov 11, 2026
16 checks passed
@eerhardt
Eric Erhardt (eerhardt) deleted the eerhardt-afd-private-link-docs branch November 11, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants