Replies: 4 comments 2 replies
-
First, make sure you have an ADLS Gen2 storage account connected to your workspace. Then use this code as a template. import sempy_labs as labs
dataset = '' # Enter the name of your semantic model
file_path = '' # Enter the file path you want to use for backing up the model. i.e.: 'MyModel.abf' or 'MyFolder/MyModel.abf'
workspace = '' # Enter the name of the workspace in which the semantic model exists
labs.backup_semantic_model(dataset=dataset, file_path=file_path, workpsace=workspace) |
Beta Was this translation helpful? Give feedback.
-
Service principal support is coming - it has been highly requested (#171). All the code for this library is open source. |
Beta Was this translation helpful? Give feedback.
-
@m-kovalsky I see that there is also the option to restore a dataset? The documentation shows that it only restores as the same dataset name. Is there a way to take an ".abf" file and save it as a new semantic model? dataset=dataset, file_path = file_path, allow_overwrite = True, workspace = workspace |
Beta Was this translation helpful? Give feedback.
-
In that function, the 'file_path' parameter is the name of the .abf (backup file) to restore. The 'dataset' parameter will be the name of the restored dataset. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to run this: sempy_labs.backup_semantic_model
But I don't see a notebook. Can anyone help me get the Python?
Beta Was this translation helpful? Give feedback.
All reactions