Skip to content

Commit ab12c03

Browse files
committed
Fix build and Acrolinx
1 parent 33b2b35 commit ab12c03

File tree

4 files changed

+40
-32
lines changed

4 files changed

+40
-32
lines changed

articles/azure-functions/functions-dotnet-class-library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ You can also build your app with ReadyToRun from the command line. For more info
283283

284284
## Supported types for bindings
285285

286-
Each binding has its own supported types; for instance, a blob trigger attribute can be applied to a string parameter, a POCO parameter, a `CloudBlockBlob` parameter, or any of several other supported types. The [binding reference article for blob bindings](functions-bindings-storage-blob-trigger.md#usage) lists all supported parameter types. For more information, see [Triggers and bindings](functions-triggers-bindings.md) and the [binding reference docs for each binding type](functions-triggers-bindings.md#next-steps).
286+
Each binding has its own supported types; for instance, a blob trigger attribute can be applied to a string parameter, a POCO parameter, a `CloudBlockBlob` parameter, or any of several other supported types. The [binding reference article for blob bindings](functions-bindings-storage-blob-trigger.md#usage) lists all supported parameter types. For more information, see [Triggers and bindings](functions-triggers-bindings.md) and the [binding reference docs for each binding type](functions-triggers-bindings.md#related-content).
287287

288288
[!INCLUDE [HTTP client best practices](../../includes/functions-http-client-best-practices.md)]
289289

articles/azure-functions/functions-reference-csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ The `#r` statement is explained [later in this article](#referencing-external-as
8989

9090
## Supported types for bindings
9191

92-
Each binding has its own supported types; for instance, a blob trigger can be used with a string parameter, a POCO parameter, a `CloudBlockBlob` parameter, or any of several other supported types. The [binding reference article for blob bindings](functions-bindings-storage-blob-trigger.md#usage) lists all supported parameter types for blob triggers. For more information, see [Triggers and bindings](functions-triggers-bindings.md) and the [binding reference docs for each binding type](functions-triggers-bindings.md#next-steps).
92+
Each binding has its own supported types; for instance, a blob trigger can be used with a string parameter, a POCO parameter, a `CloudBlockBlob` parameter, or any of several other supported types. The [binding reference article for blob bindings](functions-bindings-storage-blob-trigger.md#usage) lists all supported parameter types for blob triggers. For more information, see [Triggers and bindings](functions-triggers-bindings.md) and the [binding reference docs for each binding type](functions-triggers-bindings.md#related-content).
9393

9494
[!INCLUDE [HTTP client best practices](../../includes/functions-http-client-best-practices.md)]
9595

articles/azure-functions/functions-triggers-bindings.md

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ zone_pivot_groups: programming-languages-set-functions
1111

1212
In this article, you learn the high-level concepts surrounding functions triggers and bindings.
1313

14-
Triggers cause a function to run. A trigger defines how a function is invoked and a function must have exactly one trigger. Triggers usually also pass data into your function, as you would with method calls.
14+
Triggers cause a function to run. A trigger defines how a function is invoked and a function must have exactly one trigger. Triggers can also pass data into your function, as you would with method calls.
1515

16-
Binding to a function is a way of declaratively connecting another resource to the function; bindings either pass data into your function (an *input binding*) or enable you to write data out from your function (an *output binding*) using *binding parameters*. Your function trigger is essentially a special kind of input binding.
16+
Binding to a function is a way of declaratively connecting your functions to other resources; bindings either pass data into your function (an *input binding*) or enable you to write data out from your function (an *output binding*) using *binding parameters*. Your function trigger is essentially a special type of input binding.
1717

1818
You can mix and match different bindings to suit your function's specific scenario. Bindings are optional and a function might have one or multiple input and/or output bindings.
1919

@@ -26,11 +26,10 @@ Consider the following examples of how you could implement different functions.
2626
| A new queue message arrives which runs a function to write to another queue. | Queue<sup>*</sup> | *None* | Queue<sup>*</sup> |
2727
| A scheduled job reads Blob Storage contents and creates a new Azure Cosmos DB document. | Timer | Blob Storage | Azure Cosmos DB |
2828
| The Event Grid is used to read an image from Blob Storage and a document from Azure Cosmos DB to send an email. | Event Grid | Blob Storage and Azure Cosmos DB | SendGrid |
29-
| A webhook that uses Microsoft Graph to update an Excel sheet. | HTTP | *None* | Microsoft Graph |
3029

3130
<sup>\*</sup> Represents different queues
3231

33-
These examples aren't meant to be exhaustive, but are provided to illustrate how you can use triggers and bindings together.
32+
These examples aren't meant to be exhaustive, but are provided to illustrate how you can use triggers and bindings together. For a more comprehensive set of scenarios, see [Azure Functions scenarios](functions-scenarios.md).
3433

3534
>[!TIP]
3635
>Functions doesn't require you to use input and output bindings to connect to Azure services. You can always create an Azure SDK client in your code and use it instead for your data transfers. For more information, see [Connect to services](functions-reference.md#connect-to-services).
@@ -41,24 +40,26 @@ Triggers and bindings are defined differently depending on the development langu
4140

4241
Bindings can be either input or output bindings. Not all services support both input and output bindings. See your specific binding extension for [specific bindings code examples](#bindings-code-examples).
4342

43+
This example shows an HTTP triggered function with an output binding that writes a message to an Azure Storage queue.
44+
4445
::: zone pivot="programming-language-csharp"
45-
For C# class library functions, triggers and bindings are configured by decorating methods and parameters with C# attributes, where the specific attribute applied might depend on the C# runtime model, as you can see in this Queue storage trigger example:
46+
For C# class library functions, triggers and bindings are configured by decorating methods and parameters with C# attributes, where the specific attribute applied might depend on the C# runtime model:
4647

4748
### [Isolated worker model](#tab/isolated-process)
4849

49-
This example shows the HTTP trigger definition (`HttpTrigger`) on the `Run` method for a function named `HttpExample` that returns a `MultiResponse` object:
50+
The HTTP trigger (`HttpTrigger`) is defined on the `Run` method for a function named `HttpExample` that returns a `MultiResponse` object:
5051

5152
:::code language="csharp" source="~/functions-docs-csharp/functions-add-output-binding-storage-queue-isolated/HttpExample.cs" range="11-14":::
5253

53-
This example shows the `MultiResponse` object definition which both returns an `HttpResponse` to the HTTP request and writes messages to a storage queue using a `QueueOutput` binding:
54+
This example shows the `MultiResponse` object definition which both returns an `HttpResponse` to the HTTP request and also writes a message to a storage queue using a `QueueOutput` binding:
5455

5556
:::code language="csharp" source="~/functions-docs-csharp/functions-add-output-binding-storage-queue-isolated/HttpExample.cs" range="33-38":::
5657

5758
For more information, see the [C# isolated worker model guide](dotnet-isolated-process-guide.md#methods-recognized-as-functions).
5859

5960
### [In-process model](#tab/in-process)
6061

61-
This example shows the HTTP trigger definition (`HttpTrigger`) on the `Run` method for a function named `HttpExample` that writes to a storage queue defined by the `Queue` and `StorageAccount` attributes on the `msg` parameter:
62+
The HTTP trigger (`HttpTrigger`) is defined on the `Run` method for a function named `HttpExample` that writes to a storage queue defined by the `Queue` and `StorageAccount` attributes on the `msg` parameter:
6263

6364
:::code language="csharp" source="~/functions-docs-csharp/functions-add-output-binding-storage-queue-cli/HttpExample.cs" range="14-19":::
6465

@@ -69,7 +70,7 @@ For more information, see the [C# in-process model guide](functions-dotnet-class
6970
Legacy C# Script functions use a function.json definition file. For more information, see the [Azure Functions C# script (.csx) developer reference](functions-reference-csharp.md).
7071
::: zone-end
7172
::: zone pivot="programming-language-java"
72-
For Java functions, triggers and bindings are configured by annotating specific methods and parameters. This example shows the HTTP trigger definition on the `run` method for a function named `HttpTriggerQueueOutput` where the trigger is defined in the `@HttpTrigger` annotation that writes to a storage queue defined by the `@QueueOutput` annocation on the `message` parameter:
73+
For Java functions, triggers and bindings are configured by annotating specific methods and parameters. This HTTP trigger (`@HttpTrigger`) is defined on the `run` method for a function named `HttpTriggerQueueOutput`, which writes to a storage queue defined by the `@QueueOutput` annotation on the `message` parameter:
7374

7475
:::code language="java" source="~/functions-quickstart-java/functions-add-output-binding-storage-queue/src/main/java/com/function/Function.java" range="16-23":::
7576

@@ -88,19 +89,19 @@ In Node.js for Functions version 3, you configure triggers and bindings in a fun
8889

8990
---
9091

91-
This example is an HTTP triggered function that creates a queue item for each HTTP request received:
92-
93-
### [JavaScript](#tab/javascript/node-v4)
92+
::: zone-end
93+
This example is an HTTP triggered function that creates a queue item for each HTTP request received.
9494

95-
:::code language="javascript" source="~/azure-functions-nodejs-v4/js/src/functions/storageQueueOutput1.js" :::
95+
::: zone pivot="programming-language-javascript"
96+
### [v4](#tab/node-v4)
9697

97-
### [TypeScript](#tab/typescript/node-v4)
98+
The `http` method on the exported `app` object defines an HTTP trigger, and the `storageQueue` method on `output` defines an output binding on this trigger.
9899

99-
:::code language="typescript" source="~/azure-functions-nodejs-v4/ts/src/functions/storageQueueOutput1.ts" :::
100+
:::code language="javascript" source="~/azure-functions-nodejs-v4/js/src/functions/storageQueueOutput1.js" :::
100101

101-
### [JavaScript](#tab/javascript/node-v3)
102+
### [v3](#tab/node-v3)
102103

103-
This example `function.json` file defines the function.
104+
This example `function.json` file defines the HTTP trigger function that returns an HTTP response and writes to a storage queue.
104105

105106
```json
106107
{
@@ -127,9 +128,19 @@ This example `function.json` file defines the function.
127128
}
128129
```
129130

130-
### [TypeScript](#tab/typescript/node-v3)
131+
---
131132

132-
This example `function.json` file defines the function.
133+
::: zone-end
134+
::: zone pivot="programming-language-typescript"
135+
### [v4](#tab/node-v4)
136+
137+
The `http` method on the exported `app` object defines an HTTP trigger, and the `storageQueue` method on `output` defines an output binding on this trigger.
138+
139+
:::code language="typescript" source="~/azure-functions-nodejs-v4/ts/src/functions/storageQueueOutput1.ts" :::
140+
141+
### [v3](#tab/node-v3)
142+
143+
This example `function.json` file defines the HTTP trigger function that returns an HTTP response and writes to a storage queue.
133144

134145
```json
135146
{
@@ -156,8 +167,6 @@ This example `function.json` file defines the function.
156167
}
157168
```
158169

159-
---
160-
161170
::: zone-end
162171
::: zone pivot="programming-language-powershell"
163172
This example `function.json` file defines the function:
@@ -171,14 +180,14 @@ The way that the function is defined depends on the version of Python for Functi
171180

172181
### [v2](#tab/python-v2)
173182

174-
In Python for Functions version 2, you define the function directly in code using decorators:
183+
In Python for Functions version 2, you define the function directly in code using decorators.
175184

176185
:::code language="python" source="~/functions-docs-python-v2/function_app.py" range="4-9" :::
177186

178187

179188
### [v1](#tab/python-v1)
180189

181-
In Python for Functions version 1, this example `function.json` file defines the function:
190+
In Python for Functions version 1, this example `function.json` file defines an HTTP trigger function that returns an HTTP response and writes to a storage queue.
182191

183192
:::code language="json" source="~/functions-docs-powershell/functions-add-output-binding-storage-queue-cli/HttpExample/function.json" range="3-26":::
184193

includes/functions-bindings.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: ggailey777
33
ms.service: azure-functions
44
ms.topic: include
5-
ms.date: 09/19/2023
5+
ms.date: 09/08/2024
66
ms.author: glenga
77
ms.custom: fasttrack-edit
88
---
@@ -33,10 +33,9 @@ This table shows the bindings that are supported in the major versions of the Az
3333
| [Timer](../articles/azure-functions/functions-bindings-timer.md) |||| | |
3434
| [Twilio](../articles/azure-functions/functions-bindings-twilio.md) ||| | ||
3535

36-
<sup>1</sup> [Support will end for version 1.x of the Azure Functions runtime on September 14, 2026](https://aka.ms/azure-functions-retirements/hostv1). We highly recommend that you [migrate your apps to version 4.x](../articles/azure-functions/migrate-version-1-version-4.md) for full support.
36+
Notes:
3737

38-
<sup>2</sup> Starting with the version 2.x runtime, all bindings except HTTP and Timer must be registered. See [Register binding extensions](../articles/azure-functions/functions-bindings-register.md).
39-
40-
<sup>3</sup> Triggers aren't supported in the Consumption plan. Requires [runtime-driven triggers](../articles/azure-functions/functions-networking-options.md#elastic-premium-plan-with-virtual-network-triggers).
41-
42-
<sup>4</sup> Supported only in Kubernetes, IoT Edge, and other self-hosted modes only.
38+
1. [Support will end for version 1.x of the Azure Functions runtime on September 14, 2026](https://aka.ms/azure-functions-retirements/hostv1). We highly recommend that you [migrate your apps to version 4.x](../articles/azure-functions/migrate-version-1-version-4.md) for full support.
39+
2. Starting with the version 2.x runtime, all bindings except HTTP and Timer must be registered. See [Register binding extensions](../articles/azure-functions/functions-bindings-register.md).
40+
3. Triggers aren't supported in the Consumption plan. Requires [runtime-driven triggers](../articles/azure-functions/functions-networking-options.md#elastic-premium-plan-with-virtual-network-triggers).
41+
4. Supported in Kubernetes, IoT Edge, and other self-hosted modes only.

0 commit comments

Comments
 (0)