Forum Discussion

giulio-diluca's avatar
7 months ago
Solved

Service Principal ( SPN ) CI/CD Support

Hi,

Which is the current status of Service Principal ( SPN ) Support in CI/CD context?
Can we use it to deploy / interact with items?
I'm seeing this list here: Item management - Microsoft Fabric REST APIs | Microsoft Learn but for example Warehouses seems that aren't supported both in Git Integration and Fabric Deployment Pipelines using it ...

{"requestId":"6c5dc799-f7ee-47ce-a6f6-3b920e99d7c8","errorCode":"BadRequest","moreDetails":[{"errorCode":"PrincipalTypeNotSupported","message":"The operation is not supported for the principal type","relatedResource":{"resourceType":"Warehouse"}}],"message":"The request could not be processed due to missing or invalid information"}

Could be useful to have documentation pages that decribe where SPNs can be used ...
Regards,
Giulio

  • Hi giulio-diluca  someone not so long ago reported the same issue and I replicate the same behavior and we both concludedad (and later confirm via MSFT) that Warehouses are still on the unsupported list of items deployable via SPNs 😒  ... in response, I also submited an idea, please vote in favor to get it implemented, click here 👉 Allow updateFromGit with Service Principal for wor... - Microsoft Fabric Community 

     

    In that topic, we also discussed and agreed how missleading is to see that you can create workspace via Fabric API (supported), but you can't via UpdateFromGit, that is, for workspace with Git-Integration! (make sense of that!) ... here's the discussion if you want to take a look Solved: REST Endpoint to "Update From Git" a Workspace Not... - Microsoft Fabric Community  in particular, check the reply from @AntoineW where he describes quit well the distinction. 

     

    Well, hope this helps! Please vote for the idea 😁🤞  ... wish you the best of lucks, a thumbs up would be nice and even better to mark this as a solution. Cheers. 

     

7 Replies