# Unable to deploy VM from using template

**URL:** <https://forum.ansible.com/t/unable-to-deploy-vm-from-using-template/24081>\
**Category:** Ansible Project\
**Created:** [March 28, 2017, 3:15pm UTC](https://forum.ansible.com/t/unable-to-deploy-vm-from-using-template/24081 "2017-03-28T15:15:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Narasimha\_N](https://avatars.discourse-cdn.com/v4/letter/n/aca169/32.png) [@Narasimha\_N](https://forum.ansible.com/u/Narasimha_N)\
**Post date:** [March 28, 2017, 3:15pm UTC](https://forum.ansible.com/t/unable-to-deploy-vm-from-using-template/24081/1 "2017-03-28T15:15:53Z")

</div>

Hi  
i am trying to deploy a vm using template  
but all efforts ended up with error A specified parameter was not correct “spec.location.datastore”

i tried many ways to fix this issue but no luck

can someone shares few ideas

Thanks & regards,  
Narasimha.N

---

<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:** [March 29, 2017, 11:03pm UTC](https://forum.ansible.com/t/unable-to-deploy-vm-from-using-template/24081/2 "2017-03-29T23:03:00Z")

</div>

There will be a syntax error.

Share your task here and then maybe someone will be able to spot the problem.

Jon
