Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit b9416d3

Browse files
committed
chore: use managed identity in app config example
1 parent b6d9a2e commit b9416d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/preview/02-Features/05-AzureAppConfiguration/auto-refresh-app-configuration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ We use the events from Azure App Configuration which will be send towards an Azu
2121
2. Create an Azure Service Bus Topic resource
2222
3. Create an event subscription on the App Configuration resource to send events to the Service Bus Topic
2323

24+
25+
2426
![Automatically refresh Azure App Configuration values](/media/Azure-App-Configuration-Job.png)
2527

2628
Both the connection string of the Azure App Configuration and the Azure Service Bus Topic will be needed in the next section, so make sure you have those.
@@ -55,7 +57,7 @@ public class Program
5557
{
5658
configBuilder.AddAzureAppConfiguration(appConfigOptions =>
5759
{
58-
appConfigOptions.Connect("<your-azure-app-configuration-connection-string>")
60+
appConfigOptions.Connect("<your-azure-app-configuration-endpoint>", new ManagedIdentityCredential())
5961
// Specifies which Azure App Configuration key you want to automatically updated.
6062
.Register("<your-azure-app-configuration-key>");
6163
});

0 commit comments

Comments
 (0)