# Getting 403 Error when using azure.azcollection.azure\_rm

**URL:** <https://forum.ansible.com/t/getting-403-error-when-using-azure-azcollection-azure-rm/36673>\
**Category:** Ansible Project\
**Tags:** azure, awx\
**Created:** [May 31, 2022, 1:07pm UTC](https://forum.ansible.com/t/getting-403-error-when-using-azure-azcollection-azure-rm/36673 "2022-05-31T13:07:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_B](https://avatars.discourse-cdn.com/v4/letter/j/7993a0/32.png) [@Jason\_B](https://forum.ansible.com/u/Jason_B)\
**Post date:** [May 31, 2022, 1:07pm UTC](https://forum.ansible.com/t/getting-403-error-when-using-azure-azcollection-azure-rm/36673/1 "2022-05-31T13:07:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jason\_B](https://avatars.discourse-cdn.com/v4/letter/j/7993a0/32.png) [@Jason\_B](https://forum.ansible.com/u/Jason_B)\
**Post date:** [June 6, 2022, 4:20pm UTC](https://forum.ansible.com/t/getting-403-error-when-using-azure-azcollection-azure-rm/36673/2 "2022-06-06T16:20:44Z")

</div>

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:

[Let’s Do DevOps: Dynamic Host Inventories in Azure on Ansible AWX/Tower | by Kyler Middleton | FAUN Publication](https://faun.pub/lets-do-devops-dynamic-host-inventories-in-azure-on-ansible-awx-tower-87437f2838c1)
