<?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: Progrmatically create pipeline in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4659093#M7560</link>
    <description>&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-powershell" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-powershell&lt;/A&gt;&amp;nbsp;seems like it would work, too.&amp;nbsp; But the biggest problem is that you need to do a fair amount of JSON, and then essentially use PoSH to import the configs.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Apr 2025 20:19:14 GMT</pubDate>
    <dc:creator>mbourgon</dc:creator>
    <dc:date>2025-04-18T20:19:14Z</dc:date>
    <item>
      <title>Progrmatically create pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4095755#M4959</link>
      <description>&lt;P&gt;Is there any way to code the pipeline activities rather than using the graphical interface at all.&lt;/P&gt;
&lt;P&gt;Such as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;//pseudocode in javascript where fnCopyActivity and fnNotebbok are in-built function calls 
//representative of Copy Activity and Notebook execution available in the graphical interface

//set variable
const setVariable1 = 'prod_db'

//define fnCopyActivity parameters
const copyParameters = [{
		source: {
			connection: 'on_prem_sql',
			query: 'select * from `{setVariable1}`'
		}
	},
	{
		destination: {
			connection: 'lakehouse',
			files: 'Files/daily'
		}
	}
]
//execute copy activity            
const copyActivity = fnCopyActivity(copyParameters)
//take nly output ids
const copyOutputArray = copyActivity.map(a =&amp;gt; a.output.id)
//execute forEach
copyOutputArray.forEach(a =&amp;gt; {
	fnNotebbok(NB1(src=a))
})&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With promise chaining&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// Execute copy activity
fnCopyActivity(copyParameters)
  .then((copyActivity) =&amp;gt; {
    // If successful, extract the output ids
    const copyOutputArray = copyActivity.map(a =&amp;gt; a.output.id);
    
    // Return the output array for the next .then() in the chain
    return copyOutputArray;
  })
  .then((copyOutputArray) =&amp;gt; {
    // If successful, execute fnNotebbok for each id
    return Promise.all(
      copyOutputArray.map(id =&amp;gt; fnNotebbok(NB1(src=a))
    );
  })
  .then((notebookResults) =&amp;gt; {
    // All fnNotebbok executions were successful
    console.log('All notebooks executed successfully', notebookResults);
  })
  .catch((error) =&amp;gt; {
    // Handle any errors that occur at any stage of the chain
    console.error('An error occurred:', error);
  });
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 15:55:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4095755#M4959</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-08-12T15:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Progrmatically create pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4095820#M4961</link>
      <description>&lt;P&gt;Data pipelines in the backend are basically json formats.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can code the pipelines rather than ui drag /drop in case if you are familiar with the data pipeline json format&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 15:37:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4095820#M4961</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2024-08-12T15:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Progrmatically create pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4095835#M4962</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Yes, you can feed a json that would create a pipeline. But it is harder to manually create a json that would have all the correct info that is conducive to the desired pipeline.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I am looking for is a progrmatic way to create pipeline through some python/powershell libraries that already has all the pre-defined pipeline methods. So that I can invoke the methods with correct parameters and promise chain (on success, fail etc) and be able to schedle executing the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By programming it, I would then create the pipeline and the correct json. You can edit the pipeine from the code itself. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, there is no way to create a json manually with the exact same pipeline in your head.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 15:55:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4095835#M4962</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-08-12T15:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Progrmatically create pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4096120#M4964</link>
      <description>&lt;P&gt;How can we do it in Fabric. Is this how you would achieve it? (Link below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.red-gate.com/simple-talk/blogs/edit-fabric-pipeline-json/" target="_blank"&gt;https://www.red-gate.com/simple-talk/blogs/edit-fabric-pipeline-json/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 20:42:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4096120#M4964</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-08-12T20:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Progrmatically create pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4096153#M4965</link>
      <description>&lt;P&gt;When you crate a pipeline it generates a json, you can edit the json. But there is no way you can manually create a json from scratch that would represents the json otherise created by using the UI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a perfect fabric world, I would code to create the pipeline which derives the json and not the other way round.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 21:40:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4096153#M4965</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-08-12T21:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Progrmatically create pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4096157#M4966</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;But there is no way you can manually create a json from scratch that would represents the json otherise created by using the UI."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you can:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/pipeline-rest-api" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-factory/pipeline-rest-api&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 21:54:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4096157#M4966</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-08-12T21:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Progrmatically create pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4096295#M4970</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24978" data-lia-user-login="smpa01" class="lia-mention lia-mention-user"&gt;smpa01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;In addition to the ideas and comments mentioned by the two above, I think you can also try the following:&lt;BR /&gt;1. You can create and manage data factory pipelines programmatically using SDKs for .NET, Python, and other languages.&lt;/P&gt;
&lt;P&gt;2. You can also use the Azure CLI and PowerShell, command-line tools that allow you to manage Data Factory resources through scripts, including creating and updating pipelines.&lt;/P&gt;
&lt;P&gt;Read this official documentation below for more information:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/data-factory/transform-data-using-custom-activity" target="_blank"&gt;Use custom activities in a pipeline - Azure Data Factory &amp;amp; Azure Synapse | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 01:18:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4096295#M4970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-13T01:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Progrmatically create pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4659093#M7560</link>
      <description>&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-powershell" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-powershell&lt;/A&gt;&amp;nbsp;seems like it would work, too.&amp;nbsp; But the biggest problem is that you need to do a fair amount of JSON, and then essentially use PoSH to import the configs.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 20:19:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4659093#M7560</guid>
      <dc:creator>mbourgon</dc:creator>
      <dc:date>2025-04-18T20:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Progrmatically create pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4659593#M7561</link>
      <description>&lt;P&gt;Pipeline triggers proxy as opposed to redirect. In other words, pipeline is more expensive than notebook. If the cost were equal, it was worth the effort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/onelake/onelake-consumption" target="_self"&gt;redirect vs proxy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Apr 2025 20:49:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Progrmatically-create-pipeline/m-p/4659593#M7561</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2025-04-19T20:49:41Z</dc:date>
    </item>
  </channel>
</rss>

