Closed mg-8 closed 1 year ago
I'm also encountering this problem.
It's doing the same thing for "azurerm_logic_app_standard" post release of provider version 3.23.0. As it supports for the virtual_network_subnet_id property for vNet integration (https://github.com/hashicorp/terraform-provider-azurerm/issues/17731). This must be fixed on both function and logic app to avoid this behavior.
Thanks @mg-8 for raising this issue, you can track the status of fix in the mentioned pr
I've noticed the same thing in 3.25.0
.
In this case is there a benefit or even a difference between using azurerm_app_service_virtual_network_swift_connection
or by setting azurerm_windows_function_app.virtual_network_subnet_id
. If not we could go with the latter?
I am also encountering this problem; I have tested this in AzureRM version 3.26.0 which still has the issue.
Can you give a timeline for this bug to be fixed?
@bobharkins , as I mentioned in issue #18288 . It would be a little difficult for us to deal with it in the provider. The property can be set via two places but not simultaneously, the user needs to use the ignore_change feature. We will add notes in documents
Thanks @xiaxyi do you know if there’s a difference between the two alternatives?
https://github.com/hashicorp/terraform-provider-azurerm/issues/18225#issuecomment-1263162538
@orjan There is no difference, both of them is setting the same thing.
The notes are added in pr https://github.com/hashicorp/terraform-provider-azurerm/pull/18738
Can someone give me a sample code block to use for the ignore_change feature please?
This issue still exists with the latest provider.
Thanks in advance all.
@mudman2k you should be able to add this block in the end of your config for the app service.
https://github.com/hashicorp/terraform-provider-azurerm/issues/18288#issuecomment-1272840733
If you run a terraform plan
before and after you should be able to notice the difference
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
1.2.2
AzureRM Provider Version
3.20.0
Affected Resource(s)/Data Source(s)
azurerm_windows_function_app
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Terraform plan/apply must not remove virtual_network_subnet_id as it can be configured in-line within resource azurerm_windows_function_app or separately app_service_virtual_network_swift_connection
Actual Behaviour
Terraform plan/apply is doing an update in-place to remove virtual_network_subnet_id
Steps to Reproduce
1) Terraform apply for the first time to create the function app and vnet integration 2) Run terrform plan or apply again
Important Factoids
No response
References
No response