Skip to content

Error in az up #399

@codeputer

Description

@codeputer

File: main.bicep, Line 301
Cause: This is a cascading error — it's reporting that a module (container-apps.bicep) has compilation errors (like BCP420 above).

Fix: Solve the BCP420 error first. This error will go away if the module compiles correctly.

running a script, and get this message doing an "az up"

ERROR: error executing step command 'provision': initializing provisioning manager: failed to compile bicep template: failed running bicep build: exit code: 1, stdout: , stderr: C:\Users\Richard\downloads\ragchat\infra\core\storage\storage-account.bicep(65,23) : Warning use-safe-access: Use the safe access (.?) operator. [https://aka.ms/bicep/linter/use-safe-access]
C:\Users\Richard\downloads\ragchat\infra\core\host\container-app.bicep(129,16) : Warning use-secure-value-for-secure-inputs: Property 'value' expects a secure value, but the value provided may not be secure. [https://aka.ms/bicep/linter/use-secure-value-for-secure-inputs]
C:\Users\Richard\downloads\ragchat\infra\core\host\container-apps.bicep(26,10) : Error BCP420: The scope could not be resolved at compile time because the supplied expression is ambiguous or too complex. Scoping expressions must be reducible to a specific kind of scope without knowledge of parameter values. [https://aka.ms/bicep/core-diagnostics#BCP420]
C:\Users\Richard\downloads\ragchat\infra\core\security\keyvault-secrets.bicep(16,16) : Warning use-safe-access: Use the safe access (.?) operator. [https://aka.ms/bicep/linter/use-safe-access]
C:\Users\Richard\downloads\ragchat\infra\core\security\keyvault-secrets.bicep(17,12) : Warning use-safe-access: Use the safe access (.?) operator. [https://aka.ms/bicep/linter/use-safe-access]
C:\Users\Richard\downloads\ragchat\infra\core\security\keyvault-secrets.bicep(18,12) : Warning use-safe-access: Use the safe access (.?) operator. [https://aka.ms/bicep/linter/use-safe-access]
C:\Users\Richard\downloads\ragchat\infra\core\security\keyvault-secrets.bicep(20,18) : Warning use-safe-access: Use the safe access (.?) operator. [https://aka.ms/bicep/linter/use-safe-access]
C:\Users\Richard\downloads\ragchat\infra\core\ai\cognitiveservices.bicep(47,20) : Warning use-safe-access: Use the safe access (.?) operator. [https://aka.ms/bicep/linter/use-safe-access]
C:\Users\Richard\downloads\ragchat\infra\core\ai\cognitiveservices.bicep(49,8) : Warning use-safe-access: Use the safe access (.?) operator. [https://aka.ms/bicep/linter/use-safe-access]
C:\Users\Richard\downloads\ragchat\infra\main.bicep(301,22) : Error BCP104: The referenced module has errors. [https://aka.ms/bicep/core-diagnostics#BCP104]

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