-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathVM-Rolling-Lifecycle-Sample.yaml
46 lines (39 loc) · 1.17 KB
/
VM-Rolling-Lifecycle-Sample.yaml
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
trigger: none
stages:
- stage: Deploy
displayName: Deploy stage
jobs:
- deployment: VMDeploy
displayName: Deploy to VM job
pool: Default
environment:
name: Environment2
resourceType: VirtualMachine
strategy:
rolling:
maxBatchSize: 2
preDeploy:
steps:
- script: echo Hello, world! This is pre-deploy
displayName: 'Run a one-line script'
deploy:
steps:
- script: echo Hello, world! This is deploy
displayName: 'Run a one-line script'
routeTraffic:
steps:
- script: echo Hello, world! This is routeTraffic
displayName: 'Run a one-line script'
postRouteTraffic:
steps:
- script: echo Hello, world! This is postRouteTraffic
displayName: 'Run a one-line script'
on:
failure:
steps:
- script: echo Hello, world! This is on failure
displayName: 'Run a one-line script'
success:
steps:
- script: echo Hello, world! This is on success
displayName: 'Run a one-line script'