Azure ML Studio: Create DATASET via REST API

Viewed 126

Please tell me how to create a Dataset via REST API.

There is a way to create a Datastore, but I can't find a Dataset.

1 Answers
  • You need to have a datastore to create a dataset.
  • For example, use the common dataset iris.csv and point to it in the path.
DATA_VERSION=$RANDOM
curl --location --request PUT "https://management.azure.com/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP/providers/Microsoft.MachineLearningServices/workspaces/$WORKSPACE/data/iris-data/versions/$DATA_VERSION?api-version=$API_VERSION" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data-raw "{
  \"properties\": {
    \"description\": \"Iris datset\",
    \"datasetType\": \"Simple\",
    \"path\": \"https://azuremlexamples.blob.core.windows.net/datasets/iris.csv\"
  }
}"

Please refer MS Doc and Create a dataset using the API for more information.

Related