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.6k stars 4.64k forks source link

Support for SignalR ACL IP Rules #24850

Open klemmchr opened 9 months ago

klemmchr commented 9 months ago

Is there an existing issue for this?

Community Note

Description

ACL allows to configure specific ip rules that override the default action. Currently they cannot be managed using Terraform. Probably a new resource azurerm_signalr_service_network_acl_ip_rule would be needed.

image

New or Affected Resource(s)/Data Source(s)

azurerm_signalr_service_network_acl

Potential Terraform Configuration

resource "azurerm_signalr_service_network_acl_ip_rule" "example" {
  signalr_service_id = azurerm_signalr_service.example.id
  action = "Deny"
  target = "0.0.0.0/0"
}

References

No response

deepaannie466 commented 4 months ago

you can achieve this using the azapi_update_resource type resource as a workaround to make changes to IP rules.

klemmchr commented 4 months ago

This is always a workaround but definitely not desirable. Merging the resulting state when a dedicated resource is provided by the terraform provider is a nightmare.