PSRule
PSRule is an open-source, general-purpose rules engine built on top of PowerShell and maintained on GitHub.
PSRule provides an easy way to:
- Define reusable business rules like scripts.
- Validate PowerShell objects and infrastructure code.
Features of PSRule include:
- Extensible - Use PowerShell, a flexible scripting language.
- Cross-platform - Run on MacOS, Linux and Windows.
- Reusable - Share rules across teams or organizations.
- Recommendations - Include detailed instructions to remediate issues.
Installing the module
You can download and install the PSRule module from the PowerShell Gallery.
| Module | Description | Downloads / instructions |
|---|---|---|
| PSRule | Validate objects using PowerShell rules. | latest / instructions |
Visual Studio Code extension
You can download and install the companion extension for Visual Studio Code from the Visual Studio Marketplace.
| Extension | Description | Downloads / instructions |
|---|---|---|
| PSRule | An extension for IT Pros using the PSRule PowerShell module. | latest / instructions |
Azure DevOps extension
You can download and install the companion extension for Azure Pipelines from the Visual Studio Marketplace.
| Extension | Description | Downloads / instructions |
|---|---|---|
| PSRule | An Azure DevOps extension for using PSRule within Azure Pipelines. | latest / instructions |
Additional modules
You can optionally download and install the following modules from the PowerShell Gallery.
Support
This project is open source and not a supported product.
If you are experiencing problems, have a feature request, or a question, please check for an issue on GitHub. If you do not see your problem captured, please file a new issue, and follow the provided template.