Skip to content

Commit 3cb57d5

Browse files
kulkarnisonia16Glenn Gailey
authored andcommitted
Adding support for Python 3.8
1 parent 3658742 commit 3cb57d5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

articles/azure-functions/functions-create-first-azure-function-azure-cli.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Before you begin, you must have the following:
2626
::: zone-end
2727

2828
::: zone pivot="programming-language-python"
29-
+ [Python 3.7](https://www.python.org/downloads/release/python-375/) or [Python 3.6](https://www.python.org/downloads/release/python-368/), which are supported by Azure Functions. Python 3.8 and later versions aren't yet supported.
29+
+ [Python 3.8](https://www.python.org/downloads/release/python-382/), [Python 3.7](https://www.python.org/downloads/release/python-375/), [Python 3.6](https://www.python.org/downloads/release/python-368/), which are supported by Azure Functions.
3030
::: zone-end
3131
::: zone pivot="programming-language-powershell"
3232
+ [PowerShell Core](/powershell/scripting/install/installing-powershell-core-on-windows)
@@ -46,11 +46,11 @@ Before you begin, you must have the following:
4646
+ Run `node --version` to check your Node.js version reports 8.x or 10.x.
4747
::: zone-end
4848
::: zone pivot="programming-language-python"
49-
+ Run `python --version` (Linux/MacOS) or `py --version` (Windows) to check your Python version reports 3.7.x or 3.6.x.
49+
+ Run `python --version` (Linux/MacOS) or `py --version` (Windows) to check your Python version reports 3.8.x, 3.7.x or 3.6.x.
5050

5151
## <a name="create-venv"></a>Create and activate a virtual environment
5252

53-
In a suitable folder, run the following commands to create and activate a virtual environment named `.venv`. Be sure to use Python 3.7 or 3.6, which are supported by Azure Functions.
53+
In a suitable folder, run the following commands to create and activate a virtual environment named `.venv`. Be sure to use Python 3.8, 3.7 or 3.6, which are supported by Azure Functions.
5454

5555

5656
# [bash](#tab/bash)
@@ -266,7 +266,9 @@ Use the following Azure CLI commands to create these items. Each command provide
266266
1. Create the Functions app using the [az functionapp create](/cli/azure/functionapp#az-functionapp-create) command. In the following example, replace `<STORAGE_NAME>` with the name of the account you used in the previous step, and replace `<APP_NAME>` with a globally unique name appropriate to you. The `<APP_NAME>` is also the default DNS domain for the function app.
267267
268268
::: zone pivot="programming-language-python"
269-
If you are using Python 3.6, also change `--runtime-version` to `3.6`.
269+
If you are using Python 3.8, change `--runtime-version` to `3.8` and `--functions_version` to `3`
270+
271+
If you are using Python 3.6, change `--runtime-version` to `3.6`.
270272
271273
```azurecli
272274
az functionapp create --resource-group AzureFunctionsQuickstart-rg --os-type Linux --consumption-plan-location westeurope --runtime python --runtime-version 3.7 --functions_version 2 --name <APP_NAME> --storage-account <STORAGE_NAME>

0 commit comments

Comments
 (0)