PSRule.Rules.Azure icon indicating copy to clipboard operation
PSRule.Rules.Azure copied to clipboard

Rules to validate Azure resources and infrastructure as code (IaC) using PSRule.

Results 236 PSRule.Rules.Azure issues
Sort by recently updated
recently updated
newest added

### Existing rule _No response_ ### Description of the issue It appears that `Export-AzPolicyAssignmentRuleData` inverts the behavior of our custom policy. Custom policy: ```custom-policy.json { "properties": { "displayName": "some-tag-policy -...

.NET
feature: policy-as-rules

### Existing rule Azure.Deployment.OutputSecretValue (AZR-000279) ### Description of the issue Perhaps I am missing something, but it seems that AZR-000279 is incorrectly flagged in the following situation. Our team implements...

feature: bicep-language

### Existing rule _No response_ ### Suggested rule When service bus replication is configured any configured locations should be in the allowed location list if configured. ### Pillar Security ###...

pillar: security
rule: service-bus

### Existing rule _No response_ ### Suggested rule Any configured additional locations of fleet resources should be within allowed locations if configured. ### Pillar Security ### Additional context _No response_

pillar: security
rule: fleet

### Existing rule Azure.VNG.MaintenanceConfig ### Suggested rule Promote `Azure.VNG.MaintenanceConfig` to GA rule set because it is no longer in preview. ### Pillar Reliability ### Additional context _No response_

rule: network
pillar: reliability

### Existing rule _No response_ ### Suggested rule Now that Entra ID auth is available for use in MongoDB vCore clusters (in preview) for `Microsoft.DocumentDB/mongoClusters`, this should be used instead...

rule: cosmos
lifecycle: preview
pillar: security

### Existing rule _No response_ ### Suggested rule Add a rule to the security baseline to require TLS 1.2 or later for Event Grid namespace ### Pillar None ### Additional...

help wanted
good first issue
rule: event-grid
pillar: security
avm

### Existing rule _No response_ ### Suggested rule When pulling in external files that will be executed such as scripts a pinned URL should be used, to prevent the file...

rule: deployment
rule: automation-account
pillar: security

### Existing rule Azure.VM.PublicKey ### Suggested rule Add support for `Microsoft.AzureFleet/fleets` with a new rule similar to `Azure.VM.PublicKey`. ### Pillar Security ### Additional context https://learn.microsoft.com/en-us/azure/templates/microsoft.azurefleet/fleets?pivots=deployment-language-bicep

pillar: security
rule: fleet

### Existing rule _No response_ ### Suggested rule Check for cases when a sensitive value is set on a non-secure property. ### Pillar Security ### Additional context _No response_

rule: deployment
pillar: security