Getting 403 Error when using azure.azcollection.azure_rm

90 views
Skip to first unread message

Jason B

unread,
May 31, 2022, 9:07:40 AM5/31/22
to Ansible Project
I am attempting to configure an inventory in AWX for Azure. 

I have created an Azure ARM Credential with my Subscription ID, Tenant ID, Client ID, and my Client Secret. I am using this ARM Credential in source configuration for the Inventory.

I am using AWX v21.0.0 / which uses ansible core 2.12.5.post0
I am also using the latest version of the azcollection.

The results of attempting to sync the inventory results in the following:

[WARNING]: * Failed to parse /runner/inventory/azure_rm.yml with auto plugin:
a batched request failed with status code 403, url /subscriptions/dev-null/providers/Microsoft.Compute/virtualMachines

Any suggestion on how to troubleshoot, or other tips would be very helpful.

Jason B

unread,
Jun 6, 2022, 12:20:44 PM6/6/22
to Ansible Project
This probably should have been posted to the AWX project group.  I believe I have found the issue  -- I assumed ( I know bad practice ) that the person that provisioned the azure enterprise app for awx  also granted permissions.  I discovered today there is no permissions granted. So, therefore we get the 403 error.  BTW - This page helped a lot: 

Reply all
Reply to author
Forward
0 new messages