# Need help - Understanding cloud inventory grouping

**URL:** <https://forum.ansible.com/t/need-help-understanding-cloud-inventory-grouping/34856>\
**Category:** AWX Project\
**Tags:** azure\
**Created:** [March 25, 2021, 2:43pm UTC](https://forum.ansible.com/t/need-help-understanding-cloud-inventory-grouping/34856 "2021-03-25T14:43:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JK11](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@JK11](https://forum.ansible.com/u/JK11)\
**Post date:** [March 25, 2021, 2:43pm UTC](https://forum.ansible.com/t/need-help-understanding-cloud-inventory-grouping/34856/1 "2021-03-25T14:43:37Z")

</div>

Hi everybody,

I need help understanding how the hosts in cloud inventores are grouped into multiple groups ?

I’ve configured an inventory for Azure cloud, using Azure RM, and see too many groups in the inventory. I want to understand how the hosts are put into groups.  
One thing is tag, but, I see a host in two groups, which aren’t mentioned in the VM’s tag

thanks in advance,  
Jitu

---

<div class="post-metadata">

**Author:** ![JK11](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@JK11](https://forum.ansible.com/u/JK11)\
**Post date:** [March 31, 2021, 9:01am UTC](https://forum.ansible.com/t/need-help-understanding-cloud-inventory-grouping/34856/2 "2021-03-31T09:01:42Z")

</div>

Hi everybody,

Would appreciate any help here.  
Want to understand how the inventories, sourced from Azure Resource Manager, is divided in several groups.

thanks in advance,  
JK

---

<div class="post-metadata">

**Author:** ![Hrvoje\_Gaspar](https://avatars.discourse-cdn.com/v4/letter/h/3ab097/32.png) [@Hrvoje\_Gaspar](https://forum.ansible.com/u/Hrvoje_Gaspar)\
**Post date:** [March 31, 2021, 10:48am UTC](https://forum.ansible.com/t/need-help-understanding-cloud-inventory-grouping/34856/3 "2021-03-31T10:48:09Z")

</div>

Hi,

You should be able to customize ways in which plugin groups your hosts by overriding boolean switches in the source variables field at the bottom of the “create source” form for azure rm.  
These are the default settings:  
[https://github.com/ansible-collections/community.general/blob/main/scripts/inventory/azure\_rm.ini](https://github.com/ansible-collections/community.general/blob/main/scripts/inventory/azure_rm.ini)

If nothing is overriden, Tower will group hosts from azure by tags, but also by resource group, os family, location and security group.  
If you only need to group by tags, simply set all the other switches to false in the source variables.

Hope this helps out. 🙂

Dana srijeda, 31. ožujka 2021. u 11:01:42 UTC+2 korisnik [spiri...@gmail.com](mailto:spiri...@gmail.com) napisao je:

---

<div class="post-metadata">

**Author:** ![JK11](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@JK11](https://forum.ansible.com/u/JK11)\
**Post date:** [April 1, 2021, 11:00am UTC](https://forum.ansible.com/t/need-help-understanding-cloud-inventory-grouping/34856/4 "2021-04-01T11:00:47Z")

</div>

thanks, that does help in understanding.
