Unable to enable autosync option under sourcecontrol in Azure Automation

VinodKumar-0434 296 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.
1,173 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deepanshukatara-6769 6,965 Reputation points
    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. Nelson Enrique Polo Igirio 0 Reputation points
    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