cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Promoting assets from Dev workspace to Prod

StephanieAlba
Databricks Employee
Databricks Employee

What is the best way to promote Databricks objects from one workspace to another? For example, DABs are great for code and models. However, SQL alerts do not seem to fall into DABs. The API allows for retrieving queries and creating them via API in the new workspace, but when creating alerts on the queries, there appears to be no programmatic way to schedule them. Am I missing something?

5 REPLIES 5

Shazaamzaa
New Contributor III

Alerts are available as an object under the SQL task in a Workflow/job using DAB. I also see from the docs that creating and maintaining alerts via the API is still in Public Preview. So, I'd be sure to wait until GA prior to using it in production.

Shazaamzaa_0-1722902635552.png

Create a new job | Jobs API | REST API reference | Azure Databricks

 

I see. So, a SQL task can be an alert that is scheduled in a workflow using DABs. Thank you

NandiniN
Databricks Employee
Databricks Employee

We can leverage open source tools like https://github.com/prometheus/alertmanager#amtool to interact with alert manager.

NandiniN
Databricks Employee
Databricks Employee

https://docs.databricks.com/api/workspace/queries

https://docs.databricks.com/en/sql/dbsql-api-latest.html#changes-to-the-alerts-api

The API path is now api/2.0/sql/alerts, replacing the legacy path of /api/2.0/preview/sql/alerts.

https://docs.databricks.com/api/workspace/permissions

I believe this is what you are look for?

Sadly, no. The API does not have the ability to schedule the alerts. 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group