Skip to content

Commit 6f8d75b

Browse files
PR Feedback
1 parent ada8078 commit 6f8d75b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

articles/azure-app-configuration/quickstart-aspnet-core-app.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In this quickstart, you'll use Azure App Configuration to centralize storage and
2323
> [!TIP]
2424
> The Azure Cloud Shell is a free, interactive shell that you can use to run the command line instructions in this article. It has common Azure tools preinstalled, including the .NET Core SDK. If you're logged in to your Azure subscription, launch your [Azure Cloud Shell](https://shell.azure.com) from shell.azure.com. You can learn more about Azure Cloud Shell by [reading our documentation](../cloud-shell/overview.md)
2525
26-
## Create an App Configuration store
26+
## Create an App Configuration store
2727

2828
[!INCLUDE[Azure App Configuration resource creation steps](../../includes/azure-app-configuration-create.md)]
2929

@@ -74,7 +74,7 @@ dotnet new mvc --no-https --output TestAppConfig
7474
1. Select the correct syntax based on your environment.
7575
7676
#### [.NET 6.x](#tab/core6x)
77-
In *Program.cs*, and replace its content with the following code:
77+
In *Program.cs*, replace its content with the following code:
7878
7979
```csharp
8080
var builder = WebApplication.CreateBuilder(args);
@@ -86,12 +86,11 @@ dotnet new mvc --no-https --output TestAppConfig
8686
//Connect to your App Config Store using the connection string
8787
builder.AddAzureAppConfiguration(connectionString);
8888
})
89-
.ConfigureServices(services =>
89+
.ConfigureServices(services =>
9090
{
9191
services.AddControllersWithViews();
9292
});
9393
94-
9594
var app = builder.Build();
9695
9796
// Configure the HTTP request pipeline.
@@ -112,9 +111,6 @@ dotnet new mvc --no-https --output TestAppConfig
112111
app.Run();
113112
```
114113
115-
This code will connect to your App Configuration Store using a connection string and load all keys that have the *TestApp* prefix from a previous step.
116-
117-
118114
#### [.NET 5.x](#tab/core5x)
119115
120116
1. In *Program.cs*, add a reference to the .NET Core Configuration API namespace:
@@ -183,7 +179,7 @@ dotnet new mvc --no-https --output TestAppConfig
183179
```
184180
---
185181
186-
With the preceding change, the [configuration provider for App Configuration](/dotnet/api/Microsoft.Extensions.Configuration.AzureAppConfiguration) has been registered with the .NET Core Configuration API.
182+
This code will connect to your App Configuration Store using a connection string and load all keys that have the *TestApp* prefix from a previous step. For more information on connecting to the configuration provider, reference the [configuration provider for App Configuration docs](/dotnet/api/Microsoft.Extensions.Configuration.AzureAppConfiguration).
187183
188184
## Read from the App Configuration store
189185

0 commit comments

Comments
 (0)