Control: Subnets should be associated with a Network Security Group
Description
This policy denies if a gateway subnet is configured with a network security group. Assigning a network security group to a gateway subnet will cause the gateway to stop functioning.
Usage
Run the control in your terminal:
powerpipe control run terraform_azure_compliance.control.network_security_group_subnet_associated
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_azure_compliance.control.network_security_group_subnet_associated --share
SQL
This control uses a named query:
network_security_group_subnet_associated