Cloning Azure RM Network Security Group rules between NSGs
Aug 22, 2017 · 1 min read
As a good practice here, we prefer to have a specific network security group for each subnet. This way, its easier to manage the standard rules for each subnet. Even with that, we always have standard rules that are the same for every network security group. Sorry but, I’m too lazy to recreate these standard rules manually when deploying a new subnet and, due to that, I wrote this small script to help me on this process. Needless to say, you need to first create the destination NSG and, on the below script, change the variables according your environment.

