forked from microsoft/MLOpsPython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iac-create-environment-pipeline-arm.yml
36 lines (33 loc) · 1.1 KB
/
iac-create-environment-pipeline-arm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# CI/PR Pipeline that deploys an ARM template to create or update the resources needed by the other pipelines.
trigger:
branches:
include:
- master
paths:
include:
- environment_setup/arm-templates/*
pr:
branches:
include:
- master
paths:
include:
- environment_setup/arm-templates/*
pool:
vmImage: "ubuntu-latest"
variables:
- group: devopsforai-aml-vg
- name: WORKSPACE_SKU # https://docs.microsoft.com/en-us/azure/machine-learning/overview-what-is-azure-ml#sku
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"