azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Enable activity log output to Log Analytics workspace

Open SenthuranSivananthan opened this issue 7 years ago • 14 comments

Is your feature request related to a problem? Please describe. I would like the ability to enable activity log output to Log Analytics workspace through CLI. The goal is to automate subscription creation and scaffolding before handing out subscriptions to LOBs.

Describe the solution you'd like Add extra parameter for workspaceid. For example:

az monitor log-profiles create --workspace-id resourceId

Describe alternatives you've considered This is possible Azure Portal.

SenthuranSivananthan avatar Dec 07 '18 18:12 SenthuranSivananthan

Logprofiles does not support Log Analytics as a destination sink. We are working on new version of diagnostic settings API to support routing Activity Logs to Log Analytics

asheniam avatar Jun 27 '19 19:06 asheniam

Hi,

Is there an approximate date for the new API?

diegoitaliait avatar Jul 16 '19 15:07 diegoitaliait

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Dalubash

ghost avatar Sep 02 '19 03:09 ghost

@asheniam Hello. Any update?

mmyyrroonn avatar Sep 02 '19 03:09 mmyyrroonn

We are shipping the new API method "Subscription Diagnostic Settings" this month. The CLI should be available shortly thereafter.

nkiest avatar Oct 01 '19 22:10 nkiest

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @SameergMS

ghost avatar Dec 31 '19 06:12 ghost

@nkiest any update for this issue?

yonzhan avatar Feb 15 '20 05:02 yonzhan

We have REST API support, but are still working to enable powershell and CLI.

nkiest avatar Mar 06 '20 02:03 nkiest

https://docs.microsoft.com/en-us/rest/api/monitor/subscriptiondiagnosticsettings/createorupdate

nkiest avatar Mar 06 '20 02:03 nkiest

Any updates on cli support ? trying to automate the Azure Activity Log connection to subscription with Log Analytics Connection. this does not appear to have a cli option.

image

infa-dgowran avatar May 01 '20 17:05 infa-dgowran

@nkiest any update for this?

yonzhan avatar May 01 '20 23:05 yonzhan

Is this something in the roadmap ?

infa-dgowran avatar Jun 15 '20 13:06 infa-dgowran

@nkiest any update for this?

yonzhan avatar Jun 15 '20 21:06 yonzhan

We already have a request on the CLI team, awaiting that. https://github.com/Azure/azure-cli/issues/13692

nkiest avatar Jun 15 '20 23:06 nkiest