public async static Task MoveShareableIdeas([TimerTrigger("0 0 * * * *")] TimerInfo timerInfo) { var operation = "Move shareable ideas"; LogService.LogOperationStarted(operation); using (var spClientContext = await AuthenticationHelper.GetSharePointClientAppOnlyContextAsync()) { var plannerService = new PlannerService(spClientContext); try { await plannerService.MoveShareableIdeas(); } catch (Exception ex) { LogService.LogError(ex); } } LogService.LogOperationEnded(operation); }