-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Creating azurerm_windows_web_app_slot with virtual_network_subnet_id specified results in Internal server error (500) #24618
Comments
Important to note: deploying an app through REST API with vnet integration fails with 500 as well. |
We are also facing same issue with azurerm_windows_function_app_slot. |
I would also like to report that this issue is present when using the virtual_network_subnet_id setting on azurerm_windows_function_app_slot resources. Removal mitigates the issue. I'd also like to add that using azurerm_app_service_slot_virtual_network_swift_connection appears to be a valid workaround |
we were also facing same issue. we commented out "virtual_network_subnet_id " in the slot and then ran terraform apply which completed then we again uncommented "virtual_network_subnet_id " and second run terraform completed with subnet id and updated slot. |
There was an schema update for the resource azurerm_service_plan so it's not possible to roll back to 3.87 in order to workaround the issue without removing and importing the resource from the state |
We are getting the same error with both 3.88.0 and 3.89.0. After enabling trace logging, the only difference we can see between the successful 3.87.0 payload and the 3.89.0 payload is that the successful one is also passing the serverFarmId (i.e. the app service plan) whereas that ONE line is missing in the payload using 3.89.0. |
Just tried 3.90.0 and am still getting a 500 error. |
Sharing the script to reproduce the bug. I can confirm that @birenshah2 comment is accurate.
|
Same issue here with virtual_network_subnet_id in the resource azurerm_windows_function_app_slot : #24727 |
This should be resolved with v3.91, specifically this part of the release: commonids.ParseAppServiceEnvironmentIDInsensitively(). As such, I am going to mark this issue as closed. If after upgrading that is not the case, please provide additional information including the version in which you are still experiencing this issue, thanks! |
I am still facing the issue with the azurerm_windows_web_app_slot, I did not test the function app slot
azurerm provider version 3.91.0 Can we re open it? |
Yes, I just tried it out with 3.91.0 and got the same as VasquezAgustin above. azurerm provider version 3.91.0 I will say I had a case open with Microsoft Azure Support on this matter, and they have confirmed that there is a networking related issue on their side that is causing the issue. They have indicated that it should get fixed in version 102.x.x.x of App Service, which might be another couple weeks. You can view the version by checking the Environment tab on the SCM site for any App Service. |
Thank you @VazquezAgustin and @birenshah2 for the updates! I will go ahead and reopen it and label it with upstream/microsoft to indicate that networking related issue on their side that it should get fixed in version 102.x.x.x of App Service. |
The issue persists; simply reporting for the record. Terraform Version: v1.7.4 |
We've also filed a support ticket for Microsoft regarding this issue. Their investigation concluded that prior to azureRM version 3.88.0 the provider automatically filled out the |
Hello @rcskosir I made some investigations:
I believe that I'm right that exactly this change is a root cause of our problems. There should be a reason why it was implemented, but I still can't understand, why the change was implemented for App Service Windows slot only, but Linux slot, Function slots were kept without the change. I will add @jackofallops to this conversation, maybe he will be able to help us to solve the issue! Thank you in advance! |
We experience the same error with a windows function app slot since moving to TF azurerm provider 91. |
@rcskosir this has been tagged as upstream/Microsoft however it seems that there is no upstream issue. Isn't the fix here for the Terraform provider to supply the |
Any updates on a fix for this? We are also running into this issue and can't downgrade below 3.87 |
We noticed that not providing virtual_network_subnet_id when you create the slot, we can at least run TF to create the slot. Then we add this parameter and run TF again. It is a very painstaking exercise but seems it works. |
@Apokalypt @websolut I'm confused... in response to both of your comments, I am already passing in an
So I think I'm running this as intended and as suggested by the error/warning above, no? Any other thoughts on this? |
@birenshah2 You are correctly using the service but right now there is a bug, I'm currently developing a fix and will create a PR for that in few mins. |
Sounds good! Thank you!! |
Hi folks, please vote on the PR, this has been broken for months. |
Hi @Dmitrii034 if you have any details about the investigation, maybe we can get some traction over on the PR. There is some hesitation without confirming with Microsoft, which sounds like you already did. |
@tdkeeley Sorry, we did not get much else from that investigation. They recommended us to specify the parameter ourselves, but it is currently not possible due to validation on the provider. The only other thing of note is that they told us that they would make the resulting error clearer. This is probably why the new error now states that the parameter is missing. Not sure what is the reason for the current delay. |
This functionality has been released in v3.105.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.7.0
AzureRM Provider Version
3.88.0
Affected Resource(s)/Data Source(s)
azurerm_windows_web_app_slot
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
A web app slot is created with virtual network integration
Actual Behaviour
Error 500 is thrown, web app slot is not created.
Steps to Reproduce
Deploy a windows web app slot with subnet specified, make sure to use v3.88.0. Issue does not occur on v3.87.0 and earlier.
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: