【发布时间】:2021-03-05 03:43:01
【问题描述】:
我正在关注 ADF 的新 CICD 指南https://docs.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment-improvements
看起来我缺少文件 credential 和 managedVirtualNetwork。我是否需要使用 npm 模块和 Azure 包设置身份验证?
得到这些错误:
LocalFileClientService: Unable to list files for: credential, error: Error: ENOENT: no such file or directory, scandir '/home/vsts/work/1/s/credential'
…
LocalFileClientService: Unable to list files for: managedVirtualNetwork, error: Error: ENOENT: no such file or directory, scandir '/home/vsts/work/1/s/managedVirtualNetwork'
…
ERROR === CmdApiApp: Failed to run resource validation. Error: {"stack":"TypeError: Cannot read property 'concept' of undefined\n at Function.<anonymous> (/home/vsts/work/1/s/downloads/main.js:1271:27040)\n at /home/vsts/work/1/s/downloads/main.js:16:2243\n at Object.next (/home/vsts/work/1/s/downloads/main.js:16:2348)\n at o (/home/vsts/work/1/s/downloads/main.js:16:1087)","message":"Cannot read property 'concept' of undefined"}
…
error code ELIFECYCLE
error errno 1
error @ build: `node node_modules/@microsoft/azure-data-factory-utilities/lib/index "validate" "/home/vsts/work/1/s" "subscriptions/xxxxxxx/resourceGroups/xxxxxxx/providers/Microsoft.DataFactory/factories/xxxxxxxx”
error Exit status 1
error Failed at the @ build script.
error This is probably not a problem with npm. There is likely additional logging output above.
##[error]Error: Npm failed with return code: 1
【问题讨论】:
-
能不能直接运行
run build export看看能不能导出arm模板? -
@LeviLu-MSFT 谢谢,我在本地运行它也遇到了类似的错误
npm run build export <rootFolder> <factoryId>
标签: npm azure-devops azure-data-factory