Fix BCP104 scope resolution error in container-apps.bicep #231
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix: Resolve Bicep Scope Resolution Error in Container Apps Module
Resolved a Bicep compile-time error (BCP104) by restructuring the container registry module call.
Previously, the
containerRegistryAccess
module useduserIdentity.properties.principalId
in a way that made scope resolution ambiguous during provisioning. This fix wraps the module call with an explicitif
condition and simplifies the logic, making it resolvable at compile time.Tested with
azd up
using azd version 1.17.0 on macOS and verified successful provisioning of Azure resources.Additional changes:
container-apps.bicep
Purpose
Resolved a Bicep compile-time error (BCP104) by restructuring the container registry module call.
Previously, the
containerRegistryAccess
module useduserIdentity.properties.principalId
in a way that made scope resolution ambiguous during provisioning. This fix wraps the module call with an explicitif
condition and simplifies the logic, making it resolvable at compile time.Tested with
azd up
using azd version 1.17.0 on macOS and verified successful provisioning of Azure resources.Does this introduce a breaking change?
Pull Request Type
How to Test
Tested on macOS using the following setup:
azd up
git clone https://github.com/NeseemGit/azure-search-openai-javascript.git cd azure-search-openai-javascript git checkout fix/container-apps-bicep-scope-error npm install azd up
What to Check
azd up
completes withoutBCP420
orBCP104
errorsOther Information
BCP104
) by making scope resolution explicitazd up
due to ambiguity in thecontainer-apps.bicep
structure