A basic proof-of-concept to demonstrate how to connect to the Office 365 Management Activity API with PowerShell. The output is the status of the 5 subscriptions.
- A registered application with (application) permissions to the Office 365 Management Activity API (ActivityFeed.Read)
- The tenant id of the AAD tenant
- The client id (a.k.a. app id) of the registered application
- The client secret of the registered application
See https://docs.microsoft.com/en-us/office/office-365-management-api/ for more information about the Office 365 Management Activity API
You can request a development E5 tenant from Microsoft (see https://developer.microsoft.com/en-us/microsoft-365/dev-program)