Closed sowsan closed 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.
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.