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.

The owner has unlisted this package. This could mean that the script is deprecated or shouldn't be used anymore.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Create-AzDiagPolicy -RequiredVersion 1.4

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

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

Version History

Version Downloads Last updated
2.9 1,670 9/9/2021