我们正在测试外部表在 ADX 中用户分配的托管标识的使用 - [Microsoft 文档][1]
但是,由于错误,连续导出失败,不确定我们缺少什么配置。
获取 Managed Identity Credentials Provider 时不能为 null。为空:在 C:\source\Src\Common\Kusto.Common.Svc\AccessControl\ResourceConnectionStringTokenCredentialsBuilder.cs 中的 CreateCredentialsProviderForManagedIdentity:第 103 行参数名称:[CreateCredentialsProviderForManagedIdentity] 获取托管身份凭据提供程序时,CredentialsStore 不应为空。
按照这些步骤并使用以下代码创建了外部表和连续导出 -
create-or-alter external table test_ext_raw_logs (ingestiondt: datetime, full_record: string)
kind=storage
partition by (Day: datetime = startofday(ingestiondt))
pathformat = (datetime_pattern("'year='yyyy'/month='MM'/day='dd", Day))
dataformat=parquet
(
h@'abfss://Container@StorageAccountName.dfs.core.windows.net/log;managed_identity=****'
)
with
(
docstring = "External Table",
folder = "Testing",
namePrefix = "export",
validateNotEmpty = true
)
.create-or-alter continuous-export test_raw_logs over (raw_logs)
to table test_ext_raw_logs with (intervalBetweenRuns = 10min) <| (raw_logs | project ingestiondt = ingestion_time(), full_record = tostring(full_record)|limit 10);