Skip to content

Commit 42b097c

Browse files
committed
fix container-registry runtime scope evaluation error with new azd version
1 parent 0a7fee1 commit 42b097c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

infra/shared/host/container-apps.bicep

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ param logAnalyticsWorkspaceName string
1111
param applicationInsightsName string = ''
1212
param daprEnabled bool = false
1313

14+
var containerRegistryResourceGroupEvaluated = !empty(containerRegistryResourceGroupName) ? resourceGroup(containerRegistryResourceGroupName) : resourceGroup()
15+
1416
module containerAppsEnvironment 'container-apps-environment.bicep' = {
1517
name: '${name}-container-apps-environment'
1618
params: {
@@ -25,7 +27,7 @@ module containerAppsEnvironment 'container-apps-environment.bicep' = {
2527

2628
module containerRegistry 'container-registry.bicep' = {
2729
name: '${name}-container-registry'
28-
scope: !empty(containerRegistryResourceGroupName) ? resourceGroup(containerRegistryResourceGroupName) : resourceGroup()
30+
scope: containerRegistryResourceGroupEvaluated
2931
params: {
3032
name: containerRegistryName
3133
location: location

0 commit comments

Comments
 (0)