Skip to content

Commit 1006487

Browse files
authored
patch instructions to include minimum reqs
1 parent 28e7452 commit 1006487

File tree

1 file changed

+40
-3
lines changed

1 file changed

+40
-3
lines changed

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

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,46 @@ You now have a Durable Functions app that can be run locally and deployed to Azu
178178
179179
::: zone pivot="python-mode-decorators"
180180
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:
184+
185+
- [Azure Functions Runtime](./functions-versions.md) v4.16+
186+
- [Azure Functions Core Tools](./functions-run-local.md) v4.0.5095+ (if running locally)
187+
188+
## Enable v2 programming model
189+
190+
The following application setting is required to run the v4 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
202+
```
203+
204+
# [Azure PowerShell](#tab/azure-powershell-set-indexing-flag)
205+
206+
Replace `<FUNCTION_APP_NAME>` and `<RESOURCE_GROUP_NAME>` with the name of your function app and resource group, respectively.
207+
208+
```azurepowershell
209+
Update-AzFunctionAppSetting -Name <FUNCTION_APP_NAME> -ResourceGroupName <RESOURCE_GROUP_NAME> -AppSetting @{"AzureWebJobsFeatureFlags" = "EnableWorkerIndexing"}
210+
```
211+
212+
# [VS Code](#tab/vs-code-set-indexing-flag)
213+
214+
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+
---
184221

185222
To create a basic Durable Functions app using these 3 function types, replace the contents of `function_app.py` with the following Python code.
186223

0 commit comments

Comments
 (0)