Open tjgruber opened 6 months ago
When digging into this issue, it was discovered that this is a result of not importing the external module explicitly into your function app by adding a line like this somewhere in your app (preferably profile.ps1)
Import-Module AzureFunctions.PowerShell.Durable.SDK
If the module is not imported, the function definitions from this module are not loaded and instead the ones bundled with the PowerShell worker are used. I have opened a PR on the PowerShell worker to fix this behavior in the bundled module, but for now you can resolve this by adding the import statement.
This issue is still happening in Azure Durable Functions via HTTP starter function.
Apparently this has been fixed, but it does not actually seem to be, see:
To rule out any issues in my own code & functions, I also tested using Microsoft's own examples, showing the issue persists:
Using template:
The orchestrator and activity are running just fine.
The Starter works fine until it gets to the following line:
$Status = Get-DurableStatus -InstanceId $InstanceId
Starter returns:
Orchestrator returns:
Activity returns: