Skip to content

Commit b83c49b

Browse files
Merge pull request #260940 from SturgeonMi/master
Update code example for how-to-read-write-data-v2
2 parents 9f5d04b + 05dd77a commit b83c49b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/machine-learning/how-to-read-write-data-v2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -994,14 +994,14 @@ from azure.ai.ml import Input
994994
from azure.ai.ml.constants import AssetTypes, InputOutputModes
995995
from azure.ai.ml import MLClient
996996
997-
ml_client = MLClient.from_config()
997+
ml_client = MLClient.from_config(credential=DefaultAzureCredential())
998998
999999
filedataset_asset = ml_client.data.get(name="<filedataset_name>", version="<version>")
10001000
10011001
my_job_inputs = {
10021002
"input_data": Input(
10031003
type=AssetTypes.MLTABLE,
1004-
path=filedataset_asset,
1004+
path=filedataset_asset.id,
10051005
mode=InputOutputModes.EVAL_MOUNT
10061006
)
10071007
}
@@ -1066,14 +1066,14 @@ from azure.ai.ml import Input
10661066
from azure.ai.ml.constants import AssetTypes, InputOutputModes
10671067
from azure.ai.ml import MLClient
10681068
1069-
ml_client = MLClient.from_config()
1069+
ml_client = MLClient.from_config(credential=DefaultAzureCredential())
10701070
10711071
filedataset_asset = ml_client.data.get(name="<tabulardataset_name>", version="<version>")
10721072
10731073
my_job_inputs = {
10741074
"input_data": Input(
10751075
type=AssetTypes.MLTABLE,
1076-
path=filedataset_asset,
1076+
path=filedataset_asset.id,
10771077
mode=InputOutputModes.DIRECT
10781078
)
10791079
}

0 commit comments

Comments
 (0)