Skip to content
SNOWGLOBE
All posts

DAB - Retrieve an object's ID value

Martin DebusPosted on LinkedIn

Are you configuring your Cluster IDs in Databricks Declarative Automation Bundles still per environment? Do this instead:

DABs support the lookup command. This enables to simply put in the name of the resource and the object-id is resolved automatically during runtime. This is very practical if you reference e.g. a SQL Warehouse in different workspaces with the same name.

The same pattern can also be applied to: alert, cluster_policy, cluster, dashboard, instance_pool, job, metastore, notification_destination, pipeline, query, service_principal, and warehouse.

So, go ahead and replace your hard-wired object-id with lookup!

Image for the post DAB - Retrieve an object's ID valueView on LinkedIn

Working on this in your platform?

SNOWGLOBE helps teams set up, grow and run Azure Databricks platforms.