-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Not Possible Associate to Vnet Subnet created via terraform #8
Comments
Hello @fdmsantos Thank you for opening this issue. |
Hi,
Tks for your reply.
Im aware about that limitation. Im unable to test it now, but creation a
new bool variable (something like integration_on_vnet = true) and used it
on count, i think will solve this issue. I think, already found this
solution on another claranet module (Probably function app module). But
right now, i dont have access to my computer to confirm.
Thanks.
…On Mon, Sep 4, 2023, 13:52 Spi ***@***.***> wrote:
Hello @fdmsantos <https://github.com/fdmsantos>
Thank you for opening this issue.
Unfortunately, this is a Terraform limitation. See here
<hashicorp/terraform#30937> and here
<hashicorp/terraform#26755>.
Even if we try to do our best building modules to avoid dealing with this
issue, we sometimes encounter it.
I'm afraid that your only solution is to target the creation of your
subnet and do a second full apply.
—
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGGIXOQFQN75HURYC7G7PK3XYXFINANCNFSM6AAAAAA4HZS2IU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
You're right, we have it on some modules. Also, we've removed the swift resource for function-app but not app-service and cannot remember why. Let me check. |
hi @BzSpi , Any news? Thanks |
Hi @fdmsantos Sorry for the delay. We have previously experienced issues with the VNet integration in the app service resource, it may have been fixed now. |
Community Note
Terraform Version
1.5.6
AzureRM Provider Version
3.65.0
Affected Resource(s)/Data Source(s)
azurerm_app_service_virtual_network_swift_connection and azurerm_app_service_slot_virtual_network_swift_connection
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
It's not possible associate app service to Vnet Subnet if the Subnet is also created in terraform. Because the resources are depending from count keyword, where the count value cannot be determined until apply.
Expected Behaviour: Azure Web App deployed on subnet.
Actual Behaviour
Terraform error
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: