question

GeorgeD16-8711 avatar image
0 Votes"
GeorgeD16-8711 asked DawidGupta-2052 answered

Azure Automation - Source Control - Setup Errors

From the website i get this when i select authorize.

Azure Repo (git)
The authorization process could not be completed.

my account is a azure global admin, azure repo project admin

from powershell i get this:

New-AzAutomationSourceControl : SourceControl securityToken is invalid.
At line:1 char:1

thoughts?



azure-automation
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GeorgeD16-8711 avatar image
0 Votes"
GeorgeD16-8711 answered SwathiDhanwada-MSFT commented

it looks like azure automation isn't whitelisted from azure conditional access policies.

we have a conditional access policy to only allow azure repo login from our datacenter.
it seems that azure automation isn't allowed to connect to azure repos when this conditional access policy is in place.

if i disable "Enable Azure Active Directory Conditional Access Policy validation" the source control link works.
but if i enable it, it immediately breaks.

moving my case to the conditional access team.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the update, @GeorgeD16-8711. Let us know if you have any follow-up questions.


0 Votes 0 ·

Hello @GeorgeD16-8711 - following up on your GitHub issue. I have engaged the feature owner and will share an update as soon as I can.
Have a good weekend.

Cheers,
Femi


0 Votes 0 ·

@GeorgeD16-8711Currently,the requested scenario isn't supported. We have shared the product feedback with Engineering team. I also would recommend you to navigate here and share your feedback or suggestions directly with the responsible Azure feature team and clicking the vote button of your suggestion to raise visibility and priority on it.


0 Votes 0 ·
DawidGupta-2052 avatar image
0 Votes"
DawidGupta-2052 answered

@GeorgeD16-8711 @SwathiDhanwada-MSFT
I encountered on same issue that CA Policy which we set to control access to ADO was blocking AA repo sync.
The solution I found was to exclude from CA Policy the account which was used to setup AA git repo synchronization.
Hope you will find that helpful

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.