Enable activity log output to Log Analytics workspace
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.
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
Hi,
Is there an approximate date for the new API?
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Dalubash
@asheniam Hello. Any update?
We are shipping the new API method "Subscription Diagnostic Settings" this month. The CLI should be available shortly thereafter.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @SameergMS
@nkiest any update for this issue?
We have REST API support, but are still working to enable powershell and CLI.
https://docs.microsoft.com/en-us/rest/api/monitor/subscriptiondiagnosticsettings/createorupdate
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.

@nkiest any update for this?
Is this something in the roadmap ?
@nkiest any update for this?
We already have a request on the CLI team, awaiting that. https://github.com/Azure/azure-cli/issues/13692