Azure Logic App - Access SQL Server running in Azure VM - azure

My client has a SQL Server instance installed on an Azure VM.
I am building an Azure Logic App and the end result is to write to this SQL Server instance.
To connect to this SQL Server instance running on the Azure VM do I need to treat it the same way I would as an on-prem SQL Server and install the gateway softwaare, or is there a better way since the VM is in Azure?

You shouldn't need to use a gateway. A gateway is mainly used for securing the data connection from a cloud service to an on-prem datbase, since the traffic goes over the public internet.
With the DB on an Azure VM, you can deploy your logic app into an integrated service environment. This keeps the traffic between logic app and DB on the private VNET. See the documentation on ISEs here.

Related

Should Azure app service and SQL Server be in different VNets?

Short question, I have a SQL Server and a Website running on App Service, and I want to ensure private connectivity between them, should I put them in separate Vnets or in the same Vnet?
You may refer to this example scenario which describes how to securely connect a web app to a backend database over a fully private connection.
The architecture ensures communication from the web app in Azure App Service and Azure SQL Database only traverses a virtual network.
Refer to detailed workflow mentioned here.

Connect Azure Logic App to On Premise FTP Server using Azure Hybrid Connection

I am currently exploring a way to connect Azure Logic App to be able to fetch file from on-premise FTP server. What I have found in Azure documentation : https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-ftp#connect-to-ftp, that it is possible to do so.
If you have an on-premises FTP server, consider creating an
integration service environment (ISE) or using Azure App Service
Hybrid connections, which both let you access on-premises data sources
without using an on-premises data gateway.
So I am interested to use Azure App Service Hybrid connections for this, but what I don't know is how to connect ftp connector in logic apps to Hybrid connections set in Azure App service. The documentation for Azure Hybrid connection didn't mention about how to do this.
If anyone knows how to connect Azure Logic App to on-premise FTP server via Azure App Service Hybrid connections, appreciate your help on this.
Thanks
To create a Hybrid connection to FTP, try the following steps:
In Azure App Service, open Networking tab in the left pane
Go to Configure your Hybrid Connection endpoints
Click on Add hybrid connection
Click on Create new hybrid connection and add following information:
a) Hybrid Connection name
b) Endpoint hostname
c) Endpoint port
d) Service Bus namespace you want to use (Every Hybrid Connection is tied to a Service Bus namespace, and each Service Bus namespace is in an Azure region)
Then you can connect the App Service with the Logic App

Connect from Azure to an on-premise fileshare

From an Azure Function I need to read files on an on-premise Windows file-share. I have network access to the file server but how do I authenticate?
My Azure Function is running in an Isolated App Service Environment in Azure connected to a VNet that is peered to the on-premise corporate network though an express route.
Side note: I will get the same issue with Azure Functions running on Azure Stack Hub, but I guess the solution will be the same.

Connecting to an on-premises SQL database from Azure WebJob

How do I connect to a database on-premises from an Azure WebJob or an Azure Function? Is this even possible?
I've been recently researching this and have found there a 3 avenues to connect app services to on prem database, as of today anyway.
Hybrid Connection, VNET Integration or App Service Environment
The later 2 options require VPN or Express (I think) connectivity to a cloud VNET. The VNET Integration option requires a separate VNET with PointToSite gateway connecting to your existing VNET. The App Service Environment is a quite expensive option as your App Service Plan is actually hosted inside your VNET, no longer being a shared host.

Is there way to create HYBRID CONNECTIONS for azure could service or azure VM?

I azure we can create Hybrid connection to local sql server from Web Sites and Mobile Service. But I need to create Hybrid service to My Local SQL server from VM or cloud service. Is there anyway to achieve this one?
You can, actually.
The tool is called the Microsoft Azure Hybrid Connection Client
This runs as a service on your VM, and you add Hybrid Connections to it.
(That is, it = the VM that needs to talk to the on-prem asset.)
When a connection is added, a HOSTS file entry is made for the particular dns name and is routed through Azure to your on-prem Hybrid Connection Manager.
The Connection String you add will be the 'Application' one(s), which you will find in the old portal
According to Microsoft Hybrid connection will support only for WebSite and Mobile Web Services.
So I couldn't directly achieve my requirement. But alternative way is, implement the WCF service which can be hosted as WebSite.Now you can hosted your SQL database locally and create hybrid connection to the database from WCF service.Then you can call your WCF service from VM or cloud service.
Thanks,
Erandika

Resources