Hi,
There is no such built-in policy available but you can make copy of "Configure Azure Activity logs to stream to specified Log Analytics workspace" policy and there are a few things that you need to change:
- parameter logAnalytics change it to storageAccountResourceId. Replace in the policy everywhere where it is referenced. Remove strongType from the parameter.
- within the policy you can change the subscriptionToLa name to subscriptionToSa
- Change property workspaceId to storageAccountId.
- Change role definition from /providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293 to /providers/microsoft.authorization/roleDefinitions/17d1049b-9a84-46fb-8f53-869881c3d3ab.
I hope this helps you not only achieve this particular task but also in case you encounter other scenarios that may require modifying existing built-in policy.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.