Forum Discussion

spencer_sa's avatar
spencer_sa
Impactful Individual
2 years ago

Bulk deployment rule creation in deployment pipelines

I've got a development workspace with around 50 notebooks that I'm trying to use a deployment pipeline to move through test into production.
Each notebook has a development lakehouse as their default lakehouse.  I'm assuming that when I deploy this to test, the default lakehouse will remain as the development one - rather than the test.
I know I can create rules to change the default lakehouse on the deployment.  I am just balking at having to create 50 deployment rules that are effectively doing the same thing.  Is there a way of changing the default lakehouse 'in bulk' or creating the deployment rules in one go?  (Hells, even API calls might be better than this)

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi spencer_sa ,

    That's right, I think you can use the API to bulk update.

    First authenticate and get the deployment pipeline ID as well as the workspace. Create a script to update the deployment rules and finally deploy the changes to the target workspace.

     

    Best Regards,

    Ada Wang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.