-2

is there a way to programmatically (az cli, PowerShell) to retrieve the following information:

Log Analytics Agent config

Event Log settings

E_net4
  • 27,810
  • 13
  • 101
  • 139
user211245
  • 21
  • 8
  • Please mention the commands what you have tried and the result/error you got so that community will help you out –  Aug 24 '22 at 08:05

1 Answers1

0

For anyone ever in the need to achieve the above you can refer to Get-AzOperationalInsightsWorkspace and Get-AzOperationalInsightsDataSource. Wrote a simple PowerShell script that output the Log Analytics workspace plus Event Log settings in tabular format.

E_net4
  • 27,810
  • 13
  • 101
  • 139
user211245
  • 21
  • 8