When fetching data from data sources that require IP whitelisting for requests from Power Automate or Logic Apps, Microsoft provides a nice list of IP addresses that should be whitelisted per region. This is nice, but it does not actually work. Quite often, the IP address of the flow is something else than mentioned online.
Luckily, I found this link: https://www.powernimbus.com/2021/04/whats-the-ip-of-my-flow/
There’s a great way to see what the IP address is by using a 3rd party API:
GET request to https://api.ipify.org/?format=json
Here’s a link from where you can find the IP address that is not mentioned in the website documentation: https://www.microsoft.com/en-us/download/details.aspx?id=56519&WT.mc_id=BA-MVP-5003527
However, I’m still struggling to understand which IP Addresses should be whitelisted, as I wouldn’t like to whitelist all of them.
Update 7.1.2025
It seems that the 3rd party API ip-address is not always accurate. For example if you try to whitelist the IP address for an Azure Key Vault, it will not work straightaway. You need to monitor the logs in (Insights) in your key vault to see what is the IP address that is used. I spent actually quite long time to figure this out.
To be able to get Logic App or Power Automate with Azure Key Vaults when the network access is restricted, you need to download that JSON file from the previous link and add all the IP ranges to the whitelist. For example, North and West Europe IP addresses to be white listed are as follows:
- 13.69.171.0/32
- 13.69.227.208/28
- 13.69.231.192/27
- 20.82.159.224/32
- 20.82.224.59/32
- 20.82.225.129/32
- 20.82.226.52/32
- 20.82.226.163/32
- 20.82.246.112/28
- 20.93.81.75/32
- 52.146.138.32/27
- 52.178.150.68/32
- 94.245.91.93/32
- 13.69.64.208/28
- 13.69.71.192/27
- 20.82.14.39/32
- 20.82.15.2/32
- 20.86.93.32/27
- 20.86.93.64/28
- 20.103.131.1/32
- 20.103.132.139/32
- 20.103.158.245/32
- 20.103.159.225/32
- 20.126.241.238/32
- 20.126.243.151/32
- 40.91.208.65/32
- 52.174.88.118/32
- 52.174.180.160/32
- 137.117.161.181/32