automation - auto sync of souce control fails

Roman Steiner 0 Reputation points
2023-03-25T14:45:52.12+00:00

hej,

I'm trying to connect azure automation to your source control (Azure Devops (GIT)).

If I do a manual sync (which results in a full sync), everything works perfectly fine. As soon as I want to enable 'Auto sync' I get the following error:

grafik

I tried to set up the the source control using the portal webinterface, as well as through powershell cmdlets. When setting up through the powershelle cmdlets I use a PAT which has full access controls. So there shouldn't be any problems with that.

any thoughts / ideas?

thx, roman

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

2 answers

Sort by: Most helpful
  1. Sedat SALMAN 13,080 Reputation points
    2023-03-25T14:51:54.1033333+00:00

    Ensure that the Personal Access Token (PAT) you're using has the correct scopes for Azure Automation integration with Azure DevOps (Git):

    1. Code (Read & Write)
    2. Service Connections (Read & Manage)

    Re-create the PAT if necessary, and then update the source control configuration in Azure Automation with the new token.


  2. AnuragSingh-MSFT 19,691 Reputation points
    2023-04-03T06:05:08.7266667+00:00

    Roman Steiner, Apologies for the delayed response. Please check the this doc "Use source control integration", especially the NOTE section available which contains the following information:

    According to this Azure DevOps documentation, Third-party application access via OAuth policy is defaulted to off for all new organizations. So, if you try to configure source control in Azure Automation with Azure Devops (Git) as source control type without enabling Third-party application access via OAuth under Policies tile of Organization Settings in Azure DevOps then you might get SourceControl securityToken is invalid error. Hence to avoid this error, make sure you first enable Third-party application access via OAuth under Policies tile of Organization Settings in Azure DevOps.

    Hope this helps. If it does not, I would suggest opening a Support Ticket so that it can be investigated 1:1 with backend logs (if required).

    0 comments No comments