Unable to enable autosync option under sourcecontrol in Azure Automation

Vinod Nallavade 331 Reputation points
2024-05-24T07:23:19.3166667+00:00

Hi All,

I'm trying to set up source control for Azure automation account, but when I click EnableAutoSync I'm seeing below error.

An error occurred while updating the source control named 'SCReposGit'. Error details: SourceControl autoSync setup failed for 'SCReposGit'..

I'm the project administrator on the DevOps organization and I also have enabled Third-Party application access via OAuth. I have also added the system defined identity as a contributor on the automation account.

Did I miss anything to make it work?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
{count} votes

3 answers

Sort by: Most helpful
  1. Deepanshu katara 17,960 Reputation points MVP Moderator
    2024-05-24T08:29:29.17+00:00

    Hi Vinod,

    I think we need to enable the 'Third-party application access via OAuth' in Azure DevOps / Organization Settings / Policies / Application connection policies

    Apparently this policy is 'defaulted to off for all new organizations.'

    https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/change-application-access-policies?view=azure-devops#application-connection-policies

    Also , As per this Azure docs github issue, this Azure document is now updated with the details around the same , please check this

    User's image

    Kindly accept answer , if it helps, Thanks!


  2. Anonymous
    2024-06-07T20:02:32.25+00:00

    Hello, I have the same issue: An error occurred while updating the source control named 'GitHub1'. Error details: SourceControl autoSync setup failed for 'GitHub'.

    Problems with GitHub and also Azure DevOps. It was working a month ago.


    If you need any further assistance, feel free to ask!

    0 comments No comments

  3. (Admin) Joshua Kirk 0 Reputation points
    2025-09-12T09:20:38.5066667+00:00

    Were you able to find the solution to this? We have now started to receive this error as well


Your answer

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