Skip to content

Commit 1c2c710

Browse files
committed
moved update app setting to before deploy
1 parent b195e29 commit 1c2c710

File tree

3 files changed

+36
-24
lines changed

3 files changed

+36
-24
lines changed

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

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,28 @@ Each binding requires a direction, a type, and a unique name. The HTTP trigger h
232232

233233
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 provisions 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.
234234

235+
::: zone pivot="nodejs-model-v4"
236+
## Update app settings
237+
238+
To enable your V4 programming model app to run in Azure, you need to add a new application setting named `AzureWebJobsFeatureFlags` with a value of `EnableWorkerIndexing`. This setting is already in your local.settings.json file.
239+
240+
Run the following command to add this setting to your new function app in Azure. Replace `<FUNCTION_APP_NAME>` and `<RESOURCE_GROUP_NAME>` with the name of your function app and resource group, respectively.
241+
242+
# [Azure CLI](#tab/azure-cli)
243+
244+
```azurecli
245+
az functionapp config appsettings set --name <FUNCTION_APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --settings AzureWebJobsFeatureFlags=EnableWorkerIndexing
246+
```
247+
248+
# [Azure PowerShell](#tab/azure-powershell)
249+
250+
```azurepowershell
251+
Update-AzFunctionAppSetting -Name <FUNCTION_APP_NAME> -ResourceGroupName <RESOURCE_GROUP_NAME> -AppSetting @{"AzureWebJobsFeatureFlags" = "EnableWorkerIndexing"}
252+
```
253+
254+
---
255+
::: zone-end
256+
235257
## Deploy the function project to Azure
236258

237259
Before you use Core Tools to deploy your project to Azure, you create a production-ready build of JavaScript files from the TypeScript source files.
@@ -269,28 +291,6 @@ Before you use Core Tools to deploy your project to Azure, you create a producti
269291
Invoke url: https://msdocs-azurefunctions-qs.azurewebsites.net/api/httpexample?code=KYHrydo4GFe9y0000000qRgRJ8NdLFKpkakGJQfC3izYVidzzDN4gQ==
270292
</pre>
271293

272-
::: zone pivot="nodejs-model-v4"
273-
## Update app settings
274-
275-
To enable your V4 programming model app to run in Azure, you need to add a new application setting named `AzureWebJobsFeatureFlags` with a value of `EnableWorkerIndexing`. This setting is already in your local.settings.json file.
276-
277-
Run the following command to add this setting to your new function app in Azure. Replace `<FUNCTION_APP_NAME>` and `<RESOURCE_GROUP_NAME>` with the name of your function app and resource group, respectively.
278-
279-
# [Azure CLI](#tab/azure-cli)
280-
281-
```azurecli
282-
az functionapp config appsettings set --name <FUNCTION_APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --settings AzureWebJobsFeatureFlags=EnableWorkerIndexing
283-
```
284-
285-
# [Azure PowerShell](#tab/azure-powershell)
286-
287-
```azurepowershell
288-
Update-AzFunctionAppSetting -Name <FUNCTION_APP_NAME> -ResourceGroupName <RESOURCE_GROUP_NAME> -AppSetting @{"AzureWebJobsFeatureFlags" = "EnableWorkerIndexing"}
289-
```
290-
291-
---
292-
::: zone-end
293-
294294
[!INCLUDE [functions-run-remote-azure-cli](../../includes/functions-run-remote-azure-cli.md)]
295295

296296
[!INCLUDE [functions-streaming-logs-cli-qs](../../includes/functions-streaming-logs-cli-qs.md)]

articles/azure-functions/create-first-function-vs-code-node.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ After you've verified that the function runs correctly on your local computer, i
7878

7979
[!INCLUDE [functions-sign-in-vs-code](../../includes/functions-sign-in-vs-code.md)]
8080

81-
[!INCLUDE [functions-publish-project-vscode](../../includes/functions-publish-project-vscode.md)]
81+
## Create the function app in Azure
82+
83+
[!INCLUDE [functions-create-azure-resources-vs-code](../../includes/functions-create-azure-resources-vs-code.md)]
8284

8385
::: zone pivot="nodejs-model-v4"
8486
## Update app settings
@@ -92,6 +94,10 @@ To enable your V4 programming model app to run in Azure, you need to add a new a
9294
1. For the value, type `EnableWorkerIndexing` and press <kbd>Enter</kbd>.
9395
::: zone-end
9496

97+
## Deploy the project to Azure
98+
99+
[!INCLUDE [functions-deploy-project-vs-code](../../includes/functions-deploy-project-vs-code.md)]
100+
95101
[!INCLUDE [functions-vs-code-run-remote](../../includes/functions-vs-code-run-remote.md)]
96102

97103
::: zone pivot="nodejs-model-v3"

articles/azure-functions/create-first-function-vs-code-typescript.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ After you've verified that the function runs correctly on your local computer, i
8989

9090
[!INCLUDE [functions-sign-in-vs-code](../../includes/functions-sign-in-vs-code.md)]
9191

92-
[!INCLUDE [functions-publish-project-vscode](../../includes/functions-publish-project-vscode.md)]
92+
## Create the function app in Azure
93+
94+
[!INCLUDE [functions-create-azure-resources-vs-code](../../includes/functions-create-azure-resources-vs-code.md)]
9395

9496
::: zone pivot="nodejs-model-v4"
9597
## Update app settings
@@ -103,6 +105,10 @@ To enable your V4 programming model app to run in Azure, you need to add a new a
103105
1. For the value, type `EnableWorkerIndexing` and press <kbd>Enter</kbd>.
104106
::: zone-end
105107

108+
## Deploy the project to Azure
109+
110+
[!INCLUDE [functions-deploy-project-vs-code](../../includes/functions-deploy-project-vs-code.md)]
111+
106112
[!INCLUDE [functions-vs-code-run-remote](../../includes/functions-vs-code-run-remote.md)]
107113

108114
[!INCLUDE [functions-cleanup-resources-vs-code.md](../../includes/functions-cleanup-resources-vs-code.md)]

0 commit comments

Comments
 (0)