This repository demonstrates how you can use the Office 365 CLI in an Azure Function.
Clone the repository
Run npm install
Copy local.settings.template.json file and
rename to local.settings.json
Update local.settings.json with your own values
Open terminal and cd to repo
Execute func start to start the function locally