How to link application insigth with workspace logs analytics

Hi,
how i can add log analytics workspace when i create application insight with terraform ?

cH.

I did a quick search of open issues and found this… https://github.com/terraform-providers/terraform-provider-azurerm/issues/7667 looks like it’s not implemented yet, due to missing upstream requirements.

Hi,
thank you…
I hope it will be soon.

i resolved my problem with az cli command.

resource "null_resource" "ChangeWorkspaceLogAnalytics" {
provisioner "local-exec" {
         command = "az monitor app-insights component update --subscription ${lookup(var.subscription_id, var.tag_environment)} --resource-group  ${data.azurerm_resource_group.default.name} --app ${azurerm_application_insights.default.name}  --workspace ${azurerm_log_analytics_workspace.default.id}"
    }
}