The Azure Machine Learning SDK for Python provides the restore_snapshot()
method to download a zip file with the source code of an AzureML run. Assume that I am interested in inspecting a certain source file (programmatically), of which I already know the path. In that case I would prefer not to have to download the whole zip file, extract and locate the file but rather have a direct way to download just one file from the snapshotted source code. Is that possible?
Download particular source file from AzureML snapshot directly
97 views Asked by fuenfundachtzig At
1
Currently, there is no direct way to download a single file from the snapshotted source code of an AzureML run. The only way to do this is to download the whole zip file, extract it, and then locate the file that you want to download. However, one possible alternative can be by using the URI of the file and downloading the blob from storage with
connection string
.Below is sample code you can refer and modify according to your requirements:
With above code I was able to access a particular file from code.