Skip to content

Validate Azure resources and Infrastructure as Code (IaC) using PSRule.

License

Notifications You must be signed in to change notification settings

ArmaanMcleod/PSRule.Rules.Azure-quickstart

 
 

Repository files navigation

PSRule for Azure Quick Start

This repository contains a sample code you can use to quickly start using PSRule for Azure. To learn more about PSRule for Azure, see https://aka.ms/ps-rule-azure.

Use this template Open in Visual Studio Code

What's included?

This repository includes:

  • Azure Templates — Starter Azure Resource Manager (ARM) templates and parameter files.
    • Use the files in the template/ folder if you are using ARM templates to deploy resources.
  • Azure Bicep — Starter Azure Bicep deployments and test files.
    • Use the files in the bicep/ folder if you are using Bicep deployments and modules to deploy resources.
  • GitHub Actions — Starter workflow for checking Azure Infrastructure as Code (IaC).
    • Use the files in the .github/workflows/ to check your Azure IaC with GitHub Actions.
    • The ms-analyze.yaml file can be ignore or removed as this will not execute outside this repository.
  • Azure Pipelines — Comming soon.
  • Custom rules — Example custom rules that enforce organization specific requirements.
    • Use the files in the .ps-rule/ folder to configure custom rules.

What to expect?

This repository shows valid uses of PSRule for Azure, both pass and failure cases. Inspect the following files for instructions to test PSRule for Azure rules by creating a failure.

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.

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.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

About

Validate Azure resources and Infrastructure as Code (IaC) using PSRule.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Bicep 93.1%
  • PowerShell 6.9%