【发布时间】:2017-04-28 11:09:37
【问题描述】:
我正在尝试使用模板部署创建 带有数据湖的 Azure HDInsight。但是我在执行模板时遇到了一个问题,因为我认为原因是“服务主体名称”与 azure 数据湖存储的集成。
错误:
"message": "DeploymentDocument 'AmbariConfiguration_1_7' 验证失败。错误:'获取数据湖存储帐户 demodls 访问权限时出错:从 AppPrincipalId XXXXXX-XXXXXXXXX-XXXXX-XXX 的 AAD 获取 OAuth 令牌时出错-XXXXX。
请在下面的屏幕截图中找到更多详细信息。
我已尝试创建 AD webapp 并为该应用分配了“所有者”角色。然后我将其分配给订阅的所有者。然后为该应用添加了“数据湖权限”。但我仍然认为我可能会失踪。
集群集成片段
"properties": {
"clusterVersion": "[parameters('clusterVersion')]",
"osType": "Linux",
"tier": "standard",
"clusterDefinition": {
"kind": "[parameters('clusterKind')]",
"configurations": {
"gateway": {
"restAuthCredential.isEnabled": true,
"restAuthCredential.username": "[parameters('clusterLoginUserName')]",
"restAuthCredential.password": "[parameters('clusterLoginPassword')]"
},
"core-site": {
"fs.defaultFS": "adl://home",
"dfs.adls.home.hostname": "demodls.azuredatalakestore.net",
"dfs.adls.home.mountpoint": "/clusters/democluster/"
},
"clusterIdentity": {
"clusterIdentity.applicationId": "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX",
"clusterIdentity.certificate": "[parameters('identityCertificate')]",
"clusterIdentity.aadTenantId": "https://login.windows.net/XXXXXXXX-XXXX-XXXX-XXXXX-XXXXXXXXXX",
"clusterIdentity.resourceUri": "https://management.core.windows.net/",
"clusterIdentity.certificatePassword": "[parameters('identityCertificatePassword')]"
}
}
},
在这里我有几个疑问
“parameter.json”中的 clusterpassword、sshpassword 等“SecureString”值是否应该以明文形式提供,或者我必须将其转换为 Securestring 并为其提供安全字符串值?
-
“identityCertificate”字段应该是“Certificate.pfx”文件内容的“base64”编码,否则我必须将其转换为 Base64 -> SecureString 并在 parameter.json 中提供?
帮助非常感谢!谢谢
问候
【问题讨论】:
标签: azure azure-resource-manager azure-hdinsight azure-data-lake