From c2b75f497d64f5ea0efe1e5bb71d5cf43e04033e Mon Sep 17 00:00:00 2001 From: zedy Date: Fri, 8 Jul 2022 11:31:49 +0800 Subject: [PATCH] fix bug by updating parameter in method PersistKeysToAzureBlobStorage() --- .../data-protection/implementation/key-storage-providers.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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]