Missing support for most resource types in deployment bind/unbind
commands
#2365
Labels
DABs
DABs related issues
deployment bind/unbind
commands
#2365
Describe the issue
The
databricks bundle deployment bind
andunbind
commands only support jobs, pipelines, and apps. It does not support any other resource types managed by DABs, such as clusters, dashboards, schemas, volumes, experiments, models...Configuration
minimal DAB (using schema as an example)
Steps to reproduce the behavior
If the DAB has already been applied, and I wish to remove the schema from the DAB's management: run
databricks bundle deployment unbind schemas.test
If the schema already existed before the DAB is created, and I want to add the schema into DAB management, run
databricks bundle deployment bind schemas.text [schema id]
Expected Behavior
The schema (or another resource) should be bound/unbound to the DAB successfully.
Actual Behavior
Get an error:
Note that this error appears for any of the resource types I listed above, and regardless of what I use as the resource key, or the remote resource ID.
OS and CLI version
Windows/WSL Ubuntu, CLI v0.241.2
Is this a regression?
No
Debug Logs
Additional Details
When poking around the databricks CLI code, I've noticed that the bind/unbind command uses the FindResourceByConfigKey function, which is separately hardcoded for a few resource type. I suspect this is why it won't resolve any resources other than the ones listed here
The text was updated successfully, but these errors were encountered: