-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdtl_shutdown.json
87 lines (87 loc) · 2.5 KB
/
dtl_shutdown.json
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"newLabName": {
"type": "string",
"defaultValue": "lv-lab-shutdown"
},
"shutDownTime": {
"type": "string",
"defaultValue": "06:00"
},
"startupTime": {
"type": "string",
"defaultValue": "03:00"
},
"timeZoneId": {
"type": "string",
"defaultValue": "Eastern Standard Time"
}
},
"variables": {
"labId": "[resourceId('Microsoft.DevTestLab/labs', parameters('newLabName'))]"
},
"resources": [
{
"apiVersion": "2016-05-15",
"name": "[parameters('newLabName')]",
"type": "Microsoft.DevTestLab/labs",
"location": "[resourceGroup().location]",
"properties": {
"labStorageType": "Premium"
},
"resources": [
{
"apiVersion": "2016-05-15",
"name": "[concat(parameters('newLabName'), '/', 'LabVmsShutdown')]",
"type": "Microsoft.DevTestLab/labs/schedules",
"location": "[resourceGroup().location]",
"dependsOn": [
"[variables('labId')]"
],
"properties": {
"status": "Enabled",
"timeZoneId": "[parameters('timeZoneId')]",
"taskType": "LabVmsShutdownTask",
"notificationSettings": {
"status": "Disabled",
"timeInMinutes": 15
},
"dailyRecurrence": {
"time": "[replace(parameters('shutDownTime'),':','')]"
}
}
},
{
"apiVersion": "2017-04-26-preview",
"name": "[concat(parameters('newLabName'), '/', 'LabVmAutoStart')]",
"location": "[resourceGroup().location]",
"type": "microsoft.devtestlab/labs/schedules",
"dependsOn": [
"[variables('labId')]"
],
"properties": {
"status": "Enabled",
"timeZoneId": "[parameters('timeZoneId')]",
"weeklyRecurrence": {
"time": "[replace(parameters('startupTime'),':','')]",
"weekdays": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
]
},
"taskType": "LabVmsStartupTask",
"notificationSettings": {
"status": "Disabled",
"timeInMinutes": 15
}
}
}
]
}
]
}