We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 718f9c7 commit 0180182Copy full SHA for 0180182
.pipelines/diabetes_regression-package-model-template.yml
@@ -27,14 +27,17 @@ steps:
27
set -e # fail on error
28
29
# Create model package using CLI
30
- IMAGE_LOCATION=$(\
+ PACKAGE_OUTPUT=$(\
31
az ml model package --workspace-name $(WORKSPACE_NAME) -g $(RESOURCE_GROUP) \
32
--model '${{ parameters.modelId }}' \
33
--entry-script '${{ parameters.scoringScriptPath }}' \
34
--cf '${{ parameters.condaFilePath }}' \
35
-v \
36
- --rt python --query 'location' -o tsv | tail -1)
+ --rt python --query 'location' -o tsv)
37
+
38
+ # Print output
39
+ echo $PACKAGE_OUTPUT
40
41
# Set environment variable
- echo $IMAGE_LOCATION
42
+ IMAGE_LOCATION=$($PACKAGE_OUTPUT | tail -1)
43
echo "##vso[task.setvariable variable=IMAGE_LOCATION]$IMAGE_LOCATION"
0 commit comments