-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Feature Request: split azurerm_application_gateway into multiple resources #727
Comments
hey @jansepke Thanks for opening this issue
So back when we were first supporting this resource we were hoping to take this approach - however after some investigation it appears the API is set up different from the Load Balancer API (which uses the approach you've specified) such that it's not possible. In the Load Balancer resources we essentially create an empty Load Balancer with all sub-fields (such as the Probes) as empty lists - and then when making any changes we pull the latest information about the Load Balancer and update the relevant field, for instance we add a new Probe. Unfortunately the Application Gateway API requires almost all of the Application Gateway sub-objects to be specified, such that whilst we could do this for a few of the sub-objects (from memory fields like In order to proceed with this we'd need the API to be updated to handle this - I'll raise this through our internal channels, but it might be worth opening an issue on the Rest API Specs Repository so that the Application Gateway team could better understand the use-case. Separately to this there's a feature request in Terraform Core which may help with this that you may be interested in/wish to subscribe to: https://github.com/hashicorp/terraform/issues/2275 Given there's not a lot we can do with this issue in the foreseeable future, I'm going to close this issue for the moment. However should support become available for this in the API (and/or the SDK) - we'll certainly look to support this. Thanks! |
Asked on azure feedback site : https://feedback.azure.com/forums/217313-networking/suggestions/39634519-allow-creation-of-an-empty-application-gateway |
Asked also for related feature request: https://feedback.azure.com/forums/217313-networking/suggestions/39634588-add-rest-apis-and-sdk-to-manage-application-gatewa |
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! |
Hi,
would it be possible to split the azurerm_application_gateway resource into multiple other? so that one can create backends, listeners and rules in another file. Also then one could use count in the sub-resources, which is not possible right now. Maybe you could start with backend_address_pool because this has relations to other terraform azure resources.
Terraform Version
Terraform v0.11.1
Affected Resource(s)
The text was updated successfully, but these errors were encountered: