-
Notifications
You must be signed in to change notification settings - Fork 978
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
bc067a2
commit bc80050
Showing
7 changed files
with
203 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
158 changes: 82 additions & 76 deletions
158
eslzArm/managementGroupTemplates/policyDefinitions/policies.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/resources/Microsoft.Authorization/policyDefinitions/DenyAction-ActivityLogSettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "DenyAction-ActivityLogs", | ||
"type": "Microsoft.Authorization/policyDefinitions", | ||
"apiVersion": "2021-06-01", | ||
"scope": null, | ||
"properties": { | ||
"policyType": "Custom", | ||
"mode": "Indexed", | ||
"displayName": "DenyAction implementation on Activity Logs", | ||
"description": "This is a DenyAction implementation policy on Activity Logs.", | ||
"metadata": { | ||
"deprecated": false, | ||
"version": "1.0.0", | ||
"category": "Monitoring", | ||
"source": "https://github.com/Azure/Enterprise-Scale/", | ||
"alzCloudEnvironments": [ | ||
"AzureCloud", | ||
"AzureChinaCloud", | ||
"AzureUSGovernment" | ||
] | ||
}, | ||
"parameters": {}, | ||
"policyRule": { | ||
"if": { | ||
"field": "type", | ||
"equals": "Microsoft.Resources/subscriptions/providers/diagnosticSettings" | ||
}, | ||
"then": { | ||
"effect": "denyAction", | ||
"details": { | ||
"actionNames": [ | ||
"delete" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
src/resources/Microsoft.Authorization/policyDefinitions/DenyAction-DiagnosticSettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "DenyAction-DiagnosticLogs", | ||
"type": "Microsoft.Authorization/policyDefinitions", | ||
"apiVersion": "2021-06-01", | ||
"scope": null, | ||
"properties": { | ||
"policyType": "Custom", | ||
"mode": "Indexed", | ||
"displayName": "DenyAction implementation on Diagnostic Logs.", | ||
"description": "DenyAction implementation on Diagnostic Logs.", | ||
"metadata": { | ||
"deprecated": false, | ||
"version": "1.0.0", | ||
"category": "Monitoring", | ||
"source": "https://github.com/Azure/Enterprise-Scale/", | ||
"alzCloudEnvironments": [ | ||
"AzureCloud", | ||
"AzureChinaCloud", | ||
"AzureUSGovernment" | ||
] | ||
}, | ||
"parameters": {}, | ||
"policyRule": { | ||
"if": { | ||
"field": "type", | ||
"equals": "Microsoft.Insights/diagnosticSettings" | ||
}, | ||
"then": { | ||
"effect": "denyAction", | ||
"details": { | ||
"actionNames": [ | ||
"delete" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
src/resources/Microsoft.Authorization/policySetDefinitions/DenyAction-DeleteProtection.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"name": "DenyAction-DeleteProtection", | ||
"type": "Microsoft.Authorization/policySetDefinitions", | ||
"apiVersion": "2021-06-01", | ||
"scope": null, | ||
"properties": { | ||
"policyType": "Custom", | ||
"displayName": "DenyAction Delete - Activity Log Settings and Diagnostic Settings", | ||
"description": "Enforces DenyAction - Delete on Activity Log Settings and Diagnostic Settings.", | ||
"metadata": { | ||
"version": "1.0.0", | ||
"category": "Monitoring", | ||
"source": "https://github.com/Azure/Enterprise-Scale/", | ||
"alzCloudEnvironments": [ | ||
"AzureCloud", | ||
"AzureChinaCloud", | ||
"AzureUSGovernment" | ||
] | ||
}, | ||
"parameters": {}, | ||
"policyDefinitions": [ | ||
{ | ||
"policyDefinitionReferenceId": "DenyActionDelete-DiagnosticSettings", | ||
"policyDefinitionId": "/providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Authorization/policyDefinitions/DenyAction-DiagnosticSettings", | ||
"parameters": {}, | ||
"groupNames": [] | ||
}, | ||
{ | ||
"policyDefinitionReferenceId": "DenyActionDelete-ActivityLogSettings", | ||
"policyDefinitionId": "/providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Authorization/policyDefinitions/DenyAction-ActivityLogSettings", | ||
"parameters": {}, | ||
"groupNames": [] | ||
} | ||
], | ||
"policyDefinitionGroups": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters