UPDATED: Managing Azure Network Security Groups using CSV files
As with all scripts they need some maintenance over time and this one was no exception.
There were two bugs found in the script:
- The port ranges weren’t going all the way to 65535 so that has been resolved now.
- When creating a new NSG in Azure Resource Manager the location validation was failing. This has now been fixed. The location can be passed as the Display Name, for example ‘West Europe’ or as the ARM internal name ‘westeurope’ – either will work and they are validated against the Get-AzureRmLocation cmdlet.
The updated script can be downloaded from TechNet Gallery