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
10
10
param logAnalyticsWorkspaceName string
11
11
param applicationInsightsName string = ''
12
12
13
+ var containerRegistryScope = !empty (containerRegistryResourceGroupName )
14
+ ? resourceGroup (containerRegistryResourceGroupName )
15
+ : resourceGroup ()
16
+
13
17
module containerAppsEnvironment 'container-apps-environment.bicep' = {
14
18
name : '${name }-container-apps-environment'
15
19
params : {
@@ -23,7 +27,7 @@ module containerAppsEnvironment 'container-apps-environment.bicep' = {
23
27
24
28
module containerRegistry 'container-registry.bicep' = {
25
29
name : '${name }-container-registry'
26
- scope : ! empty ( containerRegistryResourceGroupName ) ? resourceGroup ( containerRegistryResourceGroupName ) : resourceGroup ()
30
+ scope : containerRegistryScope
27
31
params : {
28
32
name : containerRegistryName
29
33
location : location
You can’t perform that action at this time.
0 commit comments