Step-by-Step Guide to Optimising Azure NSG Rules creation with Terraform: try Function and for_each Explained

Screenshot showing inbound Azure NSG Security rules

This guide looks at Optimising Azure NSG Rules Creation with Terraform. We’ll look at how to use the try function with for_each for Terraform NSG Rule Configuration and all arguments for azurerm_network_security_rule, providing a Step-by-Step Terraform NSG Guide for optimising Terraform Azure NSG Rules. A follow on from my popular blog post: Network Security Group … Read more

Dynamic Terraform Configurations with try and for_each Functions

The try function combined with for_each in Terraform offers a great approach to handling multiple variations in data structures within Terraform. In this blog post, we will look at using both these features to develop more resilient and adaptable Terraform configurations and will also include an example of this usage Quick overview of try and … Read more

Network Security Group Rule Creation using Terraform

In this blog post I am going to create a set of Network Security Group rules in Terraform using the resource azurerm_network_security_rule and rather than copying this resource multiple times I will show how you can iterate over the same resource multiple times using for_each meta-argument in Terraform.

Assign Network Security Group to Virtual Machine Network Interface using PowerShell

A blog post to show how you can assign a Network Security Group (NSG) to a Virtual Machine Network Interface (NIC) in Azure using PowerShell. Firstly, get the Network Security Group you want to have assigned to the Virtual Machine NIC Get the Virtual Machine NIC that you want to assign the NSG to You … Read more

Network Security Group Ruleset to CSV

You may have a requirement from time-to-time to provide a copy of the current Network Security Group(s) rulset within your Azure subscription, in this blog I will show you how this can be be done via PowerShell Lets have a look at a sample NSG created below I am looking this ruleset to be in … Read more

Application Security Group assignment using PowerShell

What are Application Security Groups? (ASGs) ASGs are used within a NSG to apply a network security rule to a specific workload or group of VMs – defined by ASG worked as being the “network object” & expilicit IP addresses are added to this object. This provides the capability to group VMs into associated groups … Read more

Network Security Groups: 10 suggestions for best practice!

As mentioned in a previous blog – NSG’s control access by permitting or denying network traffic in a number of ways, whether it be:- Communication between different workloads on a vNET Network connectivity from on-site environment into Azure Direct internet connection 1. One NSG to rule them all Do you really need a NSG per subnet? Or … Read more

Microsoft Azure:- NSGs & ASGs Simplified

NSG’s (Network Security Group) & ASG’s (Application Security Group) are the main Azure Resources that are used to administrate and control network traffic within a virtual network (vNET). The difference Network Security Group is the Azure Resource that you will use to enforce and control the network traffic with, whereas Application Security Group is an … Read more