You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Event Grid output binding is not available for Python.
161
+
The following example shows a trigger binding in a *function.json* file and a [Python function](functions-reference-python.md) that uses the binding. It then sends in an event to the custom Event Grid topic, as specified by the `topicEndpointUri`.
162
+
163
+
Here's the binding data in the *function.json* file:
164
+
165
+
```json
166
+
{
167
+
"scriptFile": "__init__.py",
168
+
"bindings": [
169
+
{
170
+
"type": "eventGridTrigger",
171
+
"name": "eventGridEvent",
172
+
"direction": "in"
173
+
},
174
+
{
175
+
"type": "eventGrid",
176
+
"name": "outputEvent",
177
+
"topicEndpointUri": "MyEventGridTopicUriSetting",
178
+
"topicKeySetting": "MyEventGridTopicKeySetting",
179
+
"direction": "out"
180
+
}
181
+
],
182
+
"disabled": false
183
+
}
184
+
```
185
+
186
+
Here's the Python sample to send a event to a custom Event Grid topic by setting the `EventGridOutputEvent`:
0 commit comments