Nicolás Bello Camilletti wrote a good guide on calling the Graph API with a Javascript function here: https://medium.com/southworks/calling-microsoft-graph-api-from-an-azure-function-using-javascript-3456e81345a1
There are a few steps to setting this up.
- Setup a new app registration in Office365 to get a app Id and secret.
- Give that app the permissions needed to read and write the values you need.
- Use the ADAL npm package to obtain a token for the Graph API with those credentials.
- Make your calls to the Graph API, using the bearer token in the Authentication header
- Ensure your function.json file defines the trigger as a timer with a one day interval.