【发布时间】:2020-08-19 18:33:19
【问题描述】:
WithAadUserPromptAuthentication 缺失,所以我不能使用 Microsoft 文档提供的示例代码? 那是 :
var serviceUri = "Service URI, typically of the form https://cluster.region.kusto.windows.net";
var authority = "contoso.com"; // Or the AAD tenant GUID: "..."
// Recommended syntax
var kustoConnectionStringBuilder = new KustoConnectionStringBuilder(serviceUri)
.WithAadUserPromptAuthentication(authority);
// Legacy syntax
var kustoConnectionStringBuilder = new KustoConnectionStringBuilder(serviceUri)
{
FederatedSecurity = true,
InitialCatalog = "NetDefaultDB",
Authority = authority,
};
// Equivalent Kusto connection string: $"Data Source={serviceUri};Database=NetDefaultDB;Fed=True;Authority Id={authority}"
是否有任何新的解决方案来代替 WithAadUserPromptAuthentication 方法?
【问题讨论】:
-
嗨,尼基塔·博帕莱。我的回复有用吗?
标签: c# azure azure-active-directory azure-data-explorer kql