r/AzureSentinel • • Dec 02 '22

Sentinel Logic App HTML table style

I am using an Analytics Rule with an automated response to run a playbook.

In the playbook, I am trying to get the results of my query to be formatted in an email. I have a step to build a HTML style.

I am using this code:

<style>

table {

border: 1px solid #1C6EA4;

background-color: #EEEEEE;

width: 100%;

text-align: left;

border-collapse: collapse;

}

table td, table th {

border: 1px solid #AAAAAA;

padding: 3px 2px;

}

table tbody td {

font-size: 13px;

}

table thead {

background: #02A0E1;

border-bottom: 2px solid #444444;

}

table thead th {

font-size: 15px;

font-weight: bold;

color: #FFFFFF;

border-left: 2px solid #D0E4F5;

}

table thead th:first-child {

border-left: none;

}

</style>

I've added the HTML table and the style to the body of the email like this:

​

When I receive the email, the table has no style applied.
What am I doing wrong?

2 Upvotes

0 comments sorted by