Help with Azure Function Output binding parameter

%3CLINGO-SUB%20id%3D%22lingo-sub-145114%22%20slang%3D%22en-US%22%3EHelp%20with%20Azure%20Function%20Output%20binding%20parameter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-145114%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20Azure%20Functions%20that%20is%20triggered%20when%20a%20Event%20Hub%20message%20is%20received.%20It's%20working%20fine.%3C%2FP%3E%0A%3CP%3ESo%2C%20i%20generate%20a%20file%20(text-to-speech%20bing)%20and%20i'm%20trying%20save%20it%20in%20a%20Blob%20Storage.%20I%20configured%20the%20function.json%20following%3A%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%22type%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%3E%22blob%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%22name%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%3E%22myOutputBlob%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%22path%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%3E%22queuetest19628%2F%7BqueueTrigger%7D%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%22connection%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%3E%22AzureWebJobsDashboard%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%22direction%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%3E%22out%22%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%20%7D%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EI%20tried%20change%20de%20%22queueTrigger%22%20parameter%20to%20anything%2C%20but%20i%20always%20got%20the%20message%3A%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CPRE%20id%3D%22log-stream%22%20class%3D%22log-stream%20bottom-logs%22%20tabindex%3D%221%22%3EException%20while%20executing%20function%3A%20Functions.EventHubTriggerJS1.%20Microsoft.Azure.WebJobs.Host%3A%20No%20value%20for%20named%20parameter%20'queueTrigger'%3C%2FPRE%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3EIf%20i%20put%20the%20parameter%20%22name%22%20in%20output%20bind%2C%20the%20message%20is%20change%20to%20%22No%20value%20for%20named%20parameter%20'name'%22..%3C%2FP%3E%0A%3CP%3EI%20using%20this%20in%20my%20NodeJS%20function%3A%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3EmyOutPut%20%3D%20%7Bid%3A%20%3C%2FSPAN%3E%3CSPAN%3E123456%3C%2FSPAN%3E%3CSPAN%3E%2C%20arquivo%3A%3C%2FSPAN%3E%3CSPAN%3E%22o1o1o1o%22%3C%2FSPAN%3E%3CSPAN%3E%2C%20name%3A%3C%2FSPAN%3E%3CSPAN%3E%22lalala%22%3C%2FSPAN%3E%3CSPAN%3E%7D%3B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%20context.bindings.myOutputBlob%20%3D%20myOutPut%3B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%20context.done()%3B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EHow%20can%20i%20make%20this%20work%20in%20NODE%3F%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-145114%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Enodejs%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

I have a Azure Functions that is triggered when a Event Hub message is received. It's working fine.

So, i generate a file (text-to-speech bing) and i'm trying save it in a Blob Storage. I configured the function.json following:

{
"type": "blob",
"name": "myOutputBlob",
"path": "queuetest19628/{queueTrigger}",
"connection": "AzureWebJobsDashboard",
"direction": "out"
}
 
 
I tried change de "queueTrigger" parameter to anything, but i always got the message: 
Exception while executing function: Functions.EventHubTriggerJS1. Microsoft.Azure.WebJobs.Host: No value for named parameter 'queueTrigger'

If i put the parameter "name" in output bind, the message is change to "No value for named parameter 'name'"..

I using this in my NodeJS function:

myOutPut = {id: 123456, arquivo:"o1o1o1o", name:"lalala"};
context.bindings.myOutputBlob = myOutPut;
context.done();
 
How can i make this work in NODE?
0 Replies