An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
You can’t get this “for free” via resourceTypes.
In createUiDefinition, the location picker can only be constrained by:
resourceTypes (regions that support a resource type), and/or
allowedValues (a hard list you provide).
Flex Consumption availability is a plan/SKU capability, not a distinct resource type that the location control can target, so Microsoft.Web/serverfarms will always be a superset.
What people do in practice:
- Maintain
allowedValues(yes, manual), or
Build a dynamic dropdown backed by Microsoft.Solutions.ArmApiControl (or your own endpoint) that returns the “Flex supported locations” list, and bind that to a Microsoft.Common.DropDown. ArmApiControl is specifically meant to populate dynamic values from an API response.
If you want “no manual tracking”, option #2 is the closest: host a tiny service that returns the output of az functionapp list-flexconsumption-locations (or equivalent), and have the UI read that list at deploy time.You can’t get this “for free” via resourceTypes.
In createUiDefinition, the location picker can only be constrained by:
resourceTypes (regions that support a resource type), and/or
allowedValues (a hard list you provide).
Flex Consumption availability is a plan/SKU capability, not a distinct resource type that the location control can target, so Microsoft.Web/serverfarms will always be a superset.
What people do in practice:
Maintain allowedValues (yes, manual), or
Build a dynamic dropdown backed by Microsoft.Solutions.ArmApiControl (or your own endpoint) that returns the “Flex supported locations” list, and bind that to a Microsoft.Common.DropDown. ArmApiControl is specifically meant to populate dynamic values from an API response.
If you want “no manual tracking”, option #2 is the closest: host a tiny service that returns the output of az functionapp list-flexconsumption-locations (or equivalent), and have the UI read that list at deploy time.