-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathNew-DevTestLab.json
81 lines (81 loc) · 2.28 KB
/
New-DevTestLab.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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"devTestLabName": {
"type": "string",
"metadata": {
"description": "The name of the DevTest Lab to create"
}
},
"region": {
"type": "string",
"defaultValue": "westeurope",
"metadata": {
"description": "The Azure region for the DevTest Lab"
}
},
"shutdowntime": {
"type": "string",
"defaultValue": "1900",
"metadata": {
"description": "Shutdown Time for the lab in HHMM format"
}
},
"timezoneid": {
"type": "string",
"defaultValue": "W. Europe Standard Time",
"metadata": {
"description": "Time Zone Id for shutdown as W. Europe Standard Time"
}
}
},
"variables": {
"schedules_labvmsshutdown_name": "[concat(parameters('devTestLabName'), '/labvmsshutdown')]",
"labVirtualNetworkName": "[concat('Dtl', parameters('devTestLabName'))]"
},
"resources": [
{
"apiVersion": "2016-05-15",
"type": "Microsoft.DevTestLab/labs",
"name": "[parameters('devTestLabName')]",
"location": "[parameters('region')]",
"properties": {
"labStorageType": "Premium"
},
"resources": [
{
"apiVersion": "2016-05-15",
"name": "[variables('labVirtualNetworkName')]",
"type": "virtualNetworks",
"dependsOn": [
"[resourceId('Microsoft.DevTestLab/labs', parameters('devTestLabName'))]"
]
},
{
"type": "schedules",
"name": "labvmsshutdown",
"apiVersion": "2016-05-15",
"location": "westeurope",
"properties": {
"status": "Enabled",
"taskType": "LabVmsShutdownTask",
"dailyRecurrence": {
"time": "[parameters('shutdowntime')]"
},
"timeZoneId": "[parameters('timezoneid')]"
},
"dependsOn": [
"[resourceId('microsoft.devtestlab/labs', parameters('devTestLabName'))]"
]
}
]
}
],
"outputs": {
"labId": {
"type": "string",
"value": "[resourceId('Microsoft.DevTestLab/labs', parameters('devTestLabName'))]"
}
}
}