azurerm_log_analytics_workspace_linked_serviceresource "azurerm_log_analytics_workspace_linked_service" "linked_service" {
workspace_name = "${var.la_workspace_name}"
linked_service_name = "automation"
resource_group_name = "${var.rg_name}"
linked_service_properties {
resource_id = "${automation_account.automation_account_id}"
}
tags {
tag1 = "1"
tag2 = "2"
tag3 = "3"
}
}
Tags should be attached to the resource
No tags are attached to resource (noticed via state file). This causes subsequent applies to attempt to update the resource.
azurerm_log_analytics_workspace_linked_service resource with tagsterraform.tfstateterraform apply with no changesResource API shows that tags are supported, both for create/update and get.
@philbal611 Thanks for opening this issue, I can confirm it's reproducible and it's because of empty tags returned in Azure Operational Insights API. https://github.com/Azure/azure-sdk-for-go/issues/3883 is opened to track this issue.
Perfect, thanks!
Hi @philbal611 , the API issue was closed and released in new SDK version. I have verified the issue was fix in latest Provider version, please have a check. By the way, old resource "azurerm_log_analytics_workspace_linked_service" was migrated to "azurerm_log_analytics_linked_service".
Thanks in advance, thanks for @metacpp .
I'm still seeing this issue using azurerm_log_analytics_linked_service using provider 2.37.0.