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
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-add-output-binding-azure-sql-vs-code.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Connect Azure Functions to Azure SQL Database using Visual Studio Code
3
3
description: Learn how to connect Azure Functions to Azure SQL Database by adding an output binding to your Visual Studio Code project.
4
-
ms.date: 12/29/2024
4
+
ms.date: 02/26/2026
5
5
ms.topic: quickstart
6
6
author: dzsquared
7
7
ms.author: drskwier
@@ -26,7 +26,7 @@ This article shows you how to use Visual Studio Code to connect [Azure SQL Datab
26
26
Before you begin, you must complete the [quickstart: Create a C# function in Azure using Visual Studio Code](how-to-create-function-vs-code.md?pivot=programming-language-csharp). If you already cleaned up resources at the end of that article, go through the steps again to recreate the function app and related resources in Azure.
27
27
::: zone-end
28
28
::: zone pivot="programming-language-javascript"
29
-
Before you begin, you must complete the [quickstart: Create a JavaScript function in Azure using Visual Studio Code](how-to-create-function-vs-code.md?pivot=programming-language-javascript?pivot=nodejs-model-v3). If you already cleaned up resources at the end of that article, go through the steps again to recreate the function app and related resources in Azure.
29
+
Before you begin, you must complete the [quickstart: Create a JavaScript function in Azure using Visual Studio Code](how-to-create-function-vs-code.md?pivot=programming-language-javascript). If you already cleaned up resources at the end of that article, go through the steps again to recreate the function app and related resources in Azure.
30
30
::: zone-end
31
31
::: zone pivot="programming-language-python"
32
32
Before you begin, you must complete the [quickstart: Create a Python function in Azure using Visual Studio Code](how-to-create-function-vs-code.md?pivot=programming-language-python). If you already cleaned up resources at the end of that article, go through the steps again to recreate the function app and related resources in Azure.
@@ -224,7 +224,7 @@ At this point, your function should look as follows:
224
224
225
225
226
226
::: zone pivot="programming-language-python"
227
-
Update *HttpExample\\function_app.py* to match the following code. Add the `toDoItems` parameter to the function definition and `toDoItems.set()` under the `if name:` statement:
227
+
Update *function_app.py* to match the following code. Add the `toDoItems` parameter to the function definition and `toDoItems.set()` under the `if name:` statement:
@@ -25,10 +25,10 @@ This article shows you how to use Visual Studio Code to connect [Azure Cosmos DB
25
25
Before you begin, you must complete the [quickstart: Create a C# function in Azure using Visual Studio Code](how-to-create-function-vs-code.md?pivot=programming-language-csharp). If you already cleaned up resources at the end of that article, go through the steps again to recreate the function app and related resources in Azure.
26
26
::: zone-end
27
27
::: zone pivot="programming-language-javascript"
28
-
Before you begin, you must complete the [quickstart: Create a JavaScript function in Azure using Visual Studio Code](how-to-create-function-vs-code.md?pivot=programming-language-javascript?pivot=nodejs-model-v3). If you already cleaned up resources at the end of that article, go through the steps again to recreate the function app and related resources in Azure.
28
+
Before you begin, you must complete the [quickstart: Create a JavaScript function in Azure using Visual Studio Code](how-to-create-function-vs-code.md?pivot=programming-language-javascript). If you already cleaned up resources at the end of that article, go through the steps again to recreate the function app and related resources in Azure.
29
29
30
30
>[!NOTE]
31
-
>This article currently only supports [Node.js v3 for Functions](./functions-reference-node.md?pivots=nodejs-model-v3).
31
+
>This article supports [Node.js v4 for Functions](./functions-reference-node.md?pivots=nodejs-model-v4).
32
32
::: zone-end
33
33
::: zone pivot="programming-language-python"
34
34
Before you begin, you must complete the [quickstart: Create a Python function in Azure using Visual Studio Code](how-to-create-function-vs-code.md?pivot=programming-language-python). If you already cleaned up resources at the end of that article, go through the steps again to recreate the function app and related resources in Azure.
@@ -170,9 +170,9 @@ In this code, `arg_name` identifies the binding parameter referenced in your cod
170
170
## Add code that uses the output binding
171
171
172
172
::: zone pivot="programming-language-csharp"
173
-
Replace the existing Run method with the following code:
173
+
Replace the existing `Run` method with the following code:
@@ -188,7 +188,7 @@ This code now returns a `MultiResponse` object that contains both a document and
188
188
189
189
::: zone-end
190
190
::: zone pivot="programming-language-python"
191
-
Update *HttpExample\\function_app.py* to match the following code. Add the `outputDocument` parameter to the function definition and `outputDocument.set()` under the `if name:` statement:
191
+
Update *function_app.py* to match the following code. Add the `outputDocument` parameter to the function definition and `outputDocument.set()` under the `if name:` statement:
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-reference-node.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1116,11 +1116,16 @@ In addition to the default `context.log` method, the following methods are avail
1116
1116
1117
1117
Azure Functions lets you define the threshold level to be used when tracking and viewing logs. To set the threshold, use the `logging.logLevel` property in the `host.json` file. This property lets you define a default level applied to all functions, or a threshold for each individual function. To learn more, see [How to configure monitoring for Azure Functions](configure-monitoring.md).
1118
1118
1119
-
::: zone pivot="nodejs-model-v3"
1120
-
1121
1119
## Track custom data
1122
1120
1123
-
By default, Azure Functions writes output as traces to Application Insights. For more control, you can instead use the [Application Insights Node.js SDK](https://github.com/microsoft/applicationinsights-node.js) to send custom data to your Application Insights instance.
1121
+
By default, Azure Functions writes output as traces to Application Insights. For more control, you can instead use the [Application Insights Node.js SDK](https://github.com/microsoft/applicationinsights-node.js) to send custom logs, metrics, and dependencies to your Application Insights instance.
1122
+
1123
+
> [!NOTE]
1124
+
> Methods in the Application Insights Node.js SDK might change over time. There might be minor syntax differences from the examples shown here. For the latest API usage examples, see the [Application Insights Node.js SDK documentation](https://github.com/microsoft/applicationinsights-node.js).
1125
+
1126
+
::: zone pivot="nodejs-model-v4"
1127
+
For distributed tracing in the Node.js v4 programming model, you can use the [`@azure/functions-opentelemetry-instrumentation`](https://www.npmjs.com/package/@azure/functions-opentelemetry-instrumentation) package instead of the Application Insights SDK. This package provides OpenTelemetry-based automatic instrumentation for Azure Functions. For more information, see the [OpenTelemetry Azure Functions Instrumentation for Node.js](https://github.com/Azure/azure-functions-nodejs-opentelemetry) GitHub repository.
1128
+
::: zone-end
1124
1129
1125
1130
# [JavaScript](#tab/javascript)
1126
1131
@@ -1237,8 +1242,6 @@ export default httpTrigger;
1237
1242
1238
1243
The `tagOverrides` parameter sets the `operation_Id` to the function's invocation ID. This setting enables you to correlate all of the automatically generated and custom logs for a given function invocation.
This example shows the `MultiResponse` object definition. The object definition returns `HttpResponse` to the HTTP request and writes a message to a storage queue by using a `QueueOutput` binding:
Whenapplyingthatexampletoyourownproject, youmightneedtochange `HttpRequest` to `HttpRequestData` and `IActionResult` to `HttpResponseData`, dependingonifyouareusing[ASP.NETCoreintegration](../articles/azure-functions/dotnet-isolated-process-guide.md#aspnet-core-integration)ornot.
31
+
Thisexampleuses[ASP.NETCoreintegration](../articles/azure-functions/dotnet-isolated-process-guide.md#aspnet-core-integration). Ifyouaren't using ASP.NET Core integration, you need to change `HttpRequest` to `HttpRequestData` and `IActionResult` to `HttpResponseData`.
Copy file name to clipboardExpand all lines: includes/functions-add-output-binding-python-v2.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
author: ggailey777
3
3
ms.service: azure-functions
4
4
ms.topic: include
5
-
ms.date: 03/04/2024
5
+
ms.date: 02/26/2026
6
6
ms.author: glenga
7
7
---
8
8
9
9
Binding attributes are defined by decorating specific function code in the *function_app.py* file. You use the `queue_output` decorator to add an [Azure Queue storage output binding](/azure/azure-functions/functions-bindings-triggers-python#azure-queue-storage-output-binding).
10
10
11
-
By using the `queue_output` decorator, the binding direction is implicitly 'out' and type is Azure Storage Queue. Add the following decorator to your function code in *HttpExample\\function_app.py*:
11
+
By using the `queue_output` decorator, the binding direction is implicitly 'out' and type is Azure Storage Queue. Add the following decorator to your function code in *function_app.py*:
0 commit comments