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/create-first-function-cli-python.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ In this article, you use command-line tools to create a Python function that res
16
16
This article covers both Python programming models supported by Azure Functions. Use the selector at the top to choose your programming model.
17
17
18
18
>[!NOTE]
19
-
>The Python v2 programming model for Functions is currently in Preview. To learn more about the Python v2 programming model, see the [Developer Reference Guide](functions-reference-python.md).
19
+
>The v2 programming model provides a decorator based approach to create functions. To learn more about the Python v2 programming model, see the [Developer Reference Guide](functions-reference-python.md).
20
20
21
21
Completing this quickstart incurs a small cost of a few USD cents or less in your Azure account.
22
22
@@ -32,7 +32,7 @@ Before you begin, you must have the following requirements in place:
32
32
+ The [Azure Functions Core Tools](functions-run-local.md#v2) version 4.x.
33
33
::: zone-end
34
34
::: zone pivot="python-mode-decorators"
35
-
+ The [Azure Functions Core Tools](functions-run-local.md#v2) version 4.0.4785 or later.
35
+
+ The [Azure Functions Core Tools](functions-run-local.md#v2) version 4.2.1 or later.
36
36
::: zone-end
37
37
+ One of the following tools for creating Azure resources:
38
38
@@ -278,7 +278,6 @@ Use the following commands to create these items. Both Azure CLI and PowerShell
278
278
---
279
279
280
280
::: zone pivot="python-mode-decorators"
281
-
In the current v2 programming model preview, choose a region from one of the following locations: France Central, West Central US, North Europe, China East, East US, or North Central US.
Copy file name to clipboardExpand all lines: articles/azure-functions/create-first-function-vs-code-python.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ In this article, you use Visual Studio Code to create a Python function that res
15
15
This article covers both Python programming models supported by Azure Functions. Use the selector at the top to choose your programming model.
16
16
17
17
>[!NOTE]
18
-
>The Python v2 programming model for Functions is currently in Preview. To learn more about the v2 programming model, see the [Developer Reference Guide](functions-reference-python.md).
18
+
>The v2 programming model provides a decorator based approach to create functions. To learn more about the v2 programming model, see the [Developer Reference Guide](functions-reference-python.md).
19
19
20
20
Completing this quickstart incurs a small cost of a few USD cents or less in your Azure account.
21
21
@@ -165,7 +165,6 @@ In this section, you create a function app and related resources in your Azure s
165
165
|**Select a location for new resources**| Choose a region for your function app.|
166
166
167
167
::: zone pivot="python-mode-decorators"
168
-
In the current v2 programming model preview, choose a region from one of the following locations: France Central, West Central US, North Europe, China East, East US, or North Central US.
169
168
::: zone-end
170
169
171
170
The extension shows the status of individual resources as they're being created in Azure in the **Azure: Activity Log** panel.
This guide is an introduction to developing Azure Functions by using Python. The article assumes that you've already read the [Azure Functions developers guide](functions-reference.md).
14
14
15
15
> [!IMPORTANT]
16
-
> This article supports both the v1 and v2 programming model for Python in Azure Functions.
17
-
> The Python v2 programming model is currently in preview.
16
+
> This article supports both the v1 and v2 programming model for Python in Azure Functions.
18
17
> The Python v1 model uses a *functions.json* file to define functions, and the new v2 model lets you instead use a decorator-based approach. This new approach results in a simpler file structure, and it's more code-centric. Choose the **v2** selector at the top of the article to learn about this new programming model.
19
18
20
19
As a Python developer, you might also be interested in one of the following articles:
At this time, only specific triggers and bindings are supported by the Python v2 programming model. For more information, see [Triggers and inputs](#triggers-and-inputs).
119
-
120
117
To learn about known limitations with the v2 model and their workarounds, see [Troubleshoot Python errors in Azure Functions](./recover-python-functions.md?pivots=python-mode-decorators).
121
118
::: zone-end
122
119
@@ -138,7 +135,7 @@ You can change the default behavior of a function by optionally specifying the `
138
135
139
136
::: zone-end
140
137
::: zone pivot="python-mode-decorators"
141
-
During preview, the entry point is only in the *function\_app.py* file. However, you can reference functions within the project in *function\_app.py* by using [blueprints](#blueprints) or by importing.
138
+
The entry point is only in the *function\_app.py* file. However, you can reference functions within the project in *function\_app.py* by using [blueprints](#blueprints) or by importing.
142
139
::: zone-end
143
140
144
141
## Folder structure
@@ -400,20 +397,6 @@ When the function is invoked, the HTTP request is passed to the function as `req
400
397
401
398
For data intensive binding operations, you may want to use a separate storage account. For more information, see [Storage account guidance](storage-considerations.md#storage-account-guidance).
402
399
403
-
::: zone pivot="python-mode-decorators"
404
-
At this time, only specific triggers and bindings are supported by the Python v2 programming model. Supported triggers and bindings are as follows:
|[HTTP](functions-bindings-http-webhook.md?pivots=programming-language-python)| x |||
409
-
|[Timer](functions-bindings-timer.md?pivots=programming-language-python)| x |||
410
-
|[Azure Queue Storage](functions-bindings-storage-queue.md?pivots=programming-language-python)| x || x |
411
-
|[Azure Service Bus topic](functions-bindings-service-bus.md?pivots=programming-language-python)| x || x |
412
-
|[Azure Service Bus queue](functions-bindings-service-bus.md?pivots=programming-language-python)| x || x |
413
-
|[Azure Cosmos DB](functions-bindings-cosmosdb-v2.md?pivots=programming-language-python)| x | x | x |
414
-
|[Azure Blob Storage](functions-bindings-storage-blob.md?pivots=programming-language-python)| x | x | x |
415
-
|[Azure Event Hubs](functions-bindings-event-hubs.md?pivots=programming-language-python)| x || x |
416
-
::: zone-end
417
400
418
401
## Outputs
419
402
@@ -951,8 +934,6 @@ When you're using the new programming model, enable the following app setting in
951
934
952
935
When you're deploying the function, this setting isn't created automatically. You must explicitly create this setting in your function app in Azure for it to run by using the v2 model.
953
936
954
-
The multiple Python workers setting isn't supported in the v2 programming model at this time. This means that setting `FUNCTIONS_WORKER_PROCESS_COUNT` to greater than `1` isn't supported for functions that are developed by using the v2 model.
0 commit comments