Open Francisco-Gamino opened 1 year 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:
Copy-Item
sample, which is useful in situations when the module content is already available locally. We need two more samples:
Save-Module
to retrieve modules from the PowerShell GallerySave-PSResource
from the PSResourceGet module to retrieve modules from the PowerShell Gallery or many other sourcesAlso consider:
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
andhost.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 theModules
folder at the function app root. This information is currently under theFunction app-level modules folder
section.