This is really helpful, thanks a lot Sam. This document is excellent but our deployment uses a separate server for the WFM Server. We adopted some of the settings in your config document and it got us a bit further, but we now get a licence errroand I'm guessing that is because the request to access WFM is wrongly being routed to the ArcGIS Server on the hosting server. Would it be possible for you to tell me what the Azure Application Gateway settings should be for a 2 server deployment i.e. a hosting server and a separate WFM Server.
The error we curretly get when we try to create a Workflow is below....

And we also get numerous web socket errors which makes me think its an Azure App gateway issue
