Can you link log analytics to resources besides automation accounts in Azure?


Currently our team is using ARM templates and we are looking to move to using Terraform for our Azure environment.

One issue is we generally link every possible resource to send logs to our log analytics so that we have all logging centralized in one place.

The documentation for azurerm_log_analytics_linked_service says it only works for automation accounts.

Is there a way to use Terraform to link other resources to log analytics? This is a critical feature for us and is required by our security and compliance team.