Skip to content

Commit 6599402

Browse files
committed
Fixed step numbering
1 parent f2c7bf9 commit 6599402

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ In this quickstart, you will use Azure App Configuration to centralize storage a
4343

4444
Use the [.NET Core command-line interface (CLI)](https://docs.microsoft.com/dotnet/core/tools/) to create a new ASP.NET Core MVC web app project. The [Azure Cloud Shell](https://shell.azure.com) provides these tools for you. They are also available across the Windows, macOS, and Linux platforms.
4545

46-
7. Create a new folder for your project. For this quickstart, name it *TestAppConfig*.
46+
1. Create a new folder for your project. For this quickstart, name it *TestAppConfig*.
4747

48-
8. In the new folder, run the following command to create a new ASP.NET Core MVC web app project:
48+
1. In the new folder, run the following command to create a new ASP.NET Core MVC web app project:
4949

5050
```dotnetcli
5151
dotnet new mvc --no-https
@@ -96,17 +96,17 @@ The Secret Manager tool stores sensitive data for development work outside of yo
9696

9797
## Connect to an App Configuration store
9898

99-
9. Add a reference to the `Microsoft.Azure.AppConfiguration.AspNetCore` NuGet package by running the following command:
99+
1. Add a reference to the `Microsoft.Azure.AppConfiguration.AspNetCore` NuGet package by running the following command:
100100

101101
```dotnetcli
102102
dotnet add package Microsoft.Azure.AppConfiguration.AspNetCore --version 3.0.0-preview-010560002-1165
103103
```
104-
10. Run the following command to restore packages for your project:
104+
1. Run the following command to restore packages for your project:
105105
106106
```dotnetcli
107107
dotnet restore
108108
```
109-
11. Add a secret named *ConnectionStrings:AppConfig* to Secret Manager.
109+
1. Add a secret named *ConnectionStrings:AppConfig* to Secret Manager.
110110
111111
This secret contains the connection string to access your App Configuration store. Replace the value in the following command with the connection string for your App Configuration store.
112112
@@ -123,13 +123,13 @@ The Secret Manager tool stores sensitive data for development work outside of yo
123123
124124
Access this secret using the configuration API. A colon (:) works in the configuration name with the configuration API on all supported platforms. See [Configuration by environment](https://docs.microsoft.com/aspnet/core/fundamentals/configuration/index?tabs=basicconfiguration&view=aspnetcore-2.0).
125125
126-
12. Open *Program.cs*, and add a reference to the .NET Core App Configuration provider.
126+
1. Open *Program.cs*, and add a reference to the .NET Core App Configuration provider.
127127
128128
```csharp
129129
using Microsoft.Extensions.Configuration.AzureAppConfiguration;
130130
```
131131
132-
13. Update the `CreateWebHostBuilder` method to use App Configuration by calling the `config.AddAzureAppConfiguration()` method.
132+
1. Update the `CreateWebHostBuilder` method to use App Configuration by calling the `config.AddAzureAppConfiguration()` method.
133133
134134
> [!IMPORTANT]
135135
> `CreateHostBuilder` replaces `CreateWebHostBuilder` in .NET Core 3.0. Select the correct syntax based on your environment.
@@ -162,7 +162,7 @@ The Secret Manager tool stores sensitive data for development work outside of yo
162162
```
163163
---
164164
165-
14. Navigate to *<app root>/Views/Home* and open *Index.cshtml*. Replace its content with the following code:
165+
1. Navigate to *<app root>/Views/Home* and open *Index.cshtml*. Replace its content with the following code:
166166
167167
```HTML
168168
@using Microsoft.Extensions.Configuration
@@ -181,7 +181,7 @@ The Secret Manager tool stores sensitive data for development work outside of yo
181181
<h1>@Configuration["TestApp:Settings:Message"]</h1>
182182
```
183183
184-
15. Navigate to *<app root>/Views/Shared* and open *_Layout.cshtml*. Replace its content with the following code:
184+
1. Navigate to *<app root>/Views/Shared* and open *_Layout.cshtml*. Replace its content with the following code:
185185
186186
```HTML
187187
<!DOCTYPE html>
@@ -210,19 +210,19 @@ The Secret Manager tool stores sensitive data for development work outside of yo
210210
211211
## Build and run the app locally
212212
213-
16. To build the app using the .NET Core CLI, navigate to the root directory of your application and run the following command in the command shell:
213+
1. To build the app using the .NET Core CLI, navigate to the root directory of your application and run the following command in the command shell:
214214
215215
```dotnetcli
216216
dotnet build
217217
```
218218
219-
17. After the build successfully completes, run the following command to run the web app locally:
219+
1. After the build successfully completes, run the following command to run the web app locally:
220220
221221
```dotnetcli
222222
dotnet run
223223
```
224224
225-
18. If you're working on your local machine, use a browser to navigate to `http://localhost:5000`. This is the default URL for the web app hosted locally.
225+
1. If you're working on your local machine, use a browser to navigate to `http://localhost:5000`. This is the default URL for the web app hosted locally.
226226
227227
If you're working in the Azure Cloud Shell, select the *Web Preview* button followed by *Configure*.
228228

0 commit comments

Comments
 (0)