Forum Discussion
Use Microsoft Flow to receive an email for changes to Office 365 IP Addresses and URLs
Great work Paul.
I've been looking for a decent solution for this for some time. #Kudos
I am now going to see if I can get the JSON output filtered in some way, looking for just the "add" FQDN, so just ignoring IPv4, IPv6 and any "remove" entries from the latest (HTTP 3) Uri.
An output like the following by email, in an HTML table would suit my org.
FQDN | Ports |
aadcdn.msauth.net | TCP 80,443 |
aadcdn.msftauth.net | TCP 80,443 |
ccscdn.msauth.net | TCP 80,443 |
ccscdn.msftauth.net | TCP 80,443 |
roaming.officeapps.live.com | TCP 80,443 |
If anyone has any advice on converting the JSON from "HTTP 3" to an HTML table (like the above) in an email I'd be grateful.
AlanPs1 Thanks for the feedback. We use PowerShell to create the tables at http://aka.ms/o365ip from the JSON web services output. You can run PowerShell in Flow using an Azure Function. It's a little tricky to get working and there's likely other ways to create those tables too.
-- Paul
- AlanPs1Nov 07, 2018Copper Contributor
Thanks for the info Paul.
I'll take a look at running PowerShell as an Azure Function. I've pressed on a little with the JSON to filter out "NoIPV6" from the GET to https://endpoints.office.com/changes/worldwide. So let's see what I can get working.
I'll let you know how I get on and be keen to see any new evolution from you or another.
- AlanPs1Dec 08, 2018Copper Contributor
Hi Paul. Once again thank you for your excellent post.
Here is a series I have made with 8 parts that creates an Office 365 Admin Alerts Mailbox. It calls various APIs and RSS feeds, captures the required data and sends it by email.
Create Office 365 Alerts Shared Mailbox from APIs
I have credited you in section 2 (Call O365 Endpoints Web Service and Return the Latest FQDNs) as your content was very helpful to me and got me off and running.
Best Wishes,
Alan