forked from microsoft/MLOpsPython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiac-create-environment.yml
More file actions
36 lines (30 loc) · 831 Bytes
/
iac-create-environment.yml
File metadata and controls
36 lines (30 loc) · 831 Bytes
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
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
steps:
- task: AzureResourceGroupDeployment@2
inputs:
azureSubscription: 'AzureResourceConnection'
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)'
deploymentMode: 'Incremental'
displayName: 'Deploy MLOps resources to Azure'