最佳答案
您可以使用 Windows Azure 管理库(对于 ASM、Azure 服务管理)列出 Azure 订阅中的所有服务器。这些库是 Azure Api 的包装器,可让你轻松管理资源。
通过使用this SQL管理库,您可以通过一行代码检索所有服务器:
using (SqlManagementClient sqlManagementClient = new SqlManagementClient(cred))
{
var servers = await sqlManagementClient.Servers.ListAsync(CancellationToken.None);
}
问候,
关于azure - 使用 C# 获取 Azure 服务器列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39627010/