Many thanks to Keith Mayer, who wrote great article describing how to automate collecting of actual list of Microsoft Azure Services IPs and add them to Azure Network Security Groups with PowerShell (see why you may want to do that…
There is a very common mistake when using Linux command line.
For example, if you do:
echo ‘text’ > /tmp/test
grep text /tmp/test > /tmp/test