Azure DevOps repos and AWX

707 views
Skip to first unread message

Alex

unread,
Jun 5, 2023, 9:02:27 AM6/5/23
to AWX Project
Hi,

I have put all my Ansible playbooks in Azure DevOps repos, and now I want to connect AWX to my repos. Should I create a credential in the AWX to establish the connection? I have already checked the credentials section and noticed that there are two options: Microsoft Azure Key and Microsoft Azure Resource Manager, each requiring different information such as client ID, Tenant ID, and Subscription ID. I'm not sure where to find this information or what the correct way is to connect AWX to Azure repos. Could you please help me overcome this issue?

Thank you in advance!

Howard Jones

unread,
Jun 5, 2023, 10:19:25 AM6/5/23
to awx-p...@googlegroups.com
I created a Personal Access Token in Azure Devops, and then added that
as a Source Control credential in AWX. It's a regular https git repo as
far as AWX is concerned. Then in the AWX Project, you select that
credential when you set up the Source Control URL.

(I also wrote a small web service to receive Azure Devops webhook events
and talk to AWX, so that it refreshes the Project when git is updated,
but that's not actually necessary if you set the Job Templates to always
refresh the project)


Alex

unread,
Jun 6, 2023, 7:04:51 PM6/6/23
to AWX Project
Thank you for your response and explanation. I tried searching for an option in the "Credential type" section to add the Personal Access Token, but couldn't find it. Could you please guide me on which option should be selected in the "Resources > Credential > Add new Credential > Credential type" section?

I appreciate your assistance!

Howard Jones

unread,
Jun 7, 2023, 3:11:22 AM6/7/23
to awx-p...@googlegroups.com
On 07/06/2023 00:04, Alex wrote:
> Thank you for your response and explanation. I tried searching for an
> option in the "Credential type" section to add the Personal Access
> Token, but couldn't find it. Could you please guide me on which option
> should be selected in the "Resources > Credential > Add new Credential
> > Credential type" section?
>
> I appreciate your assistance!

It is called Source Control. The PAT goes in the password field. You
must supply a username, but I don't think it actually uses it. I put my
own username in there, even though the PAT is for a dedicated awx account.


Alex

unread,
Jun 11, 2023, 4:17:04 PM6/11/23
to AWX Project
Thank you so much! I was able to solve the issue, and now it works perfectly for me.
Reply all
Reply to author
Forward
0 new messages