This project contains code to add all the Azure public IPs to the Network Security Group for the specific region.
- Azure Portal access
- One NSG to be updated
- One Azure automation account in same resource group of NSG
- Create one automation account
- In automation account creation wizard, select resource group as your nsg
- Go to automation account created
- Go to Runbooks from side pane
- Select create Runbooks
- In create runbooks pane, select type as 'powershell'
- Go the runbook view and select modules
- In modules pane, import AzureRM.Network (with its dependencies)
- Add the code of updating-nsg-rules-xml.ps1 to edit pane
- Edit nsg name and resource group name in the code
- Save and Run