# Deploying Windows OS VM to azure with Ansiblr

**URL:** <https://forum.ansible.com/t/deploying-windows-os-vm-to-azure-with-ansiblr/24114>\
**Category:** Ansible Project\
**Tags:** azure, windows\
**Created:** [March 31, 2017, 10:13am UTC](https://forum.ansible.com/t/deploying-windows-os-vm-to-azure-with-ansiblr/24114 "2017-03-31T10:13:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brownstuff1899](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@brownstuff1899](https://forum.ansible.com/u/brownstuff1899)\
**Post date:** [March 31, 2017, 10:13am UTC](https://forum.ansible.com/t/deploying-windows-os-vm-to-azure-with-ansiblr/24114/1 "2017-03-31T10:13:26Z")

</div>

I've created a playback to deploy a Windows VM to Azure (ARM) which fails with the following message:  
"InvalidParamter\nMessage: The value of parameters linuxconfiguration is invalid.\nTarget: linixConfiguration."

I've been able to deploy Linux VMS with no issue.

Iso the deployment of Windows OS VMs even possible via Ansible?

Cheers,

Terry

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [April 7, 2017, 9:05pm UTC](https://forum.ansible.com/t/deploying-windows-os-vm-to-azure-with-ansiblr/24114/2 "2017-04-07T21:05:49Z")

</div>

You need to set the ‘os\_type’ parameter, see docs at [http://docs.ansible.com/ansible/azure\_rm\_virtualmachine\_module.html](http://docs.ansible.com/ansible/azure_rm_virtualmachine_module.html). os\_type maps to either WindowsConfiguration or LinuxConfiguration in the arm deploy request (see [https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/virtualmachines-create-or-update#osprofile](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/virtualmachines-create-or-update#osprofile))
