Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion infra/core/host/container-apps.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ param containerRegistryAdminUserEnabled bool = false
param logAnalyticsWorkspaceName string
param applicationInsightsName string = ''

var containerRegistryScope = !empty(containerRegistryResourceGroupName)
? resourceGroup(containerRegistryResourceGroupName)
: resourceGroup()

module containerAppsEnvironment 'container-apps-environment.bicep' = {
name: '${name}-container-apps-environment'
params: {
Expand All @@ -23,7 +27,7 @@ module containerAppsEnvironment 'container-apps-environment.bicep' = {

module containerRegistry 'container-registry.bicep' = {
name: '${name}-container-registry'
scope: !empty(containerRegistryResourceGroupName) ? resourceGroup(containerRegistryResourceGroupName) : resourceGroup()
scope: containerRegistryScope
params: {
name: containerRegistryName
location: location
Expand Down