Navigation Menu

Skip to content

aslan-im/Get-M365MessageCenterUpdates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 

Repository files navigation

Get-M365MessageCenterUpdates

M365 Message Center monitoring bot for telegram channels. Adopted for running from Azure Automation
Just register your bot using @BotFather and register Graph API app in Azure AD.
botFather
Please do not forget to add your Azure AD app and Telegram credentials.
You can specify your credentials from Azure Automation Secure Assets using these variables:
$GraphClientCreds = Get-AutomationPSCredential -Name 'APIMaster'
$TelegramClientCreds = Get-AutomationPSCredential -Name 'telegramToken'

Also you need to specify the telegram ChatID for your messages, additional chat ID for errors logs and ClientID (application ID) with TenantID from Azure Active Directory.
[string]$ChatID = '-1000000001' #Production chat ID
[string]$ErrorsHandlerChatId = '1' #Chat for errors log
Config_Screen

Link to the channel with messages: https://t.me/M365MessageCenter
TelegramExample