<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Copy Activity: Fabric + Azure Key Vault + external database connection in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Activity-Fabric-Azure-Key-Vault-external-database/m-p/4043815#M4585</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="769412" data-lia-user-login="shivangjha" class="lia-mention lia-mention-user"&gt;shivangjha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me if your problem is solved? If yes, please accept it as solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2024 08:05:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-16T08:05:32Z</dc:date>
    <item>
      <title>Copy Activity: Fabric + Azure Key Vault + external database connection</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Activity-Fabric-Azure-Key-Vault-external-database/m-p/4020683#M4336</link>
      <description>&lt;P&gt;&amp;lt;UPDATE&amp;gt; - This is in the context of &lt;STRONG&gt;Fabric&lt;/STRONG&gt; Data Factory Copy&amp;nbsp;&lt;BR /&gt;I have a use case for the data pipeline with Copy Activity.&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;Current State&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The Copy activity utilises mongoDB Atlas for pipelines connector plugin (!?) to copy data from mongodb cluster to Fabric Lakehouse.&lt;/P&gt;&lt;P&gt;For test purposes, i had created this connection by providing servers and credentials explicitely:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and that all works fine until I want to deploy this to another environement, say Prod, identified by a different workspace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected target state&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;I want the credentials to be fetched from Azure Key Vault and those to be utilised in the data pipeline copy activity without manual intervention.&lt;BR /&gt;Is it feasible?&lt;BR /&gt;&lt;BR /&gt;I understand that as a solution/work around, I can configure a web activity in the data pipeline to get secrets/credentials from Azure Key Vault - but the real issue lies in how to use that in the copy activity/ creating a connection to the mongo source (which would be a PROD mongo db in this case).&lt;BR /&gt;&lt;BR /&gt;Any help is deeply appreciated.&lt;BR /&gt;Would be happy to provide more details, if needed.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 07:26:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Activity-Fabric-Azure-Key-Vault-external-database/m-p/4020683#M4336</guid>
      <dc:creator>shivangjha</dc:creator>
      <dc:date>2024-07-03T07:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Activity: Fabric + Azure Key Vault + external database connection</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Activity-Fabric-Azure-Key-Vault-external-database/m-p/4022121#M4363</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="769412" data-lia-user-login="shivangjha" class="lia-mention lia-mention-user"&gt;shivangjha&lt;/a&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;It is feasible to use Azure Key Vault to extract credentials and use them in replication activities for data pipelines.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;You can try the following steps:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;Set the managed identity for the data factory. Ensure that the data factory has a managed identity associated with it.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;Configure Azure Key Vault. Open Key Vault's access policy and add a hosting identity with permissions and secrets.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;Store secrets in Azure Key Vault. Navigate to Key Vault and store MongoDB credentials as confidential.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;Add a Web activity to get secrets. In the data factory pipeline, add a new Web activity to extract secrets from the Azure Key Vault.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;Use of secrets in replication activities.&amp;nbsp;In the Copy activity, dynamic content is used to reference the output of the Web activity.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="" style="background: white;"&gt;&lt;FONT&gt;&lt;SPAN&gt;You can view the link below for more details:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/data-factory/how-to-use-azure-key-vault-secrets-pipeline-activities" target="_blank" rel="noopener"&gt;Use Azure Key Vault secrets in pipeline activities - Azure Data Factory | Microsoft Learn&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/data-factory/store-credentials-in-key-vault" target="_blank" rel="noopener"&gt;Store credentials in Azure Key Vault - Azure Data Factory | Microsoft Learn&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;FONT&gt;Regards,&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;FONT&gt;Nono Chen&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;FONT&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 07:13:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Activity-Fabric-Azure-Key-Vault-external-database/m-p/4022121#M4363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-03T07:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Activity: Fabric + Azure Key Vault + external database connection</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Activity-Fabric-Azure-Key-Vault-external-database/m-p/4022155#M4364</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;It seems that this solution is relevant to Azure data factory pipelines.&lt;/P&gt;&lt;P&gt;I am looking to achieve this is Fabric Data Factory pipelines..&amp;nbsp;&lt;BR /&gt;Apologies, if it was not that clear in my original post. Have updated my original post too.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 07:27:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Activity-Fabric-Azure-Key-Vault-external-database/m-p/4022155#M4364</guid>
      <dc:creator>shivangjha</dc:creator>
      <dc:date>2024-07-03T07:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Activity: Fabric + Azure Key Vault + external database connection</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Activity-Fabric-Azure-Key-Vault-external-database/m-p/4022228#M4370</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="769412" data-lia-user-login="shivangjha" class="lia-mention lia-mention-user"&gt;shivangjha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am aware of the problem. And I updated the following link:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://simplyfies.com/2024/02/21/get-azure-key-vault-secrets-in-fabric-pipeline/" target="_blank"&gt;Get Azure Key Vault secrets in Fabric pipeline – Simplyfies&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 07:53:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Activity-Fabric-Azure-Key-Vault-external-database/m-p/4022228#M4370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-03T07:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Activity: Fabric + Azure Key Vault + external database connection</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Activity-Fabric-Azure-Key-Vault-external-database/m-p/4043815#M4585</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="769412" data-lia-user-login="shivangjha" class="lia-mention lia-mention-user"&gt;shivangjha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me if your problem is solved? If yes, please accept it as solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:05:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Activity-Fabric-Azure-Key-Vault-external-database/m-p/4043815#M4585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-16T08:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Activity: Fabric + Azure Key Vault + external database connection</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Activity-Fabric-Azure-Key-Vault-external-database/m-p/4050473#M4644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thanks for your update on the procedure&amp;nbsp; - how to get azure key vault secrets.&lt;BR /&gt;It does not solve the actual problem of using those secrets in the copy activity in fabric.&amp;nbsp;&lt;BR /&gt;As per my original post, i had specifically requested some info on how to use azure key vault secrets in the Copy data activity.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;excerpt from the original post&lt;/STRONG&gt;&lt;BR /&gt;"&lt;BR /&gt;&lt;SPAN&gt;I understand that as a solution/work around, I can configure a web activity in the data pipeline to get secrets/credentials from Azure Key Vault - but the real issue lies in how to use that in the copy activity/ creating a connection to the mongo source (which would be a PROD mongo db in this case).&lt;/SPAN&gt;"&lt;BR /&gt;&lt;BR /&gt;If you can help on those lines, it would be super cool.&lt;BR /&gt;&lt;BR /&gt;Appreciate your efforts though &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 09:47:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Activity-Fabric-Azure-Key-Vault-external-database/m-p/4050473#M4644</guid>
      <dc:creator>shivangjha</dc:creator>
      <dc:date>2024-07-19T09:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Activity: Fabric + Azure Key Vault + external database connection</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Activity-Fabric-Azure-Key-Vault-external-database/m-p/4052869#M4649</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="769412" data-lia-user-login="shivangjha" class="lia-mention lia-mention-user"&gt;shivangjha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In response to this sentence: “but the real issue lies in how to use that in the copy activity/ creating a connection to the mongo source (which would be a PROD mongo db in this case).”&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, you store MongoDB's connection string, or credentials, in Azure Key Vault. Make sure you have access to those secrets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the data factory pipeline, add a new Web activity. Configure this activity to get secrets from Azure Key Vault. You will need to provide the Key Vault URL and secret name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure your data factory has access to Azure Key Vault.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Warehouse/Accessing-Azure-KeyVault-secret-for-Fabric-CopyData-Action/m-p/3710317" target="_blank"&gt;Solved: Accessing Azure KeyVault secret for Fabric CopyDat... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After obtaining secrets in a Web activity, you can use them in a replication activity. You can set MongoDB's connection string by referencing the output of your Web activity. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;@activity('WebActivityName').output.value
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 02:56:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Copy-Activity-Fabric-Azure-Key-Vault-external-database/m-p/4052869#M4649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-22T02:56:26Z</dc:date>
    </item>
  </channel>
</rss>

