Monitoring Office 365 tenants with Azure Sentinel

Tobias Zimmergren
Tobias Zimmergren
💡🤖TIP: Check out the guidance for AI adoption on Azure!

Azure Sentinel is a product from Microsoft, offering a cloud-native SIEM service. Sentinel uses clever AI (Artificial Intelligence) to make your threat detection and responses faster and smarter.

A key feature with Azure Sentinel is that you can connect to other data sources. Microsoft has built-in support for ingesting data from a plethora of their own data sources, including:

  • Azure AD
  • Office 365
  • Cloud App Security
  • Azure Activity Log
  • Azure AD Identity Protection
  • Azure Information Protection (AIP)
  • Azure Advanced Threat Protection (ATP)
  • Azure Security Center
  • DNS
  • Microsoft Web Application Firewal (WAF)
  • Windows Firewall
  • Windows Security Events
  • and more...

In this post I'll talk about how you can enable Azure Sentinel in your subscription, and then connect it to your Office 365 tenant - this way we can ingest all the juicy data from Office 365 into our Sentinel service for easier and smarter insights.

Update June 2020:

According to updated documentation from Microsoft, you can no longer add additional tenants.

If you had previously connected multiple tenants to Azure Sentinel, using an older version of the Office 365 connector which supported this, you will be able to view and modify which logs you collect from each tenant. You will not be able to add additional tenants, but you can remove previously added tenants.
- https://docs.microsoft.com/en-us/azure/sentinel/connect-office-365#enable-the-office-365-log-connector

Update September 2020:

According to updated information from Microsoft, we can now also connect Microsoft Teams under the Office 365 connector. See the picture below.

Connect Microsoft Teams from the Office 365 connector in Azure Sentinel

Configure Azure Sentinel

To start using Azure Sentinel and ingest logs from other data sources we'll need to set up a new workspace. Let's do that now.

In my subscriptions I've found that either using the Search box, or just going the traditional route like this works well "All Services - Azure Sentinel" - I also starred it so it'll appear in my left navigation:

Azure Sentinel setup.

Once you've clicked on Azure Sentinel, you can go ahead and create a new LAW (Log Analytics Workspace). Sentinel does not work with default workspaces from Azure Security Center, which is why they're not listed here.

Create new Workspace for Azure Sentinel

Make the decisions about your naming, resource group and location in the following dialog and click OK. Once this is validated, you can click "Add Azure Sentinel" which will add Sentinel to this new workspace we just created.

The empty dashboard looks like this, and have a great UI for us to get started:

Azure Sentinel dashboard and Get Started guides.

At this point, we have Azure Sentinel up and runnig and connected to our new LAW (Log Analytics Workspace). Next up: Connect the Office 365 logs.

Connect Office 365 logs to Azure Sentinel

From the new dashboard, you can easily find and connect Office 365 like this:

Connecting Azure Sentinel to Office 365 logs.
  1. Data Connectors
  2. Search for "365" (or any other type of connector)
  3. Click "Open connector page"

Next up, we can configure the connector and we'll need to install the solution by clicking "Install solution" first, and after that we can start adding our tenants.

Please note that you'll need to be "Global Admin" or "Security Admin" on the workspace's tenant in Azure!

Azure Sentinel data connector for Office 365

Clicking "Install solution" is super quick and gives you a notification saying everything is fine and dandy:

Office 365 connector solution enabled in Azure Sentinel

Add Tenant

Now that the Azure Sentinel workspace is prepped, and the data connector for Office 365 is installed and enabled, we can add our tenant(s).

Click "Add tenant" and sign in with the account you'd like to authenticate with, to any given tenant you'd like to add. It will bring up a consent dialog to accept the permissions from the Sentinel conector:

Azure Sentinel Offie 365 Connector App requesting Read Only access

Once you've consented, you'll be presented with this very pretty (not) dialog. I'm sure this will improve soon:

office 365 tenant successfully on-boarded to the Azure Sentinel workspace

You'll see it when you hit the Refresh button, and it'll allow you to select which types of logs you'd like to ingest:

SharePoint and Exchange logs to be ingested by Azure Sentinel after connecting your Office 365 data connector

Tick the Exchange and SharePoint boxes, as per your requirements, and then click "Save".

At this point, we've connected the tenant - now we can go and digest the data in log analytics with the link in the connector:

Office 365 Data Connector in Azure Sentinel has successfully been configured.

Review the dashboard and overview

Going back to my Azure Sentinel dashboard, I can see an overview of what's been happening. Since I just connected and nothing has happened yet, it's fairly empty. The more data sources you connect and want to ingest here, the more clever insights you'll benefit from.

Azure Sentinel Overview - Showing an empty dashboard because nothing has happened yet.

Installing the Office 365 Dashboard in Azure Sentinel

With pre-defined Dashboards you can easily get started with seeing the most important data to your organization. You can easily customize what's appearing in the dashboards, but it's nice to get a running start.

Go to "Dashboards" and find "Office 365", then click "Install":

Office 365 Azure Sentinel Dashboard installation.

This built-in template for the Office 365 Dashboard contains vies for:

  • Office activity by Workload
  • Activities, grouped in various ways for easy digestion
  • Group activities
  • User activities
  • Admin activities
  • Create/Read/Update/Delete (CRUD) activities
  • Folder changes
  • File changes
  • Top 10 activities for SharePoint & OneDrive
  • Files downloaded (by extension)
  • Files uploaded (by extension)
  • Top 10 sites in SharePoint
  • Mailbox logins
  • External access activities
  • Mailbox activities by user type
  • And much more.

That's just a small portion of what's available right out of the box with the Azure Sentinel and Office 365 data connector integrations. This is some extremely beneficial data and insights for anyone responsible for technical operations and cloud governance, including handling your overall security posture.

Analytics - Rules and Rule Templates

Under the "Analytics" section, you can configure new Rule Templates to match criterias that are important for your organization, as well as use existing rules and activate them across your data.

I'll leave it to your to determine what rules you can and should implement for your organization, but it's a good thing to know about this feature.

Azure Sentinel Pricing

The pricing details of Azure Sentinel was made available with the launch of General Availability (GA), on September 24th 2019.

There's two available models:

  • Capacity Reservation - Fixed fee and predictable cost.
  • Pay-as-you-Go - Pay for the data ingested and data retention, which is based on Azure Log Analytics.

See the links below for additional insights into the costs.

That's all there's to it. Now you can configure more data sources, check out the playbooks, analytics, and browse through logs and a lot more.

Sentinel will hep you increase your general Security Posture in your Azure services, and any services you connect through the data sources. Having this single place of security-related data ingestion is amazingly helpful.

Here's some good related reading from Microsoft:

From the Microsoft Tech Community:

From other parts of the community:

Thanks for reading, I hope you've enjoyed this piece! Please leave a comment.

AzureSecurityOffice 365Azure Sentinel

Tobias Zimmergren Twitter

Hi, I'm Tobias! 👋 I write about Microsoft Azure, security, cybersecurity, compliance, cloud architecture, Microsoft 365, and general tech!

Reactions and mentions


Hi, I'm Tobias 👋

Tobias Zimmergren profile picture

Find out more about me.

Recent comments

Mastodon