【发布时间】:2016-11-18 13:43:34
【问题描述】:
我的环境包含 web 角色和经典虚拟机。使用 Azure Management Lib 如何获取仅 Web 角色的列表。我试过了,但这列出了经典的虚拟机和网络角色。我找不到任何属性来过滤 Web 角色。
ComputeManagementClient computeClient = new ComputeManagementClient(tokenCred);
HostedServiceListResponse cloudServices = computeClient.HostedServices.List();
有没有办法通过程序来判断是web角色还是经典vm
【问题讨论】:
标签: azure azure-web-roles