diff --git a/src/OrchardCore.Modules/OrchardCore.DataProtection.Azure/BlobOptionsSetup.cs b/src/OrchardCore.Modules/OrchardCore.DataProtection.Azure/BlobOptionsSetup.cs index 99017fbc6cc..71de539389f 100644 --- a/src/OrchardCore.Modules/OrchardCore.DataProtection.Azure/BlobOptionsSetup.cs +++ b/src/OrchardCore.Modules/OrchardCore.DataProtection.Azure/BlobOptionsSetup.cs @@ -52,7 +52,7 @@ private async ValueTask ConfigureContainerNameAsync(BlobOptions options) var template = _fluidParser.Parse(options.ContainerName); // Container name must be lowercase. - var containerName = template.Render(templateContext, NullEncoder.Default).ToLower(); + var containerName = (await template.RenderAsync(templateContext, NullEncoder.Default)).ToLower(); options.ContainerName = containerName.Replace("\r", string.Empty).Replace("\n", string.Empty); } catch (Exception e)