简体   繁体   English

Windows Azure:如何检查我的服务的虚拟 IP?

[英]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.

相关问题 如何为我的Azure应用服务指定允许的IP地址? - How do I specify the allowable IP addresses to my Azure App Service? 如何在Azure中的特定虚拟机上创建应用程序服务? - How do i create app service on particular virtual machine in Azure? Azure 应用服务 - 如何将端点列入白名单(不是 IP 地址) - Azure app service - how do I whitelist an endpoint (not IP address) 如何将域名连接到我的Azure虚拟机IP? - How can I Connect my domain name to my Azure Virtual Machine IP? 如何使用 powershell 从我的办公室桌面远程重启 Azure VM 上的 windows 服务? - How do I restart a windows service on an Azure VM remotely from my office desktop using powershell? 如何将现有的Windows Azure VM迁移到Windows Azure虚拟网络? - How do I migrate an existing Windows Azure VM to a Windows Azure virtual network? 如何在Windows Azure虚拟机上强制进行IP更改? - How to force ip change on a Windows Azure Virtual machine? 如何获得我的Azure VM的公共IP? - How do I get a public IP for my Azure VM? Windows Azure虚拟机的虚拟IP和内部IP - Virtual IP and Internal IP of Windows Azure Virtual Machines 无法使用虚拟IP从我的Azure网站连接到Azure云服务吗? - Cannot connect to Azure Cloud Service from my Azure Website with Virtual IP?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM