File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ param containerRegistryAdminUserEnabled bool = false
1010param logAnalyticsWorkspaceName string
1111param applicationInsightsName string = ''
1212
13+ var containerRegistryScope = !empty (containerRegistryResourceGroupName )
14+ ? resourceGroup (containerRegistryResourceGroupName )
15+ : resourceGroup ()
16+
1317module containerAppsEnvironment 'container-apps-environment.bicep' = {
1418 name : '${name }-container-apps-environment'
1519 params : {
@@ -23,7 +27,7 @@ module containerAppsEnvironment 'container-apps-environment.bicep' = {
2327
2428module containerRegistry 'container-registry.bicep' = {
2529 name : '${name }-container-registry'
26- scope : ! empty ( containerRegistryResourceGroupName ) ? resourceGroup ( containerRegistryResourceGroupName ) : resourceGroup ()
30+ scope : containerRegistryScope
2731 params : {
2832 name : containerRegistryName
2933 location : location
You can’t perform that action at this time.
0 commit comments