forked from fberson/wvd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreate-WVD-Backplane.bicep
41 lines (38 loc) · 1.26 KB
/
Create-WVD-Backplane.bicep
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
param location string = 'eastus'
param workspaceName string = 'bicep-wvd-workspace'
param hostpoolName string = 'bicep-wvd-hostpool'
param appgroupName string = 'bicep-wvd-appgroup'
param preferredAppGroupType string = 'Desktop'
param hostPoolType string = 'pooled'
param loadbalancertype string = 'BreadthFirst'
param appgroupType string = 'Desktop'
resource hp 'Microsoft.DesktopVirtualization/hostpools@2019-12-10-preview' = {
name: hostpoolName
location: location
properties: {
friendlyName: 'My Bicep generated Host pool'
hostPoolType : hostPoolType
loadBalancerType : loadbalancertype
preferredAppGroupType: preferredAppGroupType
}
}
resource ag 'Microsoft.DesktopVirtualization/applicationgroups@2019-12-10-preview' = {
name: appgroupName
location: location
properties: {
friendlyName: 'My Bicep generated application Group'
applicationGroupType: appgroupType
hostPoolArmPath: hp.id
}
}
resource ws 'Microsoft.DesktopVirtualization/workspaces@2019-12-10-preview' = {
name: workspaceName
location: location
properties: {
friendlyName: 'My Bicep generated Workspace'
applicationGroupReferences: [
ag.id
]
}
}
output workspaceid string = ws.id