Skip to content

Commit 800f246

Browse files
committed
Improve workaround for error BCP420
1 parent c225e4a commit 800f246

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

articles/container-apps/microservices-dapr-bindings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ cd bindings-dapr-nodejs-cron-postgres
164164
If this step causes [error BCP420](https://aka.ms/bicep/core-diagnostics#BCP420), go to your cloned repo, open the *bindings-dapr-nodejs-cron-postgres/infra/core/host/container-apps.bicep* file, and replace line 28 with the following line:
165165

166166
```bicep
167-
scope: resourceGroup()
167+
scope: resourceGroup(!empty(containerRegistryResourceGroupName) ? containerRegistryResourceGroupName : resourceGroup().name)
168168
```
169169

170170
#### Expected output
@@ -640,7 +640,7 @@ cd bindings-dapr-csharp-cron-postgres
640640
If this step causes [error BCP420](https://aka.ms/bicep/core-diagnostics#BCP420), go to your cloned repo, open the *bindings-dapr-csharp-cron-postgres/infra/core/host/container-apps.bicep* file, and replace line 28 with the following line:
641641

642642
```bicep
643-
scope: resourceGroup()
643+
scope: resourceGroup(!empty(containerRegistryResourceGroupName) ? containerRegistryResourceGroupName : resourceGroup().name)
644644
```
645645

646646
#### Expected output

0 commit comments

Comments
 (0)