Azure / azure-functions-powershell-worker

PowerShell language worker for Azure Functions.
MIT License
202 stars 52 forks source link

Update Dependency management section in the Azure Functions PowerShell developer guide #943

Open Francisco-Gamino opened 1 year ago

Francisco-Gamino commented 1 year ago

Please update the Dependency management section at https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-powershell?tabs=portal#dependency-management.

For dependency management, there are two options: 1) Managed dependencies (via requirements.psd1 and host.json) -- these are managed by the Functions service 2) Include function app dependencies (PowerShell modules) with the function app content. These dependencies can be placed in the Modules folder at the function app root. This information is currently under the Function app-level modules folder section.

AnatoliB commented 3 weeks ago

The current doc structure is outdated, mixes important concepts, and does not give enough guidance to users who do not need the Managed Dependencies feature:

I propose revamping the Dependency management section to make it very clear that there are two recommended methods to manage modules, each method has its own advantages, and each method has separate instructions. Here is the proposed structure with more comments:

andystaples commented 3 weeks ago

Also consider: