This is somewhat complex setup, please take a look at the prepared example (attached) first.
The problem here is that when the entity resolver resolves some systemId, you get an input source with the stream AND a resolved systemId. Subsequent resolutions (when you for instance have an import or an include) will use this resolved system id.
In this course, you will learn how Azure Functions enable the creation of event-driven, compute-on-demand systems that can be triggered by various external events. You will earn how to leverage functions to execute server-side logic and build serverless architectures.
Develop an Azure Function, Deploy an Azure Function, Evaluate Azure services for integration and process automation scenarios, Test an Azure Function