Skip to content

Commit ee408d6

Browse files
authored
Merge pull request #105147 from craigshoemaker/crs-functions-hubs-restructure
Event Hubs/IoT Hubs binding ref restructure
2 parents 05238d9 + f27f187 commit ee408d6

15 files changed

+850
-729
lines changed

articles/app-service/webjobs-sdk-how-to.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ static async Task Main()
420420
}
421421
```
422422

423-
For more details, see the [Event Hubs binding](../azure-functions/functions-bindings-event-hubs.md#hostjson-settings) article.
423+
For more details, see the [Event Hubs binding](../azure-functions/functions-bindings-event-hubs-output.md#hostjson-settings) article.
424424

425425
### Queue storage trigger configuration
426426

articles/azure-functions/TOC.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,27 @@
353353
- name: Output
354354
href: functions-bindings-event-grid-output.md
355355
- name: Event Hubs
356-
href: functions-bindings-event-hubs.md
356+
items:
357+
- name: Overview
358+
href: functions-bindings-event-hubs.md
359+
displayName: Azure Event Hubs
360+
- name: Trigger
361+
href: functions-bindings-event-hubs-trigger.md
362+
displayName: Azure Event Hubs
363+
- name: Output
364+
href: functions-bindings-event-hubs-output.md
365+
displayName: Azure Event Hubs
357366
- name: IoT Hub
358-
href: functions-bindings-event-iot.md
367+
items:
368+
- name: Overview
369+
href: functions-bindings-event-iot.md
370+
displayName: Azure IoT Hubs
371+
- name: Trigger
372+
href: functions-bindings-event-iot-trigger.md
373+
displayName: Azure IoT Hubs
374+
- name: Output
375+
href: functions-bindings-event-iot-output.md
376+
displayName: Azure IoT Hubs
359377
- name: HTTP and webhooks
360378
items:
361379
- name: Overview

articles/azure-functions/functions-bindings-error-pages.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ When integrating with Azure services, errors may originate from the APIs of the
2626

2727
+ [Blob storage](functions-bindings-storage-blob-output.md#exceptions-and-return-codes)
2828

29-
+ [Event Hubs](functions-bindings-event-hubs.md#exceptions-and-return-codes)
29+
+ [Event Hubs](functions-bindings-event-hubs-output.md#exceptions-and-return-codes)
30+
31+
+ [IoT Hubs](functions-bindings-event-iot-output.md#exceptions-and-return-codes)
3032

3133
+ [Notification Hubs](functions-bindings-notification-hubs.md#exceptions-and-return-codes)
3234

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Azure Event Hubs output binding for Azure Functions
3+
description: Learn to write messages to Azure Event Hubs streams using Azure Functions.
4+
author: craigshoemaker
5+
ms.assetid: daf81798-7acc-419a-bc32-b5a41c6db56b
6+
ms.topic: reference
7+
ms.date: 02/21/2020
8+
ms.author: cshoe
9+
---
10+
11+
# Azure Event Hubs output binding for Azure Functions
12+
13+
This article explains how to work with [Azure Event Hubs](../event-hubs/event-hubs-what-is-event-hubs.md) bindings for Azure Functions. Azure Functions supports trigger and output bindings for Event Hubs.
14+
15+
For information on setup and configuration details, see the [overview](functions-bindings-event-hubs.md).
16+
17+
[!INCLUDE [functions-bindings-event-hubs](../../includes/functions-bindings-event-hubs-output.md)]
18+
19+
## Next steps
20+
21+
- [Respond to events sent to an event hub event stream (Trigger)](./functions-bindings-storage-blob-trigger.md)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Azure Event Hubs trigger for Azure Functions
3+
description: Learn to use Azure Event Hubs trigger in Azure Functions.
4+
author: craigshoemaker
5+
ms.assetid: daf81798-7acc-419a-bc32-b5a41c6db56b
6+
ms.topic: reference
7+
ms.date: 02/21/2020
8+
ms.author: cshoe
9+
---
10+
11+
# Azure Event Hubs bindings for Azure Functions
12+
13+
This article explains how to work with [Azure Event Hubs](../event-hubs/event-hubs-what-is-event-hubs.md) trigger for Azure Functions. Azure Functions supports trigger and [output bindings](functions-bindings-event-hubs-output.md) for Event Hubs.
14+
15+
For information on setup and configuration details, see the [overview](functions-bindings-event-hubs.md).
16+
17+
[!INCLUDE [functions-bindings-event-hubs-trigger](../../includes/functions-bindings-event-hubs-trigger.md)]
18+
19+
## Next steps
20+
21+
- [Write events to an event stream (Output binding)](./functions-bindings-storage-blob-output.md)
Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,25 @@
11
---
22
title: Azure Event Hubs bindings for Azure Functions
3-
description: Understand how to use Azure Event Hubs bindings in Azure Functions.
3+
description: Learn to use Azure Event Hubs trigger and bindings in Azure Functions.
44
author: craigshoemaker
5-
65
ms.assetid: daf81798-7acc-419a-bc32-b5a41c6db56b
76
ms.topic: reference
8-
ms.date: 11/08/2017
7+
ms.date: 02/21/2020
98
ms.author: cshoe
10-
119
---
12-
# Azure Event Hubs bindings for Azure Functions
13-
14-
This article explains how to work with [Azure Event Hubs](../event-hubs/event-hubs-what-is-event-hubs.md) bindings for Azure Functions. Azure Functions supports trigger and output bindings for Event Hubs.
15-
16-
[!INCLUDE [intro](../../includes/functions-bindings-intro.md)]
1710

18-
## Packages - Functions 1.x
11+
# Azure Event Hubs trigger and bindings for Azure Functions
1912

20-
For Azure Functions version 1.x, the Event Hubs bindings are provided in the [Microsoft.Azure.WebJobs.ServiceBus](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.ServiceBus) NuGet package, version 2.x.
21-
Source code for the package is in the [azure-webjobs-sdk](https://github.com/Azure/azure-webjobs-sdk/tree/v2.x/src/Microsoft.Azure.WebJobs.ServiceBus/EventHubs) GitHub repository.
22-
23-
24-
[!INCLUDE [functions-package](../../includes/functions-package.md)]
25-
26-
## Packages - Functions 2.x and higher
27-
28-
For Functions 2.x and higher, use the [Microsoft.Azure.WebJobs.Extensions.EventHubs](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.EventHubs) package, version 3.x.
29-
Source code for the package is in the [azure-webjobs-sdk](https://github.com/Azure/azure-webjobs-sdk/tree/master/src/Microsoft.Azure.WebJobs.Extensions.EventHubs) GitHub repository.
13+
This article explains how to work with [Azure Event Hubs](../event-hubs/event-hubs-what-is-event-hubs.md) bindings for Azure Functions. Azure Functions supports trigger and output bindings for Event Hubs.
3014

31-
[!INCLUDE [functions-package-v2](../../includes/functions-package-v2.md)]
15+
| Action | Type |
16+
|--------|------|
17+
| Respond to events sent to an event hub event stream. | [Trigger](./functions-bindings-event-hubs-trigger.md) |
18+
| Write events to an event stream | [Output binding](./functions-bindings-event-hubs-output.md) |
3219

3320
[!INCLUDE [functions-bindings-event-hubs](../../includes/functions-bindings-event-hubs.md)]
3421

3522
## Next steps
3623

37-
> [!div class="nextstepaction"]
38-
> [Learn more about Azure functions triggers and bindings](functions-triggers-bindings.md)
24+
- [Respond to events sent to an event hub event stream (Trigger)](./functions-bindings-event-hubs-trigger.md)
25+
- [Write events to an event stream (Output binding)](./functions-bindings-event-hubs-output.md)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: Azure IoT Hub output binding for Azure Functions
3+
description: Learn to write messages to Azure IoT Hubs streams using Azure Functions.
4+
author: craigshoemaker
5+
ms.topic: reference
6+
ms.date: 02/21/2020
7+
ms.author: cshoe
8+
---
9+
10+
# Azure IoT Hub output binding for Azure Functions
11+
12+
This article explains how to work with Azure Functions output bindings for IoT Hub. The IoT Hub support is based on the [Azure Event Hubs Binding](functions-bindings-event-hubs.md).
13+
14+
For information on setup and configuration details, see the [overview](functions-bindings-event-iot.md).
15+
16+
> [!IMPORTANT]
17+
> While the following code samples use the Event Hub API, the given syntax is applicable for IoT Hub functions.
18+
19+
[!INCLUDE [functions-bindings-event-hubs](../../includes/functions-bindings-event-hubs-output.md)]
20+
21+
## Next steps
22+
23+
- [Respond to events sent to an event hub event stream (Trigger)](./functions-bindings-event-iot-trigger.md)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: Azure IoT Hub bindings for Azure Functions
3+
description: Learn to respond to events sent to an IoT hub event stream in Azure Functions.
4+
author: craigshoemaker
5+
ms.topic: reference
6+
ms.date: 02/21/2020
7+
ms.author: cshoe
8+
---
9+
10+
# Azure IoT Hub trigger for Azure Functions
11+
12+
This article explains how to work with Azure Functions bindings for IoT Hub. The IoT Hub support is based on the [Azure Event Hubs Binding](functions-bindings-event-hubs.md).
13+
14+
For information on setup and configuration details, see the [overview](functions-bindings-event-iot.md).
15+
16+
> [!IMPORTANT]
17+
> While the following code samples use the Event Hub API, the given syntax is applicable for IoT Hub functions.
18+
19+
[!INCLUDE [functions-bindings-event-hubs](../../includes/functions-bindings-event-hubs-trigger.md)]
20+
21+
## Next steps
22+
23+
- [Write events to an event stream (Output binding)](./functions-bindings-event-iot-output.md)
Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,27 @@
11
---
22
title: Azure IoT Hub bindings for Azure Functions
3-
description: Understand how to use IoT Hub bindings in Azure Functions.
3+
description: Learn to use IoT Hub trigger and binding in Azure Functions.
44
author: craigshoemaker
5-
65
ms.topic: reference
7-
ms.date: 03/05/2019
6+
ms.date: 02/21/2020
87
ms.author: cshoe
9-
108
---
11-
# Azure IoT Hub bindings for Azure Functions
12-
13-
This article explains how to work with Azure Functions bindings for IoT Hub. The IoT Hub support is based on the [Azure Event Hubs Binding](functions-bindings-event-hubs.md).
14-
15-
[!INCLUDE [intro](../../includes/functions-bindings-intro.md)]
16-
17-
## Packages - Functions 1.x
189

19-
For Azure Functions version 1.x, the IoT Hub bindings are provided in the [Microsoft.Azure.WebJobs.ServiceBus](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.ServiceBus) NuGet package, version 2.x. Source code for the package is in the [azure-webjobs-sdk](https://github.com/Azure/azure-webjobs-sdk/tree/v2.x/src/Microsoft.Azure.WebJobs.ServiceBus/EventHubs) GitHub repository.
20-
21-
[!INCLUDE [functions-package](../../includes/functions-package.md)]
22-
23-
## Packages - Functions 2.x and higher
24-
25-
For Functions 2.x and higher, use the [Microsoft.Azure.WebJobs.Extensions.EventHubs](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.EventHubs) package, version 3.x. Source code for the package is in the [azure-webjobs-sdk](https://github.com/Azure/azure-webjobs-sdk/tree/master/src/Microsoft.Azure.WebJobs.Extensions.EventHubs) GitHub repository.
10+
# Azure IoT Hub bindings for Azure Functions
2611

27-
[!INCLUDE [functions-package-v2](../../includes/functions-package-v2.md)]
12+
This set of articles explains how to work with Azure Functions bindings for IoT Hub. The IoT Hub support is based on the [Azure Event Hubs Binding](functions-bindings-event-hubs.md).
2813

2914
> [!IMPORTANT]
3015
> While the following code samples use the Event Hub API, the given syntax is applicable for IoT Hub functions.
3116
17+
| Action | Type |
18+
|--------|------|
19+
| Respond to events sent to an IoT hub event stream. | [Trigger](./functions-bindings-event-iot-trigger.md) |
20+
| Write events to an IoT event stream | [Output binding](./functions-bindings-event-iot-output.md) |
21+
3222
[!INCLUDE [functions-bindings-event-hubs](../../includes/functions-bindings-event-hubs.md)]
3323

3424
## Next steps
3525

36-
> [!div class="nextstepaction"]
37-
> [Learn more about Azure functions triggers and bindings](functions-triggers-bindings.md)
26+
- [Respond to events sent to an event hub event stream (Trigger)](./functions-bindings-event-iot-trigger.md)
27+
- [Write events to an event stream (Output binding)](./functions-bindings-event-iot-output.md)

articles/azure-functions/functions-host-json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Configuration setting can be found in [bindings for Durable Functions](durable/d
211211

212212
## eventHub
213213

214-
Configuration settings can be found in [Event Hub triggers and bindings](functions-bindings-event-hubs.md#host-json).
214+
Configuration settings can be found in [Event Hub triggers and bindings](functions-bindings-event-hubs-output.md#host-json).
215215

216216
## extensions
217217

0 commit comments

Comments
 (0)