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/durable/quickstart-python-vscode.md
+40-3Lines changed: 40 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,9 +178,46 @@ You now have a Durable Functions app that can be run locally and deployed to Azu
178
178
179
179
::: zone pivot="python-mode-decorators"
180
180
181
-
> [!NOTE]
182
-
> Using [Extension Bundles](../functions-bindings-register.md#extension-bundles) is not currently supported when trying out the Python V2 programming model with Durable Functions, so you will need to manage your extensions manually.
183
-
> To do this, remove the `extensionBundle` section of your `host.json` as described [here](../functions-run-local.md#install-extensions) and run `func extensions install --package Microsoft.Azure.WebJobs.Extensions.DurableTask --version 2.9.1` on your terminal. This will install the Durable Functions extension for your app and will allow you to try out the new experience.
181
+
## Requirements
182
+
183
+
Version 2 of the Python programming model requires the following minimum versions:
The following application setting is required to run the v2 programming model while it is in preview:
191
+
- Name: `AzureWebJobsFeatureFlags`
192
+
- Value: `EnableWorkerIndexing`
193
+
194
+
If you're running locally using [Azure Functions Core Tools](../functions-run-local.md), you should add this setting to your `local.settings.json` file. If you're running in Azure, follow these steps with the tool of your choice:
195
+
196
+
# [Azure CLI](#tab/azure-cli-set-indexing-flag)
197
+
198
+
Replace `<FUNCTION_APP_NAME>` and `<RESOURCE_GROUP_NAME>` with the name of your function app and resource group, respectively.
199
+
200
+
```azurecli
201
+
az functionapp config appsettings set --name <FUNCTION_APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --settings AzureWebJobsFeatureFlags=EnableWorkerIndexing
1. Make sure you have the [Azure Functions extension for VS Code](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) installed
215
+
1. Press <kbd>F1</kbd> to open the command palette. In the command palette, search for and select `Azure Functions: Add New Setting...`.
216
+
1. Choose your subscription and function app when prompted
217
+
1. For the name, type `AzureWebJobsFeatureFlags` and press <kbd>Enter</kbd>.
218
+
1. For the value, type `EnableWorkerIndexing` and press <kbd>Enter</kbd>.
219
+
220
+
---
184
221
185
222
To create a basic Durable Functions app using these 3 function types, replace the contents of `function_app.py` with the following Python code.
0 commit comments