# Azure inventory import

**URL:** <https://forum.ansible.com/t/azure-inventory-import/31773>\
**Category:** AWX Project\
**Tags:** azure, vmware, awx\
**Created:** [December 5, 2019, 3:42pm UTC](https://forum.ansible.com/t/azure-inventory-import/31773 "2019-12-05T15:42:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darrin\_Miskiewicz](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Darrin\_Miskiewicz](https://forum.ansible.com/u/Darrin_Miskiewicz)\
**Post date:** [December 5, 2019, 3:42pm UTC](https://forum.ansible.com/t/azure-inventory-import/31773/1 "2019-12-05T15:42:28Z")

</div>

Hello,  
Currently I am utilizing  
 **`alias_pattern: "{{ config.name | lower }}"`**  
   
in my extra vars for my VMware inventories. I’d like to do the same with my Azure inventory but can’t seem to find any documentation on it. I’ve tried  
**`  
alias\_pattern: “{{ name | lower }}”**

 

**`**

and

`alias_pattern: "{{ computer_name | lower }}"`

I am seeing both name and computer\_name in the variables for the hosts.

`ansible_host: 1.1.1.1 computer_name: Ansible id: >- /subscriptions/xxxxxxxxxxxxxxxxxx/resourceGroups/ANSIBLE/providers/Microsoft.Compute/virtualMachines/Ansible image: offer: UbuntuServer publisher: Canonical sku: 18.04-LTS version: latest location: eastus mac_address: 00-00-00-00-00-00 name: Ansible`

What am I missing? Is it because Azure uses a plugin and not an inventory script? Is there a way to convert the AWX inventory host to lower?

Thanks  
Darrin
