# azure required for this module error

**URL:** <https://forum.ansible.com/t/azure-required-for-this-module-error/18886>\
**Category:** Ansible Project\
**Tags:** azure, windows, ubuntu\
**Created:** [July 29, 2015, 3:46pm UTC](https://forum.ansible.com/t/azure-required-for-this-module-error/18886 "2015-07-29T15:46:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsimbirtsev](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@rsimbirtsev](https://forum.ansible.com/u/rsimbirtsev)\
**Post date:** [July 29, 2015, 3:46pm UTC](https://forum.ansible.com/t/azure-required-for-this-module-error/18886/1 "2015-07-29T15:46:03Z")

</div>

Hello,

I am new to ansible and trying to create new VM in Azure with azure module but getting the error:

failed: [localhost] =\> {“failed”: true, “parsed”: false}

failed=True msg=‘azure required for this module’

Here is the playbook:

# Provision ubuntu virtual machine example

- hosts: localhost

connection: local

tasks:

- name: install ubuntu

azure:

name: ubuntu-test

role\_size: A2

image: Ubuntu 15.04

location: ‘East US’

user: architech

ssh\_cert\_path: /Users/someuser/someuser.pem

storage\_account: [https://someurl.blob.core.windows.net/vhds](https://someurl.blob.core.windows.net/vhds)

wait: yes

Any help would be appreciated.

Thank you,

Roman.

---

<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:** [July 29, 2015, 4:00pm UTC](https://forum.ansible.com/t/azure-required-for-this-module-error/18886/2 "2015-07-29T16:00:05Z")

</div>

Looks like to use that module, you need to install a python library called ‘azure’. Looking here [http://docs.ansible.com/ansible/azure\_module.html](http://docs.ansible.com/ansible/azure_module.html), it seems to need to be a version later than 0.7.1

This is probably something you can install using pip / yum / apt-get.

Hope this helps.

Jon

---

<div class="post-metadata">

**Author:** ![rsimbirtsev](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@rsimbirtsev](https://forum.ansible.com/u/rsimbirtsev)\
**Post date:** [July 29, 2015, 4:17pm UTC](https://forum.ansible.com/t/azure-required-for-this-module-error/18886/3 "2015-07-29T16:17:02Z")

</div>

I checked and it looks like it is installed

/Library/Python/2.7/site-packages/ansible/modules/core/cloud/azure  
drwxr-xr-x 6 root wheel 204 16 Jul 11:29 .  
drwxr-xr-x 13 root wheel 442 16 Jul 11:29 …  
-rw-r–r-- 1 root wheel 0 16 Jul 11:28 **init**.py  
-rw-r–r-- 1 root wheel 165 16 Jul 11:29 **init**.pyc  
-rw-r–r-- 1 root wheel 19663 16 Jul 11:28 azure.py  
-rw-r–r-- 1 root wheel 16599 16 Jul 11:29 azure.pyc

Is this the right place I am looking at??

---

<div class="post-metadata">

**Author:** ![Martin2](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Martin2](https://forum.ansible.com/u/Martin2)\
**Post date:** [July 29, 2015, 5:27pm UTC](https://forum.ansible.com/t/azure-required-for-this-module-error/18886/4 "2015-07-29T17:27:13Z")

</div>

Hi,  
You are looking at the ansible module. Usually those modules also need a python library.  
/Martin

---

<div class="post-metadata">

**Author:** ![rsimbirtsev](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@rsimbirtsev](https://forum.ansible.com/u/rsimbirtsev)\
**Post date:** [July 29, 2015, 5:43pm UTC](https://forum.ansible.com/t/azure-required-for-this-module-error/18886/5 "2015-07-29T17:43:13Z")

</div>

Ok, I run ansible-doc -l and it shows that azure is installed.

less comes with NO WARRANTY, to the extent permitted by law.  
For information about the terms of redistribution,  
see the file named README in the less distribution.  
Homepage: [http://www.greenwoodsoftware.com/less](http://www.greenwoodsoftware.com/less)  
a10\_server Manage A10 Networks AX/SoftAX/Thunder/vThunder devices  
a10\_service\_group Manage A10 Networks AX/SoftAX/Thunder/vThunder devices  
a10\_virtual\_server Manage A10 Networks AX/SoftAX/Thunder/vThunder devices  
acl Sets and retrieves file ACL information.  
add\_host add a host (and alternatively a group) to the ansible-playbook in-memory inventory  
airbrake\_deployment Notify airbrake about app deployments  
alternatives Manages alternative programs for common commands  
apache2\_module enables/disables a module of the Apache2 webserver  
apt Manages apt-packages  
apt\_key Add or remove an apt key  
apt\_repository Add and remove APT repositories  
apt\_rpm apt\_rpm package manager  
assemble Assembles a configuration file from fragments  
assert Fail with custom message  
at Schedule the execution of a command or script file via the at command.  
authorized\_key Adds or removes an SSH authorized key  
azure create or terminate a virtual machine in azure  
bigip\_facts Collect facts from F5 BIG-IP devices  
…

---

<div class="post-metadata">

**Author:** ![Martin2](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Martin2](https://forum.ansible.com/u/Martin2)\
**Post date:** [July 29, 2015, 7:38pm UTC](https://forum.ansible.com/t/azure-required-for-this-module-error/18886/6 "2015-07-29T19:38:35Z")

</div>

Hi,

I think you need to look at this:

- ansible azure module
- azure Python library

The former requires the latter to work.

But both can be _installed_ separately. That doesn’t mean anyone is useful to you without the other. Check your distribution docs for how to install packages. Or if it’s not packaged try to read up on “Python pip”.

HTH,  
Martin

---

<div class="post-metadata">

**Author:** ![rsimbirtsev](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@rsimbirtsev](https://forum.ansible.com/u/rsimbirtsev)\
**Post date:** [July 29, 2015, 8:07pm UTC](https://forum.ansible.com/t/azure-required-for-this-module-error/18886/7 "2015-07-29T20:07:45Z")

</div>

I got it now.  
Once I ran pip install azure, it worked.

Thank you.
