How to link application insigth with workspace logs analytics

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


I did a quick search of open issues and found this… looks like it’s not implemented yet, due to missing upstream requirements.

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  ${} --app ${}  --workspace ${}"