Microsoft and other Universities have asked me to share how we grab MS O365 Tenant Communications to format/display in our own environment.
Here is was that solution. (As of Feb 2022, we have since migrated to using Graph API instead of the Communications API - but this brings some nostalgia.) Will post (public) our current solution when time permits.
https://github.com/computerdan/Office365_Service_Comms_2SCP
Office365_Service_Comms_2SCP
Office 365 Messages via Service Communications API - To ASCII Text File - Send via SCP
Instructions:
Create AzureAD App with 'Office 365 Management APis' Permissions:
ServiceHealth.Read / Type: Application / Admin Consent Required: Yes
Call with splats or
Edit $APIauthSettings hashtable with AzureAD App information
Edit $SCPauthSettings hashtable with target SCP host information