Create Azure NSGs with Terraform
This lab demonstrates the ease with which we can deploy and manage a Network Security Group.
NSGs provides a simple mechanism to filter traffic to and from an Azure internal network. However, NSGs are somewhat limited in the number of rules you can have in place and keeping track of what rules apply in what priority can occasionally have you pulling out your hair. Terraform provides a straightforward way to ensure that new NSGs automatically acquire any base rules required by your IT department, and will allow you to make updates as well as re-order rule priorities without having to manually destroy NSG rules before recreating them.