All Projects → microsoft → PSRule-pipelines

microsoft / PSRule-pipelines

Licence: MIT License
Validate infrastructure as code (IaC) and DevOps repositories using Azure Pipelines.

Programming Languages

powershell
5483 projects
typescript
32286 projects

Projects that are alternatives of or similar to PSRule-pipelines

azure-flutter-tasks
Easily build and deploy with latest Flutter build tasks for Azure DevOps Pipelines Tasks
Stars: ✭ 66 (+312.5%)
Mutual labels:  cicd, azure-devops, azure-pipelines
azure-devops-terraform
Recipe to deploy Azure Infrastructure with Terraform via Azure DevOps
Stars: ✭ 18 (+12.5%)
Mutual labels:  iac, azure-devops, azure-pipelines
mojito-admin-starter
此项目主要为了演示如何自动化 Fullstack project 的 Infrastructure。
Stars: ✭ 17 (+6.25%)
Mutual labels:  infrastructure-as-code, azure-devops
vsts-mirror-git-repository
A straightforward utility to mirror one Git repository to another location
Stars: ✭ 22 (+37.5%)
Mutual labels:  azure-devops, azure-pipelines
PSDocs
Generate documentation from Infrastructure as Code (IaC).
Stars: ✭ 75 (+368.75%)
Mutual labels:  infrastructure-as-code, devops-tools
awesome-iac-testing
A list of awesome IaC testing articles, speeches & links. Especially about Ansible.
Stars: ✭ 56 (+250%)
Mutual labels:  iac, infrastructure-as-code
jmeter-aci-terraform
Scalable cloud load/stress testing pipeline solution with Apache JMeter and Terraform to dynamically provision and destroy the required infrastructure on Azure.
Stars: ✭ 114 (+612.5%)
Mutual labels:  azure-devops, azure-pipelines
terraform-vsphere-single-vm
Deploy single vSphere VM with Terraform - template.
Stars: ✭ 21 (+31.25%)
Mutual labels:  iac, infrastructure-as-code
pulumi-az-pipelines-task
Azure Pipelines task extension for running Pulumi apps.
Stars: ✭ 19 (+18.75%)
Mutual labels:  azure-devops, azure-pipelines
azure-vdc
Automated VDC on Azure
Stars: ✭ 16 (+0%)
Mutual labels:  infrastructure-as-code, azure-pipelines
open-c3
CICD系统/发布系统/作业平台/监控系统/故障自愈/K8S集群管理
Stars: ✭ 142 (+787.5%)
Mutual labels:  cicd, devops-tools
doing-cli
CLI tool to simplify the development workflow on azure devops
Stars: ✭ 19 (+18.75%)
Mutual labels:  devops-tools, azure-devops
ParallelTestingSample-dotnet-core
Sample for running dotnet core tests in parallel across multiple agents in Azure DevOps
Stars: ✭ 19 (+18.75%)
Mutual labels:  azure-devops, azure-pipelines
terraform-modules
Terraform Modules by Peak
Stars: ✭ 16 (+0%)
Mutual labels:  iac, infrastructure-as-code
tfu
tfu is a terraform helper to update the providers.
Stars: ✭ 13 (-18.75%)
Mutual labels:  iac, infrastructure-as-code
VstsExtensions
Documentation and issue tracking for Microsoft Premier Services Visual Studio Team Services Extensions
Stars: ✭ 42 (+162.5%)
Mutual labels:  azure-devops, azure-pipelines
cake-vso
Cake integration for Azure DevOps.
Stars: ✭ 19 (+18.75%)
Mutual labels:  azure-devops, azure-pipelines
icp-ce-on-linux-containers
Multi node IBM Cloud Private Community Edition 3.2.x w/ Kubernetes 1.13.5 in a Box. Terraform, Packer and BASH based Infrastructure as Code script sets up a multi node LXD cluster, installs ICP-CE and clis on a metal or VM Ubuntu 18.04 host.
Stars: ✭ 52 (+225%)
Mutual labels:  iac, infrastructure-as-code
driftctl
Detect, track and alert on infrastructure drift
Stars: ✭ 2,020 (+12525%)
Mutual labels:  iac, infrastructure-as-code
vsts-publish-adf
This extension adds Azure Data Factory release tasks to Azure Pipelines.
Stars: ✭ 23 (+43.75%)
Mutual labels:  azure-devops, azure-pipelines

PSRule extension for Azure Pipelines

An Azure DevOps extension for using PSRule within Azure Pipelines.

ci-badge extension-version

Support

This project uses GitHub Issues to track bugs and feature requests. Please search the existing issues before filing new issues to avoid duplicates.

  • For new issues, file your bug or feature request as a new issue.
  • For help, discussion, and support questions about using this project, join or start a discussion.

Support for this project/ product is limited to the resources listed above.

Getting started

The PSRule extension includes the following tasks for Azure Pipelines:

Name Friendly name Description Reference
ps-rule-assert PSRule analysis Run analysis with PSRule. reference
ps-rule-install Install PSRule module Install a PowerShell module containing rules. reference

To add these tasks, use the name for YAML pipelines or friendly name of classic pipelines.

Installing PSRule extension

To use PSRule within Azure DevOps Services, install the extension from the Visual Studio Marketplace. For detailed instructions see Install extensions.

If you don't have permissions to install extensions within your Azure DevOps organization, you can request it to be installed by an admin instead.

Using within YAML pipelines

To use these tasks within YAML pipelines:

  • Install rule modules with the ps-rule-install task (optional).
  • Run analysis one or more times with the ps-rule-assert task.
  • Publish analysis results with the Publish Test Results builtin task.

For example:

steps:

# Install PSRule.Rules.Azure from the PowerShell Gallery
- task: ps-rule-install@1
  inputs:
    module: PSRule.Rules.Azure   # Install PSRule.Rules.Azure from the PowerShell Gallery.
    latest: false                # Only install the module if not already installed.
    prerelease: false            # Install stable versions only.

# Run analysis from JSON files using the `PSRule.Rules.Azure` module and custom rules from `.ps-rule/`.
- task: ps-rule-assert@1
  inputs:
    inputType: inputPath
    inputPath: 'out/*.json'                  # Read objects from JSON files in 'out/'.
    modules: 'PSRule.Rules.Azure'            # Analyze objects using the rules within the PSRule.Rules.Azure PowerShell module.
    source: '.ps-rule/'                      # Additionally, analyze object using custom rules from '.ps-rule/'.
    outputFormat: NUnit3                     # Save results to an NUnit report.
    outputPath: reports/ps-rule-results.xml  # Write NUnit report to 'reports/ps-rule-results.xml'.

# Publish NUnit report as test results
- task: PublishTestResults@2
  displayName: 'Publish PSRule results'
  inputs:
    testRunTitle: 'PSRule'                          # The title to use for the test run.
    testRunner: NUnit                               # Import report using the NUnit format.
    testResultsFiles: 'reports/ps-rule-results.xml' # The previously saved NUnit report.

Changes and versioning

Extensions and tasks in this repository uses semantic versioning to declare breaking changes. For a list of module changes please see the change log.

Contributing

This project welcomes contributions and suggestions. If you are ready to contribute, please visit the contribution guide.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Maintainers

License

This project is licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].