Bug report- azurerm_logic_app_standard virtual_network_subnet_id is always reset when connecting to virtual network using azurerm_app_service_virtual_network_swift_connection #1975
Labels
bug
Something isn't working
Is there an existing issue for this?
Community Note
Version of the module you are using
5.7.11
Rover Version
rover:1.4.6-2305.1807
Terraform Version
v1.4.6 on linux_arm64
AzureRM Provider Version
3.75.0
Affected Resource(s)/Data Source(s)
azurerm_logic_app_standard, azurerm_app_service_virtual_network_swift_connection
Terraform Configuration Files
Expected Behaviour
A
azurerm_logic_app_standard
and aazurerm_app_service_virtual_network_swift_connection
is created. The azurerm_logic_app_standard recognizes the external configuration and does not overwrite it.Actual Behaviour
A
azurerm_logic_app_standard
and aazurerm_app_service_virtual_network_swift_connection
are created. Theazurerm_app_service_virtual_network_swift_connection
sets the subnet_id attribute of theazurerm_logic_app_standard
which does not recognizes the external configuration and tries to overwrite it.This issue is discussed in this issue with close to 50 upvotes:
hashicorp/terraform-provider-azurerm#17930
The issue mentions two possible workarounds:
azurerm_app_service_virtual_network_swift_connection
. Instead use the subnet_id attribute ofazurerm_logic_app_standard
.Option two works for us, but the change from
azurerm_app_service_virtual_network_swift_connection
to thesubnet_id
attribute comes with a downtime. Therfore i would consider this workaround a "breaking change" to CAF.I will provide our solution as a PR, it is on the maintainers to decide if thats a good idea for everyone.
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: