Azure DevOps repos and AWX

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!

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)

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.

Thank you so much! I was able to solve the issue, and now it works perfectly for me.