0
我的環境包含Web角色和經典虛擬機。使用Azure管理庫如何獲取僅Web角色的列表。我嘗試過,但是這列出了經典虛擬角色和網絡角色。我找不到任何屬性來過濾網絡角色。c#Azure管理庫僅獲取Web角色列表
ComputeManagementClient computeClient = new ComputeManagementClient(tokenCred);
HostedServiceListResponse cloudServices = computeClient.HostedServices.List();
是否有通過程序的方法來找出它是否是一個Web角色或經典VM