Inventory source Microsoft Azure Resource Manager is not working

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 (4.81 KB)

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

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.

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

Any suggestions? Alternatives?

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

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