6

I need some help to configure the KeyVault connection string for Azure App Service and Sitecore Identity Service.

Sitecore Identity Server is based on aspnet core and the connection string settings are configured differently from asp.net app. For Asp.Net App i just added the connection string in the following format into the Azure App Service Configuration tab and it worked.

Name: <<Name of the connection string. This can be web, core or master>>
Value: @Microsoft.KeyVault(SecretUri=<<KeyVault Identifier>>

I need to find similar solution for Sitecore Identity App. I have added the image to reflect how connection strings are defined in Sitecore Identity Server.

enter image description here

1 Answer 1

2

Looks like this isn't possible at the moment in Sitecore 9.1. The code needs to read environment variables like this but I don't see that anywhere when I dotPeek in Sitecore.Plugin.IdentityServer.ConfigureSitecore.

You could probably request a patch for this from Sitecore Support.

2
  • Thanks Mark for your reply, I haven't requested the patch but left the puzzle unsolved as we went with Azure AD integration. Commented Sep 10, 2019 at 8:51
  • @TechLearner, even in Azure AD we need to provide a connection string Sitecore.IdentityServer.Host.xml placed in \wwwroot\identityserver\Config\production. How did you manage to encrypt or add an environment variable
    – PVM
    Commented Sep 28, 2020 at 4:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.