generated from Azure/ARM-private-deployment
-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
50 lines (45 loc) · 1.6 KB
/
azure-pipelines.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
trigger:
- main
pool:
vmImage: ubuntu-latest
variables:
- name: location
value: northeurope
- name: templateSpecResourceGroup
value: template-specs
- name: templateSpecName
value: arm-private-deployment-ts
- name: templateSpecVersion
value: "0.1"
- name: deployResourceGroup
value: arm-private-deployment-2
jobs:
- job: armPrivateDeployment
steps:
- task: AzureCLI@2
displayName: Create Resource Group
inputs:
azureSubscription: "$(armConnection)"
scriptType: "bash"
scriptLocation: "scriptPath"
scriptPath: "./scripts/1.rg-create.sh"
arguments: "-r $(templateSpecResourceGroup) -l $(location)"
workingDirectory: "./templates"
- task: AzureCLI@2
displayName: Create Azure Template Spec
inputs:
azureSubscription: "$(armConnection)"
scriptType: "bash"
scriptLocation: "scriptPath"
scriptPath: "./scripts/2.ts-create.sh"
arguments: '-r $(templateSpecResourceGroup) -l $(location) -v "$(templateSpecVersion)" -t "azuredeploy.json" -n $(templateSpecName)'
workingDirectory: "./templates"
- task: AzureCLI@2
displayName: Deploy Azure Template Spec
inputs:
azureSubscription: "$(armConnection)"
scriptType: "bash"
scriptLocation: "scriptPath"
scriptPath: "./scripts/3.deploy-ts.sh"
arguments: '-r $(deployResourceGroup) -l $(location) -n $(templateSpecName) -t $(templateSpecResourceGroup) -v "$(templateSpecVersion)"'
workingDirectory: "./templates"