Skip to content

Commit 003a825

Browse files
Merge pull request #218968 from ggailey777/patch-8
Updating the functions version in Azure to 4
2 parents b5b95e6 + 7071ffc commit 003a825

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,39 +176,36 @@ To learn more, see [Azure Functions HTTP triggers and bindings](./functions-bind
176176
# [Azure CLI](#tab/azure-cli/in-process)
177177

178178
```azurecli
179-
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location <REGION> --runtime dotnet --functions-version 3 --name <APP_NAME> --storage-account <STORAGE_NAME>
179+
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location <REGION> --runtime dotnet --functions-version 4 --name <APP_NAME> --storage-account <STORAGE_NAME>
180180
```
181181
The [az functionapp create](/cli/azure/functionapp#az-functionapp-create) command creates the function app in Azure.
182182

183183
# [Azure CLI](#tab/azure-cli/isolated-process)
184184

185185
```azurecli
186-
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location <REGION> --runtime dotnet-isolated --functions-version 3 --name <APP_NAME> --storage-account <STORAGE_NAME>
186+
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location <REGION> --runtime dotnet-isolated --functions-version 4 --name <APP_NAME> --storage-account <STORAGE_NAME>
187187
```
188188

189189
The [az functionapp create](/cli/azure/functionapp#az-functionapp-create) command creates the function app in Azure.
190190

191191
# [Azure PowerShell](#tab/azure-powershell/in-process)
192192

193193
```azurepowershell
194-
New-AzFunctionApp -Name <APP_NAME> -ResourceGroupName AzureFunctionsQuickstart-rg -StorageAccount <STORAGE_NAME> -Runtime dotnet -FunctionsVersion 3 -Location '<REGION>'
194+
New-AzFunctionApp -Name <APP_NAME> -ResourceGroupName AzureFunctionsQuickstart-rg -StorageAccount <STORAGE_NAME> -Runtime dotnet -FunctionsVersion 4 -Location '<REGION>'
195195
```
196196

197197
The [New-AzFunctionApp](/powershell/module/az.functions/new-azfunctionapp) cmdlet creates the function app in Azure.
198198

199199
# [Azure PowerShell](#tab/azure-powershell/isolated-process)
200200

201201
```azurepowershell
202-
New-AzFunctionApp -Name <APP_NAME> -ResourceGroupName AzureFunctionsQuickstart-rg -StorageAccount <STORAGE_NAME> -Runtime dotnet-isolated -FunctionsVersion 3 -Location '<REGION>'
202+
New-AzFunctionApp -Name <APP_NAME> -ResourceGroupName AzureFunctionsQuickstart-rg -StorageAccount <STORAGE_NAME> -Runtime dotnet-isolated -FunctionsVersion 4 -Location '<REGION>'
203203
```
204204

205205
The [New-AzFunctionApp](/powershell/module/az.functions/new-azfunctionapp) cmdlet creates the function app in Azure.
206206

207207
---
208208

209-
> [!NOTE]
210-
> This command creates a function app using the 3.x version of the Azure Functions runtime. The `func azure functionapp publish` command that you'll run later updates the app to version 4.x.
211-
212209
In the previous 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.
213210

214211
This command creates a function app running in your specified language runtime under the [Azure Functions Consumption Plan](consumption-plan.md), which is free for the amount of usage you incur here. The command also creates an associated Azure Application Insights instance in the same resource group, with which you can monitor your function app and view logs. For more information, see [Monitor Azure Functions](functions-monitoring.md). The instance incurs no costs until you activate it.

0 commit comments

Comments
 (0)