Skip to content

Commit 987ef1a

Browse files
committed
Fix build errors and warnings
1 parent 933fdf3 commit 987ef1a

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ The Event Grid trigger is provided in the [Microsoft.Azure.WebJobs.Extensions.Ev
3535

3636
## Trigger
3737

38+
Use the function trigger to respond to an event sent to an Event Grid topic.
39+
40+
## Trigger - example
41+
3842
# [C#](#tab/csharp)
3943

4044
For an HTTP trigger example, see [Receive events to an HTTP endpoint](../event-grid/receive-events.md).
@@ -63,7 +67,7 @@ namespace Company.Function
6367
}
6468
```
6569

66-
For more information, see Packages, [Attributes](#attributes), [Configuration](#configuration), and [Usage](#usage).
70+
For more information, see Packages, [Attributes](#trigger-attributes), [Configuration](#trigger-configuration), and [Usage](#trigger-usage).
6771

6872
### Version 1.x
6973

@@ -124,7 +128,7 @@ public static void Run(EventGridEvent eventGridEvent, ILogger log)
124128
}
125129
```
126130

127-
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).
128132

129133
### Version 1.x
130134

@@ -325,7 +329,7 @@ Attributes are not supported by Python.
325329

326330
# [Java](#tab/java)
327331

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.
329333

330334
---
331335

@@ -379,7 +383,7 @@ The Event Grid instance is available via the parameter configured in the *functi
379383

380384
# [Java](#tab/java)
381385

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.
383387

384388
---
385389

@@ -597,7 +601,7 @@ The Event Grid trigger function executes and shows logs similar to the following
597601
598602
## Output
599603
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).
601605
602606
> [!NOTE]
603607
> 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
609613
610614
# [C#](#tab/csharp)
611615
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:
613617
614618
```csharp
615619
[FunctionName("EventGridOutput")]
@@ -686,7 +690,7 @@ public static void Run(TimerInfo myTimer, ICollector<EventGridEvent> outputEvent
686690

687691
# [C#](#tab/csharp)
688692

689-
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.
690694

691695
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:
692696

@@ -715,7 +719,7 @@ The following table explains the binding configuration properties that you set i
715719
|**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`. |
716720
|**topicKeySetting** |**TopicKeySetting** | The name of an app setting that contains an access key for the custom topic.|
717721

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)]
719723

720724
> [!IMPORTANT]
721725
> 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

Comments
 (0)