# Possible Bug in azure\_rm\_networkinterface module (Ansible 2.5.0)

**URL:** <https://forum.ansible.com/t/possible-bug-in-azure-rm-networkinterface-module-ansible-2-5-0/27246>\
**Category:** Ansible Project\
**Created:** [April 11, 2018, 12:48pm UTC](https://forum.ansible.com/t/possible-bug-in-azure-rm-networkinterface-module-ansible-2-5-0/27246 "2018-04-11T12:48:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![f.floimair.commend](https://avatars.discourse-cdn.com/v4/letter/f/3da27b/32.png) [@f.floimair.commend](https://forum.ansible.com/u/f.floimair.commend)\
**Post date:** [April 11, 2018, 12:48pm UTC](https://forum.ansible.com/t/possible-bug-in-azure-rm-networkinterface-module-ansible-2-5-0/27246/1 "2018-04-11T12:48:28Z")

</div>

Hi everyone!

I am using Ansible 2.5.0 and I think I found a bug in the azure\_rm\_networkinterface module (either in the code or the documentation).

When I create a network-interface that should be used with an already existing Network Security Group (NSG), it never uses the existing NSG, but instead creates a new one with default values and the same name as the networkinterface, which is the default behavior if no NSG is provided as a parameter.

Steps to reproduce:

---

<div class="post-metadata">

**Author:** ![f.floimair.commend](https://avatars.discourse-cdn.com/v4/letter/f/3da27b/32.png) [@f.floimair.commend](https://forum.ansible.com/u/f.floimair.commend)\
**Post date:** [April 16, 2018, 12:20pm UTC](https://forum.ansible.com/t/possible-bug-in-azure-rm-networkinterface-module-ansible-2-5-0/27246/2 "2018-04-16T12:20:52Z")

</div>

I filed a new issue for this: [https://github.com/ansible/ansible/issues/38809](https://github.com/ansible/ansible/issues/38809)
