I have the basic Azure function and in the integration I have defined trigger as Azure storage queue and parameter name as queueItem. Likewise I have set output as Azure storage queue and parameter name as outputQueueItem. Function is triggered when I get message to my inputqueue but I cannot get the message to outputqueue.
param([string] $QueueItem, $TriggerMetadata)
Write-Host "PowerShell queue trigger function processed work item: $QueueItem"
Write-Host "Queue item insertion time: $($TriggerMetadata.InsertionTime)"
$outputQueueItem = $QueueItem
I have tried with "$outputQueueItem.Add($QueueItem)" but none of these work. What is the correct way on using the output?
$outputQueueItem = $QueueItemwill not work, please tryPush-OutputBinding -Name outputQueueItem -Value $QueueItem- Bowman Zhu