Which authentication should Azure DevOps use for Fabric deployment pipeline API?
You have a Fabric workspace named Workspace1. You plan to integrate Workspace1 with Azure DevOps. You will use a Fabric deployment pipeline named deployPipeline1 to deploy items from Workspace1 to higher environment workspaces as part of a medallion architecture. You will run deployPipeline1 by using an API call from an Azure DevOps pipeline. You need to configure API authentication between Azure DevOps and Fabric. Which type of authentication should you use?
Community Insight
This item tests which Microsoft Entra identity should authenticate an Azure DevOps-to-Fabric deployment pipeline API call; the trap is confusing a Fabric workspace identity or private endpoint with a CI/CD service principal.
Azure DevOps automation that invokes a Fabric deployment pipeline API needs a non-interactive identity with Fabric permissions. This page establishes that a service principal (A) is the correct authentication type for deployPipeline1, not a workspace identity or username/password.
Picking workspace identity (D) because it is Fabric-specific; it is an outbound identity for the workspace, not an inbound API credential for Azure DevOps.
Community Discussion (17 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
A service principal is the non-interactive Microsoft Entra identity intended for automated tools such as an Azure DevOps pipeline calling Fabric REST APIs. In this scenario, Azure DevOps needs credentials that can be stored as a service connection or secret and used to invoke the deployment pipeline operation for deployPipeline1 without a signed-in user. Service principals support role assignments and scoped permissions in Fabric, so access to Workspace1 and the target stage workspaces can be governed and rotated. This matches Microsoft's CI/CD guidance and the Fabric API quickstart, which directs app integrations to create an app registration/service principal. Therefore option A is the authentication type the question is asking for.Why the Other Options Are Wrong
Microsoft Entra username and password (B) is interactive user authentication; it is brittle in automation, conflicts with MFA/conditional access, and is not the recommended way to authenticate an Azure DevOps pipeline. A managed private endpoint (C) is a networking control for private connectivity, not an identity or token-acquisition mechanism, so it cannot authenticate the API call. Workspace identity (D) is a Fabric-managed identity used by the workspace to access Azure resources outbound; it is not the credential that an external Azure DevOps pipeline presents to Fabric. The REST deployment-pipeline documentation's identity-support table can raise the user-auth distractor, but for the question's automation requirement the service principal is the secure supported choice.Community Comment Notes
VenkataPhaniPavanKumar and henryphchan both describe a service principal as the secure, non-interactive identity for Azure DevOps-to-Fabric automation, and jfranzen points to the Fabric API quickstart's app-registration step. hebertorosillo and robertlavigne highlight the REST deploy-stage-content identity table and the note that service principals/managed identities are limited to Power BI items for that operation; that is a valid item-support caveat, but it does not make username/password the right exam answer for CI/CD authentication. Other commenters such as viskas separate workspace identity as an in-Fabric access feature rather than an external API credential. The consensus of the useful comments is service principal, while the API-doc comment is best treated as a reminder to verify the specific deployment-pipeline operation's supported identities and item types.Official Reference
Exam Strategy
For CI/CD authentication questions, eliminate options that are networking constructs or interactive user credentials; look for a non-interactive Microsoft Entra app identity. Then verify the specific Fabric API operation supports that identity for the item types you deploy.
Frequently Asked Questions
Why is a workspace identity not used for Azure DevOps to Fabric API calls?
Workspace identity is a Fabric-managed identity for workspace outbound access to resources; it is not a credential an external Azure DevOps pipeline uses to call Fabric APIs.
Does service principal authentication work with the Fabric deployment pipeline API?
Yes for supported item types and operations, but check the current Fabric REST identity-support table because some deployment-pipeline operations limit service principals to Power BI items.