# Inventory source Microsoft Azure Resource Manager is not working

**URL:** <https://forum.ansible.com/t/inventory-source-microsoft-azure-resource-manager-is-not-working/32244>\
**Category:** AWX Project\
**Tags:** azure, awx, kubernetes\
**Created:** [February 16, 2020, 5:40pm UTC](https://forum.ansible.com/t/inventory-source-microsoft-azure-resource-manager-is-not-working/32244 "2020-02-16T17:40:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pini\_Vaknin](https://avatars.discourse-cdn.com/v4/letter/p/a3d4f5/32.png) [@Pini\_Vaknin](https://forum.ansible.com/u/Pini_Vaknin)\
**Post date:** [February 16, 2020, 5:40pm UTC](https://forum.ansible.com/t/inventory-source-microsoft-azure-resource-manager-is-not-working/32244/1 "2020-02-16T17:40:10Z")

</div>

Inventory sync for Azure is not working, both the script and the inventory plugin are providing very limited info after the error.

Attached logs from plugin error.

AWX 9.2.0  
Ansible 2.9.3  
K8s deployment on AKS

> **(attachments)**
>
> [inventory\_update\_16.txt](https://forum.ansible.com/uploads/short-url/jLK6YDMfQBB1LwSK2sSdJMXJxFc.txt) (4.81 KB)

---

<div class="post-metadata">

**Author:** ![AlanCoding](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alancoding/32/301_2.png) [@AlanCoding](https://forum.ansible.com/u/AlanCoding)\
**Post date:** [February 17, 2020, 3:33am UTC](https://forum.ansible.com/t/inventory-source-microsoft-azure-resource-manager-is-not-working/32244/2 "2020-02-17T03:33:04Z")

</div>

At a quick glance, it looks like this was resolved in:

[https://github.com/ansible/ansible/pull/63722](https://github.com/ansible/ansible/pull/63722)

The Azure inventory imports use the azure\_rm inventory plugin, which is shipped with the version of Ansible you have installed.

It appears that this patch has not been backported to prior versions, like 2.8 or 2.9. It probably should be.

---

<div class="post-metadata">

**Author:** ![Pini\_Vaknin](https://avatars.discourse-cdn.com/v4/letter/p/a3d4f5/32.png) [@Pini\_Vaknin](https://forum.ansible.com/u/Pini_Vaknin)\
**Post date:** [February 17, 2020, 3:46pm UTC](https://forum.ansible.com/t/inventory-source-microsoft-azure-resource-manager-is-not-working/32244/3 "2020-02-17T15:46:22Z")

</div>

Thanks, Alan!  
I have upgraded to the latest Ansible version (2.9.5) and still the same issue.

Any suggestions? Alternatives?

---

<div class="post-metadata">

**Author:** ![AlanCoding](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alancoding/32/301_2.png) [@AlanCoding](https://forum.ansible.com/u/AlanCoding)\
**Post date:** [February 17, 2020, 6:08pm UTC](https://forum.ansible.com/t/inventory-source-microsoft-azure-resource-manager-is-not-working/32244/4 "2020-02-17T18:08:48Z")

</div>

The pull request didn’t include a changelog fragment which is needed for backporting.

[https://docs.ansible.com/ansible/latest/community/development\_process.html#changelogs-how-to](https://docs.ansible.com/ansible/latest/community/development_process.html#changelogs-how-to)

As I understand the contribution process for Ansible core (github: ansible/ansible), someone needs to make a PR to add the changelog fragment to the devel branch. Once that is done, a PR to add the patch and the changelog fragment can be opened up against branches stable-2.8 and stable-2.9. Then it will go out in patch releases.

For the problem local to your server, you might try testing with the development version of Ansible. I think we allow easily specifying a custom virtualenv for inventory sources like this now.

Alan  
github: AlanCoding
