How can I use a connection string from Azure Key Vault in App Host for Redis connection #1579
Answered
by
davidfowl
Pedro Almeida (PedroAlmeida21)
asked this question in
Q&A
|
I created an Aspire application from a template that includes a Redis cache. Now, I am trying to leverage Azure Key Vault to get a connection string and pass it to the resources that will consume the caching (e.g., FE application). My goal is to avoid exposing the connection string as an environment variable in the application that consumes it. |
Answered by
davidfowl
Jan 7, 2024
Replies: 1 comment 4 replies
|
The apphost can spin up a keyvault resource a pass connection information to the application. You can use the keyvault configuration provider in your application to pull configuration data from keyvault. |
4 replies
Answer selected by
PedroAlmeida21
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The apphost can spin up a keyvault resource a pass connection information to the application. You can use the keyvault configuration provider in your application to pull configuration data from keyvault.