-
Notifications
You must be signed in to change notification settings - Fork 981
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'policy-refresh-q1fy24' of https://github.com/Azure/Ente…
…rprise-Scale into RBACAssignments
- Loading branch information
Showing
6 changed files
with
204 additions
and
75 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
156 changes: 81 additions & 75 deletions
156
eslzArm/managementGroupTemplates/policyDefinitions/policies.json
Large diffs are not rendered by default.
Oops, something went wrong.
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