assets/AdaptiveCardPayloadTemplate.json

{
    "type": "AdaptiveCard",
    "body": [
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": "auto",
                    "items": [
                        {
                            "type": "Image",
                            "url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAGYktHRAD/AP8A/6C9p5MAAAAHdElNRQfoBwETGBnET6WKAAAIZUlEQVRYw82Za4xdVRXHf2vfO8NMKdNSKYRadSjalkeHV4vQFmmUgBKsBCX6BQM+El/4oVZFbSLhEUxFP0iIJqDEmPhBSTRgIGpKNAWNpIWhtYIFhkcsaLGd6bSdTufuvf5+OPvcOXem094pQ+QkO+ece85Z+7/++7/WXntfY4aP4TsXQACSYV1xIdge0KGT1v9nxvoIMwr4toXgBjFATVcrhbvkzJLbjBJTnwkjunUN++MAREGnAugm3Dbith0YmVHEMwF639cXMTz6EgTDoJOxsI7ABkwnAv/FGHtbgW58fwEjrwMEMO/GbQNiPU4nGMA+P1xLoSu9fUCPvDoLagLoRuFWBa3DrI4pY2bE6g7xbaLpoS8sBhdmdAo2INbhJeAmyMMAmlnMxwd66DNLwYWbgsnWWbD1BBWAsZJlAIf82/8T9NAN54AKLBbDTQRtkOjEwawE3JRHx0TAQzctbbmf+8Bzby3oweuXkV7rpLZgFFxXEnQnQSdiQBBqarnJdhfZB4ChT59dkB9Uy5o5rgidHtNu1OYfhmiLqXE3stNw0dRxCbpJruYgMyzDTqF45lyC8TKw63hAtz0jDq49v4ARw2wlu0MxLCNakRlSgJRnwmYziGEeKXQSczdB4HYCbp8l2ulEY+gTfW8N6L1XXUQzyJJ9nmTXEQ01DMWAGgaNKtimA6cSbRbRGPx4X/F+wxarYR9WDGcpBpSmH6TtMe0GsQajYTkxfI0YaqTMcAaoaLkF1AjFOYbT1AinqBEKp5JBspWkcDrRrmEsdGAweM0FMwt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VQxOToyNDoyNSswMDowMO9rNdcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjQtMDctMDFUMTk6MjQ6MjUrMDA6MDCeNo1rAAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDI0LTA3LTAxVDE5OjI0OjI1KzAwOjAwySOstAAAAABJRU5ErkJggg==",
                            "size": "Small"
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "TextBlock",
                            "size": "Medium",
                            "weight": "Bolder",
                            "text": "${$root.title}"
                        },
                        {
                            "type": "TextBlock",
                            "text": "${$root.description}",
                            "wrap": true,
                            "size": "Small",
                            "isSubtle": true,
                            "spacing": "None"
                        }
                    ]
                }
            ]
        },
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": "auto",
                    "spacing": "None",
                    "horizontalAlignment": "Left",
                    "minHeight": "15px",
                    "verticalContentAlignment": "Center",
                    "rtl": false,
                    "items": [
                        {
                            "type": "Image",
                            "url": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iY3VycmVudENvbG9yIiBhcmlhLWhpZGRlbj0idHJ1ZSIgZGF0YS1zbG90PSJpY29uIiBjbGFzcz0idHJlbW9yLUJhZGdlLWljb24gc2hyaW5rLTAgLW1sLTEgbXItMS41IGgtNCB3LTQiPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTQuNSAyLjI1YS43NS43NSAwIDAgMCAwIDEuNXYxNi41aC0uNzVhLjc1Ljc1IDAgMCAwIDAgMS41aDE2LjVhLjc1Ljc1IDAgMCAwIDAtMS41aC0uNzVWMy43NWEuNzUuNzUgMCAwIDAgMC0xLjVoLTE1Wk05IDZhLjc1Ljc1IDAgMCAwIDAgMS41aDEuNWEuNzUuNzUgMCAwIDAgMC0xLjVIOVptLS43NSAzLjc1QS43NS43NSAwIDAgMSA5IDloMS41YS43NS43NSAwIDAgMSAwIDEuNUg5YS43NS43NSAwIDAgMS0uNzUtLjc1Wk05IDEyYS43NS43NSAwIDAgMCAwIDEuNWgxLjVhLjc1Ljc1IDAgMCAwIDAtMS41SDlabTMuNzUtNS4yNUEuNzUuNzUgMCAwIDEgMTMuNSA2SDE1YS43NS43NSAwIDAgMSAwIDEuNWgtMS41YS43NS43NSAwIDAgMS0uNzUtLjc1Wk0xMy41IDlhLjc1Ljc1IDAgMCAwIDAgMS41SDE1QS43NS43NSAwIDAgMCAxNSA5aC0xLjVabS0uNzUgMy43NWEuNzUuNzUgMCAwIDEgLjc1LS43NUgxNWEuNzUuNzUgMCAwIDEgMCAxLjVoLTEuNWEuNzUuNzUgMCAwIDEtLjc1LS43NVpNOSAxOS41di0yLjI1YS43NS43NSAwIDAgMSAuNzUtLjc1aDQuNWEuNzUuNzUgMCAwIDEgLjc1Ljc1djIuMjVhLjc1Ljc1IDAgMCAxLS43NS43NWgtNC41QS43NS43NSAwIDAgMSA5IDE5LjVaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjwvcGF0aD48L3N2Zz4=",
                            "width": "16px",
                            "backgroundColor": "#fdf1e5"
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "${$root.run.TenantName} (${$root.run.TenantId})",
                            "wrap": true,
                            "spacing": "None",
                            "horizontalAlignment": "Left",
                            "size": "Small",
                            "weight": "Default",
                            "color": "Attention",
                            "isSubtle": true,
                            "fontType": "Default"
                        }
                    ],
                    "horizontalAlignment": "Left"
                }
            ],
            "spacing": "None",
            "horizontalAlignment": "Center",
            "minHeight": "6px",
            "style": "emphasis"
        },
        {
            "type": "Container",
            "items": [
                {
                    "type": "TextBlock",
                    "text": "Test summary",
                    "wrap": true,
                    "spacing": "Large",
                    "style": "heading",
                    "size": "Large",
                    "weight": "Bolder"
                },
                {
                    "type": "ColumnSet",
                    "columns": [
                        {
                            "type": "Column",
                            "width": "stretch",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "Total tests",
                                    "wrap": true,
                                    "isSubtle": true,
                                    "weight": "Lighter",
                                    "size": "Small",
                                    "fontType": "Default",
                                    "style": "columnHeader"
                                },
                                {
                                    "type": "TextBlock",
                                    "text": "${$root.run.TotalCount}",
                                    "wrap": true,
                                    "weight": "Bolder",
                                    "size": "Large"
                                }
                            ]
                        },
                        {
                            "type": "Column",
                            "width": "stretch",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "Passed",
                                    "wrap": true,
                                    "isSubtle": true,
                                    "weight": "Lighter",
                                    "size": "Small",
                                    "fontType": "Default",
                                    "style": "columnHeader"
                                },
                                {
                                    "type": "TextBlock",
                                    "text": "${$root.run.PassedCount}",
                                    "wrap": true,
                                    "size": "Large",
                                    "weight": "Bolder"
                                }
                            ]
                        },
                        {
                            "type": "Column",
                            "width": "stretch",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "Failed",
                                    "wrap": true,
                                    "isSubtle": true,
                                    "weight": "Lighter",
                                    "size": "Small",
                                    "fontType": "Default",
                                    "style": "columnHeader"
                                },
                                {
                                    "type": "TextBlock",
                                    "text": "${$root.run.FailedCount}",
                                    "wrap": true,
                                    "size": "Large",
                                    "weight": "Bolder"
                                }
                            ]
                        },
                        {
                            "type": "Column",
                            "width": "stretch",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "Not tested",
                                    "wrap": true,
                                    "isSubtle": true,
                                    "weight": "Lighter",
                                    "size": "Small",
                                    "fontType": "Default",
                                    "style": "columnHeader"
                                },
                                {
                                    "type": "TextBlock",
                                    "text": "${$root.run.NotRunCount}",
                                    "wrap": true,
                                    "size": "Large",
                                    "weight": "Bolder"
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "type": "ActionSet",
            "actions": [
                {
                    "type": "Action.OpenUrl",
                    "title": "Full test results",
                    "url": "${$run.TestResultURL}",
                    "tooltip": "Full test results of the Maester run.",
                    "style": "positive",
                    "iconUrl": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzZjNzI4MSIgYXJpYS1oaWRkZW49InRydWUiIGRhdGEtc2xvdD0iaWNvbiIgY2xhc3M9InRyZW1vci1JY29uLWljb24gc2hyaW5rLTAgaC01IHctNSI+PHBhdGggZD0iTTMuMzc1IDNDMi4zMzkgMyAxLjUgMy44NCAxLjUgNC44NzV2Ljc1YzAgMS4wMzYuODQgMS44NzUgMS44NzUgMS44NzVoMTcuMjVjMS4wMzUgMCAxLjg3NS0uODQgMS44NzUtMS44NzV2LS43NUMyMi41IDMuODM5IDIxLjY2IDMgMjAuNjI1IDNIMy4zNzVaIj48L3BhdGg+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtMy4wODcgOSAuNTQgOS4xNzZBMyAzIDAgMCAwIDYuNjIgMjFoMTAuNzU3YTMgMyAwIDAgMCAyLjk5NS0yLjgyNEwyMC45MTMgOUgzLjA4N1ptNi4xNjMgMy43NUEuNzUuNzUgMCAwIDEgMTAgMTJoNGEuNzUuNzUgMCAwIDEgMCAxLjVoLTRhLjc1Ljc1IDAgMCAxLS43NS0uNzVaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjwvcGF0aD48L3N2Zz4="
                }
            ],
            "separator": true,
            "id": "1"
        },
        {
            "type": "TextBlock",
            "text": "Maester ${$root.run.ModuleVersion}",
            "wrap": true,
            "spacing": "Large",
            "separator": true,
            "size": "Small",
            "weight": "Lighter",
            "isSubtle": true,
            "color": "Light"
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5"
}