azure-functions-powershell-worker
azure-functions-powershell-worker copied to clipboard
New Programming Model - override the new PM Module with managed dependency version
When customer specifies a version of AzureFunctions.PowerShell.SDK in requirements.psd1, it should override the version that was bundled with the worker for indexing. Currently, it will not, as managed dependencies are not loaded until the first function invocation. This module must be available before or during the ProcessFunctionMetadataRequest call.
For now, we will use the module that is bundled with the language worker.
A second part is to detect if the customer is trying to update AzureFunctions.PowerShell.SDK via requirements.psd1, and if this is the case, fail with an explicit error to the user that they cannot update the module this way.