我想设置CI/CD (ARM模板)与StreamAnalytics作业,输出设置为DataLake商店。https://learn.microsoft.com/en-us/azure/templates/microsoft.streamanalytics/streamingjobs/outputs#microsoftdatalakeaccounts
这个问题与refreshToken有关:“建议在创建数据源时在此处放置一个虚拟字符串值,然后转到Azure Portal对数据源进行身份验证,该数据源将使用有效的刷新令牌更新该属性”
此外,90天后刷新令牌已经过时,您需要执行"Renvew授权“https://learn.microsoft.com/en-us/azure/stream-analytics/stream-analytics-data-lake-output#renew-data-lake-store-authorization
我试着授权ServicePrincipal。
如何使用DataLake对ASA进行自动部署?如何处理这个90天令牌验证的问题?
也许你擦掉了痕迹:)
发布于 2018-02-23 16:58:05
目前还不可能这样做。很抱歉给您带来不便。然而,我们知道这是非常重要的,我们将在不久的将来增加服务首席执行官(我们正在研究确切的ETA)。
同时,您需要手动更新令牌。这可以在不丢失任何数据的情况下完成:(1)停止作业,(2)更改令牌,然后(3)在最后一次停止作业时重新启动作业。
如果你还有什么问题请告诉我。
发布于 2018-08-23 08:47:34
据我所知,很快基于MSI的认证将在预览中进行。
但是,如果您需要立即解决方案(例如,能够让VSTS管道在没有错误的情况下运行),则可以执行以下操作:
<jobName>.JobTemplate.json- Add the output datasource object for the ADLS output object
- If you work with Visual Studio you can get the values quite easily from the ADLS output JSON
- It is important to set `refreshToken` to some fake value
如下所示:
"outputs": [
{
"name": "xxx",
"properties": {
"serialization": {
"type": "Json",
"properties": {
"encoding": "UTF8",
"format": "LineSeparated"
}
},
"datasource": {
"type": "Microsoft.DataLake/Accounts",
"properties": {
"accountName": "xxx",
"tenantId": "xxx-xxx-xxx-xxx-xxx",
"tokenUserPrincipalName": "xxx@xxx.com",
"tokenUserDisplayName": "xxx, xxx",
"filePathPrefix": "xxx/{date}/{time}",
"dateFormat": "yyyy/MM/dd",
"timeFormat": "HH",
"refreshToken": "faketoken"
}
}
}
},
...- Stop the job
- Renew the authentication of the ADLS output
- Start the job
资源
https://stackoverflow.com/questions/48948568
复制相似问题