# ansible with azure

**URL:** <https://forum.ansible.com/t/ansible-with-azure/21213>\
**Category:** Ansible Project\
**Tags:** azure\
**Created:** [April 20, 2016, 4:05am UTC](https://forum.ansible.com/t/ansible-with-azure/21213 "2016-04-20T04:05:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaniv\_refael](https://avatars.discourse-cdn.com/v4/letter/y/f07891/32.png) [@yaniv\_refael](https://forum.ansible.com/u/yaniv_refael)\
**Post date:** [April 20, 2016, 4:05am UTC](https://forum.ansible.com/t/ansible-with-azure/21213/1 "2016-04-20T04:05:47Z")

</div>

I started to work with Ansible with azure.

I need to use dynamic inventory.  
I provision new vm image using Ansible and its work fine. but when I try to do it with image that I capture it failed with error "OSImage tmpl02 not found. If you are using a VM image, it must be specified as VMImageName for the role, not as SourceImageName for OSVirtualHardDisk

probably there are difference between azure built in image and image that I created.

need same help here.

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [April 20, 2016, 7:51am UTC](https://forum.ansible.com/t/ansible-with-azure/21213/2 "2016-04-20T07:51:04Z")

</div>

I haven’t used this myself but you should know there is a lot of work being done in current development version of Ansible to provide greatly enhanced capabilities for working with Azure.

There is a repository of the modules here: [https://github.com/ansible/azurerm](https://github.com/ansible/azurerm) but there is lots of development activity going on so these may well arrive in latest development version of ansible soon.

Hope this helps,

Jon
