Skip to content

Conversation

@MicroFish91
Copy link
Contributor

@MicroFish91 MicroFish91 commented Dec 9, 2025

I added flex consumption to the list of available DTS plans. This mostly affects the Advanced Create flow.

I also changed the behavior of FunctionAppHostingPlanStep a bit. I like the idea of injecting the available plans in as a dependency as it helps uncouple a lot of the more command-specific logic and helps with separation of concerns. This gives each command a chance to customize its own availability logic without having to worry about how it's going to affect other commands since this step can be shared anywhere.

@MicroFish91 MicroFish91 requested a review from a team as a code owner December 9, 2025 02:53
@MicroFish91 MicroFish91 changed the title Allow injecting available hosting plans into FunctionAppHostingPlanStep. Update DTS plans to include Flex Consumption Allow injecting available hosting plans into FunctionAppHostingPlanStep. Update DTS plans to include Flex Consumption Dec 9, 2025
setPremiumPlanProperties(context);
}
} else if (context.useFlexConsumptionPlan) {
if (context.useFlexConsumptionPlan) {
Copy link
Contributor Author

@MicroFish91 MicroFish91 Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there could be a better way to handle this now but I don't want to explore that in this PR. Basically, I think it would be better if we removed this and relied on the injected available plans to only show flex. Then we can auto-select if the pick was just the one pick. Prompt logic would then handle setting the related plan properties.

@MicroFish91 MicroFish91 merged commit 8ec4d38 into main Dec 9, 2025
2 checks passed
@MicroFish91 MicroFish91 deleted the mwf/dont-default-prem branch December 9, 2025 18:52
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