Skip to main content

Create Azure NSGs with Terraform

Hands-On Lab


Photo of

Training Architect





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.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.