diff --git a/aspnetcore/security/data-protection/implementation/key-storage-providers.md b/aspnetcore/security/data-protection/implementation/key-storage-providers.md index 1af40704bb..0fb40b3788 100644 --- a/aspnetcore/security/data-protection/implementation/key-storage-providers.md +++ b/aspnetcore/security/data-protection/implementation/key-storage-providers.md @@ -46,13 +46,16 @@ If the web app is running as an Azure service, connection string can be used to ```csharp string connectionString = ""; string containerName = "my-key-container"; +string blobName = "keys.xml" BlobContainerClient container = new BlobContainerClient(connectionString, containerName); // optional - provision the container automatically await container.CreateIfNotExistsAsync(); +BlobClient blobClient = container.GetBlobClient(blobName); + services.AddDataProtection() - .PersistKeysToAzureBlobStorage(container, "keys.xml"); + .PersistKeysToAzureBlobStorage(blobClient); ``` > [!NOTE]