Add automatic scaling support for Azure App Service Environment#12545
Closed
Copilot wants to merge 3 commits intorelease/13.0from
Closed
Add automatic scaling support for Azure App Service Environment#12545Copilot wants to merge 3 commits intorelease/13.0from
Copilot wants to merge 3 commits intorelease/13.0from
Conversation
- Added EnableAutomaticScaling property to AzureAppServiceEnvironmentResource - Updated AppServicePlan to configure elasticScaleEnabled, perSiteScaling, and maximumElasticWorkerCount based on EnableAutomaticScaling flag - Added WithAutomaticScaling() extension method to enable automatic scaling - Updated dashboard configuration to set FunctionAppScaleLimit and ElasticWebAppScaleLimit to 1 - Updated XML documentation for WithDashboard method - Added test for automatic scaling feature - Updated all existing snapshot test files with new properties Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Port pull request 12305 to new branch
Add automatic scaling support for Azure App Service Environment
Oct 31, 2025
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 12545Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 12545" |
Contributor
|
PLEASE DONT MERGE - found a blocking bug that causes issues with telemetry being routed to dashboard after worker restart |
Member
|
@ShilpiRach what's the state of this? The bug is still in main. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Ports #12305 to enable automatic scaling for Azure App Service Plans.
Changes
Resource model: Added
EnableAutomaticScalinginternal property toAzureAppServiceEnvironmentResourceInfrastructure generation: Modified
AppServicePlanprovisioning to configure scaling behavior based on flag:elasticScaleEnabled: true/perSiteScaling: falsewhen automatic scaling enabledelasticScaleEnabled: false/perSiteScaling: trueotherwisemaximumElasticWorkerCount: 10(follows Azure best practices)Dashboard configuration: Set scale limits to 1 for dashboard app service:
FunctionAppScaleLimit: 1ElasticWebAppScaleLimit: 1API: Added
WithAutomaticScaling()extension method for opt-inUsage
Feature is opt-in (disabled by default). Automatic scaling improves performance and avoids cold starts per Azure Well-Architected Framework guidance.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.