I want to deploy an Azure Front Door with custom RuleEngine associated to one of the RoutingRules.
The whole problem is that RulesEngine has to be associated with RoutingRule, RoutingRule can be created only when creating Front Door, but RulesEngine also needs Front Door in order to be created.
https://docs.microsoft.com/en-us/azure/templates/microsoft.network/2020-05-01/frontdoors
I've tried to create a standalone resource of type Microsoft.Network/frontDoors/routingRules afterwards but I've got an error that resource type is invalid.
Am I missing something or this is impossible to achieve in single ARM deployment?