Forum Discussion
Create a fabric deployment pipeline using rest API call
- 1 year ago
My bad , I was reading a wrong article ( the things which I have mentioned will eventually be available ).
There is currently no direct API method to create a Fabric Deployment Pipeline programmatically.
Microsoft has announced plans to finalize public APIs for Deployment pipelines on the Fabric platform. The estimated release timeline for these enhancements is Q1 2025
. These upcoming APIs are expected to include:
- Create Deployment Pipeline
- Delete Deployment Pipeline
- Update Deployment Pipeline
- Assign Workspace To Stage
- Unassign Workspace From Stage
https://learn.microsoft.com/en-us/fabric/release-plan/shared-experiences
If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.
Anonymous
- 1 year ago
Hi Anonymous
I think I have found the right resources
https://learn.microsoft.com/he-il/fabric/cicd/deployment-pipelines/pipeline-automation-fabric
please check this GitHub repo:
there are other repo link as well on learn page I have shared .
Please see if this helps
hi Anonymous ,
Please use the below endpoints for Deployment pipeline automation. But before that please make sure have appropriate permissions for the pipeline and workspace in Microsoft Fabric.Obtain a Microsoft Entra token for authentication. This token is required in the API's authorization header.
Install the Azure PowerShell Az module if working with Azure DevOps
Steps :
POST https://api.fabric.microsoft.com/v1/workspaces/<workspaceId>/items
Request Body Example:
{
"displayName": "MyDeploymentPipeline",
"type": "DeploymentPipeline"
}
Once the pipeline is created, assign specific workspaces to its stages (e.g., development, test, production). Use the following API:
PATCH https://api.fabric.microsoft.com/v1/workspaces/<workspaceId>/items/<pipelineId>
Request Body Example:
{
"stages": [
{
"stageOrder": 0,
"workspaceId": "<developmentWorkspaceId>"
},
{
"stageOrder": 1,
"workspaceId": "<testWorkspaceId>"
},
{
"stageOrder": 2,
"workspaceId": "<productionWorkspaceId>"
}
]
}
Deploy Content Between Stages
To deploy content from one stage to another, use the Deploy Stage Content API:
POST https://api.fabric.microsoft.com/v1/deploymentPipelines/<pipelineId>/stages/<sourceStageId>/deploy
Request Body Example:
{
"targetStageId": "<targetStageId>",
"options": {
"allowCreateArtifact": true,
"allowOverwriteArtifact": true
}
}
More details can be found here : https://www.purplefrogsystems.com/2024/05/how-to-call-microsoft-fabric-data-pipelines-dynamically-using-apis/
If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.
Regrds
Nilendra