You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terraform should apply my changes, ignoring the access restrictions.
Actual Behavior
Terraform deletes all app services from the state, then crashes.
Steps to Reproduce
Create an app service with an access restriction rule using a VNet. Import it (this works fine). Create a configuration file that will update the app service, then apply it.
Notes
The ipSecurityRestriction section for VNets looks like
This doesn't have an "ipAddress" key, so it fails the existing "ip_restriction" schema (which parses the IP Access Restriction well enough that Terraform doesn't crash). This currently shows up in the state as
This is like #3685, but while that wants a complete support of App Restrictions, I just want to be able to apply my configuration without removing and re-adding the VNet access restriction. This is also like #2488, but that one is about not breaking existing IP Address restrictions.
The text was updated successfully, but these errors were encountered:
Hey @midgleyc, thanks for opening this issue. The crash has been found and fixed with #4184. Feel free to reopen this issue if you continue to experience problems after 1.34.0 goes out
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
Sep 30, 2019
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.11.14
Affected Resource(s)
azurerm_app_service
Terraform Configuration Files
Create an app service with an access restriction rule using a VNet, then run any terraform command that updates the app service.
Debug Output
https://gist.github.com/midgleyc/4bc1f27e61a696bc3c5210b28437e9a7
Expected Behavior
Terraform should apply my changes, ignoring the access restrictions.
Actual Behavior
Terraform deletes all app services from the state, then crashes.
Steps to Reproduce
Create an app service with an access restriction rule using a VNet. Import it (this works fine). Create a configuration file that will update the app service, then apply it.
Notes
The ipSecurityRestriction section for VNets looks like
This doesn't have an "ipAddress" key, so it fails the existing "ip_restriction" schema (which parses the IP Access Restriction well enough that Terraform doesn't crash). This currently shows up in the state as
References
This is like #3685, but while that wants a complete support of App Restrictions, I just want to be able to apply my configuration without removing and re-adding the VNet access restriction. This is also like #2488, but that one is about not breaking existing IP Address restrictions.
The text was updated successfully, but these errors were encountered: