Skip to content

Commit 69fcc2f

Browse files
committed
Edits
1 parent fbc04b9 commit 69fcc2f

File tree

2 files changed

+44
-35
lines changed

2 files changed

+44
-35
lines changed

articles/azure-functions/functions-how-to-use-azure-function-app-settings.md

Lines changed: 40 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,33 @@ Connection strings, environment variables, and other application settings are de
2020

2121
[!INCLUDE [Don't mix development environments](../../includes/functions-mixed-dev-environments.md)]
2222

23+
To view the app settings in your function app, follow these steps:
24+
2325
1. Sign in to the [Azure portal] using your Azure account. Search for your function app and select it.
2426

25-
2. In the left pane, expand **Settings**, and then select **Environment variables**.
27+
2. In the left pane of your function app, expand **Settings**, select **Environment variables**, and then select the **App settings** tab.
2628

27-
:::image type="content" source="./media/functions-how-to-use-azure-function-app-settings/azure-function-app-main.png" alt-text="Screen shot that how to select the App settings page in a Function app.":::
29+
:::image type="content" source="./media/functions-how-to-use-azure-function-app-settings/azure-function-app-main.png" alt-text="Screen shot that how to select the App settings page in a function app.":::
2830

2931
## <a name="settings"></a>Work with application settings
3032

31-
You can create any number of application settings required by your function code. There are also predefined application settings used by Azure Functions. For more information, see [App settings reference for Azure Functions](functions-app-settings.md).
33+
In addition to the predefined app settings used by Azure Functions, you can create any number of app settings, as required by your function code. For more information, see [App settings reference for Azure Functions](functions-app-settings.md).
3234

33-
These settings are stored encrypted. For more information, see [Application settings security](security-concepts.md#application-settings).
35+
These settings are stored encrypted. For more information, see [App settings security](security-concepts.md#application-settings).
3436

35-
You can manage application settings from the [Azure portal], (functions-how-to-use-azure-function-app-settings.md?tabs=portal#settings) and by using the [Azure CLI](functions-how-to-use-azure-function-app-settings.md?tabs=azurecli#settings) and [Azure PowerShell](functions-how-to-use-azure-function-app-settings.md?tabs=powershell#settings). You can also manage application settings from [Visual Studio Code](functions-develop-vs-code.md#application-settings-in-azure) and from [Visual Studio](functions-develop-vs.md#function-app-settings).
37+
You can manage app settings from the [Azure portal](functions-how-to-use-azure-function-app-settings.md?tabs=portal#settings), and by using the [Azure CLI](functions-how-to-use-azure-function-app-settings.md?tabs=azurecli#settings) and [Azure PowerShell](functions-how-to-use-azure-function-app-settings.md?tabs=powershell#settings). You can also manage app settings from [Visual Studio Code](functions-develop-vs-code.md#application-settings-in-azure) and from [Visual Studio](functions-develop-vs.md#function-app-settings).
3638

3739
### [Azure portal](#tab/portal)
3840

39-
To find the application settings, see [Get started in the Azure portal](#get-started-in-the-azure-portal).
41+
To view your app settings, see [Get started in the Azure portal](#get-started-in-the-azure-portal).
42+
43+
The **App settings** tab maintains settings that are used by your function app:
44+
45+
1. To see the values of the app settings, select **Show values**.
4046

41-
The **App settings** tab maintains settings that are used by your function app. To see the values of the app settings, select **Show values**. To add a setting, select **+ Add**, and then enter the **Name** and **Value** of the new key-value pair.
47+
1. To add a setting, select **+ Add**, and then enter the **Name** and **Value** of the new key-value pair.
4248

43-
:::image type="content" source="./media/functions-how-to-use-azure-function-app-settings/azure-function-app-settings-tab.png" alt-text="Screen shot that shows the App settings page in a Function app.":::
49+
:::image type="content" source="./media/functions-how-to-use-azure-function-app-settings/azure-function-app-settings-tab.png" alt-text="Screen shot that shows the App settings page in a function app.":::
4450

4551
### [Azure CLI](#tab/azure-cli)
4652

@@ -83,7 +89,7 @@ When you develop a function app locally, you must maintain local copies of these
8389

8490
## FTPS deployment settings
8591

86-
Azure Functions supports deploying project code to your function app by using FTPS. Because this deployment method requires you to [sync triggers](functions-deployment-technologies.md#trigger-syncing), this method isn't recommended. To securely transfer project files, always use FTPS and not FTP.
92+
Azure Functions supports deploying project code to your function app by using FTPS. Because this deployment method requires you to [sync triggers](functions-deployment-technologies.md#trigger-syncing), it isn't recommended. To securely transfer project files, always use FTPS and not FTP.
8793

8894
To get the credentials required for FTPS deployment, use one of these methods:
8995

@@ -138,9 +144,11 @@ The following values indicate the plan type:
138144

139145
### [Azure portal](#tab/portal)
140146

141-
To determine the type of plan used by your function app, see **App Service plan** in the **Overview** page of the function app in the [Azure portal](https://portal.azure.com). To see the pricing tier, select the name of the **App Service Plan**, and then select **Settings > Properties** from the left pane.
147+
To determine the type of plan used by your function app, see the **App Service Plan** in the **Overview** page of the function app in the [Azure portal](https://portal.azure.com).
142148

143-
![View scaling plan in the portal](./media/functions-scale/function-app-overview-portal.png)
149+
To see the pricing tier, select the name of the **App Service Plan**, and then select **Settings > Properties** from the left pane.
150+
151+
![Screenshot that shows the App Service Plan link on the Overview page of a function app.](./media/functions-scale/function-app-overview-portal.png)
144152

145153
### [Azure CLI](#tab/azure-cli)
146154

@@ -233,7 +241,7 @@ Use the following procedure to migrate from a Consumption plan to a Premium plan
233241
az functionapp update --name <MY_APP_NAME> --resource-group <MY_RESOURCE_GROUP> --plan <NEW_PREMIUM_PLAN>
234242
```
235243
236-
1. When you no longer need the Consumption plan originally used by the app, delete your original plan after confirming you have successfully migrated to the new one. Run the [az functionapp plan list](/cli/azure/functionapp/plan#az-functionapp-plan-list) command as follows to get a list of all Consumption plans in your resource group:
244+
1. When you no longer need the Consumption plan originally used by the app, delete your original plan after confirming you've successfully migrated to the new one. Run the [az functionapp plan list](/cli/azure/functionapp/plan#az-functionapp-plan-list) command as follows to get a list of all Consumption plans in your resource group:
237245
238246
```azurecli-interactive
239247
az functionapp plan list --resource-group <MY_RESOURCE_GROUP> --query "[?sku.family=='Y'].{PlanName:name,Sites:numberOfSites}" -o table
@@ -355,7 +363,7 @@ HTTP triggered functions can generally be called by using a URL in the format: `
355363
356364
The **App keys** page appears. On this page the host keys are displayed, which can be used to access any function in the app. The system key is also displayed, which gives anyone administrator-level access to all function app APIs.
357365
358-
You can also practice least privilege by using the key for a specific function by selecting **Function keys** under **Developer** in your HTTP triggered function.
366+
You can also practice least privilege by using the key for a specific function. To do so, select **Function keys** under **Developer** in your HTTP-triggered function.
359367
360368
### [Azure CLI](#tab/azure-cli)
361369
@@ -397,32 +405,34 @@ Consider these limitations when you develop your functions in the [Azure portal]
397405
+ When you deploy code to a function app from outside the portal, you can no longer edit any of the code for that function app in the Azure portal. In this case, just continue using [local development](functions-develop-local.md).
398406
+ For compiled C# functions and Java functions, you can create the function app and related resources in the portal. However, you must create the functions code project locally and then publish it to Azure.
399407

400-
When possible, you should develop your functions locally and publish your code project to a function app in Azure. For more information, see [Code and test Azure Functions locally](functions-develop-local.md).
408+
When possible, develop your functions locally and publish your code project to a function app in Azure. For more information, see [Code and test Azure Functions locally](functions-develop-local.md).
401409

402410
## Manually install extensions
403411

404-
C# class library functions can include the NuGet packages for [binding extensions](functions-bindings-register.md) directly in the class library project. For other non-.NET languages and C# script, you should [use extension bundles](functions-bindings-register.md#extension-bundles). If you must manually install extensions, you can do so by [using Azure Functions Core Tools](./functions-core-tools-reference.md#func-extensions-install) locally. If you can't use extension bundles and are only able to work in the portal, you need to use [Advanced Tools (Kudu)](#kudu) to manually create the extensions.csproj file directly in the site. Make sure to first remove the `extensionBundle` element from the host.json file.
412+
C# class library functions can include the NuGet packages for [binding extensions](functions-bindings-register.md) directly in the class library project. For other non-.NET languages and C# script, you should [use extension bundles](functions-bindings-register.md#extension-bundles). If you must manually install extensions, you can do so by [using Azure Functions Core Tools](./functions-core-tools-reference.md#func-extensions-install) locally. If you can't use extension bundles and are only able to work in the portal, you need to use [Advanced Tools (Kudu)](#kudu) to manually create the extensions.csproj file directly in the site. Make sure to first remove the `extensionBundle` element from the *host.json* file.
405413

406414
This same process works for any other file you need to add to your app.
407415

408416
> [!IMPORTANT]
409417
> When possible, don't edit files directly in your function app in Azure. We recommend [downloading your app files locally](deployment-zip-push.md#download-your-function-app-files), using [Core Tools to install extensions](./functions-core-tools-reference.md#func-extensions-install) and other packages, validating your changes, and then [republishing your app using Core Tools](functions-run-local.md#publish) or one of the other [supported deployment methods](functions-deployment-technologies.md#deployment-methods).
410418
411-
The Functions editor built into the Azure portal lets you update your function code and configuration files directly in the portal.
419+
The Functions editor built into the Azure portal lets you update your function code and configuration files directly in the portal:
420+
421+
1. Select your function app, then under **Functions**, select **Functions**.
412422

413-
1. Select your function app, then under **Functions** select **Functions**.
414423
1. Choose your function and select **Code + test** under **Developer**.
424+
415425
1. Choose your file to edit and select **Save** when you finish.
416426

417-
Files in the root of the app, such as function.proj or extensions.csproj need to be created and edited by using the [Advanced Tools (Kudu)](#kudu).
427+
Files in the root of the app, such as function.proj or extensions.csproj need to be created and edited by using the [Advanced Tools (Kudu)](#kudu):
418428

419429
1. Select your function app, expand **Development tools**, and then select **Advanced tools** > **Go**.
420430
1. If prompted, sign in to the Source Control Manager (SCM) site with your Azure credentials.
421431
1. From the **Debug console** menu, choose **CMD**.
422432
1. Navigate to `.\site\wwwroot`, select the plus (**+**) button at the top, and select **New file**.
423-
1. Name the file, such as `extensions.csproj` and press Enter.
424-
1. Select the edit button next to the new file, add or update code in the file, and select **Save**.
425-
1. For a project file like extensions.csproj, run the following command to rebuild the extensions project:
433+
1. Give the file a name, such as `extensions.csproj`, and then press Enter.
434+
1. Select the edit button next to the new file, add or update code in the file, and then select **Save**.
435+
1. For a project file like *extensions.csproj*, run the following command to rebuild the extensions project:
426436

427437
```bash
428438
dotnet build extensions.csproj
@@ -454,25 +464,25 @@ For more information about how to work with App Service settings, see [Configure
454464
455465
### <a name="editor"></a>App Service editor
456466
457-
![The App Service editor](./media/functions-how-to-use-azure-function-app-settings/configure-function-app-appservice-editor.png)
467+
![Screenshot that shows the App Service editor.](./media/functions-how-to-use-azure-function-app-settings/configure-function-app-appservice-editor.png)
458468
459469
The App Service editor is an advanced in-portal editor that you can use to modify JSON configuration files and code files alike. Choosing this option launches a separate browser tab with a basic editor. This editor enables you to integrate with the Git repository, run and debug code, and modify function app settings. This editor provides an enhanced development environment for your functions compared with the built-in function editor.
460470
461471
We recommend that you consider developing your functions on your local computer. When you develop locally and publish to Azure, your project files are read-only in the portal. For more information, see [Code and test Azure Functions locally](functions-develop-local.md).
462472
463473
### <a name="console"></a>Console
464474
465-
![Function app console](./media/functions-how-to-use-azure-function-app-settings/configure-function-console.png)
475+
![Screenshot that shows the function app console.](./media/functions-how-to-use-azure-function-app-settings/configure-function-console.png)
466476
467477
The in-portal console is an ideal developer tool when you prefer to interact with your function app from the command line. Common commands include directory and file creation and navigation, as well as executing batch files and scripts.
468478
469479
When developing locally, we recommend using the [Azure Functions Core Tools](functions-run-local.md) and the [Azure CLI].
470480
471481
### <a name="kudu"></a>Advanced tools (Kudu)
472482
473-
![Configure Kudu](./media/functions-how-to-use-azure-function-app-settings/configure-function-app-kudu.png)
483+
The advanced tools for App Service (also known as Kudu) provide access to advanced administrative features of your function app. From Kudu, you manage system information, app settings, environment variables, site extensions, HTTP headers, and server variables. You can also launch **Kudu** by browsing to the SCM endpoint for your function app, for example: `https://<myfunctionapp>.scm.azurewebsites.net/`.
474484
475-
The advanced tools for App Service (also known as Kudu) provide access to advanced administrative features of your function app. From Kudu, you manage system information, app settings, environment variables, site extensions, HTTP headers, and server variables. You can also launch **Kudu** by browsing to the SCM endpoint for your function app, like `https://<myfunctionapp>.scm.azurewebsites.net/`
485+
![Screenshot that shows the advanced tools for App Service (Kudo).](./media/functions-how-to-use-azure-function-app-settings/configure-function-app-kudu.png)
476486
477487
### <a name="deployment"></a>Deployment Center
478488
@@ -486,9 +496,9 @@ To prevent malicious code execution on the client, modern browsers block request
486496
487497
When you configure the **Allowed origins** list for your function app, the `Access-Control-Allow-Origin` header is automatically added to all responses from HTTP endpoints in your function app.
488498
489-
![Configure function app's CORS list](./media/functions-how-to-use-azure-function-app-settings/configure-function-app-cors.png)
499+
![Screenshot that shows how to configure CORS list of your function app.](./media/functions-how-to-use-azure-function-app-settings/configure-function-app-cors.png)
490500
491-
The wildcard (\*) is ignored if there's another domain entry.
501+
If there's another domain entry, the wildcard (\*) is ignored.
492502

493503
#### [Azure CLI](#tab/azure-cli)
494504

@@ -510,13 +520,13 @@ You can't currently update CORS settings using Azure PowerShell.
510520
511521
### <a name="auth"></a>Authentication
512522
513-
![Configure authentication for a function app](./media/functions-how-to-use-azure-function-app-settings/configure-function-app-authentication.png)
523+
When functions use an HTTP trigger, you can require calls to first be authenticated. App Service supports Microsoft Entra authentication and sign-in with social providers, such as Facebook, Microsoft, and Twitter. For information about configuring specific authentication providers, see [Azure App Service authentication overview](../app-service/overview-authentication-authorization.md).
514524
515-
When functions use an HTTP trigger, you can require calls to first be authenticated. App Service supports Microsoft Entra authentication and sign-in with social providers, such as Facebook, Microsoft, and Twitter. For details on configuring specific authentication providers, see [Azure App Service authentication overview](../app-service/overview-authentication-authorization.md).
525+
![Screenshot that shows how to configure authentication for a function app.](./media/functions-how-to-use-azure-function-app-settings/configure-function-app-authentication.png)
516526
517527
## Related content
518528
519-
+ [Configure Azure App Service Settings](../app-service/configure-common.md)
529+
+ [Configure an App Service app](../app-service/configure-common.md)
520530
+ [Continuous deployment for Azure Functions](functions-continuous-deployment.md)
521531
522532
[Azure CLI]: /cli/azure/

includes/functions-environment-variables.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
22
title: include file
33
description: include file
44
author: ggailey777
5+
ms.author: glenga
56
ms.service: azure-functions
67
ms.topic: include
7-
ms.date: 05/08/2019
8-
ms.author: glenga
8+
ms.date: 07/01/2024
99
ms.custom: include file
1010
---
1111

12-
The function app settings values can also be read in your code as environment variables. For more information, see the Environment variables section of these language-specific reference topics:
12+
The function app settings values can also be read in your code as environment variables. For more information, see the Environment variables section of these language-specific reference articles:
1313

1414
* [C# precompiled](../articles/azure-functions/functions-dotnet-class-library.md#environment-variables)
15-
* [C# script (.csx)](../articles/azure-functions/functions-reference-csharp.md#environment-variables)
16-
* [F# script (.fsx)](../articles/azure-functions/functions-reference-fsharp.md#environment-variables)
15+
* [C# script (.csx)](../articles/azure-functions/functions-reference-csharp.md#environment-variables)<!-- F# no longer supported, article no longer exists - * [F# script (.fsx)](../articles/azure-functions/functions-reference-fsharp.md#environment-variables)-->
1716
* [Java](../articles/azure-functions/functions-reference-java.md#environment-variables)
1817
* [JavaScript](../articles/azure-functions/functions-reference-node.md#environment-variables)
1918
* [PowerShell](../articles/azure-functions/functions-reference-powershell.md#environment-variables)

0 commit comments

Comments
 (0)