cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Databricks Jobs Failure Notification to Azure DevOps as incident

noorbasha534
Valued Contributor II

Dear all,

Has anyone tried sending Databricks Jobs Failure Notification to Azure DevOps as incident? I see webhook as a OOTB destination for jobs. I am thinking to leverage it. But, like to hear any success stories of it or any other smart approaches....

1 REPLY 1

mark_ott
Databricks Employee
Databricks Employee

Yes, there are successful approaches and best practices for sending Databricks Job Failure notifications to Azure DevOps as incidents, primarily by leveraging the webhook feature as an out-of-the-box (OOTB) destination in Databricks Jobs. The workflow generally involves creating a webhook notification destination in Azure Databricks and triggering it upon job failure events. This strategy is commonly used not just for Azure DevOps, but also for integrating with other incident management or alert platforms.โ€‹

How It Works

  • Databricks allows you to configure jobs to send webhook notifications for several job events, including failure (jobs.on_failure), by posting a payload to a specified HTTP endpoint.โ€‹

  • You can set up a webhook destination in your workspace (Admin > Notifications), then reference it in the job notification settings, specifying which events (like job failures) should trigger a call.โ€‹

  • The payload includes information about the job, run ID, and event type, which can be handled by your Azure DevOps webhook receiver to create an incident or work item.โ€‹

Success Stories and Community Insights

  • In the Databricks community, users report success using webhook notifications with Azure DevOps, MS Teams, Slack, PagerDuty, and similar platforms for automated incident creation or alerting.โ€‹

  • Customization on the Azure DevOps side may involve creating a service hook subscription that listens for incoming webhooks and converts them into actionable incidents (work items or tasks).โ€‹

  • Some users mention using logic apps, Azure functions, or even Power Automate as middleware to transform and relay webhook data from Databricks into the correct Azure DevOps format if formatting or authentication needs arise.โ€‹

Best Practices and Tips

  • Ensure that only HTTPS endpoints are used for webhook destinations, and use credentials or secrets for added security.โ€‹

  • Use a middleware if you need to transform payloads or apply additional logic before creating incidents in Azure DevOps.

  • Always test the webhook endpoint independently before integrating in production to confirm payloads are being received and processed correctly.โ€‹

  • Limitations include a maximum of three webhook destinations per event type per job, and authentication setup for custom endpoints.โ€‹

Alternatives

  • For simpler integrations (e.g., only basic details in incidents), direct webhook integration should suffice.โ€‹

  • For richer workflows (such as updating incident status or more advanced alerting), consider middleware (Azure Logic Apps, Azure Functions) to process the incoming webhook notifications and interact with Azure DevOps REST APIs.โ€‹

Overall, leveraging webhooks as an OOTB feature is a smart and supported approach, with many users reporting effective integrations and automated incident creation from Databricks job failures in Azure DevOps.โ€‹