Azure Data Factory自动发布以实现持续集成和交付



我遵循ADF https://learn.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment-improvements的新CICD指南看来我丢失了credentialmanagedVirtualNetwork文件。我需要用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 undefinedn    at Function.<anonymous> (/home/vsts/work/1/s/downloads/main.js:1271:27040)n    at /home/vsts/work/1/s/downloads/main.js:16:2243n    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

丢失的credentialmanagedVirtualNetwork文件夹不是问题。即使没有这些文件夹,我也能够验证和导出ARM模板。

我能够用不正确的ADF资源ID重现错误。在"订阅"之前的主要/缺失。将资源ID更改为/subscriptions/xxxxxxx/resourceGroups/xxxxxxx/providers/Microsoft.DataFactory/factories/xxxxxxxx应该可以工作。

最新更新