Skip to content

Commit 85e7205

Browse files
author
Dany Contreras
committed
updates
1 parent 6d33653 commit 85e7205

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

workload/arm/deploy-baseline.json

+5-4
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": "4093291713009396163"
8+
"templateHash": "5127540398771268904"
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": "2011583146610473966"
8684+
"templateHash": "12575102224275557975"
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": "[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)]",
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]",
1233912339
"scalingPlanEnabled": true
1234012340
}
1234112341
]
@@ -12677,7 +12677,8 @@
1267712677
}
1267812678
},
1267912679
"dependsOn": [
12680-
"[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', format('{0}', parameters('subscriptionId')), format('{0}', parameters('serviceObjectsRgName'))), 'Microsoft.Resources/deployments', format('HostPool-{0}', parameters('time')))]"
12680+
"[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', format('{0}', parameters('subscriptionId')), format('{0}', parameters('serviceObjectsRgName'))), 'Microsoft.Resources/deployments', format('HostPool-{0}', parameters('time')))]",
12681+
"[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', format('{0}', parameters('subscriptionId')), format('{0}', parameters('serviceObjectsRgName'))), 'Microsoft.Resources/deployments', format('Workspace-{0}', parameters('time')))]"
1268112682
]
1268212683
}
1268312684
]

workload/bicep/modules/avdManagementPlane/deploy.bicep

+2-7
Original file line numberDiff line numberDiff line change
@@ -330,12 +330,6 @@ 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-
}
338-
339333
// Scaling plan.
340334
module scalingPlan '../../../../avm/1.0.0/res/desktop-virtualization/scaling-plan/main.bicep' = if (deployScalingPlan) {
341335
scope: resourceGroup('${subscriptionId}', '${serviceObjectsRgName}')
@@ -349,13 +343,14 @@ module scalingPlan '../../../../avm/1.0.0/res/desktop-virtualization/scaling-pla
349343
schedules: scalingPlanSchedules
350344
hostPoolReferences: [
351345
{
352-
hostPoolArmPath: hostPoolGet.id
346+
hostPoolArmPath: hostPool.outputs.resourceId
353347
scalingPlanEnabled: true
354348
}
355349
]
356350
tags: tags
357351
diagnosticSettings: varDiagnosticSettings
358352
}
359353
dependsOn: [
354+
workSpace
360355
]
361356
}

0 commit comments

Comments
 (0)