
To save you some time, you will find a PowerShell script below. But these IP ranges change frequently so it’s a much better idea to get a script to download and parse this information regularly. If you simply want to quickly find the Azure IP ranges and service tags, you could just download the JSON files and inspect them manually.

Microsoft offers a list of all Azure IP ranges and services tags via two JSON files one for the public cloud and one for the US government cloud (assuming you’re in the US) and one for the public cloud. Related: Upgrading to PowerShell 7, Connect-AzAccount: Your Gateway to Azure with PowerShell Finding Azure IP Ranges with JSON

