File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Copyright (c) Microsoft Corporation.
2+ # Licensed under the MIT License.
3+
4+ # IMPORTANT:
5+ # This file demonstrates defining YAML-based custom baselines.
6+ # To correctly find resources set binding configuration within ps-rule.yaml.
7+ # See: https://azure.github.io/PSRule.Rules.Azure/customization/using-custom-rules/#set-binding-configuration
8+
9+ ---
10+ # Synopsis: This is an example of a custom baseline that only includes GA rules in the Security and Reliability pillars.
11+ apiVersion : github.com/microsoft/PSRule/v1
12+ kind : Baseline
13+ metadata :
14+ name : Org.Custom.Baseline
15+ spec :
16+ rule :
17+ tag :
18+ release : GA
19+ Azure.WAF/pillar :
20+ - Security
21+ - Reliability
22+
23+ exclude :
24+ - Azure.Deployment.Name
Original file line number Diff line number Diff line change 22# Licensed under the MIT License.
33
44# Note:
5- # This files demonstrates using YAML-based rules.
5+ # This file demonstrates defining YAML-based custom rules.
66
77---
88# Synopsis: Azure resource must have an valid env tag set.
Original file line number Diff line number Diff line change @@ -22,13 +22,14 @@ This repository includes:
2222 - The ` ms-analyze.yaml ` file can be ignore or removed as this will not execute outside this repository.
2323- ** Azure Pipelines** &mdash ; Starter pipeline for checking Azure Infrastructure as Code (IaC).
2424 - Use the files in the ` .pipelines/ ` to check your Azure IaC with Azure Pipelines.
25- - ** Custom rules** &mdash ; Example custom rules that enforce organization specific requirements.
26- - Use the files in the ` .ps-rule/ ` folder to configure custom rules.
25+ - ** Custom rules and baselines** &mdash ; Example custom rules and baselines.
26+ - These rules and baselines can be used to enforce organization specific requirements.
27+ - Use the files in the ` .ps-rule/ ` folder to configure custom rules and baselines.
2728- ** PSRule options** &mdash ; Example options for using PSRule for Azure.
2829 - PSRule options are configures within ` ps-rule.yaml ` .
2930 - Options include suppressing rules, configuring input/ output, and any rules modules.
3031
31- > ** ARM templates **
32+ > [ !NOTE ]
3233> PSRule for Azure supports ARM templates in addition to Bicep code.
3334> However going forward this repository will focus on Bicep deployments and modules.
3435> Existing ARM templates samples are no longer maintained and have been archived.
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ binding:
1313 - type
1414 - resourceType
1515
16+ # Do not warn if an Azure resource or related object has no rules.
1617execution :
1718 unprocessedObject : Ignore
1819
@@ -26,6 +27,7 @@ include:
2627 module :
2728 - PSRule.Rules.Azure
2829
30+ # Configure the output culture for recommendations.
2931output :
3032 culture :
3133 - ' en-US'
You can’t perform that action at this time.
0 commit comments