DCR: powershell cmdlet to collect activity log across subscription in Log analytics workspace
We have activity log solution here: https://docs.microsoft.com/en-us/azure/azure-monitor/platform/collect-activity-logs
cx want to do the below steps by powershell command:
- Configure activity logs to go to your Log Analytics workspace.
- In the Azure portal, select your workspace and then click Azure Activity log.
- For each subscription, click the subscription name.
Currently we don't have any powershell commands to do the same, as I know, we have some powershell command to enable custom logs in log analytics, hence please also provide similar command to connect activity logs in workspace across subscription.
This is critical for programmatic subscription deployments!