Forum Discussion
JohanDevP
Jun 27, 2020Copper Contributor
Access local data from Azure Virtual Machine
Hello, My first time here so be nice ; ) When i deploy WebApps i use a Hybrid Connection to access onprem databases. But now i need to install a Windows Service on a virtual machine, and stil...
rohanislam
Jun 28, 2020Brass Contributor
Hello,
Could please clarify the following.
Where you are planning to host the windows service - Azure VM or onprem VM?
What the service will do?
With whom the service will interact - you app or dB?
Could please clarify the following.
Where you are planning to host the windows service - Azure VM or onprem VM?
What the service will do?
With whom the service will interact - you app or dB?
- JohanDevPJun 28, 2020Copper ContributorThe service get into the VM on Azure, and fetch data from my local database.
- rohanislamJun 28, 2020Brass ContributorIf you want to securely access your onprem database from a service running on Azure VM directly, the best option is to setup a private connectivity between your Azure vnet and onprem network. You can achieve this via s2s vpn or Express Route.
Now, if you don't want to setup vpn/Express Route, I see the following two options:
You have to see if the function of your Windows service can be replaced by a suitable PaaS services to use a onprem data gateway to securely access the onprem data over the internet.
Or,
You can use Azure Data Factory Integration Runtime to securely move your onprem data to a blob storage or Azure SQL dB then setup your Windows service to access the data from there.
Hope this helps.
Thanks,
Rohan- JohanDevPJun 28, 2020Copper Contributor
Thank you,
Should be nice if everything can be done from the OnPrem server (dont want to involve opening port eg in the firewall). Are there any reason that Hybrid Connection can't be used?
Never tried a Express Route have to google VPN vs Express Route.
Can't move the data because of local country laws (It's fine to view but not store in my case).
My service are used to fetch data from some third part API, not sure if you can do that with some "suitable PaaS services".