Giter Club home page Giter Club logo

psrule.rules.azure-quickstart's Issues

Unsure of results and behaviour when using this repo

I've just cloned this repo into my Azure DevOps org, added a pipeline based on .pipelines/azure-analyze.yaml, made one small change (see screenshot below) to generate a fail, and ran the pipeline.

CleanShot 2023-11-15 at 14 43 49

The pipeline runs, but fails—is it meant to fail given I've literally just cloned the repo and made a small modification? In short, I'm unsure of what the expected output should be. I'm not sure if everything is working as expected or there is indeed something broken within this repo or the pipeline has changed its behaviour.

I've included the screenshots of the pipeline job so I'd appreciate it if you/I/we can work through it together.

So the below screenshot shows an error against AZR-000355 which I'm expecting given the modification I made. That's fine. I'm guessing the next line, "One or more assertions failed" is also fine since that is true.
CleanShot 2023-11-15 at 14 46 09@2x

This next screenshot shows the warnings.

  • I'm not sure why that first warning ("refs/heads/main has not been processed") is there?
  • Apart from the suppressed rules, what do the other warnings mean about "not been processed because no matching rules were found" and how do I correct this
    CleanShot 2023-11-15 at 14 47 07@2x

The next screenshot shows the Extensions tab.
This looks fine to me.
CleanShot 2023-11-15 at 14 46 26@2x

Finally, there are no artifacts produced (under the Scans tab) as the pipeline never got to that task.
CleanShot 2023-11-15 at 15 04 08@2x

From what I've seen in the YT videos and my expectations given the minimal modifications, the job should complete with a status of Warning as opposed to Failed so that one can view the prettyfied output under Scans?

Edit: ok so I just re-read some of the documentation and have configured the pipeline to continue on error. Now I can see the Scans output which is great. But if this is set to true just so I can get some pretty outputs, then wouldn't it be more suited to permanently leave this to true?

Thank you and I appreciate your time!

Update repo structure to focus on Bicep

Most customers with interest in PSRule for Azure are moving to Bicep from ARM templates. We should:

  • Archive the current repo structure into a branch archive/with-arm-templates.
  • Remove directories and anything specific to ARM templates.
  • Flatten the repository to root deployments/ and modules/ paths that focus on Bicep.
  • Add a link to readme to flag old ARM template structure is available in the archive branch.
  • Update any documentation to focus and make Bicep configuration clear and easily usable by customers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.