Forum Discussion
Accessing Azure KeyVault secret for Fabric CopyData Action
- 2 years ago
You can use Web activity to get details from Azure Key vault
Settings :
Connection details :
where Base URL : https://<<KVName>>.vault.azure.net/secrets/<<SecretName>>?api-version=7.0
Token audience URI : https://vault.azure.net
Azuthorization : YOu can use any one like org or SP etc
You can use Web activity to get details from Azure Key vault
Settings :
Connection details :
where Base URL : https://<<KVName>>.vault.azure.net/secrets/<<SecretName>>?api-version=7.0
Token audience URI : https://vault.azure.net
Azuthorization : YOu can use any one like org or SP etc
- coolie2 years ago
Helper I
Thanks that looks promising. Where do I get TenantID, client ID and principal Key from?
- NandanHegde2 years ago
Super User
You would need to create a Service principal.
https://learn.microsoft.com/en-us/entra/identity-platform/howto-create-service-principal-portal
but you can also use your org account and org authentication
- coolie2 years ago
Helper I
Great that worked with org thanks. However the source of the CopyData does not seem to be picking up the secret using: activity('AKV').output
- Osama_Anwar2 years agoNew Member
I'm attempting the same thing, but I'm getting the error below; I'm using Organization authentication.
I'm wondering if it's possible to construct a pipeline activity similar to the one we use in Synapse in Fabric by testing it while I'm on trial capacity.
Error
Operation on target Web1 failed: {"error":{"code":"BadParameter","message":"The specified version (7.0/https://<<xyz>>.vault.azure.net/secrets/test-key-vault-secret?api-version=7.0) is not recognized. Consider using the latest supported version (7.5)."}}
- gbelzileartm2 years agoNew Member
Problem I see here is you still need to keep a secret in your pipeline. Is there a way to access the keyvault using Managed Identity?
- ToddChitt1 year ago
Super User
Hello NandanHegde I cam across this accepted solution while trying to do this exact same thing: Get a Fabric Pipeline Web activity to retrieve a secret from an Azure Key Vault. But I'm getting errors. I suspect it might be due to the fact that I don't know where to plug in the settings for
Token audience URI : https://vault.azure.net
Can you help?
I see that in classic Azure Data Factory Web task there is a space for "Resource" and the value of "https://vault.azure.net" goes there, but I don't see either Resource or Token Audience URI in Fabric Web Task. What am I missing?
Thanks in advance.
- NandanHegde1 year ago
Super User
It is in the connection settings that you have that option
- ToddChitt1 year ago
Super User
I found it. And to clarify for potential future readers, as of this writing, that property is ONLY available in the NEW CONNECTION dialog box:
It is NOT available in the Edit Connection dialog box:
Commentary: Horrible user interface to use two different diagol boxes to set properties for a connection.
I have submitted an Idea to have this fixed here: Expose the Token Audience URI property for when ED... - Microsoft Fabric Community
If you are getting this far reading this thread, please go vote on the it.
Thanks.