Azure and Private non azure based endpoint - azure

I have a basic app up and running as a docker container within Azure App Service.
I have an internal endpoint in my company I would like my Azure App Service have access to.
The internal endpoint is a private non internet reachable address - it does not run in azure.
What are my options?
Would prefer not to create a public IP for my private (non azure) endpoint.
Is there some way i can create a some VPN between the app service and private endpoint?

It's possible to enable networking from app service and set up site to site VPN connection to your on-premise network to allow access your on-premise private endpoint from web app in the Azure app service. See How regional VNet Integration works for more details.
Please note that Azure Virtual Network (VNet) integration for Linux Web App is currently in Preview. Customers can use the VNet feature for development and integration testing with your web apps. Please do not use the feature for production purposes.
You could view these related documents for more information:
https://github.com/Azure/app-service-linux-docs/blob/master/app_service_linux_vnet_integration.md
https://azure.microsoft.com/en-us/blog/azure-app-service-update-free-linux-tier-python-and-java-support-and-more/
https://github.com/MicrosoftDocs/azure-docs/issues/41790#issuecomment-571359376

Related

Azure APP Service.+ Private Link + Azure Container Registry

I have set up Azure APP Service and connect it through Private Link, I have disabled all public connectivity, while making tests using webhook from ACR I'm always getting "Error 403 - Forbidden
The web app you have attempted to reach has blocked your access."
On Access Restriction I have "Allow ALL" on both scm and non scm host ... but still I'm getting the same result - I have not found any blocking rules in Environment or in App Service plan - where should I look ?
Private link is for the hosted application, not the app service resource. This means your hosted app can talk privately to an azure service like APIM or a storage account directly. But when the app service needs to pull an image from the registry privately, you will have to use an ASE or App Service Environment.
Unfortunately, an ASE will cost almost a 1K per month because you are renting out space in their data center to support isolation for your app services.
I don't always get my head around the way Microsoft implements private endpoints. When you care about network security, you always want to work with private endpoints. However, private endpoints introduce the need for other services like a NAT firewall, VPN access, and more. Not even to mention the expensive App Service Environment (ASE).
In the case of using ACR webhooks combined with private endpoint secured App Services, using a proxy App Service or Azure Function can be a solution. You can deploy this in the same App Service Plan and enable regional vnet integration. This allows the proxy to be publicly visible, while still being able to send a webhook inside the virtual network to the scm site of the other App Service. For security reasons, you should of course work with (managed) identities.

Do i need point to site vpn with azure waf and web app

I have been messing around with Azure trying to get a web app up and running. My plan was to create a WAF and site the web app behind that, each in a seperate subnet and then to use the service endpoint tech to point the web app to a database.
I have been stopped in my tracks almost straight away with the revelation that if i want to use a WAF in front of the web app i have to configure the networking in the web app but when i choose a vnet it says that no gateway is configured for the selected VNET.
My question being is do i have to use point to site VPN to get this setup working? i thought that it would work like
INTERNET ---> VNET ----> subnet ----> WAF -----> subnet -----> web app ----> service endpoint ------> DB
but that doesnt seem to be the case. I am not keen on the idea of having to install a client certificate on every machine in our network that might want to access this website (it is currently internal). I suppose i am looking for the best of both worlds. Accessible from the internet but having the added comfort of having something like a WAF sat in front of it to make up for any security inadequacies which might exist somewhere in said app.
Thanks
As far as I know, you could not deploy a web app in a VNet unless you are using the App Service Environment(Isolated). App VNet integration could not do it. It allows you to securely access resources in a VNet. For example, you have a database on an Azure VM in a private VNet. You could not access it from Azure web app to this database if this database is not available publicly, but you could reach it via app VNet integration.
VNet service endpoints is another different service. Endpoints allow you to secure your critical Azure service resources to only your virtual networks. If you enable such service endpoint like Azure SQL database( which differs from the database on Azure VMs) in a VNet, this means only the resource in these authorized VNets could access your SQL database unless you add an exclusion like the public IP address in the firewall of the database.
In this case, you could put a Public facing Azure app gateway at the high level of the web app service, then add the Azure app gateway public IP in the IP restriction of the web app.This will restrict to access to web app via Azure web app gateway over the Internet. Also, you could control the network inbound and outbound in Azure app gateway subnet NSG. See Network security groups on the Application Gateway subnet if you want to add an NSG to the app gateway subnet level. I think these are enough if you just want to create a WAF and site the web app behind that.
Furthermore, if you want to let web app privately access the Azure SQL database. You could deploy a web app in an ASE, then enable the VNet service endpoint for Azure SQL database. App VNet integration does not need to use it with the service endpoint.
If you want to use Azure WAF with Azure App Service (multi-tenant) you can, you just need to ensure you are supplying the host header with your request.
If you want you Azure Web App on a VNet, you will need to run your Azure Web App on an App Service Environment (Isolated). This version of Azure Web App is more expensive but allows you to apply NSG's to the VNet to fully control access to your web app. Personally I think WAF w/ Azure App Service (multi-tenant) should meet your needs.
We have it all documented here:
https://learn.microsoft.com/en-us/azure/application-gateway/application-gateway-web-app-overview
https://learn.microsoft.com/en-us/azure/application-gateway/configure-web-app-portal

