Forum Discussion
Access local data from Azure Virtual Machine
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".
- rohanislamJun 28, 2020Copper Contributor
Previously you said your service fetch data from the local database and now you are saying the service is used to fetch data from some third part API. 😉
If the first one is true, you can simply try using Azure "Function App" to connect to your local sql db via hybrid connection.
If the latter is true, you can try using "Logic App", you should be able to connect to any API by configuring a custom connector. You can also connect logic app to your local sql server via an onprem data gateway as well.
So, I would explore Function App and Logic App and see which one suits the best to meet the requirement.
Hope this helps, please let me know if you have any further query.
Thanks,
Rohan- JohanDevPJun 28, 2020Copper Contributor
Thank you, i did not provid you with all information the flow is the following:
1. Fetch data from external API.
2. Import it into the local database (and process it)
3. Then display the processed data on the web again.
Going to look into Function App, and Logic App 😉