简体   繁体   English

Azure Data Factory V2-将管道发布到指定的文件夹

[英]Azure Data Factory V2 - publish pipeline to specified folder

While developing in Azure Portal, I can organize pipelines, datasets and linked services in folders. 在Azure Portal中进行开发时,我可以在文件夹中组织管道,数据集和链接服务。 JSON file of pipeline will contain folder name: 管道的JSON文件将包含文件夹名称:

"folder": {
  "name": "Business"
}

But when I publish pipeline (or any other DF V2 object) with PowerShell Cmd-Let, it goes to the root folder: 但是,当我使用PowerShell Cmd-Let发布管道(或任何其他DF V2对象)时,它会转到根文件夹:

Set-AzureRmDataFactoryV2Pipeline -DataFactoryName $dataFactoryV2Name -File $filePath `
  -Name $name -ResourceGroupName $resourceGroupName

Is there a way to force Set-AzureRmDataFactoryV2Pipeline and related Cmd-Lets to honor "folder" path and publish object to the specified folder? 有没有一种方法可以强制Set-AzureRmDataFactoryV2Pipeline和相关的Cmd-Lets遵循“文件夹”路径并将对象发布到指定的文件夹?

最终,Microsoft修复了该问题,并在6.10.0版中将Set-AzureRmDataFactoryV2Pipeline正确地将管道放入指定的文件夹中!

Powershell doesn't support it because it ignores properties it can't recognize. Powershell不支持它,因为它会忽略无法识别的属性。 And currently, this property is also not supported by SDK. 目前,SDK也不支持此属性。

But you could Restful API to achieve this. 但是您可以使用Restful API来实现此目的。 And if you have to use powershell, you could use the Invoke-RestMethod . 而且,如果必须使用powershell,则可以使用Invoke-RestMethod

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM