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.51k stars 4.6k forks source link

Support for IP Firewall rules for Azure Relay #15636

Open j-chao opened 2 years ago

j-chao commented 2 years ago

Community Note

Description

Support for adding Network Security rules for Azure Relay, as documented here.

New or Affected Resource(s)

Potential Terraform Configuration

resource "azurerm_relay_namespace" "example" {
  name                = "example-relay"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name

  sku_name = "Standard"

  network_rulesets {
    default_action                 = "Deny"
    trusted_service_access_enabled = false

    virtual_network_rule {
      subnet_id                                       = var.subnet_id
      ignore_missing_virtual_network_service_endpoint = false
    }

    ip_rule {
      ip_mask = "1.1.1.1"
      action = "Allow"
    }

  tags = {
    source = "terraform"
  }
}

References

ThamizhselvanThiruvenkadam commented 1 year ago
RajanikanthGitHub commented 6 months ago

Any update on this thread.

how to apply Network realted integrations to Azure Relay Namspace.?