The following error is displayed in the CA Client when attempting to create an Azure Auditing template without an Office 365 Exchange online license present in the tenant:
"An unexpected error occurred while executing a service call on agent "fqdn_of_agent"
The MicrosoftCloudPlugins.Log log shows the following:
2017-10-06 10:28:16.647 [64][INFO][MicrosoftCloud.Service.AzureADHelper.CreateAzureApplication(0)] Application Created, Name: ChangeAuditorApp1df5c3bb Id: dba8355c-2eae-4c87-88d6-e45453e7be35
2017-10-06 10:40:20.283 [63][ERROR][MicrosoftCloud.Service.AzureADHelper.CreateAzureApplication(0)] Direct Permission Assignment failed: Object reference not set to an instance of an object.
2017-10-06 10:40:22.267 [63][ERROR][MicrosoftCloud.Service.AzureAdService.CallInternal(0)] Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at MicrosoftCloud.Service.AzureADHelper.CreateAzureApplication(String tenantName, String adminUserName, String adminPassword, String homePageName, String displayName, String replyUrl, String appPasswordToSet)
at MicrosoftCloud.Service.AzureAdService.b__0()
at MicrosoftCloud.Service.AzureAdService.CallInternal[TResult](Func`1 internalCall, Boolean avoidAccessCheck)