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
Thanks for the reply and giving the solution, but unfortunately the below code piece didn't workout for creating the Fabric Deplotment Pipeline:
POST https://api.fabric.microsoft.com/v1/workspaces/<workspaceId>/items
Request Body Example:
{
"displayName": "MyDeploymentPipeline",
"type": "DeploymentPipeline"
}
It raised the below error
Invoke-RestMethod:
{
"requestId": "2f2e0af5-2a7c-4765-8077-c84e74ee03d3",
"errorCode": "InvalidItemType",
"message": "Requested item type \u0027DeploymentPipeline\u0027 is invalid"
}
which tells there is not such itemType available, also refered microsoft Doc Items - Create Item - REST API (Core) | Microsoft Learn which consists of list of all items available which doesn't consist of what you have recommended.
Is there any other solution you can recommend for the same. Thanks in advance.