Sample code you can use to quickly start using PSRule for Azure.
Перейти к файлу
Bernie White 48aead2df9
Update readme and add custom baseline (#48)
2024-08-15 01:50:19 +10:00
.devcontainer Updates for latest versions (#37) 2023-05-31 01:46:33 +10:00
.github Bump actions/upload-artifact from 3 to 4 (#46) 2024-01-01 11:02:03 +10:00
.pipelines Fixes for pipeline #43 (#44) 2023-11-16 13:46:36 +10:00
.ps-rule Update readme and add custom baseline (#48) 2024-08-15 01:50:19 +10:00
.vscode Update repo structure to focus on Bicep #45 (#47) 2024-03-12 23:44:05 +10:00
deployments/contoso/landing-zones/subscription-1 Update repo structure to focus on Bicep #45 (#47) 2024-03-12 23:44:05 +10:00
modules Update repo structure to focus on Bicep #45 (#47) 2024-03-12 23:44:05 +10:00
.gitignore Initial project files (#1) 2021-10-26 00:22:18 +10:00
.markdownlint.json Updated formating and container soft delete (#32) 2023-01-11 22:02:29 +10:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md committed 2021-10-25 06:05:10 -07:00
CONTRIBUTING.md Updates to settings and modules (#34) 2023-03-02 22:40:35 +10:00
LICENSE LICENSE committed 2021-10-25 06:05:13 -07:00
README.md Update readme and add custom baseline (#48) 2024-08-15 01:50:19 +10:00
SECURITY.md Updates to settings and modules (#34) 2023-03-02 22:40:35 +10:00
SUPPORT.md Initial project files (#1) 2021-10-26 00:22:18 +10:00
ps-rule.yaml Update readme and add custom baseline (#48) 2024-08-15 01:50:19 +10:00

README.md

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 vscode.dev

What's included?

This repository includes:

  • Azure Bicep deployment — Starter Azure Bicep deployments.
    • Use the files in the deployments/ folder if you are using Bicep to deploy resources.
  • Azure Bicep modules — Starter Azure Bicep modules.
    • Use the files in the modules/ folder if you are using Bicep to create reusable modules with tests.
  • 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 — Starter pipeline for checking Azure Infrastructure as Code (IaC).
    • Use the files in the .pipelines/ to check your Azure IaC with Azure Pipelines.
  • Custom rules and baselines — Example custom rules and baselines.
    • These rules and baselines can be used to enforce organization specific requirements.
    • Use the files in the .ps-rule/ folder to configure custom rules and baselines.
  • PSRule options — Example options for using PSRule for Azure.
    • PSRule options are configures within ps-rule.yaml.
    • Options include suppressing rules, configuring input/ output, and any rules modules.

[!NOTE] PSRule for Azure supports ARM templates in addition to Bicep code. However going forward this repository will focus on Bicep deployments and modules. Existing ARM templates samples are no longer maintained and have been archived. To access these samples jump to the archive/with-arm-templates branch.

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 opencode@microsoft.com 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.