问题描述
我想知道给定一个Powershell函数,如:
$ url =http:// AnIPrestrictedURL
[xml] $ xml =(new-object System.Net.WebClient).DownloadString($ url)
与$ url是一个IP受限制的url我的选项(如果有的话)能够使这项工作是什么? VPN是一种选择还是其他方法? Express的路线(obv的成本不是一个因素)或指向现场VPN工作这个??编辑:为了让这个更清晰?我有控制IPRestrictedUrl服务器,所以理论上我可以允许通过VPN / express路由访问这大概没有IP限制?这是问题的关键?
也许我应该说如何使用Azure功能以及我不想公开访问的服务如果它尽管为Azure Web应用程序提供了出站IP列表(并且是稳定的),但是,该服务仍然是SOLR的一个重要部分。
等同于Azure功能应用程序不存在。原因是它们会非常动态地扩展,最终可能会跨越多个扩展单元,每个扩展单元都有一组不同的出站IP。因此,通常情况下,您无法在使用Azure函数时对出站IP进行假设。
I'd like to know given a Powershell function such as:
$url = "http://AnIPrestrictedURL"
[xml]$xml = (new-object System.Net.WebClient).DownloadString($url)
with $url being an IP restricted url what are my options (if any) to be able to make this work? Is VPN an option or some other method? Would Express route (obv cost not being a factor) or point to site VPN work for this??
EDIT: To make this clearer? I have control of the IPRestrictedUrl server so in theory I could allow access to this via VPN / express route presumably without the IP restriction?? this is the point of the question?
Perhaps I should have said "how can I use an Azure Function with a service I do not want to be publicly accessible" If it matters the end service is SOLR
While the list of Outbound IPs is provided for Azure Web App (and is stable), the equivalent does not exist for Azure Function Apps. The reason is that they get scaled out very dynamically, and can end up running across many scale units, each with a different set of Outbound IPs.
So generally, you cannot make assumptions on Outbound IPs when using Azure Functions.
这篇关于从Azure功能访问IP受限URI(PowerShell)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!