-
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
azurerm_(linux|windows)_web_app_slot - VNET integration fails #26002
Comments
This seems about the order of the steps when the provider is creating the slot. If I create the slot first without VNET integration Obviously, this is not a workable workaround, as it required to make the changes in different steps. A different workaround that I tried now, and edited this note for it, is using the resource |
@roisanchezriveira thanks for the tests. It does indeed seem like an issue of ordering, but unsure whether it's at the provider-level or the ARM API-level. This used to work fine before because we've had that configuration for over a year on our end but don't regularly need to deploy it as it is part of a testing example we have for our WebApp module (which we only deploy when modifications are performed on said module), so I'm unable to say when or even approximately when this issue started happening, only noticed it last week when testing the module. |
@alexpilon666 I can't say either, I just added slots configuration to our WebApp module and found this issue when I was searching for the error, trying to figure out if it was my mistake or a provider error. Because our module was still WIP for this, I could add the workaround I suggested in my response, but seems far from ideal and that's not a fix for everyone else having their modules already built and using the functionality. For context, I'm AzureRM Provider Version 3.98.0 and it's present, so it's at least since that one. |
Issue has been fixed with the following PR, just did a test with the latest provider version and confirms it's working as it should: #25634 According to the PR, the issue has been present since v3.88.0, so it's been there for a while 😅 |
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.8.3
AzureRM Provider Version
3.103.1
Affected Resource(s)/Data Source(s)
azurerm_windows_web_app_slot, azurerm_linux_web_app_slot
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The Web App Slot should get properly created and attached to the specified VNET
Actual Behaviour
Terraform fails saying that the slot does not have an App Service Plan, but it does because its parent is attached to an App Service Plan.
I tried adding
service_plan_id
toazurerm_windows_web_app_slot
and received an error that this argument can only be used if it is different from theservice_plan_id
of the parent Web app, thus confirming that Terraform is aware that the parent already is connected to a Service Plan.Steps to Reproduce
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: