Skip to content

Commit 7f0de90

Browse files
authored
Merge pull request #100468 from Blackmist/fixing-cli-tutorial
updating steps to work with new CLI/SDK versions
2 parents 205bea2 + ec3fe33 commit 7f0de90

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

articles/machine-learning/tutorial-train-deploy-model-cli.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services: machine-learning
88
ms.service: machine-learning
99
ms.subservice: core
1010
ms.topic: conceptual
11-
ms.date: 12/04/2019
11+
ms.date: 01/08/2019
1212
---
1313

1414
# 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
208208
To register the dataset using the `dataset.json` file, use the following command:
209209

210210
```azurecli-interactive
211-
az ml dataset register -f dataset.json
211+
az ml dataset register -f dataset.json --skip-validation
212212
```
213213

214214
The output of this command is similar to the following JSON:
@@ -363,6 +363,9 @@ To deploy a model, use the following command:
363363
az ml model deploy -n myservice -m "mymodel:1" --ic inferenceConfig.yml --dc aciDeploymentConfig.yml
364364
```
365365

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+
366369
This command deploys a new service named `myservice`, using version 1 of the model that you registered previously.
367370

368371
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
409412
az ml service run -n myservice -d @testdata.json
410413
```
411414

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+
412422
The response from the command is similar to `[ 3 ]`.
413423

414424
## Clean up resources

0 commit comments

Comments
 (0)