-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Library Templates (automated) (#1006)
Co-authored-by: github-actions <[email protected]>
- Loading branch information
1 parent
9d6f72b
commit 7356e5c
Showing
4 changed files
with
59 additions
and
0 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
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
31 changes: 31 additions & 0 deletions
31
...archetypes/lib/policy_assignments/policy_assignment_es_deploy_vmhybr_monitoring.tmpl.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,31 @@ | ||
{ | ||
"type": "Microsoft.Authorization/policyAssignments", | ||
"apiVersion": "2022-06-01", | ||
"name": "Deploy-vmHybr-Monitoring", | ||
"location": "${default_location}", | ||
"dependsOn": [], | ||
"identity": { | ||
"type": "SystemAssigned" | ||
}, | ||
"properties": { | ||
"description": "Enable Azure Monitor for Hybrid Virtual Machines in the specified scope (Management group, Subscription or resource group).", | ||
"displayName": "Enable Azure Monitor for Hybrid Virtual Machines", | ||
"policyDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/2b00397d-c309-49c4-aa5a-f0b2c5bc6321", | ||
"enforcementMode": "Default", | ||
"nonComplianceMessages": [ | ||
{ | ||
"message": "Azure Monitor {enforcementMode} be enabled for Hybrid Virtual Machines." | ||
} | ||
], | ||
"parameters": { | ||
"dcrResourceId": { | ||
"value": "${azure_monitor_data_collection_rule_vm_insights_resource_id}" | ||
}, | ||
"enableProcessesAndDependencies": { | ||
"value": true | ||
} | ||
}, | ||
"scope": "${current_scope_resource_id}", | ||
"notScopes": [] | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
modules/archetypes/lib/policy_assignments/policy_assignment_es_enforce_asr.tmpl.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,24 @@ | ||
{ | ||
"type": "Microsoft.Authorization/policyAssignments", | ||
"apiVersion": "2022-06-01", | ||
"name": "Enforce-ASR", | ||
"dependsOn": [], | ||
"properties": { | ||
"description": "This initiative assignment enables recommended ALZ guardrails for Azure Recovery Services.", | ||
"displayName": "Enforce enhanced recovery and backup policies", | ||
"policyDefinitionId": "${root_scope_resource_id}/providers/Microsoft.Authorization/policySetDefinitions/Enforce-Backup", | ||
"enforcementMode": "Default", | ||
"nonComplianceMessages": [ | ||
{ | ||
"message": "Recommended guardrails {enforcementMode} be enforced for Azure Recovery Services (Backup and Site Recovery)." | ||
} | ||
], | ||
"scope": "${current_scope_resource_id}", | ||
"notScopes": [], | ||
"parameters": {} | ||
}, | ||
"location": "${default_location}", | ||
"identity": { | ||
"type": "None" | ||
} | ||
} |