Create-AzDiagPolicy
2.8
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, Storage 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 Update-StorageJSON Parse-ResourceType Validate-JSON New-PolicyInitiative Format-JSON Create-Hash
Dependencies
This script has no dependencies.
Release Notes
May 05, 2021 2.8
Update
* Adding the ability to leverage a dedicated table (instead of AzureDiagnostics) for resourceTypes that support it
Reference Link: https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/resource-manager-diagnostic-settings#diagnostic-setting-for-recovery-services-vault
THANK YOU Eric Golpe (Principal Cloud Solution Architect) - Microsoft for leaning in and driving this change on behalf of a customer requirement.
Note: Utilize -Dedicated switch to enable. This will be a blanket configuration for all policies and will only enable for those resourceTypes that
support it. Otherwise, the default will be AzureDiagnostics table
FileList
- Create-AzDiagPolicy.nuspec
- Create-AzDiagPolicy.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
2.9 | 1,672 | 9/9/2021 |