Skip to content

Commit

Permalink
feat: Added custom Azure storage replication rule and updated ps-rule (
Browse files Browse the repository at this point in the history
  • Loading branch information
sebassem authored Apr 21, 2024
1 parent 999efed commit fb56172
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Synopsis: Use a zone or geo redundant storage account
apiVersion: github.com/microsoft/PSRule/v1
kind: Rule
metadata:
name: 'Custom.Azure.Storage.UseReplication'
spec:
type:
- Microsoft.Storage/storageAccounts
condition:
anyOf:
- field: 'Sku.name'
contains: 'ZRS'
- field: 'Sku.name'
contains: 'GRS'
3 changes: 2 additions & 1 deletion avm/utilities/pipelines/staticValidation/psrule/ps-rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ configuration:

rule:
# Enable custom rules that don't exist in the baseline
includeLocal: false
includeLocal: true
exclude:
# Ignore the following rules for all resources
- Azure.KeyVault.PurgeProtect
- Azure.VM.UseHybridUseBenefit
- Azure.Storage.UseReplication

0 comments on commit fb56172

Please sign in to comment.