Route Subscription Activity Log to an EventHub thru Powershell or Azure CLI

Copper Contributor

https://docs.microsoft.com/en-us/azure/azure-monitor/platform/activity-logs-overview

 

Can I please know how can the activity logs from a subscription can be routed via code to an event hub?

I would like to create via code an  Activity Log -> Export to Event Hub -> Select all the category logs (Administrative, Service Health, etc ) -> to an Event Hub  via Azure CLI or PowerShell

0 Replies