diff --git a/workload/arm/deploy-baseline.json b/workload/arm/deploy-baseline.json index 505e734bb..47510a4f3 100644 --- a/workload/arm/deploy-baseline.json +++ b/workload/arm/deploy-baseline.json @@ -5,7 +5,7 @@ "_generator": { "name": "bicep", "version": "0.33.93.31351", - "templateHash": "806133170511948426" + "templateHash": "4093291713009396163" }, "name": "AVD Accelerator - Baseline Deployment", "description": "AVD Accelerator - Deployment Baseline", @@ -8681,7 +8681,7 @@ "_generator": { "name": "bicep", "version": "0.33.93.31351", - "templateHash": "18306024285956348271" + "templateHash": "2011583146610473966" }, "name": "AVD LZA management plane", "description": "This module deploys AVD workspace, host pool, application group scaling plan", @@ -12335,7 +12335,7 @@ "hostPoolReferences": { "value": [ { - "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]", + "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)]", "scalingPlanEnabled": true } ] diff --git a/workload/bicep/modules/avdManagementPlane/deploy.bicep b/workload/bicep/modules/avdManagementPlane/deploy.bicep index 4befc5d59..191d83c30 100644 --- a/workload/bicep/modules/avdManagementPlane/deploy.bicep +++ b/workload/bicep/modules/avdManagementPlane/deploy.bicep @@ -330,11 +330,11 @@ module workSpace '../../../../avm/1.0.0/res/desktop-virtualization/workspace/mai ] } -// // call on the host pool -// resource hostPoolGet 'Microsoft.DesktopVirtualization/hostPools@2024-04-03' existing = { -// name: hostPool.outputs.name -// scope: resourceGroup('${subscriptionId}', '${serviceObjectsRgName}') -// } +// call on the host pool +resource hostPoolGet 'Microsoft.DesktopVirtualization/hostPools@2024-04-03' existing = { + name: hostPool.outputs.name + scope: resourceGroup('${subscriptionId}', '${serviceObjectsRgName}') +} // Scaling plan. 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 schedules: scalingPlanSchedules hostPoolReferences: [ { - hostPoolArmPath: hostPool.outputs.resourceId + hostPoolArmPath: hostPoolGet.id scalingPlanEnabled: true } ]