Even though I get an error, the scanner continues and reports a success. Because of this, the pipeline doesn’t stop but continues. The SonarQube site doesn’t show a warning or notification that there was an issue in the latest scan.
The error is the following:
ERROR Cannot parse 'ComBusOnlineAzure/Infrastructure/db/nsg.bicep:2:1
Placing all of this code on a single line still gives an error (now reporting “nsg.bicep:1:1”).
Copmpiling this script to ARM with following code generates a valid ARM json file and a warning that the variable ‘toConnect’ is not used.
I investigated and found an issue in the Bicep parser. To follow up on this, I have created a ticket.
We expect to work on the Bicep parser soon, and we will make sure to take care of this.
Thank you again for your help and sorry for the inconvenience caused.