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
#Customer intent: As an Azure Functions developer, I want to understand how Visual Studio Code supports Azure Functions so that I can more efficiently create, publish, and maintain my Functions projects.
17
17
---
@@ -158,6 +158,13 @@ An HttpExample.cs class library file, the contents of which vary depending on wh
158
158
::: zone-end
159
159
::: zone pivot="programming-language-javascript,programming-language-typescript"
160
160
Files generated depend on the chosen Node.js programming model for Functions:
161
+
162
+
### [v4](#tab/node-v4)
163
+
164
+
+ A package.json file in the root folder.
165
+
166
+
+ A named .js file in the _src\functions_ folder, which contains both the function definition and your function code.
167
+
161
168
### [v3](#tab/node-v3)
162
169
+ A package.json file in the root folder.
163
170
@@ -166,12 +173,6 @@ Files generated depend on the chosen Node.js programming model for Functions:
166
173
+ The [function.json definition file](functions-reference-node.md#folder-structure)
167
174
+ An [index.js file](functions-reference-node.md#exporting-a-function), which contains the function code.
168
175
169
-
### [v4](#tab/node-v4)
170
-
171
-
+ A package.json file in the root folder.
172
-
173
-
+ A named .js file in the _src\functions_ folder, which contains both the function definition and your function code.
174
-
175
176
---
176
177
177
178
::: zone-end
@@ -223,16 +224,16 @@ The results of this action are that a new Java (.java) file is added to your pro
223
224
::: zone pivot="programming-language-javascript,programming-language-typescript"
224
225
The results of this action depend on the Node.js model version.
225
226
226
-
### [v3](#tab/node-v3)
227
-
228
-
A new folder is created in the project. The folder contains a new function.json file and the new JavaScript code file.
229
-
230
227
### [v4](#tab/node-v4)
231
228
232
229
+ A package.json file in the root folder.
233
230
234
231
+ A named .js file in the _src\functions_ folder, which contains both the function definition and your function code.
235
232
233
+
### [v3](#tab/node-v3)
234
+
235
+
A new folder is created in the project. The folder contains a new function.json file and the new JavaScript code file.
236
+
236
237
---
237
238
::: zone-end
238
239
::: zone pivot="programming-language-powershell"
@@ -276,14 +277,14 @@ For example, to add an output binding that writes data to a storage queue you up
276
277
::: zone pivot="programming-language-javascript"
277
278
For example, the way you define the output binding that writes data to a storage queue depends on your Node.js model version:
Using the Node.js v4 model, you must manually add a `return:` option in the function definition using the `storageQueue` function on the `output` object, which defines the storage queue to write the `return` output. Output is written when the function completes.
Copy file name to clipboardExpand all lines: includes/functions-add-output-binding-example-all-languages.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
author: ggailey777
3
3
ms.service: azure-functions
4
4
ms.topic: include
5
-
ms.date: 08/18/2023
5
+
ms.date: 03/06/2024
6
6
ms.author: glenga
7
7
---
8
8
@@ -44,13 +44,13 @@ Messages are sent to the queue when the function completes. The way you define t
44
44
Formoreinformation, includinglinkstoexamplebindingcodethatyoucanreferto, see [Addbindingstoafunction](../articles/azure-functions/add-bindings-existing-function.md?tabs=java#manually-add-bindings-based-on-examples).
ThewayyoudefinetheoutputbindingdependsontheversionofyourNode.jsmodel. Formoreinformation, includinglinkstoexamplebindingcodethatyoucanreferto, see [Addbindingstoafunction](../articles/azure-functions/add-bindings-existing-function.md?tabs=javascript#manually-add-bindings-based-on-examples).
@@ -74,13 +74,15 @@ For more information, including links to example binding code that you can refer
74
74
ThewayyoudefinetheoutputbindingdependsontheversionofyourPythonmodel. Formoreinformation, includinglinkstoexamplebindingcodethatyoucanreferto, see [Addbindingstoafunction](../articles/azure-functions/add-bindings-existing-function.md?tabs=python#manually-add-bindings-based-on-examples).
ThewayyoudefinetheoutputbindingdependsontheversionofyourNode.jsmodel. Formoreinformation, includinglinkstoexamplebindingcodethatyoucanreferto, see [Addbindingstoafunction](../articles/azure-functions/add-bindings-existing-function.md?tabs=typescript#manually-add-bindings-based-on-examples).
0 commit comments