Skip to content

Commit 7c041bd

Browse files
author
BobbySchmidt2
committed
edit pass: use-key-vault-references-dotnet-core
1 parent 6fa6999 commit 7c041bd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/azure-app-configuration/use-key-vault-references-dotnet-core.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ To do this tutorial, install the [.NET Core SDK](https://dotnet.microsoft.com/do
5151
3. From the results list, select **Key Vault**.
5252
4. In the **Key Vault** section, select **Create**.
5353
5. In the **Create key vault** section, provide the following information:
54-
- **Name**: A unique name is required. For this quickstart, enter **Contoso-vault2**.
55-
- **Subscription**: Choose a subscription.
54+
- A unique name is required. In the **Name** box, enter **Contoso-vault2**.
55+
- In **Subscription**, choose a subscription.
5656
- Under **Resource Group**, select **Create new** and enter a resource group name.
5757
- In the **Location** drop-down menu, choose a location.
5858
- Leave the other options with their default values.
@@ -64,11 +64,12 @@ At this point, your Azure account is the only one authorized to access this new
6464

6565
## Add a secret to Key Vault
6666

67-
To add a secret to the vault, you just need to take a couple of additional steps. In this case, add a message that you can use to test Key Vault retrieval. The message is called **Message** and we store the value of **Hello from Key Vault** in it.
67+
To add a secret to the vault, you just need to take a couple of additional steps. In this case, add a message that you can use to test Key Vault retrieval. The message is called **Message** and you store the value of **Hello from Key Vault** in it.
6868

6969
1. On the **Key Vault** properties pages, select **Secrets**.
7070
1. Select **Generate/Import**.
7171
1. In the **Create a secret** window, enter the following values:
72+
- **Upload options**: Enter **manual**.
7273
- **Name**: Enter **Message**.
7374
- **Value**: Enter **Hello from Key Vault**.
7475
1. Leave the other properties with their default values.
@@ -136,7 +137,7 @@ To add a secret to the vault, you just need to take a couple of additional steps
136137
using Microsoft.IdentityModel.Clients.ActiveDirectory;
137138
```
138139
139-
1. Update the **CreateWebHostBuilder** method to use App Configuration by calling the **config.AddAzureAppConfiguration** method. Include the **UseAzureKeyVault** option, passing in a new **KeyVaultClient** reference to your Key Vault.
140+
1. Update the `CreateWebHostBuilder` method to use App Configuration by calling the `config.AddAzureAppConfiguration` method. Include the `UseAzureKeyVault` option, passing in a new `KeyVaultClient` reference to your Key Vault.
140141
141142
```csharp
142143
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
@@ -159,7 +160,7 @@ To add a secret to the vault, you just need to take a couple of additional steps
159160
.UseStartup<Startup>();
160161
```
161162
162-
1. After you've passed the **KeyVaultClient** reference to the **UseAzureKeyVault** method when initializing the connection to App Configuration, you can access the values of Key Vault references in the same way you access the values of regular App Configuration keys. To see this process in action, open *Index.cshtml* in the **Views** > **Home** directory. Replace its content with the following code:
163+
1. After you've passed the `KeyVaultClient` reference to the `UseAzureKeyVault` method when initializing the connection to App Configuration, you can access the values of Key Vault references in the same way you access the values of regular App Configuration keys. To see this process in action, open *Index.cshtml* in the **Views** > **Home** directory. Replace its contents with the following code:
163164
164165
```html
165166
@using Microsoft.Extensions.Configuration
@@ -210,4 +211,3 @@ In this tutorial, you added an Azure managed service identity to streamline acce
210211
211212
> [!div class="nextstepaction"]
212213
> [CLI samples](./cli-samples.md)
213-

0 commit comments

Comments
 (0)