KeyVault with umbracoDbDSN
r
Anyone used Azure KeyVault on Umbraco 10+ ? Its working fine on everything except the main umbracoDbDSN connection string where its just picking up local from appSettings. any tricks I need to do here? So if I have this: "ConnectionStrings":{ "umbracoDbDSN" : "" } I would expect it to find the key from the KeyVault named ConnectionStrings-umbracoDbDSN #keyvault
d
I believe you enter the value of the
umbracoDbDsn
connection string value in Azure as a KeyVault reference. Something like:
Copy code
@Microsoft.KeyVault(SecretUri=https://acme-org-vault1.vault.azure.net/secrets/my-secret/versionidabc123)
Then you need to have the Identity setup to use a system assigned principal, and give that principal access to your key vault.
23 Views