I'd like to use Azure Container instances to run a long (10 mins) analysis test using a legacy app. When an item appears in CosmosDB, I want to trigger the launch of a new container instance.
The container will have a lightweight proxy that will pull the data from CosmosDB, write it to container file system, run the legacy app, get the output and push it back to CosmosDB.
Cosmos is just an example. Could be blob, or anything else that can store a few Mbs of data.
Is it possible to trigger the creation of new containers in this way? Any references/sample code?