如何通过 C# 获取 Azure 中 Log Analytics 工作区的工作区 ID?
从那以后我发现OperationalInsightsManagementClient
也可以使用类。
var client = new OperationalInsightsManagementClient(GetCredentials()) {SubscriptionId = subscriptionId};
return (await client.Workspaces.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName))
.Body
.Select(w => w.CustomerId)
.FirstOrDefault();
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)