title: Is there a way to automatically and programmatically download the latest IP ranges used by Microsoft Azure?
body: <p>Microsoft has provided a URL where you can download the public IP ranges used by Microsoft Azure.</p>
  
  <blockquote>
    <p><a href="https://www.microsoft.com/en-us/download/confirmation.aspx?id=41653" rel="nofollow noreferrer">https://www.microsoft.com/en-us/download/confirmation.aspx?id=41653</a></p>
  </blockquote>
  
  <p>The question is, is there a way to download the XML file from that site automatically using Python or other scripts?  I am trying to schedule a task to grab the new IP range file and process it for my firewall policies.</p>