How can I deploy multiple copies of an Azure function with different parameters

Viewed 962

I am currently running an Azure function to periodically pull data from a REST API and copy the data to a set of files. It works fine but is currently architected to iterate through 100 different parameters. Ideally the loads would be independent. Is there any way of deploying an Azure function multiple times with a different static parameter for each instance?

Thanks

1 Answers

One possible solution is to use Application Settings to store your parameters if you want to keep your current architecture.

If I could change your architecture, I would use Durable Functions in this case, it supports Fan In/Out architecture (https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-cloud-backup). So for each request, it will spawn 100 different functions with different parameters as well.

Let me know if you need anything else.

Related