I want to upload the local files to azure-ml notebook tab.
In azure-ml GUI we have options to upload files and folders, can we do the same thing using python sdk!
I want to upload the local files to azure-ml notebook tab.
In azure-ml GUI we have options to upload files and folders, can we do the same thing using python sdk!
After reproducing from my end, I could able to get this done using upload_files
method. Below is complete code that worked for me.
from azureml.core import Workspace
ws = Workspace(wsName='<YOUR_WORKSPACE_NAME>',
subId='<YOUR_SUBSCRIPTION_ID>',
rg='<YOUR_RESOURCE_GROUP_NAME>')
ds = ws.get_default_datastore()
print(ds)
ds.upload_files(files=["abc.txt"], target_path='\\', overwrite=True)