Forum Discussion

coolie's avatar
coolie
Icon for Helper I rankHelper I
2 years ago
Solved

Accessing Azure KeyVault secret for Fabric CopyData Action

This post Microsoft Fabric connect to Azure Key Vault  descibes how to get a secret from Azure KeyVault and this works great. But is it possible to set a variable for CopyData (REST) action without using Notebook?

16 Replies

    • coolie's avatar
      coolie
      Icon for Helper I rankHelper I

      Thanks that looks promising. Where do I get TenantID, client ID and principal Key from?

    • Osama_Anwar's avatar
      Osama_Anwar
      New 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)."}}

    • gbelzileartm's avatar
      gbelzileartm
      New 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?

  • Hi thanks for the reply. The action I am using is CopyData from web (REST) which requires a bearer token. I do not want this in plain text so have it stored in Azure KeyVault. I would like to set the source header authorization with the secret from Azure KeyVault. I am assuming this would be done via a previously set variable (as dynamic content).