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
Valued Contributor III
Valued Contributor III

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?

6 REPLIES 6

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

 

StephanieAlba
Valued Contributor III
Valued Contributor III

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

NandiniN
Honored Contributor
Honored Contributor

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

NandiniN
Honored Contributor
Honored Contributor

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?

StephanieAlba
Valued Contributor III
Valued Contributor III

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

Kaniz_Fatma
Community Manager
Community Manager

Hi @StephanieAlba, Please review the responses and let us know which best addresses your question. If the response resolves your issue, kindly mark it as the accepted solution. 

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