Invalid Git configuration in Azure Synapse

Sibi Kumar (INFOSYS LIMITED) 6 Reputation points Microsoft External Staff
2024-02-09T02:01:20.74+00:00

Whenever I open the Azure Synapse, I'm getting the below popup saying Invalid Git configUser's image I've owner access to the Azure Git repo still cannot have the Git enabled here. It also says that I need to switch back to Git mode to make changes but Azure Git is disabled for me

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Smaran Thoomu 24,110 Reputation points Microsoft External Staff Moderator
    2024-02-09T08:37:21.0166667+00:00

    Hi @Sibi Kumar (INFOSYS LIMITED) ,

    Welcome to Microsoft Q&A forum and thanks for reaching out here.

    I understand you're encountering an "Invalid Git config" error message when trying to access Azure Synapse and enable Git. Based on the information you've provided and the screenshot, here are some potential causes and troubleshooting steps:

    • As you mentioned having owner access to the Azure Git repo, double-check that you have the "Contributor" or "Data Factory Contributor" role at the subscription level in Azure Active Directory. These roles are required to enable and manage Git in Azure Synapse.
    • While Azure Git might be disabled within Synapse, you could still be using an Azure DevOps connection for version control. Check if your Synapse workspace is linked to an Azure DevOps repository and ensure you have the appropriate permissions there.
      • Go to your Synapse workspace in the Azure portal.
      • Click on "Manage" and then "Git repositories."
      • If an Azure DevOps repository is listed, verify your access level and ensure it's sufficient for pushing changes.
    • Ensure you're working on the correct branch in your Git repository. If you're on a branch other than the "main" or "master" branch, you might encounter issues enabling Git. Try switching to the appropriate branch and see if the error persists.
    • Occasionally, temporary glitches or service disruptions can cause unexpected behavior. Try refreshing the Azure Synapse portal or logging out and back in to see if the issue resolves itself.
    • If your Azure Synapse is connected to an Azure DevOps project, there might be configuration issues with the integration. Verify that the connection is set up correctly and that you have the required permissions within the DevOps project.

    If you're still having issues, please provide more details about your configuration and the steps you've taken so far, and we can try to assist you further.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.