Skip to content

Upgrade Bicep to the new syntax #261

@pamelafox

Description

@pamelafox

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions