Skip to content

Bicep compilation issue #2562

@palamangelus

Description

@palamangelus

I have an environment that's been fairly stable for a couple of weeks and went to go switch my model to gpt-4o today.

I ran the environment variable changes and then azd up and it failed (errors below), saw there was an azd update, so pulled it, and then ran azd up again (I checked that the .env variables were set correctly).

ERROR: error executing step command 'provision': initializing provisioning manager: failed to compile bicep template: failed running bicep build: exit code: 1, stdout: , stderr: /codebase/localubuntu/infra/backend-dashboard.bicep(37,15) : Warning BCP037: The property "asset" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/backend-dashboard.bicep(41,15) : Warning BCP037: The property "defaultMenuItemId" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/backend-dashboard.bicep(68,15) : Warning BCP037: The property "asset" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/backend-dashboard.bicep(72,15) : Warning BCP037: The property "defaultMenuItemId" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/backend-dashboard.bicep(110,15) : Warning BCP037: The property "asset" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/backend-dashboard.bicep(172,15) : Warning BCP037: The property "isAdapter" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/backend-dashboard.bicep(173,15) : Warning BCP037: The property "asset" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/backend-dashboard.bicep(177,15) : Warning BCP037: The property "defaultMenuItemId" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/backend-dashboard.bicep(236,15) : Warning BCP037: The property "isAdapter" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/backend-dashboard.bicep(237,15) : Warning BCP037: The property "asset" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/backend-dashboard.bicep(241,15) : Warning BCP037: The property "defaultMenuItemId" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/host/container-apps.bicep(11,7) : Warning no-unused-params: Parameter "applicationInsightsName" is declared but never used. [https://aka.ms/bicep/linter/no-unused-params]
/codebase/localubuntu/infra/core/host/container-apps.bicep(64,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]
/codebase/localubuntu/infra/main.bicep(312,117) : Warning BCP329: The provided value can be as small as -1 and may be too small to assign to a target with a configured minimum of 0. [https://aka.ms/bicep/core-diagnostics#BCP329]
/codebase/localubuntu/infra/main.bicep(521,22) : Error BCP104: The referenced module has errors. [https://aka.ms/bicep/core-diagnostics#BCP104]
/codebase/localubuntu/infra/main.bicep(540,5) : Warning no-unnecessary-dependson: Remove unnecessary dependsOn entry 'containerApps'. [https://aka.ms/bicep/linter/no-unnecessary-dependson]
/codebase/localubuntu/infra/main.bicep(541,5) : Warning no-unnecessary-dependson: Remove unnecessary dependsOn entry 'acaIdentity'. [https://aka.ms/bicep/linter/no-unnecessary-dependson]
/codebase/localubuntu/infra/core/storage/storage-account.bicep(62,23) : Warning use-safe-access: Use the safe access (.?) operator. [https://aka.ms/bicep/linter/use-safe-access]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(37,15) : Warning BCP037: The property "asset" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(41,15) : Warning BCP037: The property "defaultMenuItemId" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(68,15) : Warning BCP037: The property "asset" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(72,15) : Warning BCP037: The property "defaultMenuItemId" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(99,15) : Warning BCP037: The property "asset" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(140,15) : Warning BCP037: The property "asset" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(181,15) : Warning BCP037: The property "asset" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(239,15) : Warning BCP037: The property "asset" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(301,15) : Warning BCP037: The property "isAdapter" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(302,15) : Warning BCP037: The property "asset" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(306,15) : Warning BCP037: The property "defaultMenuItemId" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(365,15) : Warning BCP037: The property "isAdapter" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(366,15) : Warning BCP037: The property "asset" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(370,15) : Warning BCP037: The property "defaultMenuItemId" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(456,15) : Warning BCP037: The property "asset" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]
/codebase/localubuntu/infra/core/monitor/applicationinsights-dashboard.bicep(460,15) : Warning BCP037: The property "defaultMenuItemId" is not allowed on objects of type "Extension/HubsExtension/PartType/MarkdownPart". Permissible properties include "settings". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues. [https://aka.ms/bicep/core-diagnostics#BCP037]

Nothing else in the environment or codebase has changed. Rolled back the changes (other than the new version of azd) and still the same issues.

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