Skip to content

Commit 9cce990

Browse files
committed
Updating article text for latest config provider
1 parent 717d319 commit 9cce990

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ To add a secret to the vault, you need to take just a few additional steps. In t
169169
using Azure.Identity;
170170
```
171171
172-
1. Update the `CreateWebHostBuilder` method to use App Configuration by calling the `config.AddAzureAppConfiguration` method. Include the `UseAzureKeyVault` option to pass in a new `KeyVaultClient` reference to your Key Vault.
172+
1. Update the `CreateWebHostBuilder` method to use App Configuration by calling the `config.AddAzureAppConfiguration` method. Include the `ConfigureKeyVault` option, and pass the correct credentials to your Key Vault.
173173
174174
#### [.NET Core 2.x](#tab/core2x)
175175
@@ -214,7 +214,7 @@ To add a secret to the vault, you need to take just a few additional steps. In t
214214
.UseStartup<Startup>());
215215
```
216216
217-
1. When you initialized the connection to App Configuration, you passed the `KeyVaultClient` reference to the `UseAzureKeyVault` method. After the initialization, you can access the values of Key Vault references in the same way you access the values of regular App Configuration keys.
217+
1. When you initialized the connection to App Configuration, you set up the connection to Key Vault by calling the `ConfigureKeyVault` method. After the initialization, you can access the values of Key Vault references in the same way you access the values of regular App Configuration keys.
218218
219219
To see this process in action, open *Index.cshtml* in the **Views** > **Home** folder. Replace its contents with the following code:
220220

0 commit comments

Comments
 (0)