swift conn

 avatar
unknown
yaml
a year ago
853 B
7
Indexable
resource "azurerm_function_app" "example" {
  name                       = "siliconfunc-0987"
  location                   = azurerm_resource_group.example.location
  resource_group_name        = azurerm_resource_group.example.name
  app_service_plan_id        = azurerm_app_service_plan.example.id
  storage_account_name       = azurerm_storage_account.example.name
  storage_account_access_key = azurerm_storage_account.example.primary_access_key
  tags = {
    costCenter = "My Cost Center"
  }
  depends_on = [azurerm_app_service_plan.example]
}
resource "azurerm_app_service_virtual_network_swift_connection" "this" {
  app_service_id = azurerm_function_app.example.id
  subnet_id      = azurerm_subnet.example.id

depends_on = [azurerm_subnet.example, azurerm_function_app.example]
  lifecycle {
    ignore_changes = [
      subnet_id,
    ]
  }
}
Editor is loading...
Leave a Comment