Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 695 Bytes

functions-add-output-binding-python.md

File metadata and controls

14 lines (11 loc) · 695 Bytes
author ms.service ms.topic ms.date ms.author ms.custom
ggailey777
azure-functions
include
06/10/2022
glenga
devdivchpfy22

Update HttpExample\__init__.py to match the following code, add the msg parameter to the function definition and msg.set(name) under the if name: statement:

:::code language="python" source="~/functions-docs-python/functions-add-output-binding-storage-queue-cli/HttpExample/init.py":::

The msg parameter is an instance of the azure.functions.Out class. The set method writes a string message to the queue. In this case, it's the name passed to the function in the URL query string.