Skip to content

Commit 96e3cce

Browse files
authored
The argument should be functions-version
The commands generate an error stating: az: error: unrecognized arguments: --functions_version 2 The correct argument should be --functions-version 2
1 parent c1bd2ef commit 96e3cce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Use the following Azure CLI commands to create these items. Each command provide
269269
If you are using Python 3.6, also change `--runtime-version` to `3.6`.
270270
271271
```azurecli
272-
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>
272+
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>
273273
```
274274
::: zone-end
275275
@@ -278,19 +278,19 @@ Use the following Azure CLI commands to create these items. Each command provide
278278
279279
280280
```azurecli
281-
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location westeurope --runtime node --runtime-version 10 --functions_version 2 --name <APP_NAME> --storage-account <STORAGE_NAME>
281+
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location westeurope --runtime node --runtime-version 10 --functions-version 2 --name <APP_NAME> --storage-account <STORAGE_NAME>
282282
```
283283
::: zone-end
284284
285285
::: zone pivot="programming-language-csharp"
286286
```azurecli
287-
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location westeurope --runtime dotnet --functions_version 2 --name <APP_NAME> --storage-account <STORAGE_NAME>
287+
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location westeurope --runtime dotnet --functions-version 2 --name <APP_NAME> --storage-account <STORAGE_NAME>
288288
```
289289
::: zone-end
290290
291291
::: zone pivot="programming-language-powershell"
292292
```azurecli
293-
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location westeurope --runtime powershell --functions_version 2 --name <APP_NAME> --storage-account <STORAGE_NAME>
293+
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location westeurope --runtime powershell --functions-version 2 --name <APP_NAME> --storage-account <STORAGE_NAME>
294294
```
295295
::: zone-end
296296

0 commit comments

Comments
 (0)