Azure Web App only through Application Gateway and disable direct access

How can I make the Azure Web App or web service to only through Application Gateway and disable direct access. So nobody will be able to access through the direct Fully Qualified Domain name such as mysite.azurewebsite.net?
Thanks for your help in advance.
You could set up Azure web app in the ILB Azure service environment. Azure ASE is a deployment of Azure App Service into a subnet in an Azure virtual network (VNet). This ILB ASE (Internal ASE) isn't exposed to the Internet. You can follow this blog to run an App Service behind a WAF-enabled Application Gateway.
This Web App isn't publicly accessible as it is sitting in a subnet
inside a Virtual Network and it isn't exposed to the internet. The
only way to access the site is through a Web Application Firewall
enabled Application Gateway.
Besides, If you just want to restrict public access to your Azure Web Apps with the IPSecurityRestrictions option, you can refer to this to get more references.

App Service VNet Integration with Azure Storage Service Endpoint

I made an App Service (S1) and then from the Networking blade created a VNet Integration using the documentation here. The connection looks like
Then I made a Storage Account and under the Firewall and Networking tab I selected the preconfigured VNet that was made by the portal
Trying to access the Azure Storage from a deployed Web App give a 403 forbidden error. What settings do I need to change for the Web App to gain access to the Azure Storage Service Endpoint?
Vnet integration gives your web app access to resources in your virtual network but does not grant private access to your web app from the virtual network.
Private site access refers to making your app only accessible from a
private network such as from within an Azure virtual network. Private
site access is only available with an ASE configured with an Internal
Load Balancer (ILB).
More information about ILB ASE, please refer to this article.

Azure Web App DMZ

I will be hosting a web application using a Web App Service that stores data to a database using SQL Database Service in Azure. I do not need access to the server and I do not need a virtual machine, I want to keep my configuration as a (Paas) Platform as a service. My question is: how do I setup a DMZ in azure to protect the web app? This web app will be available to the public and there will be an admin section where the admins can update/add data.
1.Please have a try to create NSGs to control inbound and outbound access to network interfaces (NICs) and subnets.
• Create a Network Security Group and virtual network then config it follow the document
• Integrate your app with an Azure Virtual Network
detail info please refer to the Integrate your app with an Azure Virtual Network
• If you want to get more info about VET, please refer to Azure Virtual network
2.You also can have a try to use ASE and there are some ASE related
Introduction to App Service Environment
Configuring a Web Application Firewall (WAF) for App Service Environment
How to Control Inbound Traffic to an App Service Environment

Resources