Azure / aca-landing-zone-accelerator

The Azure Container Apps landing zone accelerator is an open-source collection of architectural guidance and reference implementation to accelerate deployment of Azure Container Apps at scale.
https://aka.ms/aca-lza
MIT License
180 stars 95 forks source link

script error with ADO Pipeline #117

Closed sowsan closed 11 months ago

sowsan commented 11 months ago

Getting the below error and pipeline fails. Any idea what is this error ?

2023-10-19T17:15:48.3222392Z ##[error]WARNING: /home/vsts/work/1/s/scenarios/shared/bicep/network/application-gateway.bicep(250,27) : Warning no-deployments-resources: Resource 'defaultTelemetry' of type 'Microsoft.Resources/deployments@2021-04-01' should instead be declared as a Bicep module. [https://aka.ms/bicep/linter/no-deployments-resources] /home/vsts/work/1/s/scenarios/shared/bicep/role-assignments/role-assignment.bicep(34,33) : Warning no-deployments-resources: Resource 'resourceRoleAssignment' of type 'Microsoft.Resources/deployments@2021-04-01' should instead be declared as a Bicep module. [https://aka.ms/bicep/linter/no-deployments-resources] /home/vsts/work/1/s/scenarios/aca-internal/bicep/modules/04-container-apps-environment/deploy.aca-environment.bicep(155,30) : Warning no-deployments-resources: Resource 'telemetrydeployment' of type 'Microsoft.Resources/deployments@2021-04-01' should instead be declared as a Bicep module. [https://aka.ms/bicep/linter/no-deployments-resources]

2023-10-19T17:15:48.3241907Z ##[error]Script has output to stderr. Failing as failOnStdErr is set to true.

thotheod commented 11 months ago

If I get it right, this is just a warning, so it is strange that the pipeline is failing.

The latest version of Bicep has added some new warnings/checks. Till we get it sorted out, you can just add the directive #disable-next-line no-deployments-resources just before the reported warning lines.