cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy a script from the current subscription to new subscription

Mec_Mec
New Contributor II

I would like to check if there is a process to copy a script/code or migrate the script from the current subscription of the Azure Databricks - Notebooks to new subscription of Databricks (new notebook).

1 ACCEPTED SOLUTION

Accepted Solutions

Ryan_Chynoweth
Honored Contributor III

@Michelle Rivera​  - I would also look into version control for your notebooks. The Databricks repos are a great way to do this but you can do it in the workspace as well.

With version control you would be able to clone the repository into the new workspace.

View solution in original post

6 REPLIES 6

Prabakar
Esteemed Contributor III
Esteemed Contributor III

Hi Mec Mec , we have databricks migration too that will help you to migrate all the notebooks.

https://github.com/databrickslabs/migrate

If your requirement is to copy only a single notebook you can export it from the old workspace and import it to the new one.

image 

image 

To export a folder you can do the below:

image 

Please refer to the below link for more information.

https://docs.databricks.com/notebooks/notebooks-manage.html#notebook-external-formats

Mec_Mec
New Contributor II

We will need to copy the script from the notebook then transfer or migrate to a new notebook (New Subscription, new databricks)

Hubert-Dudek
Esteemed Contributor III

as @Prabakar Ammeappin​ said just use https://github.com/databrickslabs/migrate or just use export option in notebook (in File top menu) or go to workspace click arrow and choose export (possible for both directory and notebook)

Ryan_Chynoweth
Honored Contributor III

@Michelle Rivera​  - I would also look into version control for your notebooks. The Databricks repos are a great way to do this but you can do it in the workspace as well.

With version control you would be able to clone the repository into the new workspace.

Mec_Mec
New Contributor II

how quickly move the Databricks notebooks from one account to another?

Ryan_Chynoweth
Honored Contributor III

Moving notebooks from one workspace to another is fast if you programmatically do it. If you use the REST APIs or Repos it will take very little time. If you decide to manually export/import it could take longer.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.