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
For more information, see Packages, [Attributes](#attributes), [Configuration](#configuration), and [Usage](#usage).
131
+
For more information, see Packages, [Attributes](#trigger-attributes), [Configuration](#trigger-configuration), and [Usage](#trigger-usage).
128
132
129
133
### Version 1.x
130
134
@@ -325,7 +329,7 @@ Attributes are not supported by Python.
325
329
326
330
# [Java](#tab/java)
327
331
328
-
The [EventGridTrigger](https://github.com/Azure/azure-functions-java-library/blob/master/src/main/java/com/microsoft/azure/functions/annotation/EventGridTrigger.java) annotation allows you to declaratively configure an Event Grid binding by providing configuration values. See the [example](#example) and [configuration](#configuration) sections for more detail.
332
+
The [EventGridTrigger](https://github.com/Azure/azure-functions-java-library/blob/master/src/main/java/com/microsoft/azure/functions/annotation/EventGridTrigger.java) annotation allows you to declaratively configure an Event Grid binding by providing configuration values. See the [example](#trigger-example) and [configuration](#trigger-configuration) sections for more detail.
329
333
330
334
---
331
335
@@ -379,7 +383,7 @@ The Event Grid instance is available via the parameter configured in the *functi
379
383
380
384
# [Java](#tab/java)
381
385
382
-
The Event Grid event instance is available via the parameter associated to the `EventGridTrigger` attribute, typed as an `EventSchema`. See the [example](#example) for more detail.
386
+
The Event Grid event instance is available via the parameter associated to the `EventGridTrigger` attribute, typed as an `EventSchema`. See the [example](#trigger-example) for more detail.
383
387
384
388
---
385
389
@@ -597,7 +601,7 @@ The Event Grid trigger function executes and shows logs similar to the following
597
601
598
602
## Output
599
603
600
-
Use the Event Grid output binding to write events to a custom topic. You must have a valid [access key for the custom topic](../event-grid/security-authentication#custom-topic-publishing).
604
+
Use the Event Grid output binding to write events to a custom topic. You must have a valid [access key for the custom topic](../event-grid/security-authentication.md#custom-topic-publishing).
601
605
602
606
> [!NOTE]
603
607
> The Event Grid output binding does not support shared access signatures (SAS tokens). You must use the topic's access key.
@@ -609,7 +613,7 @@ Make sure the required package references are in place before you try to impleme
609
613
610
614
# [C#](#tab/csharp)
611
615
612
-
The following example shows a [C# function](../articles/azure-functions/functions-dotnet-class-library.md) that writes a message to an Event Grid custom topic, using the method return value as the output:
616
+
The following example shows a [C# function](functions-dotnet-class-library.md) that writes a message to an Event Grid custom topic, using the method return value as the output:
For [C# class libraries](../articles/azure-functions/functions-dotnet-class-library.md), use the [EventGridAttribute](https://github.com/Azure/azure-functions-eventgrid-extension/blob/dev/src/EventGridExtension/OutputBinding/EventGridAttribute.cs) attribute.
693
+
For [C# class libraries](functions-dotnet-class-library.md), use the [EventGridAttribute](https://github.com/Azure/azure-functions-eventgrid-extension/blob/dev/src/EventGridExtension/OutputBinding/EventGridAttribute.cs) attribute.
690
694
691
695
The attribute's constructor takes the name of an app setting that contains the name of the custom topic, and the name of an app setting that contains the topic key. For more information about these settings, see [Output - configuration](#output---configuration). Here's an `EventGrid` attribute example:
692
696
@@ -715,7 +719,7 @@ The following table explains the binding configuration properties that you set i
715
719
|**topicEndpointUri**|**TopicEndpointUri**| The name of an app setting that contains the URI for the custom topic, such as `https://mycustomtopic.australiaeast-1.eventgrid.azure.net/api/events`. |
716
720
|**topicKeySetting**|**TopicKeySetting**| The name of an app setting that contains an access key for the custom topic.|
717
721
718
-
[!INCLUDE [app settings to local.settings.json](../articles/azure-functions/../../includes/functions-app-settings-local.md)]
722
+
[!INCLUDE [app settings to local.settings.json](../../includes/functions-app-settings-local.md)]
719
723
720
724
> [!IMPORTANT]
721
725
> Ensure that you set the value of the `TopicEndpointUri` configuration property to the name of an app setting that contains the URI of the custom topic. Do not specify the name of the custom topic directly in this property.
0 commit comments