Deploying Windows OS VM to azure with Ansiblr

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

You need to set the ‘os_type’ parameter, see docs at 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)