Skip to content

[docs] Document App Service delegated subnet support - #1441

Merged
David Pine (IEvangelist) merged 1 commit into
release/13.5from
docs/app-service-delegated-subnet-18738-0381253861e9b103
Aug 7, 2026
Merged

[docs] Document App Service delegated subnet support#1441
David Pine (IEvangelist) merged 1 commit into
release/13.5from
docs/app-service-delegated-subnet-18738-0381253861e9b103

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#18738.

@davidfowl

Targeting release/13.5 based on the source PR milestone 13.5.

Why

PR 18738 adds regional virtual network integration for Azure App Service environments (WithDelegatedSubnet on AzureAppServiceEnvironmentResource), addressing the App Service config gap from discussion #18734. Signals triggered:

  • integration_readme_changedsrc/Aspire.Hosting.Azure.AppService/README.md gained a new "Configuring regional virtual network integration" section describing WithDelegatedSubnet.
  • pr_body_has_user_facing_section — the PR body includes a "User-facing usage" section with the WithDelegatedSubnet example.
  • pr_body_has_cli_flag_mention — the PR body references dotnet test --project ... test invocations tied to the new APIs.

What changed

  • azure-app-service-host.mdx: Added a new "Regional virtual network integration" section (before "Customize provisioning infrastructure") showing how to add the Aspire.Hosting.Azure.Network integration, create a delegated subnet, and apply it to an App Service environment with WithDelegatedSubnet (C# and TypeScript), including the ASPIREAZURE003 experimental-API suppression and a note about outbound-only scope. Also added a cross-reference to Azure Virtual Network in "See also".
  • azure-virtual-network.mdx: Added a new "Delegate subnets to compute environments" subsection under "Add private endpoints" showing that both Azure Container Apps and Azure App Service environments expose WithDelegatedSubnet, with a combined example and a link back to the App Service doc.

Both pages were updated in place; no new pages were created.

Generated by PR Documentation Check · auto · 93.7 AIC · ⌖ 9.77 AIC · ⊞ 17.7K ·

@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Aug 7, 2026
@IEvangelist
David Pine (IEvangelist) marked this pull request as ready for review August 7, 2026 06:05
Copilot AI lite review requested due to automatic review settings August 7, 2026 06:05

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

Validated against microsoft/aspire#18738, its integration README, and the TypeScript fixture. The delegated subnet examples, service delegation, generated-resource scope, and outbound-only limitations are documented accurately. The four-backtick closers match this page's existing tabbed-block convention.

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.

Pull request overview

This PR updates the Aspire Azure integration docs to describe delegated subnet support (WithDelegatedSubnet / withDelegatedSubnet) for Azure App Service environments, and cross-links it from the Azure Virtual Network documentation.

Changes:

  • Added a new “Regional virtual network integration” section to the Azure App Service hosting doc with C# and TypeScript examples using WithDelegatedSubnet.
  • Added a new “Delegate subnets to compute environments” subsection to the Azure Virtual Network doc, showing WithDelegatedSubnet usage for Azure Container Apps and Azure App Service environments.

Docs accuracy verification (source-of-truth):

  • Verified against microsoft/aspire (main @ a50e553a8cc7d6f9adfcc4550f4ff7fb769dc0d4):
    • WithDelegatedSubnet<T>(..., IResourceBuilder<AzureSubnetResource>) exists and is exported to TypeScript as withDelegatedSubnet.
    • App Service delegated subnet uses Microsoft.Web/serverFarms.
    • App Service provisioning sets VirtualNetworkSubnetId for generated resources including the dashboard when a delegated subnet is present.
  • Doc-tester (browser/serve) run: not executed in this review context (no local docs server execution available here), so rendering/link-click validation wasn’t performed.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/frontend/src/content/docs/integrations/cloud/azure/azure-virtual-network.mdx Adds a new delegated-subnet subsection with C#/TS examples and guidance.
src/frontend/src/content/docs/integrations/cloud/azure/azure-app-service/azure-app-service-host.mdx Documents App Service “regional VNet integration” via WithDelegatedSubnet, plus adds a “See also” link to the VNet doc.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +345 to +360
```csharp title="AppHost.cs"
var vnet = builder.AddAzureVirtualNetwork("vnet");
var subnet = vnet.AddSubnet("compute-subnet", "10.0.0.0/24");

// Azure Container Apps environment
builder.AddAzureContainerAppEnvironment("aca-env")
.WithDelegatedSubnet(subnet);

// -- or --

// Azure App Service environment (requires ASPIREAZURE003 suppression)
#pragma warning disable ASPIREAZURE003
builder.AddAzureAppServiceEnvironment("app-service-env")
.WithDelegatedSubnet(subnet);
#pragma warning restore ASPIREAZURE003
````
Comment on lines +363 to +376
```typescript title="apphost.mts"
const vnet = await builder.addAzureVirtualNetwork("vnet");
const subnet = await vnet.addSubnet("compute-subnet", "10.0.0.0/24");

// Azure Container Apps environment
await builder.addAzureContainerAppEnvironment("aca-env")
.withDelegatedSubnet(subnet);

// -- or --

// Azure App Service environment
await builder.addAzureAppServiceEnvironment("app-service-env")
.withDelegatedSubnet(subnet);
````
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

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

VS Code: Open PR #1441 artifacts

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

@IEvangelist
David Pine (IEvangelist) merged commit 142642c into release/13.5 Aug 7, 2026
17 of 20 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the docs/app-service-delegated-subnet-18738-0381253861e9b103 branch August 7, 2026 06:40
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.

2 participants