question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Push-OutputBinding not working in ActivityTrigger

See original GitHub issue

Using 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.

FunctionsOutputBinding.zip

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
thunderstorm654commented, Feb 7, 2022

@thunderstorm654 this is something I learnt from MS as it’s not intuative at all.

Open your function app in the Azure portal and select the Overview tab.

After a slight delay (maybe 10 seconds) in the Essentials section (at the top) you should see a See more link under tags (not the one next to properties. Click that and then Runtime version should appear under properties on the right hand side.

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 😃

1reaction
davidmrdavidcommented, Feb 10, 2022

Thanks @oobegreg for helping with the discussion here! Glad to hear the patch is finally out. Thanks all

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found