Resources
unknown
yaml
7 months ago
1.4 kB
2
Indexable
Never
resource "azurerm_subnet" "example" { name = "example-subnet" resource_group_name = azurerm_resource_group.example.name virtual_network_name = azurerm_virtual_network.example.name address_prefixes = ["10.0.1.0/24"] delegation { name = "example-delegation" service_delegation { name = "Microsoft.Web/serverFarms" actions = ["Microsoft.Network/virtualNetworks/subnets/action"] } } depends_on = [ azurerm_virtual_network.example ] } 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, ] } }
Leave a Comment