Azure Information Protection

Azure Information Protection: Create an Email Classification Label

When we look at the different classifications we have available in Azure Information Protection, we see that most pre-built classification are categorized in financial, medical or privacy. When we are looking to classify and protect more generic data like an email address we need to rely on regular expressions to make this happen.

In this blog post we are going to cover how you can create a label that will scan for a valid email address.

  1. Login your
  2. Go to Azure Information Protection
  3. Click Add Label
  4. Define your label as you want it for visual marking etc.
  5. Click Add a new condition
  6. Click Custom
  7. Fill in the name of your condition e.g. EmailAddress
  8. Fill in the regular expression you want to use. For email address I tend to use: [A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}. This is a regular expression that will cover the majority of email address. There are going to be some false positives and true negatives. If you want to add more complexity there some very complex regular expressions available to cover it.
  9. Set Match as regular expression to On
  10. Set Match with case sensitive to Off
  11. Set Minimum number of occurrences to 1
  12. Set Count occurrences with unique values only to Off.

If you want to add more complexity to your label like protection, feel free to do so.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: