In this example, I'm using an Azure DevOps - Source Control connection configured with Service Principal authentication as shown on the image below
Using this connection, I'm invoking a interface Git - Connect - REST API (Core) | Microsoft Learn , following the example provided in Connect a workspace to Azure DevOps using configured connection example and implemented using PowerShell script, in the image below you can see how the call is correct, but I'm getting an error "{"requestId":"xxxxxxxx-xxxx-xxxx-xxxxxxxxxx","errorCode":"GitProviderResourceNotFound","message":"The requested operation can't be completed because the Git provider resource could not be found using the provided Git connection details."}"
After a LONG INVESTIGATION following what the error suggested the problem was (e.g. ID of the connection incorrect, lack of permissions, etc) and ruling-out many alternatives, I concluded that it wasn't none of this but the issue was that, on the target branch reference in the example shown "workspace/ws_test-auto-deploy_dev" did not contain "directoryName": "/fabric"
This is why the return error message GitProviderResourceNotFound is very misleading and should be more granular, it would have same me a lot of time something different like "BranchMissingDirectory" instead.
1 Comment
- frithjof_v
Community Champion
I had the same issue when trying to connect a workspace to GitHub using the API. It turns out I had to create the workspace folder in GitHub first (in my case: workspace/engineering, workspace/store, workspace/presentation) before attempting to connect the workspace to GitHub. When we connect a workspace to GitHub in the workspace settings user interface, the GitHub directory gets created if it doesn't already exist. But, when using the API to connect a workspace to GitHub, we need to create the folder in GitHub first before we can make the connection.
Recent ideas
Lakehouse connector with Service Principal and Workspace Identity authentication
Currently, the only available authentication method is the Organizational Account. Service Principal and Workspace Identity authentication methods are required. Lakehouse connector overview - Mi...eguigurene10 minutes agoAdvocate IIINew819Views21likes2CommentsEnhance OneLake Permission Error Messages with Clearer Troubleshooting Guidance
Customer Request: The customer requests more meaningful and actionable error messages instead of generic messages that primarily display a RootActivityId/GUID. The error should clearly indicate the p...Suhas_181826 minutes agoMicrosoft EmployeeNew3Views0likes0CommentsAbility to see what makes up a measure in Viewing mode of a semantic model in Fabric
Currently when trying to view measures and what they are defined as, we have to go to Editing mode to see it. We should have the ability to see the content in Viewing mode. Please vote to have this...chross2 hours agoAdvocate IIINew6Views0likes0Commentsarrow buttons not showing as expected on the new Monitoring Column Options when using firefox
Using firefox browser to open the new fabric Monitoring page, then choosing Column Options, hovering over the options is causing the buttons to disappear behind the tooltip: while it's working...aseelasha2 hours agoMicrosoft EmployeeNew5Views0likes0CommentsEnhancements for Excel Pivot Table Connectivity to Semantic Models
The business needs Excel to perform on Fabric The Problem: Unoptimized Capacity Consumption and Performance Bottlenecks While Excel's live connection to Fabric Semantic Models is a key feature, ...BMCulp3 hours agoNew MemberNew1.6KViews22likes4Comments