Azure / azure-functions-core-tools

Command line tools for Azure Functions
MIT License
1.32k stars 434 forks source link

Need a way to share code between Azure Function Apps written in Python #3360

Open mat-undo opened 1 year ago

mat-undo commented 1 year ago

I have exactly the same issue / need as described in the initial description here: https://github.com/Azure/azure-functions-core-tools/issues/1987, except that I'm using the v2 programming model.

The referenced issue was closed as a duplicate and a reference given to the fact that a new model has been delivered. But, I still can't see how to satisfy this requirement? Either there's an issue in that it still isn't possible, or there's a docs issue because I can't see how to do it?

metamoof commented 1 year ago

I have used two options in the past:

Both of these require a little massaging of CD pipelines, but once they're set up they work fine.

For bonus extra, I have a CI workflow that forces rebuild and redeployment of all the functions apps that depend on my shared code whenever I update the shared library.