# Azure - Creating new / Gen2

**URL:** <https://forum.ansible.com/t/azure-creating-new-gen2/33101>\
**Category:** Ansible Project\
**Tags:** azure\
**Created:** [June 5, 2020, 8:39pm UTC](https://forum.ansible.com/t/azure-creating-new-gen2/33101 "2020-06-05T20:39:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_McGill](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@Adam\_McGill](https://forum.ansible.com/u/Adam_McGill)\
**Post date:** [June 5, 2020, 8:39pm UTC](https://forum.ansible.com/t/azure-creating-new-gen2/33101/1 "2020-06-05T20:39:29Z")

</div>

What azure module can i use to set the vm generation when creating a new vm? Figured it would be under azure\_rm\_virtualmachine.

Would like to make sure it will be created with gen 2.
