Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap

Reply
VigneshJanarEY
New Member

Git repo sync using RestAPI is failing

Hi Team,

We are using Git Enterprise for our data engineering lakehouse version and trying to do CICD for the code migration. However, while using the service account (entra account) to run the 'update from git' RestAPI, we are getting the below error.

Also, the same is working with our individual user bearer token (with interactive mode). 

Does the service account need to be there in Git as well, if so what is the configuration need to be provided to the service account ?

Error while making the RestAPI : https://api.fabric.microsoft.com/v1/workspaces/<workspace id>/git/status

Error: The tenant administrator has not enabled the specified Git provider type.

Get Bearer Token Response: 

Get Bearer Token Response:

"token_type": "Bearer",

    "scope": "https://api.fabric.microsoft.com/App.Read.All https://api.fabric.microsoft.com/Capacity.Read.All https://api.fabric.microsoft.com/Connection.Read.All https://api.fabric.microsoft.com/DataPipeline.Execute.All https://api.fabric.microsoft.com/DataPipeline.Read.All https://api.fabric.microsoft.com/DataPipeline.ReadWrite.All https://api.fabric.microsoft.com/Dataset.Read.All https://api.fabric.microsoft.com/Dataset.ReadWrite.All https://api.fabric.microsoft.com/Environment.Execute.All https://api.fabric.microsoft.com/Environment.ReadWrite.All https://api.fabric.microsoft.com/Fabric.Extend https://api.fabric.microsoft.com/Item.Execute.All https://api.fabric.microsoft.com/Item.Read.All https://api.fabric.microsoft.com/Item.ReadWrite.All https://api.fabric.microsoft.com/Item.Reshare.All https://api.fabric.microsoft.com/Pipeline.Deploy https://api.fabric.microsoft.com/Pipeline.Read.All https://api.fabric.microsoft.com/Pipeline.ReadWrite.All https://api.fabric.microsoft.com/Workspace.GitCommit.All https://api.fabric.microsoft.com/Workspace.GitUpdate.All https://api.fabric.microsoft.com/Workspace.Read.All https://api.fabric.microsoft.com/Workspace.ReadWrite.All https://api.fabric.microsoft.com/.default",

    "expires_in": 3643,

    "ext_expires_in": 3643,

    "access_token": ""

 

7 REPLIES 7
v-nmadadi-msft
Community Support
Community Support

Hi @VigneshJanarEY 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the community members for the issue worked. If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Thanks 

v-nmadadi-msft
Community Support
Community Support

Hi @VigneshJanarEY 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If our responses has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

VigneshJanarEY
New Member

Hi Srisakthi,

 

we have enabled the tenant setting as mentioned in the document, which i have refered earlier, still the same issue. As i mentioned earlier, the  service account used in RestAPI is O365 entra account and our Git enterpise is using the AD authentication (currently the service account is not there in Git Enterprise cloud) . How to configure this account and is there any workaround ?

 

Thanks,

Vignesh

Hi @VigneshJanarEY ,

 

Can we connect on this?

 

Regards,

Srisakthi

I am available now

Hi @VigneshJanarEY 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster. If not please let us know the update on the issue so that we will look into it.

Thank you.

 

Srisakthi
Responsive Resident
Responsive Resident

Hi @VigneshJanarEY ,

 

Have you enabled tenant level settings ?

The error message says Git provider is not enabled. Make sure to enable the settings at tenant level and also provide enough permission for Service Principal in the workspace

Refer - https://learn.microsoft.com/en-us/fabric/admin/git-integration-admin-settings#users-can-synchronize-...

https://learn.microsoft.com/en-us/rest/api/fabric/core/git/update-from-git?tabs=HTTP

 

Regards,

Srisakthi

Helpful resources

Announcements
May FBC25 Carousel

Fabric Monthly Update - May 2025

Check out the May 2025 Fabric update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.