Is there a way to use Azure Logic Apps or Azure Function to grab Office365 IPs and convert them into Azure Firewall ruleset?

Viewed 18

I want to know if there is a way to use Azure Logic Apps or Azure Function to do the following;

  1. Scrape content from

https://endpoints.office.com/endpoints/worldwide?clientrequestid=b10c5ed1-bad1-445f-b386-b919946339a7

  1. Filter to only IPv4 addresses and strip out all the rest
  2. Use that list of IPv4 addresses and save somewhere as a .CSV file
  3. Use that .CSV file and upload it to an IP-Group in Azure
  4. Use the IP-GROUP and apply it to an Azure Firewall rule

Reason; this way, the dynamically changing list of MS O365 IP addresses will be dynamically updated every 15 days so that the Azure Firewall Ruleset is updated automatically too.

0 Answers
Related