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/howto-integrate-azure-managed-service-identity.md
+28-28Lines changed: 28 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,38 +97,38 @@ To set up a managed identity in the portal, you first create an application and
97
97
98
98
1. If you wish to access only values stored directly in App Configuration, update the `CreateWebHostBuilder` method by replacing the `config.AddAzureAppConfiguration()` method.
99
99
100
-
> [!IMPORTANT]
101
-
> `CreateHostBuilder` replaces `CreateWebHostBuilder` in .NET Core 3.0. Select the correct syntax based on your environment.
100
+
> [!IMPORTANT]
101
+
> `CreateHostBuilder` replaces `CreateWebHostBuilder` in .NET Core 3.0. Select the correct syntax based on your environment.
102
102
103
-
### [.NET Core 2.x](#tab/core2x)
103
+
### [.NET Core 2.x](#tab/core2x)
104
104
105
-
```csharp
106
-
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
options.Connect(new Uri(settings["AppConfig:Endpoint"]), new ManagedIdentityCredential()));
128
+
})
129
+
.UseStartup<Startup>());
130
+
```
131
+
---
132
132
133
133
1. To use both App Configuration values and Key Vault references, update *Program.cs* as shown below. This code creates a new `KeyVaultClient` using an `AzureServiceTokenProvider` and passes this reference to a call to the `UseAzureKeyVault` method.
0 commit comments