Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azure/psrule.rules.azure-quickstart
Sample code you can use to quickly start using PSRule for Azure.
https://github.com/azure/psrule.rules.azure-quickstart
azure bicep devops github-actions psrule sample-code
Last synced: 2 days ago
JSON representation
Sample code you can use to quickly start using PSRule for Azure.
- Host: GitHub
- URL: https://github.com/azure/psrule.rules.azure-quickstart
- Owner: Azure
- License: mit
- Created: 2021-10-25T13:05:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-14T15:50:19.000Z (6 months ago)
- Last Synced: 2024-10-07T12:39:27.539Z (4 months ago)
- Topics: azure, bicep, devops, github-actions, psrule, sample-code
- Language: Bicep
- Homepage: https://azure.github.io/PSRule.Rules.Azure/
- Size: 104 KB
- Stars: 33
- Watchers: 4
- Forks: 24
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
- Support: SUPPORT.md
Awesome Lists containing this project
README
# 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 .[![Use this template](https://img.shields.io/static/v1?label=GitHub&message=Use%20this%20template&logo=github&color=007acc)][1]
[![Open in vscode.dev](https://img.shields.io/badge/Open%20in-vscode.dev-blue)][2][1]: https://github.com/Azure/PSRule.Rules.Azure-quickstart/generate
[2]: https://vscode.dev/github/Azure/PSRule.Rules.Azure-quickstart## 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][3] branch.[3]: https://github.com/Azure/PSRule.Rules.Azure-quickstart/tree/archive/with-arm-templates
## 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.- [deployments/contoso/landing-zones/subscription-1/rg-app-001/dev.bicepparam](deployments/contoso/landing-zones/subscription-1/rg-app-001/dev.bicepparam)
- [deployments/contoso/landing-zones/subscription-1/rg-app-002/deploy.bicep](deployments/contoso/landing-zones/subscription-1/rg-app-002/deploy.bicep)## 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](CONTRIBUTING.md).## Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.## Maintainers
- [Bernie White](https://github.com/BernieWhite)
## License
This project is [licensed under the MIT License](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](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
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.[issue]: https://github.com/Azure/PSRule.Rules.Azure-quickstart/issues
[discussion]: https://github.com/Azure/PSRule.Rules.Azure-quickstart/discussions