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.61k stars 4.65k forks source link

Support for enabling Application Routing and Configuration Routing settings for AppService VNet Integration using Azure Terraform #27989

Open RSwarnkar opened 1 week ago

RSwarnkar commented 1 week ago

Is there an existing issue for this?

Community Note

Description

I am using app_service_virtual_network_swift_connection to create Vnet Integration for an AppService.

resource "azurerm_app_service_virtual_network_swift_connection" "example" {
  app_service_id = azurerm_app_service.example.id
  subnet_id      = azurerm_subnet.example.id
}

But I cant find way to enable the Application Routing and Configuration Routing settings as shown in picture. Is there way to enable all the checkboxes via a Terraform resource?

image

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

app_service_virtual_network_swift_connection

Potential Terraform Configuration

resource "azurerm_app_service_virtual_network_swift_connection" "example" {
  app_service_id = azurerm_app_service.example.id
  subnet_id      = azurerm_subnet.example.id
  application_routing = {
    outbound_internet_traffic_enabled = true
  }
  configuration_routing = {
    container_image_pull_enabled = true
    content_storage_enabled = true
    backup_restore_enabled = true
  }
}


### References

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service_virtual_network_swift_connection