Repository navigation
Use Aspire Front Door integration - #967
Merged
Merged
Conversation
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]>
Eric Erhardt (eerhardt)
requested a review
from David Pine (IEvangelist)
as a code owner
May 14, 2026 22:47
Contributor
There was a problem hiding this comment.
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 withAddAzureFrontDoor(...).WithOrigin(...).ConfigureInfrastructure(...). - Removed the hand-authored
front-door-appservice.biceptemplate (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.
David Pine (IEvangelist)
approved these changes
May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This ports the AppHost Front Door deployment from a hand-authored Bicep resource to the
Aspire.Hosting.Azure.FrontDoorintegration so the site uses the product integration while preserving the existing Azure resource names and route caching behavior.AddAzureFrontDoor.Validation
dotnet restore .\Aspire.Dev.slnxdotnet build .\Aspire.Dev.slnx --no-restoredotnet build .\src\apphost\Aspire.Dev.AppHost\Aspire.Dev.AppHost.csproj --no-restore -o <artifacts>\apphost-builddotnet run --project .\src\apphost\Aspire.Dev.AppHost\Aspire.Dev.AppHost.csproj --no-build -- --publisher manifest --output-path <artifacts>\frontdoor-manifest.json