{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "metadata": { "_generator": { "name": "bicep", "version": "0.28.1.47646", "templateHash": "18117889941546285249" } }, "parameters": { "name": { "type": "string", "metadata": { "description": "The name of the resource." } }, "location": { "type": "string", "defaultValue": "[resourceGroup().location]", "metadata": { "description": "The location resources will be deployed." } } }, "resources": [ { "type": "Microsoft.DesktopVirtualization/hostPools", "apiVersion": "2024-04-03", "name": "[parameters('name')]", "location": "[parameters('location')]", "identity": { "type": "SystemAssigned" }, "properties": { "hostPoolType": "Pooled", "loadBalancerType": "DepthFirst", "preferredAppGroupType": "Desktop", "maxSessionLimit": 10, "agentUpdate": { "type": "Scheduled", "maintenanceWindowTimeZone": "AUS Eastern Standard Time", "maintenanceWindows": [ { "dayOfWeek": "Sunday", "hour": 1 } ] } } }, { "type": "Microsoft.DesktopVirtualization/scalingPlans", "apiVersion": "2024-04-03", "name": "[parameters('name')]", "location": "[parameters('location')]", "properties": { "timeZone": "E. Australia Standard Time", "hostPoolType": "Pooled", "hostPoolReferences": [ { "hostPoolArmPath": "[resourceId('Microsoft.DesktopVirtualization/hostPools', parameters('name'))]", "scalingPlanEnabled": true } ], "schedules": [ { "rampUpStartTime": { "hour": 8, "minute": 0 }, "peakStartTime": { "hour": 9, "minute": 0 }, "rampDownStartTime": { "hour": 18, "minute": 0 }, "offPeakStartTime": { "hour": 22, "minute": 0 }, "name": "weekdays_schedule", "daysOfWeek": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" ], "rampUpLoadBalancingAlgorithm": "BreadthFirst", "rampUpMinimumHostsPct": 20, "rampUpCapacityThresholdPct": 60, "peakLoadBalancingAlgorithm": "DepthFirst", "rampDownLoadBalancingAlgorithm": "DepthFirst", "rampDownMinimumHostsPct": 10, "rampDownCapacityThresholdPct": 90, "rampDownForceLogoffUsers": true, "rampDownWaitTimeMinutes": 30, "rampDownNotificationMessage": "You will be logged off in 30 min. Make sure to save your work.", "rampDownStopHostsWhen": "ZeroSessions", "offPeakLoadBalancingAlgorithm": "DepthFirst" } ] }, "dependsOn": [ "[resourceId('Microsoft.DesktopVirtualization/hostPools', parameters('name'))]" ] } ] }