Hi Chris Shockey,
Thanks for sharing the details. The issue likely relates to how Azure Functions handles PowerShell module dependencies. Even though you’ve correctly set requirements.psd1
and enabled managedDependency
in host.json
, sometimes the modules don’t get restored properly.
- Ensure the file is named exactly
requirements.psd1
and is placed at the root of the Function App.
Try removing specific versions temporarily, and just use:
'Az' = '10.*'
This ensures all necessary submodules like Az.Accounts
and Az.Storage
are included.
- After updating
requirements.psd1
, restart the Function App to trigger dependency installation. - Check the Kudu console (
https://<yourfunction>.scm.azurewebsites.net/DebugConsole
) underD:\home\data\ManagedDependencies
to see if modules were installed.
To help you better understand, kindly refer to the documentations below:
https://github.com/Azure/azure-functions-powershell-worker/issues/239
Please also check these thread as it will help you identify your issue more easily.
I hope this addresses your query. Please let me know if you need any further assistance or clarification.