# Unable to parse Ansible inventory file as an inventory source in Azure CLI

**URL:** <https://forum.ansible.com/t/unable-to-parse-ansible-inventory-file-as-an-inventory-source-in-azure-cli/32909>\
**Category:** Ansible Project\
**Tags:** azure\
**Created:** [May 12, 2020, 7:07am UTC](https://forum.ansible.com/t/unable-to-parse-ansible-inventory-file-as-an-inventory-source-in-azure-cli/32909 "2020-05-12T07:07:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Render](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@Render](https://forum.ansible.com/u/Render)\
**Post date:** [May 12, 2020, 7:07am UTC](https://forum.ansible.com/t/unable-to-parse-ansible-inventory-file-as-an-inventory-source-in-azure-cli/32909/1 "2020-05-12T07:07:42Z")

</div>

Hi there,

I am trying to manage Azure Vms using Ansible from Azure CLI. The first thing is to parse inventory file where the managed VMs are listed. I uploaded the inventory file “azure\_rm.yml” and checked it is there:

 ![01.JPG](https://us1.discourse-cdn.com/ansible/original/2X/d/d3e66c017d6bf634192926fa35d7faed704e8d66.jpeg)

Unfortunately Azure CLI is not accepting the file:

 ![02.JPG](https://us1.discourse-cdn.com/ansible/original/2X/0/0e76822105f64a4608e41dcb9e83571c01e198f6.jpeg)

The content of inventory file is as follows:
