Ansible Azure azure_rm_networkinterface question regarding security_group_name

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

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.

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