hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.48k stars 4.56k forks source link

Support for tags on azurerm_network_watcher_flow_log #11442

Closed joedoss closed 3 years ago

joedoss commented 3 years ago

Community Note

Description

azurerm_network_watcher_flow_log should allow a "tags" parameter, since the underlying resource supports tagging. (Microsoft.Network/networkWatchers/flowLogs)

New or Affected Resource(s)

Affected resource: azurerm_network_watcher_flow_log

Potential Terraform Configuration

resource "azurerm_network_watcher_flow_log" "exampleFlowlog" {
  network_watcher_name = azurerm_network_watcher.networkwatcher.name
  resource_group_name  = azurerm_resource_group.networkwatcherrg.name

  network_security_group_id = azurerm_network_security_group.ManagementNSG.id
  storage_account_id        = azurerm_storage_account.nsgflowlogstorage.id
  enabled                   = true
  version                   = 2
  tags = {
    "deployment-environment"   = "poc",
    "deployment-method"        = "terraform",
    "business-applicationname" = "infrastructure"
  }

  retention_policy {
    enabled = true
    days    = 120
  }

  traffic_analytics {
    enabled               = true
    interval_in_minutes   = 10
    workspace_id          = azurerm_log_analytics_workspace.hub-loganalyticsworkspace.workspace_id
    workspace_region      = azurerm_log_analytics_workspace.hub-loganalyticsworkspace.location
    workspace_resource_id = azurerm_log_analytics_workspace.hub-loganalyticsworkspace.id
  }
}

References

https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/tag-support#microsoftnetwork

MitchDrage commented 3 years ago

Not supported on the current network SDK version. Need to bump SDK from 2020-05-01 to a minimum of 2020-06-01 to get support for tags on that resource type.

katbyte commented 3 years ago

looks like this was fixed by #11670

github-actions[bot] commented 3 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.