How do I use a queue output binding in a python azure function. Here is the binding in my function.json
{
"type": "queueTrigger",
"name": "myQueue",
"direction": "out",
"queueName": "qname",
"connection": "CONNECTION"
}
My code ends with this
open(os.environ[myQueue], ‘wb’) as q:
q.write(‘message’)
I just get an error to do with being unable to open QueueAttribute for writing. Anyone had experience with this because there is no documentation at all.