I am trying to retrieve the data from Queue using QueueTrigger and write the data into Blob. For the first message from queue trigger, the data has been successfully retrieved from queue and written into blob file. When the queue triggered for the second time, it has retrieved the new messages from queue and it has written the messages into blob file. But the second message has overwritten the first message in the blob file. Please let me know how to append the second message to the blob file without removing/deleting the first message. As I am new to Python and Azure functions, the coding might not be correct.
import logging
import azure.functions as func
def main(queuemsg: func.QueueMessage, outputblob: func.Out[str]):
msg = queuemsg.get_body()
logging.info('Python Queue trigger function processed %s', msg)
outputblob.set(msg)