[英]How to configure my Azure VM Endpoint ACL to allow connection from my Azure Webjob on the same portal
I have a WebJob on an Azure Website that needs to connect to a VM Endpoint to make REST calls. 我在Azure网站上有一个WebJob,需要连接到VM端点才能进行REST调用。
My Endpoint is configured to deny all except my company's IP range. 我的端点配置为拒绝除我公司的IP范围之外的所有内容。 Now what rule would I need to add or url should I use so my webjob can connect to the endpoint?
现在我应该使用什么规则添加或url,以便我的webjob可以连接到端点?
I have tried the following without success: 我试过以下没有成功:
This works but is not what I am looking for: 这可行,但不是我想要的:
Thank you for your help, and let me know if you need precision! 感谢您的帮助,如果您需要精确的话,请告诉我!
I need the same thing but it seems as though is not possible right now. 我需要同样的东西但似乎现在不可能。 Looking at this answer on a related question:
在相关问题上查看此答案 :
Azure Web Sites do not have dedicated outbound IP addresses for each deployment.
Azure网站没有为每个部署提供专用的出站IP地址。 This precludes you from using ACLs or Virtual Networks to connect to your Redis / Solr virtual machines.
这使您无法使用ACL或虚拟网络连接到Redis / Solr虚拟机。
So even though you can have a (reasonably) fixed incoming IP address on Azure Websites, the outgoing address is highly unpredictable and as far as I can see, the only exclusion that you could make was to restrict it to the entire range of IP addresses for that data centre which is far from ideal. 因此,即使您可以在Azure网站上拥有(合理)固定的传入IP地址,传出地址也是高度不可预测的,据我所知,您可以做的唯一排除是将其限制在整个IP地址范围内对于那个远非理想的数据中心。
A solution moving forward will be to connect your Azure Website and the VM on the same Virtual Network. 未来的解决方案是在同一个虚拟网络上连接Azure网站和VM。 As of my writing this it is still in Preview so it still is not ready for production use just yet.
在我写这篇文章时,它仍处于预览版中,因此它尚未准备好用于生产。
Here is more information on it: http://azure.microsoft.com/blog/2014/09/15/azure-websites-virtual-network-integration/ 以下是有关它的更多信息: http : //azure.microsoft.com/blog/2014/09/15/azure-websites-virtual-network-integration/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.