pulumi / pulumi-azure-native

Azure Native Provider
Apache License 2.0
126 stars 33 forks source link

Create FrontDoor with related ruleengines #1491

Open Norman-UL opened 2 years ago

Norman-UL commented 2 years ago

Hello!

Issue details

I would like to create a Front Door with some routing rules affected to rule engines. AFAIK :

So I think Pulumi should implement a way to attach a rule engine to existing routing rule

Affected area/feature

Thank for your help

viveklak commented 2 years ago

This seems to relate to https://github.com/pulumi/pulumi-azure-native/issues/1112

danielrbradley commented 12 months ago

Issue #1112 should now have been resolved by PR #2755 . The front door resource didn't appear in the list of affected resources, so I think this is a slightly different issue.

From the described problems, the issue is how the FrontDoor and its RoutingRules has been modelled by Azure as a single resource, but the RulesEngine is a separate resource. The RulesEngine depends on the FrontDoor, but the routing rules depend on the RulesEngine.

There are no endpoints in the specification to allow the modification of the routing rules separate to the frontdoor: image

Azure have built a cyclic dependency into their resources which makes it impossible to use declaritively.

Here's an article on exploring the challenges around cyclic dependencies with a few listed workarounds including running the deployment twice on the inital deploy to change the desired state of the FrontDoor on the second deployment.

danielrbradley commented 11 months ago

This is blocked on implementation of: