Can I host Azure App Services on the VMs that I have reserved? - azure

If have reserved few VMs in Azure, can't I use them to host App services? The instance types I see in VMs is not same as the ones I see in App Service?
For the reserved EC2 instances in AWS, I am able to use them by Elastic Beanstalk service. Isn't the same option available in Azure?

No, the Azure app service is multiple-tenant PaaS. There are multiple web apps that will host the same app service plan and you don't need to manage the underlying infrastructure for your hosting web apps.
Alternatively, you could directly host your application on the Azure VMs or Azure VM scale sets that make you more control of the infrastructure. Also, you could refer to load-balancing options in Azure.

Related

Can Azure Functions be deployed to a Vnet?

Can Azure Functions be deployed inside a VNet?
If I created an App Service environment in a VNet and then picked that App Service Plan when creating the Function, Would that mean that the Azure Function is deployed inside the VNet and have the same restrictions etc. as defined by the VNet?
Yes, you can host an Azure function on Azure App Service Environment which provides a fully isolated and dedicated environment for securely running App Service apps or your functions. You will have fine-grained control over inbound and outbound application network traffic. So it could be restricted by network security groups.
ASEs are isolated to running only a single customer's applications and
are always deployed into a virtual network. Customers have
fine-grained control over inbound and outbound application network
traffic. Applications can establish high-speed secure connections over
VPNs to on-premises corporate resources.
VNet Integration with Azure function is a feature to use Azure Functions to connect to resources in an Azure virtual network. VNet Integration is only for making outbound calls from your app into your VNet.
In this case, you just need to deploy your Azure function in a VNet with ASE instead of VNet integration. Read Services that can be deployed into a virtual network
Yes it can be deployed inside a VNet. I would recommend you to go through the documentation
integrate Functions with an Azure virtual network
An Azure Function can be deployed on an App Service Environment. The App Service Environment is deployed on your own VNET which can have access to on-prem resources via ExpressRoute.

Does webapps integrates with existing VMs on Azure?

I have an existing linux VM on Azure that has PHP + MySql legacy system running on it
I also have a Flask Webapp running under same Azure subscription
is it possible to the Python WebApp reach the existing MySql database running on Linux VM using the existing internal network ?
AB
It seems that you want to access MySql database on the Azure VM from Azure web app hosted in azure app service. If so, it's possible to integrate your app with an Azure Virtual Network.
You could have a quick start in that document, just note that there are two forms to the VNet Integration feature:
Reginal VNet integration. One version enables integration with VNets in the same region. Currently, this feature is still in preview but is supported for Windows app production workloads and Linux Web App for development and integration testing purposes. Read more details here.
Gateway required VNet Integration. The other version enables integration with VNets in other regions or with Classic VNets. This version requires the deployment of a Virtual Network Gateway into your VNet. It is only supported by Windows apps.
Additionally, Since VNet Integration is extended to use Azure container instance. For Linux web app, you could deploy it on Azure container instance in a VNet. See the template. This feature is currently in preview and you could know some limitations about deploying container instances into an Azure virtual network.
If your web app is hosting on other Azure services like Azure VM, you could use VNet to VNet connection or VNet peering or VPN connection to enable the communication between the two different virtual networks. Read more details here.
Hope this could help you.

Azure - difference in publish website and deploy on Azure VM

What is the difference between publishing a website on azure and deploying it on an azure virtual machine?
Azure offers several ways to host web sites: Azure App Service, Virtual Machines, Service Fabric, and Cloud Services.
This article helps you understand the options and make the right choice for your web application.

Can I use Azure Functions within ExpressRoute?

I have an Azure function under an ExpressRoute subscription that is trying to connect to an on-prem database, but fails to do so.
Is it possible to use Azure functions within ExpressRoute?
Thanks!
An Azure Function can be deployed on an App Service Environment. The App Service Environment is deployed on your own VNET which can have access to on-prem resources via ExpressRoute.
If you don't want to pay for an App Service Environment, you can deploy your Function on a dedicated App Service Plan and then use Hybrid Connections to connect to on-prem, or integrate the Function App to your VNET and create a Site-to-Site VPN to on-premises. These last 2 options option, however, won't go through ExpressRoute.
All 3 options are described here. You just need to deploy your Azure Function to an App Service Plan to get same features as an App Service.
HTH
Not without setting up a dedicated router virtual appliance (e.g. a CiscoASA VM from the Azure marketplace). Microsoft will say "not supported", but we were able to get it working in this manner.

How can we connect our Azure service fabric cluster to on-premises service/ database?

We are in process of moving our on-premises services to service fabric and planning to host it on Azure Service Fabric cluster. These service will require access to resources which are on-premises (corp network) and we currently can not move them.
What are the options we have? In past, I've used Hybrid connection for Azure web app but I'm not sure how this can be done for services hosted with Azure Service Fabric.
Your cluster runs on nodes in a VM scale set. The nodes are connected using a VNet. Regular VPN rules apply.
So Point to site, site to site and express route should all work.
You'll need to use ARM to configure a cluster to run in an existing vnet.

Resources