I am trying to register a dataset in Azure Machine Learning using the Python SDK. Here is the code that I have used:
from azureml.core import Dataset
testdata = Dataset.Tabular.from_delimited_files(default_store.path('test/prep.csv'))
testdata
The dataset is successfully created and I can see its details as below:
{
"source": [
"('workspaceblobstore', 'test/prep.csv')"
],
"definition": [
"GetDatastoreFiles",
"ParseDelimited",
"DropColumns",
"SetColumnTypes"
]
}
However, when I try to register the dataset using the register method
test_data_ds = testdata.register(workspace=ws,
name='testdata',
description='test data',
create_new_version=True)
I encounter the following error:
Failed to extract subscription information, Exception=AttributeError; 'Logger' object has no attribute 'activity_info'
I have made sure that my Azure ML SDK is up to date and my Azure subscription is active. I also have the necessary permissions to access the resources.