Create-AzDiagPolicy
1.4
This script takes a SubscriptionID, ResourceType, ResourceGroup as parameters, analyzes the subscription or
specific ResourceGroup defined for the resources specified in $Resources, and builds a custom policy for
diagnostic metrics/logs for Event Hubs and Log Analytics as sink points for selected resource types.
Installation Options
Owners
Copyright
Microsoft
Package Details
Author(s)
- jbritt@microsoft.com
Functions
BuildBody Get-ResourceType Add-IndexNumberToArray New-LogArray New-MetricArray Update-LogAnalyticsJSON Update-EventHubJSON Parse-ResourceType Validate-JSON
Dependencies
This script has no dependencies.
Release Notes
November 27, 2019 1.4
- Updated RoleDefinitionID for Log Analytics based policies to be "Log Analytics Contributor"
- Special thanks to Dimitri Lider, and Julian Hayward (Microsoft) for their input on this update! Keep the ideas coming! :)
- Added Parameter Sets to initial parameters to refine experience
- Added an option for Management Group as a scope providing a bit more flexiblity when it comes to scanning for resourceTypes supporting Diags.
- Special tanks to Sam El-Anis (Microsoft) https://twitter.com/SamElAnis for the idea on this one!
FileList
- Create-AzDiagPolicy.nuspec
- Create-AzDiagPolicy.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
2.9 | 2,867 | 9/9/2021 |