Use this code to run periodic URL update taken from Microsoft office 365 address-list and store it into F5 datagroup.
cd /home/admin
curl -o office365-dynamic-update.sh -s https://raw.githubusercontent.com/ianwijaya/f5-office365-pb-dynamic-update/master/office365-dynamic-update-rest.sh
if for whatever reason you want to use the old XML list, use this URL instead "https://raw.githubusercontent.com/ianwijaya/f5-office365-pb-dynamic-update/master/office365-dynamic-update.sh"
echo "a" >> /tmp/office365-dg.txt
tmsh
create ltm data-group external O365 type string source-path file:///tmp/office365-dg.txt
create sys icall script Drafts/office365-script.txt
modify sys icall script Drafts/office365-script.txt definition { exec /bin/bash /home/admin/office365-dynamic-update.sh }
create sys icall handler periodic Drafts/office365-handler script Drafts/office365-script.txt interval 3600 status active
3600 -> update will run every 1 hour.