# provision instance on AZURE

**URL:** <https://forum.ansible.com/t/provision-instance-on-azure/21119>\
**Category:** Ansible Project\
**Tags:** azure\
**Created:** [April 10, 2016, 10:32am UTC](https://forum.ansible.com/t/provision-instance-on-azure/21119 "2016-04-10T10:32:55Z")\
**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 10, 2016, 10:32am UTC](https://forum.ansible.com/t/provision-instance-on-azure/21119/1 "2016-04-10T10:32:55Z")

</div>

Hi,

I tried to provision instance on azure (ansible-playbook -i /usr/share/pyshared/ansible/modules/core/cloud/azure/azure.py azure.yml) and I got the flowing error:

ERROR! The file /usr/share/pyshared/ansible/modules/core/cloud/azure/azure.py is marked as executable, but failed to execute correctly. If this is not supposed to be an executable script, correct this with `chmod -x /usr/share/pyshared/ansible/modules/core/cloud/azure/azure.py`.  
ERROR! Inventory script (/usr/share/pyshared/ansible/modules/core/cloud/azure/azure.py) had an execution error: Traceback (most recent call last):  
File “/usr/share/pyshared/ansible/modules/core/cloud/azure/azure.py”, line 610, in   
main()  
File “/usr/share/pyshared/ansible/modules/core/cloud/azure/azure.py”, line 537, in main  
enable\_winrm=dict(type=‘bool’, default=True),  
File “/usr/lib/pymodules/python2.7/ansible/module\_utils/basic.py”, line 528, in **init**  
self.params = self.\_load\_params()  
File “/usr/lib/pymodules/python2.7/ansible/module\_utils/basic.py”, line 1389, in \_load\_params  
params = json\_dict\_unicode\_to\_bytes(json.loads(MODULE\_COMPLEX\_ARGS))  
File “/usr/lib/python2.7/json/ **init**.py”, line 338, in loads  
return \_default\_decoder.decode(s)  
File “/usr/lib/python2.7/json/decoder.py”, line 366, in decode  
obj, end = self.raw\_decode(s, idx=\_w(s, 0).end())  
File “/usr/lib/python2.7/json/decoder.py”, line 384, in raw\_decode  
raise ValueError(“No JSON object could be decoded”)  
ValueError: No JSON object could be decoded

Help!!!

---

<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 12, 2016, 1:10pm UTC](https://forum.ansible.com/t/provision-instance-on-azure/21119/2 "2016-04-12T13:10:39Z")

</div>

Not sure what your specific problem is but there is a bunch of work being done on the Azure side of things at the moment with new modules being worked on at the moment.

Have a look at these Pull Requests on github - perhaps you can help out with testing?

[https://github.com/ansible/ansible/pull/15358](https://github.com/ansible/ansible/pull/15358)

[https://github.com/ansible/ansible/pull/15360](https://github.com/ansible/ansible/pull/15360)

Hope this helps,

Jon
