-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
App Service VNET integration not working #2254
Comments
If they are of any worth here are the templates from when did it manually compared to how it looked with TF Actual: https://gist.github.com/mat-mcloughlin/ea8b760452ffacf20d97f2e943634d9d |
I believe in order to host App Service on a vnet, you need to stand up an App Service Environment, attach plan(s) to that, then attach app services to those plans. Unfortunately there's no official ASE resource in terraform for this, so you need to use |
hey @mat-mcloughlin Thanks for opening this issue :) Digging into how the Portal achieves this - it appears the Azure Portal calls out to Kudu, which is the API hosted on the App Service to configure this Virtual Network Connection, rather than an API within Resource Manager. In our case that makes the following request:
Unfortunately at this time there's no Golang API Client for Kudu (and Kudu itself isn't overly well documented) - but I'd requested support in this issue - which I'd recommend subscribing to for updates. Thanks! |
I am seeing the same issue attached the app service to vnet... |
Note the documentation indicates it should work. Since it does not actually work, you end up with the App Service not in the Vnet you expect, which means it's not protected by the network security group that it is documented to have. Boom, security issue. |
Hi, I use the following workaround for this. My VPN gateway terraform module creates two resources:
After this new certificate will be generated by azure.
The certificate should be added exactly with this name - AppServiceCertificate.cer App service module. My app service terraform module for app service include terraform code for app service creation and null_resource block that run powershell script that adding app service to vnet.
Code for app service gateway certificate configuration
Terraform
and code for app service vnet integration
and terraform code
|
👋 Taking a look into this - it appears the Thanks! |
Using the format Can anyone confirm this has worked previously? |
@robck attaching App Services to a Virtual Network's gone through a few iterations on the Azure end unfortunately. After chatting with the service team a while back it appears that the Thanks! |
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 👉 hashibot-feedback@hashicorp.com. Thanks! |
When creating an app service I'm attempting to attach it to a virtual network using the following syntax
Terraform runs as expected with no errors. However it doesn't seem to be taking as you can see from the attached screenshot:
Full tf file is below:
The text was updated successfully, but these errors were encountered: