You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/quickstart-azure-functions-csharp.md
+86-11Lines changed: 86 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
title: Quickstart for Azure App Configuration with Azure Functions | Microsoft Docs
3
3
description: "In this quickstart, make an Azure Functions app with Azure App Configuration and C#. Create and connect to an App Configuration store. Test the function locally."
4
4
services: azure-app-configuration
5
-
author: AlexandraKemperMS
5
+
author: zhenlan
6
6
ms.service: azure-app-configuration
7
7
ms.devlang: csharp
8
8
ms.custom: devx-track-csharp, mode-other
9
9
ms.topic: quickstart
10
10
ms.date: 06/02/2021
11
-
ms.author: alkemper
11
+
ms.author: zhenlwa
12
12
#Customer intent: As an Azure Functions developer, I want to manage all my app settings in one place using Azure App Configuration.
13
13
---
14
14
# Quickstart: Create an Azure Functions app with Azure App Configuration
@@ -17,9 +17,9 @@ In this quickstart, you incorporate the Azure App Configuration service into an
17
17
18
18
## Prerequisites
19
19
20
-
- Azure subscription - [create one for free](https://azure.microsoft.com/free/dotnet)
21
-
-[Visual Studio 2019](https://visualstudio.microsoft.com/vs) with the **Azure development** workload.
- Azure subscription - [create one for free](https://azure.microsoft.com/free/dotnet).
21
+
-[Visual Studio](https://visualstudio.microsoft.com/vs) with the **Azure development** workload.
22
+
-[Azure Functions tools](../azure-functions/functions-develop-vs.md), if you don't have it installed with Visual Studio already.
23
23
24
24
## Create an App Configuration store
25
25
@@ -40,13 +40,24 @@ In this quickstart, you incorporate the Azure App Configuration service into an
40
40
[!INCLUDE [Create a project using the Azure Functions template](../../includes/functions-vstools-create.md)]
41
41
42
42
## Connect to an App Configuration store
43
-
This project will use [dependency injection in .NET Azure Functions](../azure-functions/functions-dotnet-dependency-injection.md) and add Azure App Configuration as an extra configuration source.
43
+
This project will use [dependency injection in .NET Azure Functions](/azure/azure-functions/functions-dotnet-dependency-injection) and add Azure App Configuration as an extra configuration source. Azure Functions support running [in-process](/azure/azure-functions/functions-dotnet-class-library) or [isolated-process](/azure/azure-functions/dotnet-isolated-process-guide). Pick the one that matches your requirements.
44
44
45
45
1. Right-click your project, and select **Manage NuGet Packages**. On the **Browse** tab, search for and add following NuGet packages to your project.
46
-
-[Microsoft.Extensions.Configuration.AzureAppConfiguration](https://www.nuget.org/packages/Microsoft.Extensions.Configuration.AzureAppConfiguration/) version 4.1.0 or later
47
-
-[Microsoft.Azure.Functions.Extensions](https://www.nuget.org/packages/Microsoft.Azure.Functions.Extensions/) version 1.1.0 or later
46
+
### [In-process](#tab/in-process)
48
47
49
-
2. Add a new file, *Startup.cs*, with the following code. It defines a class named `Startup` that implements the `FunctionsStartup` abstract class. An assembly attribute is used to specify the type name used during Azure Functions startup.
48
+
-[Microsoft.Extensions.Configuration.AzureAppConfiguration](https://www.nuget.org/packages/Microsoft.Extensions.Configuration.AzureAppConfiguration/) version 4.1.0 or later
49
+
-[Microsoft.Azure.Functions.Extensions](https://www.nuget.org/packages/Microsoft.Azure.Functions.Extensions/) version 1.1.0 or later
2. Add code to connect to Azure App Configuration.
58
+
### [In-process](#tab/in-process)
59
+
60
+
Add a new file, *Startup.cs*, with the following code. It defines a class named `Startup` that implements the `FunctionsStartup` abstract class. An assembly attribute is used to specify the type name used during Azure Functions startup.
50
61
51
62
The `ConfigureAppConfiguration` method is overridden and Azure App Configuration provider is added as an extra configuration source by calling `AddAzureAppConfiguration()`. The `Configure` method is left empty as you don't need to register any services at this point.
52
63
@@ -74,13 +85,35 @@ This project will use [dependency injection in .NET Azure Functions](../azure-fu
0 commit comments