Skip to content

Instantly share code, notes, and snippets.

@JarroVGIT
Last active June 21, 2020 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JarroVGIT/d06cfcebccd479331259408fb6c3153d to your computer and use it in GitHub Desktop.
Save JarroVGIT/d06cfcebccd479331259408fb6c3153d to your computer and use it in GitHub Desktop.
This is an example payload to be send to an MS Teams webhook URL.
{
"@type": "MessageCard",
"@context": "https://schema.org/extensions",
"summary": "ADF Alert",
"themeColor": "eb3434",
"title": "Azure DataFactory notification alert!",
"sections": [
{
"activityTitle": "Pipeline failed",
"activitySubtitle": "UTC: $timestamp_of_failure$",
"activityImage": "https://azurebloggingresources.blob.core.windows.net/images/error-red-cross.png",
"facts": [
{
"name": "Data Factory:",
"value": "$adf_name$"
},
{
"name": "Pipeline",
"value": "$pipeline_name$"
},
{
"name": "Run ID",
"value": "$pipeline_run_id$"
}
],
"text": "<error_message>"
}
],
"potentialAction": [
{
"@type": "OpenUri",
"name": "Go to Pipeline Run",
"targets": [
{
"os": "default",
"uri": "https://adf.azure.com"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment