Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
set sku as variable in yaml
  • Loading branch information
mydiemho committed Jun 16, 2020
commit 6b07ba91de2cc5422fe170a78b8c3c3a06a21c1b
17 changes: 7 additions & 10 deletions .pipelines/diabetes_regression-variables-template.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Pipeline template that defines common runtime environment variables.
variables:

# Source Config
# The directory containing the scripts for training, evaluating, and registering the model
# The directory containing the scripts for training, evaluating, and registering the model
- name: SOURCES_DIR_TRAIN
value: diabetes_regression
# The path to the model training script under SOURCES_DIR_TRAIN
Expand All @@ -23,7 +22,7 @@ variables:
value: mlopspython
- name: DATASET_NAME
value: diabetes_ds
# Uncomment DATASTORE_NAME if you have configured non default datastore to point to your data
# Uncomment DATASTORE_NAME if you have configured non default datastore to point to your data
# - name: DATASTORE_NAME
# value: datablobstore
- name: DATASET_VERSION
Expand All @@ -50,25 +49,23 @@ variables:
# The name for the (docker/webapp) scoring image
- name: IMAGE_NAME
value: "diabetestrained"

# Optional. Used by a training pipeline with R on Databricks
- name: DB_CLUSTER_ID
value: ""

# These are the default values set in ml_service\util\env_variables.py. Uncomment and override if desired.
# Set to false to disable the evaluation step in the ML pipeline and register the newly trained model unconditionally.
# Set to false to disable the evaluation step in the ML pipeline and register the newly trained model unconditionally.
# - name: RUN_EVALUATION
# value: "true"
# Set to false to register the model regardless of the outcome of the evaluation step in the ML pipeline.
# Set to false to register the model regardless of the outcome of the evaluation step in the ML pipeline.
# - name: ALLOW_RUN_CANCEL
# value: "true"

# For debugging deployment issues. Specify a build id with the MODEL_BUILD_ID pipeline variable at queue time
# to skip training and deploy a model registered by a previous build.
# For debugging deployment issues. Specify a build id with the MODEL_BUILD_ID pipeline variable at queue time
# to skip training and deploy a model registered by a previous build.
- name: modelbuildid
value: $[coalesce(variables['MODEL_BUILD_ID'], variables['Build.BuildId'])]


# Flag to allow rebuilding the AML Environment after it was built for the first time. This enables dependency updates from conda_dependencies.yaml.
# - name: AML_REBUILD_ENVIRONMENT
# value: "false"
1 change: 0 additions & 1 deletion docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ The variable group should contain the following required variables. **Azure reso
| AZURE_RM_SVC_CONNECTION | azure-resource-connection | [Azure Resource Manager Service Connection](#create-an-azure-devops-service-connection-for-the-azure-resource-manager) name |
| WORKSPACE_SVC_CONNECTION | aml-workspace-connection | [Azure ML Workspace Service Connection](#create-an-azure-devops-azure-ml-workspace-service-connection) name |
| ACI_DEPLOYMENT_NAME | mlops-aci | [Azure Container Instances](https://azure.microsoft.com/en-us/services/container-instances/) name |
| WORKSPACE_SKU | basic | [Workspace Basic vs Enterprise](https://docs.microsoft.com/en-us/azure/machine-learning/overview-what-is-azure-ml#sku) |

Make sure you select the **Allow access to all pipelines** checkbox in the variable group configuration.

Expand Down
39 changes: 19 additions & 20 deletions environment_setup/iac-create-environment-pipeline-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,35 @@
trigger:
branches:
include:
- master
- master
paths:
include:
- environment_setup/arm-templates/*
- environment_setup/arm-templates/*
pr:
branches:
include:
- master
- master
paths:
include:
- environment_setup/arm-templates/*
- environment_setup/arm-templates/*

pool:
vmImage: 'ubuntu-latest'
vmImage: "ubuntu-latest"

variables:
- group: devopsforai-aml-vg

- group: devopsforai-aml-vg
- name: WORKSPACE_SKU # https://docs.microsoft.com/en-us/azure/machine-learning/overview-what-is-azure-ml#sku
Comment thread
dtzar marked this conversation as resolved.
value: basic

steps:
- task: AzureResourceGroupDeployment@2
inputs:
azureSubscription: '$(AZURE_RM_SVC_CONNECTION)'
action: 'Create Or Update Resource Group'
resourceGroupName: '$(RESOURCE_GROUP)'
location: $(LOCATION)
templateLocation: 'Linked artifact'
csmFile: '$(Build.SourcesDirectory)/environment_setup/arm-templates/cloud-environment.json'
overrideParameters: '-baseName $(BASE_NAME) -location $(LOCATION) -workspace $(WORKSPACE_NAME) -sku $(WORKSPACE_SKU)'
deploymentMode: 'Incremental'
displayName: 'Deploy MLOps resources to Azure'


- task: AzureResourceGroupDeployment@2
inputs:
azureSubscription: "$(AZURE_RM_SVC_CONNECTION)"
action: "Create Or Update Resource Group"
resourceGroupName: "$(RESOURCE_GROUP)"
location: $(LOCATION)
templateLocation: "Linked artifact"
csmFile: "$(Build.SourcesDirectory)/environment_setup/arm-templates/cloud-environment.json"
overrideParameters: "-baseName $(BASE_NAME) -location $(LOCATION) -workspace $(WORKSPACE_NAME) -sku $(WORKSPACE_SKU)"
deploymentMode: "Incremental"
displayName: "Deploy MLOps resources to Azure"