powershell - 使用 Powershell,如何获取给定服务名称的 Azure VIP?

标签 powershell azure

我正在关注本教程:

http://msdn.microsoft.com/en-us/library/windowsazure/dn376546.aspx

此时:

Step 4: Create the availability group listener

我们被告知进入云服务的公共(public) VIP。

我想使用 Powershell 以编程方式获取此信息。

我看过这个答案:

azure-powershell-get-public-virtual-ip-of-service

但是,我的服务有多个 IP,因此会返回一个列表。

是否可以使用 Get-AzureService 来获取 IP 地址,而不是向 VM 询问端点的解决方法?

或者,是否可以获取上述 StackOverflow 答案返回的列表中的第一个 IP 地址?

最佳答案

这正是我想要的。只是在我无尽的寻找中没有找到答案:

Powershell select a specific value

关于powershell - 使用 Powershell,如何获取给定服务名称的 Azure VIP?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19232581/

相关文章:

excel - Powershell 脚本适用于 ISE/控制台,但不适用于任务计划程序

python - Powershell Python : Change version used

azure - SAML 响应 - 需要验证什么才能确保响应可信?

reactjs - React Azure AD 返回空白页

jquery - 通过 $.ajax 访问 Azure 中的 WCF 会产生 "NETWORK_ERR: XMLHttpRequest Exception 101"

java - 在 Java 中生成 SAS token 以下载 Azure 数据存储容器中的文件

powershell - TeamCity 自定义内部版本号 - AssemblyInfo 修补程序

powershell - 在 Windows 10 中使用 PS 将程序(带参数)固定到任务栏

json - 在运行时从 JSON 对象中提取值

reactjs - 获取 : Could not detect any platform in the source directory. 以在 Azure 静态站点上部署 React