I have a multi-tier application that is deployed using Azure Devops. It uses the "blue green" deployment methodology. (I.e. 2 identical stacks side by side.) This works fine. The while lot is fronted by Azure Front Door such that one URL (call it "Prod") points to one application stack and another URL (call it "ProdNew") points to the other application stack.
appProd.contoso.com --> Back End Prod
appProdNew.contoso.com --> Back End ProdNew
The testers test appProdNew.contoso.com and when it all works, there is a cutover pipeline that changes the Front Door rule to do this:
appProd.contoso.com --> Back End ProdNew
(Don't worry about inflight transactions, they're all handled by some database cleverness.)
The problem is that Front Door continues to point to Back End Prod even after the config is saved. If left for a few hours (I don't know how many, but it means overnight), eventually, it does use the new Back End.
Prior to Front Door, we used DNS CNAMES and flipped those. The problem with that approach is that during the flip over, some would be using the old and some the new which presented a problem for a blue/green deployment. One of the ideas of using Front Door was to gain more control over the cutover process.
Question: are we approaching the problem in the wrong way, or is there a command we can throw at Front Door to force it to use the new back end?
The behaviour described in the question does not seem to be expected behaviour. Based on additional testing the following day, the moment Front Door was updated with the new backend, it started using it - even without a Cache Purge. Therefore, the problem would appear to be a "glitch" in Front Door, possibly just a delay in it applying the new configuration.