1
+ {
2
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#" ,
3
+ "contentVersion" : " 1.0.0.0" ,
4
+ "metadata" : {
5
+ "_generator" : {
6
+ "name" : " bicep" ,
7
+ "version" : " 0.28.1.47646" ,
8
+ "templateHash" : " 18117889941546285249"
9
+ }
10
+ },
11
+ "parameters" : {
12
+ "name" : {
13
+ "type" : " string" ,
14
+ "metadata" : {
15
+ "description" : " The name of the resource."
16
+ }
17
+ },
18
+ "location" : {
19
+ "type" : " string" ,
20
+ "defaultValue" : " [resourceGroup().location]" ,
21
+ "metadata" : {
22
+ "description" : " The location resources will be deployed."
23
+ }
24
+ }
25
+ },
26
+ "resources" : [
27
+ {
28
+ "type" : " Microsoft.DesktopVirtualization/hostPools" ,
29
+ "apiVersion" : " 2024-04-03" ,
30
+ "name" : " [parameters('name')]" ,
31
+ "location" : " [parameters('location')]" ,
32
+ "identity" : {
33
+ "type" : " SystemAssigned"
34
+ },
35
+ "properties" : {
36
+ "hostPoolType" : " Pooled" ,
37
+ "loadBalancerType" : " DepthFirst" ,
38
+ "preferredAppGroupType" : " Desktop" ,
39
+ "maxSessionLimit" : 10 ,
40
+ "agentUpdate" : {
41
+ "type" : " Scheduled" ,
42
+ "maintenanceWindowTimeZone" : " AUS Eastern Standard Time" ,
43
+ "maintenanceWindows" : [
44
+ {
45
+ "dayOfWeek" : " Sunday" ,
46
+ "hour" : 1
47
+ }
48
+ ]
49
+ }
50
+ }
51
+ },
52
+ {
53
+ "type" : " Microsoft.DesktopVirtualization/scalingPlans" ,
54
+ "apiVersion" : " 2024-04-03" ,
55
+ "name" : " [parameters('name')]" ,
56
+ "location" : " [parameters('location')]" ,
57
+ "properties" : {
58
+ "timeZone" : " E. Australia Standard Time" ,
59
+ "hostPoolType" : " Pooled" ,
60
+ "hostPoolReferences" : [
61
+ {
62
+ "hostPoolArmPath" : " [resourceId('Microsoft.DesktopVirtualization/hostPools', parameters('name'))]" ,
63
+ "scalingPlanEnabled" : true
64
+ }
65
+ ],
66
+ "schedules" : [
67
+ {
68
+ "rampUpStartTime" : {
69
+ "hour" : 8 ,
70
+ "minute" : 0
71
+ },
72
+ "peakStartTime" : {
73
+ "hour" : 9 ,
74
+ "minute" : 0
75
+ },
76
+ "rampDownStartTime" : {
77
+ "hour" : 18 ,
78
+ "minute" : 0
79
+ },
80
+ "offPeakStartTime" : {
81
+ "hour" : 22 ,
82
+ "minute" : 0
83
+ },
84
+ "name" : " weekdays_schedule" ,
85
+ "daysOfWeek" : [
86
+ " Monday" ,
87
+ " Tuesday" ,
88
+ " Wednesday" ,
89
+ " Thursday" ,
90
+ " Friday"
91
+ ],
92
+ "rampUpLoadBalancingAlgorithm" : " BreadthFirst" ,
93
+ "rampUpMinimumHostsPct" : 20 ,
94
+ "rampUpCapacityThresholdPct" : 60 ,
95
+ "peakLoadBalancingAlgorithm" : " DepthFirst" ,
96
+ "rampDownLoadBalancingAlgorithm" : " DepthFirst" ,
97
+ "rampDownMinimumHostsPct" : 10 ,
98
+ "rampDownCapacityThresholdPct" : 90 ,
99
+ "rampDownForceLogoffUsers" : true ,
100
+ "rampDownWaitTimeMinutes" : 30 ,
101
+ "rampDownNotificationMessage" : " You will be logged off in 30 min. Make sure to save your work." ,
102
+ "rampDownStopHostsWhen" : " ZeroSessions" ,
103
+ "offPeakLoadBalancingAlgorithm" : " DepthFirst"
104
+ }
105
+ ]
106
+ },
107
+ "dependsOn" : [
108
+ " [resourceId('Microsoft.DesktopVirtualization/hostPools', parameters('name'))]"
109
+ ]
110
+ }
111
+ ]
112
+ }
0 commit comments