[英]Windows Azure: how do I check the Virtual IP of my service?
I have a worker role that performs web scraping.我有一个执行网络抓取的辅助角色。 I need to determine the IP from which it works when deployed on Azure.
我需要确定它在 Azure 上部署时所使用的 IP。 How do I do that?
我怎么做?
If you need the public VIP address, that can be obtained from the Windows Azure management portal.如果您需要公共 VIP 地址,可以从 Windows Azure 管理门户获得。 It's on the dashboard for the selected Cloud Service (about half way down on the right).
它位于所选云服务的仪表板上(大约在右侧的一半处)。
You can use InstanceEndpoints
property of the RoleInstance
... you can get all role instances executing by using the RoleEnvironment
class, and then find the role you are interested in.您可以使用
RoleInstance
InstanceEndpoints
属性...您可以使用RoleEnvironment
类获取所有角色实例执行,然后找到您感兴趣的角色。
RoleInstance.InstanceEndpoints Property - there is a sample showing all of this. RoleInstance.InstanceEndpoints 属性- 有一个示例显示了所有这些。
使用 Azure PowerShell 你可以这样使用 -
Get-AzureRole -ServiceName "abc" -Slot "production" -InstanceDetails | select {$_.InstanceEndpoints[0].VIP }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.