Skip to content

Commit 763bacf

Browse files
author
Cory Fowler
authored
Merge pull request #52913 from MicrosoftDocs/release-ignite-functions-clean
Ignite Merge Down
2 parents ab70486 + 71068d2 commit 763bacf

File tree

47 files changed

+591
-613
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+591
-613
lines changed

.openpublishing.redirection.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2996,6 +2996,16 @@
29962996
"redirect_url": "/azure/azure-functions/functions-bindings-sendgrid",
29972997
"redirect_document_id": false
29982998
},
2999+
{
3000+
"source_path": "articles/azure-functions/functions-create-generic-webhook-triggered-function.md",
3001+
"redirect_url": "/azure/azure-functions/functions-bindings-http-webhook",
3002+
"redirect_document_id": false
3003+
},
3004+
{
3005+
"source_path": "articles/azure-functions/functions-create-github-webhook-triggered-function.md",
3006+
"redirect_url": "/azure/azure-functions/functions-bindings-http-webhook",
3007+
"redirect_document_id": false
3008+
},
29993009
{
30003010
"source_path": "articles/automation/automation-sec-configure-azure-runas-account.md",
30013011
"redirect_url": "/azure/automation/manage-runas-account",

articles/azure-functions/TOC.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,20 @@
2323
href: functions-create-first-azure-function-azure-cli-linux.md
2424
- name: Triggers
2525
items:
26-
- name: Blob storage
27-
href: functions-create-storage-blob-triggered-function.md
2826
- name: Azure Cosmos DB
2927
href: functions-create-cosmos-db-triggered-function.md
30-
- name: Timer
31-
href: functions-create-scheduled-function.md
32-
- name: Generic webhook
33-
href: functions-create-generic-webhook-triggered-function.md
34-
- name: GitHub webhook
35-
href: functions-create-github-webhook-triggered-function.md
28+
- name: Blob storage
29+
href: functions-create-storage-blob-triggered-function.md
3630
- name: Queue storage
3731
href: functions-create-storage-queue-triggered-function.md
32+
- name: Timer
33+
href: functions-create-scheduled-function.md
3834
- name: Integrate
3935
items:
40-
- name: Storage
41-
href: functions-integrate-storage-queue-output-binding.md
4236
- name: Azure Cosmos DB
4337
href: functions-integrate-store-unstructured-data-cosmosdb.md
38+
- name: Storage
39+
href: functions-integrate-storage-queue-output-binding.md
4440
- name: Tutorials
4541
items:
4642
- name: Functions with Logic Apps
@@ -248,6 +244,8 @@
248244
href: functions-bindings-sendgrid.md
249245
- name: Service Bus
250246
href: functions-bindings-service-bus.md
247+
- name: SignalR Service
248+
href: functions-bindings-signalr-service.md
251249
- name: Table storage
252250
href: functions-bindings-storage-table.md
253251
- name: Timer

articles/azure-functions/functions-api-definition.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ ms.author: alkarche
1616
# OpenAPI 2.0 metadata support in Azure Functions (preview)
1717
OpenAPI 2.0 (formerly Swagger) metadata support in Azure Functions is a preview feature that you can use to write an OpenAPI 2.0 definition inside a function app. You can then host that file by using the function app.
1818

19+
> [!IMPORTANT]
20+
> The OpenAPI preview feature is only available today in the 1.x runtime. Information on how to create a 1.x function app [can be found here](./functions-versions.md#creating-1x-apps).
21+
1922
[OpenAPI metadata](http://swagger.io/) allows a function that's hosting a REST API to be consumed by a wide variety of other software. This software includes Microsoft offerings like PowerApps and the [API Apps feature of Azure App Service](../app-service/app-service-web-overview.md), third-party developer tools like [Postman](https://www.getpostman.com/docs/importing_swagger), and [many more packages](http://swagger.io/tools/).
2023

2124
[!INCLUDE [intro](../../includes/functions-bindings-intro.md)]

articles/azure-functions/functions-app-settings.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ Optional storage account connection string for storing logs and displaying them
3636
|---|------------|
3737
|AzureWebJobsDashboard|DefaultEndpointsProtocol=https;AccountName=[name];AccountKey=[key]|
3838

39+
> [!TIP]
40+
> For performance and experience, it is recommended to use APPINSIGHTS_INSTRUMENTATIONKEY and App Insights for monitoring instead of AzureWebJobsDashboard
41+
3942
## AzureWebJobsDisableHomepage
4043

4144
`true` means disable the default landing page that is shown for the root URL of a function app. Default is `false`.
@@ -106,11 +109,19 @@ Valid values are "readwrite" and "readonly".
106109

107110
## FUNCTIONS\_EXTENSION\_VERSION
108111

109-
The version of the Azure Functions runtime to use in this function app. A tilde with major version means use the latest version of that major version (for example, "~1"). When new versions for the same major version are available, they are automatically installed in the function app. To pin the app to a specific version, use the full version number (for example, "1.0.12345"). Default is "~1".
112+
The version of the Azure Functions runtime to use in this function app. A tilde with major version means use the latest version of that major version (for example, "~2"). When new versions for the same major version are available, they are automatically installed in the function app. To pin the app to a specific version, use the full version number (for example, "2.0.12345"). Default is "~2".
113+
114+
|Key|Sample value|
115+
|---|------------|
116+
|FUNCTIONS\_EXTENSION\_VERSION|~2|
117+
118+
## FUNCTIONS\_WORKER\_RUNTIME
119+
120+
The language worker runtime to load in the function app. This will correspond to the language being used in your application (for example, "dotnet"). For functions in multiple languages you will need to publish them to multiple apps, each with a corresponding worker runtime value. Valid values are `dotnet`, `node`, and `java`.
110121

111122
|Key|Sample value|
112123
|---|------------|
113-
|FUNCTIONS\_EXTENSION\_VERSION|~1|
124+
|FUNCTIONS\_WORKER\_RUNTIME|dotnet|
114125

115126
## WEBSITE_CONTENTAZUREFILECONNECTIONSTRING
116127

@@ -133,19 +144,19 @@ For consumption plans only. The file path to the function app code and configura
133144
The maximum number of instances that the function app can scale out to. Default is no limit.
134145

135146
> [!NOTE]
136-
> This setting is for a preview feature.
147+
> This setting is a preview feature - and only reliable if set to a value <= 5
137148
138149
|Key|Sample value|
139150
|---|------------|
140-
|WEBSITE\_MAX\_DYNAMIC\_APPLICATION\_SCALE\_OUT|10|
151+
|WEBSITE\_MAX\_DYNAMIC\_APPLICATION\_SCALE\_OUT|5|
141152

142153
## WEBSITE\_NODE\_DEFAULT_VERSION
143154

144-
Default is "6.5.0".
155+
Default is "8.11.1".
145156

146157
|Key|Sample value|
147158
|---|------------|
148-
|WEBSITE\_NODE\_DEFAULT_VERSION|6.5.0|
159+
|WEBSITE\_NODE\_DEFAULT_VERSION|8.11.1|
149160

150161
## WEBSITE\_RUN\_FROM\_PACKAGE
151162

articles/azure-functions/functions-best-practices.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ Take advantage of defensive measures already provided for components you use in
7373

7474
There are a number of factors which impact how instances of your function app scale. The details are provided in the documentation for [function scaling](functions-scale.md). The following are some best practices to ensure optimal scalability of a function app.
7575

76+
### Share and manage connections
77+
78+
Re-use connections to external resources whenever possible. See [how to manage connections in Azure Functions](./manage-connections.md).
79+
7680
### Don't mix test and production code in the same function app
7781

7882
Functions within a function app share resources. For example, memory is shared. If you're using a function app in production, don't add test-related functions and resources to it. It can cause unexpected overhead during production code execution.

articles/azure-functions/functions-bindings-cosmosdb-v2.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Azure Cosmos DB bindings for Functions 2.x (Preview)
2+
title: Azure Cosmos DB bindings for Functions 2.x
33
description: Understand how to use Azure Cosmos DB triggers and bindings in Azure Functions.
44
services: functions
55
documentationcenter: na
@@ -14,7 +14,7 @@ ms.date: 11/21/2017
1414
ms.author: glenga
1515
---
1616

17-
# Azure Cosmos DB bindings for Azure Functions 2.x (Preview)
17+
# Azure Cosmos DB bindings for Azure Functions 2.x
1818

1919
> [!div class="op_single_selector" title1="Select the version of the Azure Functions runtime you are using: "]
2020
> * [Version 1 - GA](functions-bindings-cosmosdb.md)
@@ -23,7 +23,7 @@ ms.author: glenga
2323
This article explains how to work with [Azure Cosmos DB](..\cosmos-db\serverless-computing-database.md) bindings in Azure Functions 2.x. Azure Functions supports trigger, input, and output bindings for Azure Cosmos DB.
2424

2525
> [!NOTE]
26-
> This article is for [Azure Functions version 2.x](functions-versions.md), which is in Preview. For information about how to use these bindings in Functions 1.x, see [Azure Cosmos DB bindings for Azure Functions 1.x](functions-bindings-cosmosdb.md).
26+
> This article is for [Azure Functions version 2.x](functions-versions.md). For information about how to use these bindings in Functions 1.x, see [Azure Cosmos DB bindings for Azure Functions 1.x](functions-bindings-cosmosdb.md).
2727
>
2828
> This binding was originally named DocumentDB. In Functions version 2.x, the trigger, bindings, and package are all named Cosmos DB.
2929

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

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,15 @@ public static void Run([EventHubTrigger("samples-workitems", Connection = "Event
125125

126126
The following example shows an event hub trigger binding in a *function.json* file and a [C# script function](functions-reference-csharp.md) that uses the binding. The function logs the message body of the event hub trigger.
127127

128-
The following examples show Event Hubs binding data in the *function.json* file. The first example is for Functions 1.x, and the second one is for Functions 2.x.
128+
The following examples show Event Hubs binding data in the *function.json* file. The first example is for Functions 2.x, and the second one is for Functions 1.x.
129+
129130

130131
```json
131132
{
132133
"type": "eventHubTrigger",
133134
"name": "myEventHubMessage",
134135
"direction": "in",
135-
"path": "MyEventHub",
136+
"eventHubName": "MyEventHub",
136137
"connection": "myEventHubReadConnectionAppSetting"
137138
}
138139
```
@@ -141,7 +142,7 @@ The following examples show Event Hubs binding data in the *function.json* file.
141142
"type": "eventHubTrigger",
142143
"name": "myEventHubMessage",
143144
"direction": "in",
144-
"eventHubName": "MyEventHub",
145+
"path": "MyEventHub",
145146
"connection": "myEventHubReadConnectionAppSetting"
146147
}
147148
```
@@ -199,14 +200,15 @@ public static void Run(string[] eventHubMessages, TraceWriter log)
199200

200201
The following example shows an event hub trigger binding in a *function.json* file and an [F# function](functions-reference-fsharp.md) that uses the binding. The function logs the message body of the event hub trigger.
201202

202-
The following examples show Event Hubs binding data in the *function.json* file. The first example is for Functions 1.x, and the second one is for Functions 2.x.
203+
The following examples show Event Hubs binding data in the *function.json* file. The first example is for Functions 2.x, and the second one is for Functions 1.x.
204+
203205

204206
```json
205207
{
206208
"type": "eventHubTrigger",
207209
"name": "myEventHubMessage",
208210
"direction": "in",
209-
"path": "MyEventHub",
211+
"eventHubName": "MyEventHub",
210212
"connection": "myEventHubReadConnectionAppSetting"
211213
}
212214
```
@@ -215,7 +217,7 @@ The following examples show Event Hubs binding data in the *function.json* file.
215217
"type": "eventHubTrigger",
216218
"name": "myEventHubMessage",
217219
"direction": "in",
218-
"eventHubName": "MyEventHub",
220+
"path": "MyEventHub",
219221
"connection": "myEventHubReadConnectionAppSetting"
220222
}
221223
```
@@ -231,14 +233,15 @@ let Run(myEventHubMessage: string, log: TraceWriter) =
231233

232234
The following example shows an event hub trigger binding in a *function.json* file and a [JavaScript function](functions-reference-node.md) that uses the binding. The function reads [event metadata](#trigger---event-metadata) and logs the message.
233235

234-
The following examples show Event Hubs binding data in the *function.json* file. The first example is for Functions 1.x, and the second one is for Functions 2.x.
236+
The following examples show Event Hubs binding data in the *function.json* file. The first example is for Functions 2.x, and the second one is for Functions 1.x.
237+
235238

236239
```json
237240
{
238241
"type": "eventHubTrigger",
239242
"name": "myEventHubMessage",
240243
"direction": "in",
241-
"path": "MyEventHub",
244+
"eventHubName": "MyEventHub",
242245
"connection": "myEventHubReadConnectionAppSetting"
243246
}
244247
```
@@ -247,7 +250,7 @@ The following examples show Event Hubs binding data in the *function.json* file.
247250
"type": "eventHubTrigger",
248251
"name": "myEventHubMessage",
249252
"direction": "in",
250-
"eventHubName": "MyEventHub",
253+
"path": "MyEventHub",
251254
"connection": "myEventHubReadConnectionAppSetting"
252255
}
253256
```
@@ -265,14 +268,14 @@ module.exports = function (context, eventHubMessage) {
265268
};
266269
```
267270

268-
To receive events in a batch, set `cardinality` to `many` in the *function.json* file, as shown in the following examples. The first example is for Functions 1.x, and the second one is for Functions 2.x.
271+
To receive events in a batch, set `cardinality` to `many` in the *function.json* file, as shown in the following examples. The first example is for Functions 2.x, and the second one is for Functions 1.x.
269272

270273
```json
271274
{
272275
"type": "eventHubTrigger",
273276
"name": "eventHubMessages",
274277
"direction": "in",
275-
"path": "MyEventHub",
278+
"eventHubName": "MyEventHub",
276279
"cardinality": "many",
277280
"connection": "myEventHubReadConnectionAppSetting"
278281
}
@@ -282,7 +285,7 @@ To receive events in a batch, set `cardinality` to `many` in the *function.json*
282285
"type": "eventHubTrigger",
283286
"name": "eventHubMessages",
284287
"direction": "in",
285-
"eventHubName": "MyEventHub",
288+
"path": "MyEventHub",
286289
"cardinality": "many",
287290
"connection": "myEventHubReadConnectionAppSetting"
288291
}
@@ -422,13 +425,13 @@ public static string Run([TimerTrigger("0 */5 * * * *")] TimerInfo myTimer, Trac
422425

423426
The following example shows an event hub trigger binding in a *function.json* file and a [C# script function](functions-reference-csharp.md) that uses the binding. The function writes a message to an event hub.
424427

425-
The following examples show Event Hubs binding data in the *function.json* file. The first example is for Functions 1.x, and the second one is for Functions 2.x.
428+
The following examples show Event Hubs binding data in the *function.json* file. The first example is for Functions 2.x, and the second one is for Functions 1.x.
426429

427430
```json
428431
{
429432
"type": "eventHub",
430433
"name": "outputEventHubMessage",
431-
"path": "myeventhub",
434+
"eventHubName": "myeventhub",
432435
"connection": "MyEventHubSendAppSetting",
433436
"direction": "out"
434437
}
@@ -437,7 +440,7 @@ The following examples show Event Hubs binding data in the *function.json* file.
437440
{
438441
"type": "eventHub",
439442
"name": "outputEventHubMessage",
440-
"eventHubName": "myeventhub",
443+
"path": "myeventhub",
441444
"connection": "MyEventHubSendAppSetting",
442445
"direction": "out"
443446
}
@@ -472,13 +475,13 @@ public static void Run(TimerInfo myTimer, ICollector<string> outputEventHubMessa
472475

473476
The following example shows an event hub trigger binding in a *function.json* file and an [F# function](functions-reference-fsharp.md) that uses the binding. The function writes a message to an event hub.
474477

475-
The following examples show Event Hubs binding data in the *function.json* file. The first example is for Functions 1.x, and the second one is for Functions 2.x.
478+
The following examples show Event Hubs binding data in the *function.json* file. The first example is for Functions 2.x, and the second one is for Functions 1.x.
476479

477480
```json
478481
{
479482
"type": "eventHub",
480483
"name": "outputEventHubMessage",
481-
"path": "myeventhub",
484+
"eventHubName": "myeventhub",
482485
"connection": "MyEventHubSendAppSetting",
483486
"direction": "out"
484487
}
@@ -487,7 +490,7 @@ The following examples show Event Hubs binding data in the *function.json* file.
487490
{
488491
"type": "eventHub",
489492
"name": "outputEventHubMessage",
490-
"eventHubName": "myeventhub",
493+
"path": "myeventhub",
491494
"connection": "MyEventHubSendAppSetting",
492495
"direction": "out"
493496
}
@@ -506,13 +509,13 @@ let Run(myTimer: TimerInfo, outputEventHubMessage: byref<string>, log: TraceWrit
506509

507510
The following example shows an event hub trigger binding in a *function.json* file and a [JavaScript function](functions-reference-node.md) that uses the binding. The function writes a message to an event hub.
508511

509-
The following examples show Event Hubs binding data in the *function.json* file. The first example is for Functions 1.x, and the second one is for Functions 2.x.
512+
The following examples show Event Hubs binding data in the *function.json* file. The first example is for Functions 2.x, and the second one is for Functions 1.x.
510513

511514
```json
512515
{
513516
"type": "eventHub",
514517
"name": "outputEventHubMessage",
515-
"path": "myeventhub",
518+
"eventHubName": "myeventhub",
516519
"connection": "MyEventHubSendAppSetting",
517520
"direction": "out"
518521
}
@@ -521,7 +524,7 @@ The following examples show Event Hubs binding data in the *function.json* file.
521524
{
522525
"type": "eventHub",
523526
"name": "outputEventHubMessage",
524-
"eventHubName": "myeventhub",
527+
"path": "myeventhub",
525528
"connection": "MyEventHubSendAppSetting",
526529
"direction": "out"
527530
}

0 commit comments

Comments
 (0)