Skip to content

Commit c7977eb

Browse files
Merge pull request #244528 from davidmrdavid/dajusto/df-pystein-ga
Announce DF Python support of blueprints
2 parents 7d136e1 + 8b3a0c7 commit c7977eb

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

articles/azure-functions/durable/durable-functions-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Durable Functions is designed to work with all Azure Functions programming langu
2929
| Java | Functions 4.0+ | Java 8+ | 4.x bundles |
3030

3131
> [!NOTE]
32-
> The new programming models for authoring Functions in Python (V2) and Node.js (V4) are currently in preview. Compared to the current models, the new experiences are designed to be more flexible and intuitive for Python and JavaScript/TypeScript developers. Learn more about the differences between the models in the [Python developer guide](../functions-reference-python.md?pivots=python-mode-decorators) and [Node.js upgrade guide](../functions-node-upgrade-v4.md).
32+
> The new programming model for authoring Functions in Node.js (V4) is currently in preview. Compared to the current model, this new experience is designed to be more flexible and intuitive for Node developers. Learn more about the differences between the models in the [Node.js upgrade guide](../functions-node-upgrade-v4.md).
3333
>
3434
> In the following code snippets, Python (PM2) denotes programming model V2, and JavaScript (PM4) denotes programming model V4, the new experiences.
3535

articles/azure-functions/durable/quickstart-python-vscode.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: Create your first durable function in Azure using Python
33
description: Create and publish an Azure Durable Function in Python using Visual Studio Code.
4-
author: anthonychu
4+
author: davidmrdavid
55
ms.topic: quickstart
66
ms.date: 06/15/2022
7-
ms.reviewer: azfuncdf, antchu
7+
ms.reviewer: azfuncdf, davidmrdavid
88
ms.devlang: python
99
ms.custom: mode-api, devdivchpfy22, vscode-azure-extension-update-complete, devx-track-python
1010
zone_pivot_groups: python-mode-functions
@@ -18,9 +18,6 @@ In this article, you learn how to use the Visual Studio Code Azure Functions ext
1818

1919
:::image type="content" source="./media/quickstart-python-vscode/functions-vs-code-complete.png" alt-text="Screenshot of the running durable function in Azure.":::
2020

21-
> [!NOTE]
22-
> The new programming model for authoring Functions in Python (V2) is currently in preview. Compared to the current model, the new experience is designed to be more idiomatic and intuitive for Python programmers. To learn more, see Azure Functions Python [developer guide](../functions-reference-python.md?pivots=python-mode-decorators).
23-
2421
## Prerequisites
2522

2623
To complete this tutorial:
@@ -184,10 +181,11 @@ Version 2 of the Python programming model requires the following minimum version
184181
185182
- [Azure Functions Runtime](../functions-versions.md) v4.16+
186183
- [Azure Functions Core Tools](../functions-run-local.md) v4.0.5095+ (if running locally)
184+
- [azure-functions-durable](https://pypi.org/project/azure-functions-durable/) v1.2.4+
187185
188186
## Enable v2 programming model
189187
190-
The following application setting is required to run the v2 programming model while it is in preview:
188+
The following application setting is required to run the v2 programming model:
191189
- Name: `AzureWebJobsFeatureFlags`
192190
- Value: `EnableWorkerIndexing`
193191
@@ -259,6 +257,10 @@ Review the table below for an explanation of each function and its purpose in th
259257
| **`hello`** | The activity function, which performs the work being orchestrated. The function returns a simple greeting to the city passed as an argument. |
260258
| **`http_start`** | An [HTTP-triggered function](../functions-bindings-http-webhook.md) that starts an instance of the orchestration and returns a check status response. |
261259

260+
> [!NOTE]
261+
> Durable Functions also supports Python V2's [blueprints](../functions-reference-python.md#blueprints). To use them, you will need to register your blueprint functions using the [`azure-functions-durable`](https://pypi.org/project/azure-functions-durable) `Blueprint` class, as
262+
> shown [here](https://github.com/Azure/azure-functions-durable-python/blob/dev/samples-v2/blueprint/durable_blueprints.py). The resulting blueprint can then be registered as normal. See our [sample](https://github.com/Azure/azure-functions-durable-python/tree/dev/samples-v2/blueprint) for an example.
263+
262264
::: zone-end
263265

264266
## Test the function locally

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ app = func.FunctionApp()
273273
app.register_functions(bp)
274274
```
275275

276+
> [!NOTE]
277+
> Durable Functions also supports blueprints. To create blueprints for Durable Functions apps, register your orchestration, activity, and entity triggers and client bindings using the [`azure-functions-durable`](https://pypi.org/project/azure-functions-durable) `Blueprint` class, as
278+
> shown [here](https://github.com/Azure/azure-functions-durable-python/blob/dev/samples-v2/blueprint/durable_blueprints.py). The resulting blueprint can then be registered as normal. See our [sample](https://github.com/Azure/azure-functions-durable-python/tree/dev/samples-v2/blueprint) for an example.
279+
276280
::: zone-end
277281

278282
::: zone pivot="python-mode-configuration"

0 commit comments

Comments
 (0)