Push-OutputBinding not working in ActivityTrigger
See original GitHub issueUsing the standard VSCode function creation templates, I created an orchestrator with an activity function defined as:
function.json
{
"bindings": [{
"name": "name",
"type": "activityTrigger",
"direction": "in"
},
{
"type": "queue",
"direction": "out",
"name": "outputQueueItem",
"queueName": "outqueue",
"connection": "AzureWebJobsStorage"
}
]
}
run.ps1
param($name)
Write-Information "Pushing to outputQueueItem output binding"
Push-OutputBinding -Name outputQueueItem -Value "Queue item from Hello1"
Write-Information "Done"
"Hello $name!"
The Write-Information lines get logged, but no queue item is created. The same Push-OutputBinding works fine from other triggers such as an httpTrigger.
Repro attached.
- Queue item gets generated correctly when running http://localhost:7071/api/HttpTrigger1
- Queue item is not generated when running http://localhost:7071/api/orchestrators/DurableFunctionsOrchestrator1
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Input/Output Binding on Azure Durable Activity Function
I need to update Azure Table from Azure Durable Function. The code works nicely if I put it in the HTTP trigger. run.ps1...
Read more >Azure Function Powershell Outputbinding to blob storage ...
I Have a Azure Function written in PowerShell that is running a Query against a Database and Saving it into a object.
Read more >Response bindings for Functions with ActivityTrigger
The ActivityTrigger binding handles both input and output. Per the docs on error handling, an activity function can return any sort of ...
Read more >Durable Azure Functions with PowerShell | How
Exploring different application patterns in Durable Azure Functions using PowerShell.
Read more >Azure Functions Blob Output binding puts quotation marks in ...
Coding example for the question Azure Functions Blob Output binding puts quotation marks in path when accessing activityTrigger.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Brilliant thanks so much for replying - been wondering how to check this for a long time! Turns out it was hiding in almost plain sight all along 😃
Thanks @oobegreg for helping with the discussion here! Glad to hear the patch is finally out. Thanks all