【发布时间】:2019-08-08 07:56:55
【问题描述】:
在 AZURE ANALYSIS SERVICES 表格模型(兼容级别为 1400)中,我将 Blob 存储帐户作为数据源导入。它的 Authentication Kind 是 Key 类型的身份验证。密钥是静态密钥。
但是,在使用自动化帐户 (Cloud PowerShell) 中的 Runbook 刷新表格时,有没有办法传递 密钥/凭据 以便它可以进行身份验证?
否则 PowerShell 将失败并显示以下消息
The given credential is missing a required property. Data source kind: AzureBlobs. Authentication kind: Key. Property name: Key. The exception was raised by the IDbConnection interface.
这是从 Model.bim 文件中复制的 Source 定义:
{
"createOrReplace": {
"object": {
"database": "azureanalysisservicesdatabase",
"dataSource": "OMSLogs"
},
"dataSource": {
"type": "structured",
"name": "OMSLogs",
"connectionDetails": {
"protocol": "azure-blobs",
"address": {
"account": "storage",
"domain": "blob.core.windows.net"
},
"authentication": null,
"query": null
},
"credential": {
"AuthenticationKind": "Key",
"kind": "AzureBlobs",
"path": "https://storage.blob.core.windows.net/",
"PrivacySetting": "Organizational"
}
}
}
}
这是我在 PowerShell 中运行以处理数据库的代码:
Invoke-ProcessASDatabase -databasename $DatabaseName -server $AnalysisServerName -RefreshType "Full" -Credential $SPCredential
【问题讨论】:
标签: azure-powershell azure-analysis-services xmla