From c7845aaca16d98e0b560619b1cf13a11bc7e8eb0 Mon Sep 17 00:00:00 2001 From: j-so Date: Fri, 12 Jun 2020 13:46:27 -0700 Subject: [PATCH] fail on deploy error' --- .pipelines/diabetes_regression-cd-deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pipelines/diabetes_regression-cd-deploy.yml b/.pipelines/diabetes_regression-cd-deploy.yml index f9dc8b63..ed91da3a 100644 --- a/.pipelines/diabetes_regression-cd-deploy.yml +++ b/.pipelines/diabetes_regression-cd-deploy.yml @@ -57,8 +57,9 @@ stages: scriptLocation: inlineScript workingDirectory: $(Build.SourcesDirectory)/$(SOURCES_DIR_TRAIN)/scoring inlineScript: | + set -e # fail on error + az ml model deploy --name $(ACI_DEPLOYMENT_NAME) --model '$(MODEL_NAME):$(MODEL_VERSION)' \ - --ic inference_config.yml \ --dc deployment_config_aci.yml \ -g $(RESOURCE_GROUP) --workspace-name $(WORKSPACE_NAME) \ --overwrite -v