Issue Description
This repository contains outdated Bicep syntax in infra/core/host/container-apps.bicep.
Current Code
scope: !empty(containerRegistryResourceGroupName) ? resourceGroup(containerRegistryResourceGroupName) : resourceGroup()
Recommended Fix
Replace the current syntax with:
scope: resourceGroup(!empty(containerRegistryResourceGroupName) ? containerRegistryResourceGroupName : resourceGroup().name)
Validation
After making this change, run az bicep build on infra/main.bicep to ensure the Bicep syntax is valid.
You can usually find the parameters file at infra/main.parameters.json.
Details
Pattern: scope: !empty\(containerRegistryResourceGroupName\)
File: infra/core/host/container-apps.bicep
Found matches:
Line 26:
scope: !empty(containerRegistryResourceGroupName) ? resourceGroup(containerRegistryResourceGroupName) : resourceGroup()
Repository: https://github.com/Azure-Samples/contoso-chat
This issue was automatically created by the GitHub Repo Maintainer Agent.
Issue Description
This repository contains outdated Bicep syntax in
infra/core/host/container-apps.bicep.Current Code
Recommended Fix
Replace the current syntax with:
Validation
After making this change, run
az bicep buildoninfra/main.bicepto ensure the Bicep syntax is valid.You can usually find the parameters file at
infra/main.parameters.json.Details
Pattern:
scope: !empty\(containerRegistryResourceGroupName\)File:
infra/core/host/container-apps.bicepFound matches:
Line 26:
Repository: https://github.com/Azure-Samples/contoso-chat
This issue was automatically created by the GitHub Repo Maintainer Agent.