Skip to content

Azure Active Directory


Azure Active Directory is a cloud-based Identity and Rights management service. The service is developed and managed by Microsoft Corp.


This setup guide will show you how to forward events produced by Azure Active Directory service to SEKOIA.IO.

Theses changes have to be made from the Azure web portal (

Event hubs

As a prerequisite you need an Event Hubs (e.g. company-eventhub) and to choose an existing resourceGroup or create a new one (e.g. company-resource-group). You also need your Subscription ID if you don't have a default one.

Navigate to: Home > Cost Management + Billing > Subscriptions. From there, copy the relevant Subscription ID that will be used in the command line (e.g. uuid)

Then you use Azure powershell (within Cloud Shell interface for example): you will a create a global Event Hubs, then specific Event Hub (e.g. active-directory-event).

PS Azure:\> az eventhubs namespace create --name company-eventhub --resource-group company-resource-group --enable-kafka true --subscription uuid

PS Azure:\> az eventhubs eventhub create --resource-group company-resource-group --namespace-name company-eventhub --name active-directory-event --message-retention 3 --partition-count 4 --subscription uuid

Navigate to: Home > Event Hubs > company-eventhub - Shared access policies. From there, you can create a policy (e.g. RootManageSharedAccessKey) with the claims Manage, Send and Listen, and note the Primary Key that will be used as the SharedAccessKey.

Navigate to: Home > Event Hubs > company-eventhub > active-directory-event - Shared access policies. From there, you can create a policy (e.g. sekoiaio-nifi) with the claims Listen. Once created, click on the policy and save the Connection string-primary key, to be sent to SEKOIA.IO.

Navigate to: Home > Event Hubs > company-eventhub > active-directory-event - Consumer groups. From there, you can create a consumer group (e.g. sekoiaio-nifi).

Azure Active Directory

You need to activate and configure the Azure Active Directory diagnostic settings (e.g. company-ad).

Navigate to: Home > Azure Active Directory (e.g. company-ad) > Monitoring > Diagnostic settings:

  • Add a new diagnostic setting, and select Stream to an event huband click on configure.
  • Select the previously created Event hubs, Event Hub and SharedAccessKey.
  • In the log section, select AuditLogs and SignInLogs.
  • Choose a name for this configuration and click on Save.

Enjoy your events

You can send to Sekoia the Connection string-primary key previously mentioned.

Once the configuration has been done on Sekoia side, you can go to the events page to watch your incoming events.

Further Readings