You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/machine-learning/tutorial-train-deploy-model-cli.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ services: machine-learning
8
8
ms.service: machine-learning
9
9
ms.subservice: core
10
10
ms.topic: conceptual
11
-
ms.date: 12/04/2019
11
+
ms.date: 01/08/2019
12
12
---
13
13
14
14
# Tutorial: Train and deploy a model from the CLI
@@ -208,7 +208,7 @@ To train a model, you can provide the training data using a dataset. To create a
208
208
To register the dataset using the `dataset.json` file, use the following command:
209
209
210
210
```azurecli-interactive
211
-
az ml dataset register -f dataset.json
211
+
az ml dataset register -f dataset.json --skip-validation
212
212
```
213
213
214
214
The output of this command is similar to the following JSON:
@@ -363,6 +363,9 @@ To deploy a model, use the following command:
363
363
az ml model deploy -n myservice -m "mymodel:1" --ic inferenceConfig.yml --dc aciDeploymentConfig.yml
364
364
```
365
365
366
+
> [!NOTE]
367
+
> You may receive a warning about "Failed to check LocalWebservice existence". You can safely ignore this, as you are not deploying a local web service.
368
+
366
369
This command deploys a new service named `myservice`, using version 1 of the model that you registered previously.
367
370
368
371
The `inferenceConfig.yml` file provides information on how to perform inference, such as the entry script (`score.py`) and software dependencies. For more information on the structure of this file, see the [Inference configuration schema](reference-azure-machine-learning-cli.md#inference-configuration-schema). For more information on entry scripts, see [Deploy models with the Azure Machine Learning](how-to-deploy-and-where.md#prepare-to-deploy).
@@ -409,6 +412,13 @@ While you can create a client application to call the endpoint, the machine lear
409
412
az ml service run -n myservice -d @testdata.json
410
413
```
411
414
415
+
> [!TIP]
416
+
> If you use PowerShell, use the following command instead:
417
+
>
418
+
> ```powershell
419
+
> az ml service run -n myservice -d `@testdata.json
420
+
> ```
421
+
412
422
The response from the command is similar to `[ 3 ]`.
0 commit comments