-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
38 lines (35 loc) · 1.12 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
name: $(BuildDefinitionName)_$(SourceBranchName)_$(date:yyyyMMdd)$(rev:.r)
trigger:
branches:
include:
- '*'
variables:
- name: BuildPlatform
value: 'any cpu'
- name: BuildConfiguration
value: 'release'
stages:
- stage: create_policies
displayName: 'Create the policies'
#condition: and(always(), eq(variables['Build.Reason'], 'PullRequest'))
jobs:
- job: create_policies_on_azure
#variables:
#- group: feature-simplehttpapiapp
displayName: 'Job: Create policies on Azure'
pool:
vmImage: 'ubuntu-latest'
steps:
- task: AzureResourceManagerTemplateDeployment@3
inputs:
deploymentScope: Management Group
azureResourceManagerConnection: "policy-deploy1"
location: North Europe
templateLocation: Linked artifact
csmFile: $(System.DefaultWorkingDirectory)/policies/webappskus/policydef.json
deploymentMode: 'Incremental'
displayName: 'Create Policy Definition'