# Ansible Azure azure\_rm\_networkinterface question regarding security\_group\_name

**URL:** <https://forum.ansible.com/t/ansible-azure-azure-rm-networkinterface-question-regarding-security-group-name/27339>\
**Category:** Ansible Project\
**Tags:** azure\
**Created:** [April 20, 2018, 5:44pm UTC](https://forum.ansible.com/t/ansible-azure-azure-rm-networkinterface-question-regarding-security-group-name/27339 "2018-04-20T17:44:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_R](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@Jeff\_R](https://forum.ansible.com/u/Jeff_R)\
**Post date:** [April 20, 2018, 5:44pm UTC](https://forum.ansible.com/t/ansible-azure-azure-rm-networkinterface-question-regarding-security-group-name/27339/1 "2018-04-20T17:44:07Z")

</div>

Trying to build a NIC without creating or using a NSG…this doesn’t seem possible. If we leave the value out it creates one using defaults. We’ve tried using “security\_group\_name: None” also “security\_group: no” and of course leaving it out. None of them work. Does anyone know how to create a NIC without a NSG attached to it? Ansible is at 2.5.1

---

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [April 20, 2018, 10:41pm UTC](https://forum.ansible.com/t/ansible-azure-azure-rm-networkinterface-question-regarding-security-group-name/27339/2 "2018-04-20T22:41:08Z")

</div>

I’ve never used Azure, but it seems to me that you could probably achieve the same goal by attaching a security group that allows anything in or out. Or allows nothing in or out, depending on what you are trying to achieve.

What ARE you trying to achieve?

Regards, K.

---

<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 23, 2018, 6:54am UTC](https://forum.ansible.com/t/ansible-azure-azure-rm-networkinterface-question-regarding-security-group-name/27339/3 "2018-04-23T06:54:56Z")

</div>

It’s simply not possible. Every NIC has to have an associated NSG.
