Repository navigation
[docs] Document Azure Front Door Private Link for Container Apps and App Service - #2084
Conversation
…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]>
There was a problem hiding this comment.
🟡 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
ASPIREAZURE003documentation 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
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
Eric Erhardt (eerhardt)
left a comment
There was a problem hiding this comment.
Docs accuracy and conciseness review: Front Door Private Link
Verdict: I'm posting this as
COMMENTbecause the reviewer is the PR author. On the merged results, the verdict would beREQUEST_CHANGES: Phase A found one claim that contradicts the source.
Phase A sources:
microsoft/aspire, branchrelease/17.0, commitcec195f2d0bf3f1d714badf74f205fa855fdf963. These files are identical tomain.- Azure CLI
az network private-endpoint-connection list --help, used to check the--typevalues. - 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 publishoutput matches the docs for both targets.- Every internal link and anchor resolves.
What to fix first
- 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.
- 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).
- 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
privateLinkRegionssentence (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-hostandconfigure-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 infrontdoor/frontdoor.bicep;main.bicepdoesn't re-export it. Suggestion: say where to find the URL, such as theaspire deployoutput or the portal (resource group > Deployments >frontdoor> Outputs). - W3 (Low), AFD page, end of Requirements: The section switches from
addProjecttoaddDotnetProjectwithout 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, becauseAddProjectis[Obsolete]onrelease/17.0. - W4 (Low): Small inconsistencies in the samples:
- The TypeScript sample uses
withDashboard({ enable: false }), but the bullet saysWithDashboard(false). - The ACA sample uses two
withOriginawaits, while the App Service sample chains them.
- The TypeScript sample uses
- W5 (Low): Inline API names mix styles, and
WithAzureFrontDoorPrivateLinkisn'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 theidfield of thelistoutput. 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
GetEndpointUrlis C#-only.
Passed checks
- TypeScript
tsc --noEmitpasses for the ACA, App Service, and region samples. The region sample needsaspire add Aspire.Hosting.Azure.Provisioning.Cdn, exactly as documented. - C# builds pass for all three samples. Removing the
#pragmaproduceserror ASPIREAZURE003. aspire publishof the ACA sample shows:Premium_AzureFrontDoorgroupId: 'managedEnvironments'- the request message
enforceCertificateNameCheckpublicNetworkAccess: 'Disabled'andworkloadProfileson the environment- outputs
api_endpointUrlandweb_endpointUrl
aspire publishof the App Service sample shows:groupId: 'sites', with one origin per websitepublicNetworkAccess: 'Disabled'on each website- the
*_website_resource*_inputparameters inmain.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
- Priority: W1 and W2.
- Gaps: the connection ID, the approver role, and TypeScript notes.
- 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]>

Summary
Documents
WithAzureFrontDoorPrivateLink(withAzureFrontDoorPrivateLinkin 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 onrelease/17.0are identical tomainfor 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.ASPIREAZURE003diagnostic page: notes thatWithAzureFrontDoorPrivateLinkreports the diagnostic and adds an example.Decisions and assumptions:
AddDotnetProject/addDotnetProject, becauseAddProjectis marked obsolete onrelease/17.0. The new section notes theAspire.Hosting.Dotnetpackage requirement.withDashboard({ enable: false }). ThewithDashboard(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 showwithDashboard(false); I left those alone because they are unrelated to this change.Aspire.Hosting.Azure.Provisioning.Cdnpackage.P0V3) qualifies.ApiReferencelinks for the new APIs, because the generated API data in this repo (13.6) does not contain them yet.Not verified and flagged in the docs where relevant:
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(fromsrc/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 newtwoslashfences 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 withplaywright-cli.tscagainst the SDK generated byaspire addfor17.1.0-preview.1.26556.5(Front Door, Container Apps, App Service, Dotnet, and Provisioning.Cdn packages). Passed.withAzureFrontDoorPrivateLinkis present on bothAzureContainerAppEnvironmentResourceandAzureAppServiceEnvironmentResource, and on17.0.0-preview.1.26552.6for Container Apps.dotnet build apphost.cswith the same packages: passed with no warnings. Removing the#pragmaproduced errorASPIREAZURE003.aspire publishfor the TypeScript Container Apps sample (with the region override) and the App Service sample: both succeeded. The generated Bicep confirmed thePremium_AzureFrontDoorSKU,publicNetworkAccess: 'Disabled',managedEnvironmentsandsitesgroup IDs, the request message,privateLinkLocation: 'westus2', and the<name>_website_resourceId_inputparameters inmain.bicep.pnpm build(CI does this per repo policy) and an end-to-end Azure deployment.