G. Young
G. Young

Reputation: 41

Azure Synapse Notebook Folders Structure not saved in GitHub

My Synapse Workspace is configured with GitHub. The code is organized in folders under "NoteBook". Example: Under Notebook, Dev1 folder contains notebook1 and notebook2. Dev2 folder contains notebook3 and notebook4

When Synapse Publishes, the GitHub Repo does not maintain the folder structure. All 4 files are under "repo_name/notebook/ notebook1, notebook2,notebook3, notebook4

How can do I configure Synapse GitHub to keep the folder structure?

Upvotes: 0

Views: 348

Answers (1)

Joel Cochran
Joel Cochran

Reputation: 7758

The short answer is you don't. When you save a notebook (or SQL script, or anything else for that matter), you are actually saving a JSON representation of the asset. The "folders" in Synapse are not actually folders, but rather properties in the JSON:

enter image description here

This is why file names need to be globally unique, so you can't have two "Notebook1" files in different folders. Again, same for SQL scripts, datasets, pipelines, etc.

Upvotes: 2

Related Questions