Skip to content

Commit 86bdbe1

Browse files
authored
Fix func init commands now that V2 is the default
1 parent e82673a commit 86bdbe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ In this section, you create a function project that contains a single function.
9494
1. Run the `func init` command as follows to create a Python functions project in the virtual environment.
9595

9696
```console
97-
func init --python
97+
func init --python --model V1
9898
```
9999

100100
The environment now contains various files for the project, including configuration files named [*local.settings.json*](functions-develop-local.md#local-settings-file) and [*host.json*](functions-host-json.md). Because *local.settings.json* can contain secrets downloaded from Azure, the file is excluded from source control by default in the *.gitignore* file.
@@ -136,7 +136,7 @@ In this section, you create a function project and add an HTTP triggered functio
136136
1. Run the `func init` command as follows to create a Python v2 functions project in the virtual environment.
137137

138138
```console
139-
func init --python -m V2
139+
func init --python
140140
```
141141

142142
The environment now contains various files for the project, including configuration files named [*local.settings.json*](functions-develop-local.md#local-settings-file) and [*host.json*](functions-host-json.md). Because *local.settings.json* can contain secrets downloaded from Azure, the file is excluded from source control by default in the *.gitignore* file.

0 commit comments

Comments
 (0)