Turn the Windows Identity Foundation Features on:
Open Windows Features and turn Windows Identity Foundation 3.5 on
Install the Microsoft.Identity.Extensions
Before running the solution, ensure you set StorageAccountConnectionString and OutlookIntegrationHostUri (e.g. https://localhost:8443/Functions.html)
When running local you can set it in your web.config or in AppSettings when deploying to an Azure WebApp.