Skip to content

Use Aspire Front Door integration - #967

Merged
David Pine (IEvangelist) merged 1 commit into
mainfrom
eerhardt/front-door-work
May 15, 2026
Merged

David Pine (IEvangelist) merged 1 commit into
mainfrom
eerhardt/front-door-work

Conversation

@eerhardt

Copy link
Copy Markdown
Member

Summary

This ports the AppHost Front Door deployment from a hand-authored Bicep resource to the Aspire.Hosting.Azure.FrontDoor integration so the site uses the product integration while preserving the existing Azure resource names and route caching behavior.

  • Adds the Azure Front Door hosting package and wires the App Service website through AddAzureFrontDoor.
  • Customizes the generated infrastructure to keep the previous Premium SKU, profile/endpoint/origin/route names, and cache compression/query settings.
  • Removes the custom Front Door Bicep file. The WAF policy is intentionally removed because Front Door rules will come from the shared library.

Validation

  • dotnet restore .\Aspire.Dev.slnx
  • dotnet build .\Aspire.Dev.slnx --no-restore
  • dotnet build .\src\apphost\Aspire.Dev.AppHost\Aspire.Dev.AppHost.csproj --no-restore -o <artifacts>\apphost-build
  • dotnet run --project .\src\apphost\Aspire.Dev.AppHost\Aspire.Dev.AppHost.csproj --no-build -- --publisher manifest --output-path <artifacts>\frontdoor-manifest.json

Replace the custom Front Door Bicep resource with the Aspire.Hosting.Azure.FrontDoor integration and preserve the existing resource names/caching configuration through infrastructure customization.

The WAF policy resource is intentionally removed because Front Door rules will be provided by the shared library.

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings May 14, 2026 22:47

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

Note

Copilot was unable to run its full agentic suite in this review.

Ports the AppHost’s Azure Front Door deployment from a custom Bicep template to the Aspire.Hosting.Azure.FrontDoor integration while attempting to preserve prior resource naming and caching behavior.

Changes:

  • Replaced the custom AzureFrontDoorResource/Bicep-based deployment with AddAzureFrontDoor(...).WithOrigin(...).ConfigureInfrastructure(...).
  • Removed the hand-authored front-door-appservice.bicep template (including the WAF policy resources).
  • Added the Aspire Azure Front Door hosting package and updated AppHost wiring for deployment.

Reviewed changes

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

File Description
src/apphost/Aspire.Dev.AppHost/Extensions/DeploymentExtensions.cs Switches to Aspire Front Door integration and customizes generated infra (SKU, names, cache settings).
src/apphost/Aspire.Dev.AppHost/Bicep/front-door-appservice.bicep Removes the custom Bicep implementation for Front Door (and WAF/security policy).
src/apphost/Aspire.Dev.AppHost/Aspire.Dev.AppHost.csproj Adds the Aspire.Hosting.Azure.FrontDoor package.
src/apphost/Aspire.Dev.AppHost/AppHost.cs Wires App Service environment and Front Door into the app host.

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

@IEvangelist
David Pine (IEvangelist) merged commit 0e3e581 into main May 15, 2026
9 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the eerhardt/front-door-work branch May 15, 2026 01:35
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.

3 participants