Named instances for multiple existing keyvaults #5917
iamandymcinnes
started this conversation in
General
Replies: 2 comments
-
cc @eerhardt |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can you provide repro code for this? Also the exception message and callstack.
You put the connection string under the named section of {
"ConnectionStrings": {
"INSTANCE_NAME": "YOUR_VAULT_URI"
"INSTANCE_NAME2": "YOUR_VAULT_URI2"
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to connect to multiple keyvaults and wanted to use the named approach so I can resolve the relevant one at runtime.
The documentation here seems to suggest that you can specify your config including the vaultURI and then just reference the name of that vault in the config section:
However when you do that, aspire tries to generate a keyvault and complains that you haven't provide the subscription details etc.
Looking at the AddConnectionString() approach, there is no way to have named instances.
Is the documentation misleading or is there another way to achieve this?
Many thanks
Andy
Beta Was this translation helpful? Give feedback.
All reactions