-
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: App Service VNET Integration #1445
Comments
hi @samcook Thanks for opening this issue :) App Services can be attached to Virtual Network's by attaching the App Service Plan containing the App Service to an App Service Environment; this property is available in the Since this is a question regarding Terraform Configuration rather than a bug in Terraform - I'm going to close this issue for the moment. Thanks! |
Thanks for the quick response. While I understand that an app service within an app service environment does get attached to a vnet (and we use this in our production environment), this is a different feature (non ASE app service connected to vnet via a vnet gateway). In our case, we use this in non production environments to allow our app services to communicate with vnet resources, because app service environments are quite expensive. Is this still something that you'd consider implementing? |
Yes it is (whilst this isn't on our short-term roadmap at the moment, we're happy to help with a PR for this). Apologies, I missed that this wasn't related to the App Service Environment connection method - I'll reopen this :) |
Great, thanks @tombuildsstuff I've been trying to get it working using ARM templates, but not having any joy there either. If this link is to be believed, it's not even something that can be done using ARM templates alone. 🙁
|
The good news is it appears there's an API's for both of these: https://docs.microsoft.com/en-us/rest/api/appservice/webapps/createorupdatevnetconnection I've not checked the SDK yet - but assuming there's matching SDK methods for these (which there should be if there's docs) it should be possible to add this to Terraform :) |
|
Would it not make sense to also include virtual_network_name for azurerm_function_app since they do share the same api calls and both of them are app service? |
@thoregilK given that's a separate resource (since it's slightly different) - there's a feature request for Virtual Network Integration within Function Apps here #1460 - which I'd recommend subscribing to for updates |
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! |
Community Note
Description
Add the ability to connect an app service (or app service slot) to a virtual network via an existing virtual network gateway.
New or Affected Resource(s)
Potential Terraform Configuration
References
https://docs.microsoft.com/en-us/azure/app-service/web-sites-integrate-with-vnet
https://docs.microsoft.com/en-us/azure/templates/microsoft.web/sites/virtualnetworkconnections
https://gallery.technet.microsoft.com/scriptcenter/Connect-an-app-in-Azure-ab7527e3
The text was updated successfully, but these errors were encountered: