CSV <--- import/export ---> Azure NSG
Sometimes we need to import rules to NSG from an Excell file. I had to do it to allow communication with Salesforce – so I had to implement IP whitelist according to this: https://help.salesforce.com/articleView?id=000003652&type=1. So the script to do it is here: $importFile = ‘Salesforce-nsg.csv’ $nsgname = ‘acobybylonsg-nsg’ $nsgrg = ‘acobybylonsg’ $subscription=’a3eaae72-4091-4bb6-8e79-ad91f956ac87′ $rulesArray = @() […]