Forum Discussion

Mike_Suding's avatar
Mike_Suding
Former Employee
7 years ago

Office 365 monitoring

This is unofficial...On my own and on the side, I designed a DataSource to monitor Office 365 using Microsoft's API. See more on my blog http://blog.MikeSuding.com.  All the usual disclaimers apply...use at your own risk. I will try to help if it doesn't work for you.

  • I got this up and running in my tenant, we put a lot of restrictions in Azure so I had to use my Global Admin to setup the app. Not sure if it requires that high of a privilege but it got the job done.

  • Mike_Suding's avatar
    Mike_Suding
    Former Employee

    Yes...If you can't add an application manually, I would guess you don't have an account that supports it or you don't have enough permissions.

  • I am seeing this error when trying to create the application:

    Quote

    New-AzureADApplication : Error occurred while executing NewApplication
    Code: Request_BadRequest
    Message: Cannot convert a primitive value to the expected type 'Edm.Guid'. See the inner exception for more details.
    HttpStatusCode: BadRequest
    HttpStatusDescription: Bad Request
    HttpResponseStatus: Completed
    At C:\Users\jamiller\Downloads\Office365\Setup-Office365Monitoring_7.ps1:449 char:27
    + ... reatedApp = New-AzureADApplication -DisplayName $TargetApplicationNam ...
    +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AzureADApplication], ApiException
        + FullyQualifiedErrorId : Microsoft.Open.AzureAD16.Client.ApiException,Microsoft.Open.AzureAD16.PowerShell.NewAppl
       ication

     

    I tried add an application manually and it was saying I needed Azure AD premium.  Could this be a reason this is not working?