Skip to content

Commit e1eccce

Browse files
Merge pull request #242732 from ggailey777/patch-5
[Functions] missing Pyv2 tabs
2 parents ae6d762 + 42b5fb6 commit e1eccce

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

articles/azure-functions/functions-bindings-event-grid-output.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,20 @@ Use the Event Grid output binding to write events to a custom topic. You must ha
1515

1616
For information on setup and configuration details, see [How to work with Event Grid triggers and bindings in Azure Functions](event-grid-how-tos.md).
1717

18+
::: zone pivot="programming-language-python"
19+
Azure Functions supports two programming models for Python. The way that you define your bindings depends on your chosen programming model.
20+
21+
# [v2](#tab/python-v2)
22+
The Python v2 programming model lets you define bindings using decorators directly in your Python function code. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-decorators#programming-model).
23+
24+
# [v1](#tab/python-v1)
25+
The Python v1 programming model requires you to define bindings in a separate *function.json* file in the function folder. For more information, see the [Python developer guide](functions-reference-python.md?pivots=python-mode-configuration#programming-model).
26+
27+
---
28+
29+
This article supports both programming models.
30+
31+
::: zone-end
1832

1933
> [!IMPORTANT]
2034
> The Event Grid output binding is only available for Functions 2.x and higher.

0 commit comments

Comments
 (0)