PSRules using Jenkins Pipelines #986
Replies: 2 comments 1 reply
-
@vishalgoyal16444 Absolutely. PSRule can be installed and run via PowerShell and it works the same except there isn't a native Jenkins plugin specifically for it. If you have PSRule already running to get scan an Azure subscription you are mostly already there. In Jenkins you would checkout your repo, then call
An advanced example of how to bootstrap it is here I'd suggest running a Linux container that has PowerShell pre-installed. If you already have one customised with Azure PowerShell or Azure CLI you might be able to use that. Otherwise, look at the PowerShell image A full list of PowerShell image tags can be found here: https://mcr.microsoft.com/v2/powershell/tags/list Use the installing locally instructions to install the PSRule and PSRule for Azure modules. @ms-sambell You may have some additional input here. |
Beta Was this translation helpful? Give feedback.
-
You definitely can. On top of what Bernie said, you should be able to set this up by:
There are a few different output options for the PsRules results, so experiment with them to determine which one works best for your use case: additional outputs. |
Beta Was this translation helpful? Give feedback.
-
Dear All,
Is it possible to run PSRules engine using Jenkins Pipelines against a codebase hosted on Azure DevOps repos or Gitlab.
We leverage on-premises Jenkins and not Azure DevOps for running our pipelines.
FYI. We are able to run the PSRules engine for our Azure subscription to get assets inventory and rules output.
Thanks,
Vishal.
Beta Was this translation helpful? Give feedback.
All reactions