Skip to content

Commit f3aa976

Browse files
committed
Add updates to snapshots article
1 parent 89b3777 commit f3aa976

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

articles/azure-app-configuration/howto-create-snapshots.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: Muksvso
55
ms.author: mubatra
66
ms.service: azure-app-configuration
77
ms.topic: how-to
8-
ms.date: 11/15/2023
8+
ms.date: 03/19/2025
99
---
1010

1111
# Manage and use snapshots
@@ -96,8 +96,7 @@ Edit the call to the `AddAzureAppConfiguration` method, which is often found in
9696
```csharp
9797
configurationBuilder.AddAzureAppConfiguration(options =>
9898
{
99-
options.Connect(Environment.GetEnvironmentVariable("ConnectionString"));
100-
99+
options.Connect(new Uri(endpoint), new DefaultAzureCredential());
101100
// Select an existing snapshot by name. This will add all of the key-values from the snapshot to this application's configuration.
102101
options.SelectSnapshot("SnapshotName");
103102

0 commit comments

Comments
 (0)