Skip to content

Commit 6d33653

Browse files
author
Dany Contreras
committed
updates
1 parent 123f726 commit 6d33653

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

workload/arm/deploy-baseline.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.33.93.31351",
8-
"templateHash": "806133170511948426"
8+
"templateHash": "4093291713009396163"
99
},
1010
"name": "AVD Accelerator - Baseline Deployment",
1111
"description": "AVD Accelerator - Deployment Baseline",
@@ -8681,7 +8681,7 @@
86818681
"_generator": {
86828682
"name": "bicep",
86838683
"version": "0.33.93.31351",
8684-
"templateHash": "18306024285956348271"
8684+
"templateHash": "2011583146610473966"
86858685
},
86868686
"name": "AVD LZA management plane",
86878687
"description": "This module deploys AVD workspace, host pool, application group scaling plan",
@@ -12335,7 +12335,7 @@
1233512335
"hostPoolReferences": {
1233612336
"value": [
1233712337
{
12338-
"hostPoolArmPath": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', format('{0}', parameters('subscriptionId')), format('{0}', parameters('serviceObjectsRgName'))), 'Microsoft.Resources/deployments', format('HostPool-{0}', parameters('time'))), '2022-09-01').outputs.resourceId.value]",
12338+
"hostPoolArmPath": "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', format('{0}', parameters('subscriptionId')), format('{0}', parameters('serviceObjectsRgName'))), 'Microsoft.DesktopVirtualization/hostPools', reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', format('{0}', parameters('subscriptionId')), format('{0}', parameters('serviceObjectsRgName'))), 'Microsoft.Resources/deployments', format('HostPool-{0}', parameters('time'))), '2022-09-01').outputs.name.value)]",
1233912339
"scalingPlanEnabled": true
1234012340
}
1234112341
]

workload/bicep/modules/avdManagementPlane/deploy.bicep

+6-6
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,11 @@ module workSpace '../../../../avm/1.0.0/res/desktop-virtualization/workspace/mai
330330
]
331331
}
332332

333-
// // call on the host pool
334-
// resource hostPoolGet 'Microsoft.DesktopVirtualization/hostPools@2024-04-03' existing = {
335-
// name: hostPool.outputs.name
336-
// scope: resourceGroup('${subscriptionId}', '${serviceObjectsRgName}')
337-
// }
333+
// call on the host pool
334+
resource hostPoolGet 'Microsoft.DesktopVirtualization/hostPools@2024-04-03' existing = {
335+
name: hostPool.outputs.name
336+
scope: resourceGroup('${subscriptionId}', '${serviceObjectsRgName}')
337+
}
338338

339339
// Scaling plan.
340340
module scalingPlan '../../../../avm/1.0.0/res/desktop-virtualization/scaling-plan/main.bicep' = if (deployScalingPlan) {
@@ -349,7 +349,7 @@ module scalingPlan '../../../../avm/1.0.0/res/desktop-virtualization/scaling-pla
349349
schedules: scalingPlanSchedules
350350
hostPoolReferences: [
351351
{
352-
hostPoolArmPath: hostPool.outputs.resourceId
352+
hostPoolArmPath: hostPoolGet.id
353353
scalingPlanEnabled: true
354354
}
355355
]

0 commit comments

Comments
 (0)