Azure Active Directory audit logs/diagnostic logs routed to an Event Hub via PowerShell or AzureCLi

%3CLINGO-SUB%20id%3D%22lingo-sub-1040296%22%20slang%3D%22en-US%22%3EAzure%20Active%20Directory%20audit%20logs%2Fdiagnostic%20logs%20routed%20to%20an%20Event%20Hub%20via%20PowerShell%20or%20AzureCLi%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1040296%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fblob%2Fmaster%2Farticles%2Factive-directory%2Freports-monitoring%2Fquickstart-azure-monitor-route-logs-to-storage-account.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fblob%2Fmaster%2Farticles%2Factive-directory%2Freports-monitoring%2Fquickstart-azure-monitor-route-logs-to-storage-account.md%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20I%20do%20the%20above%20setting%20but%20using%20code%20from%20PowerShell%20or%20Azure%20CLI%2C%20so%20I%20can%20route%20the%20audit%20logs%2Fsignin%20logs%20(%20diagnostic%20logs)%20to%20an%20event%20hub%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1040296%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAutomation%20%26amp%3B%20Control%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzureCLI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/active-directory/reports-monitoring...

 

How can I do the above setting but using code from PowerShell or Azure CLI, so I can route the audit logs/signin logs ( diagnostic logs) to an event hub?

0 Replies