使用Powershell部署ADF [英] deploy ADF using Powershell

查看:83
本文介绍了使用Powershell部署ADF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个ADF1,它具有一个管道并且可以正常工作,它是如何从一个Blob读取txt文件并将其复制为csv到另一个Blob的

现在,我将管道导出到我的桌面上,并获得2个zip格式的文件.

1-arm_template.json

2-arm_template_parameters.json

我还有一个空的ADF2(其中没有管道),

我想使用笔记本电脑中的Powershell将json代码部署到ADF2,该怎么办?

真诚的

 尼克


真诚的Nik-请贴上回答您问题的帖子,并/或投票赞成该帖子. http://sqldataside.blogspot.ca/(SQL表格+ PowerShell)

解决方案

您好,Nik,

您能够导出V1管道吗?我看不到该功能的引用,能否分享您的操作方式?我确实在V2中看到了此功能.

ADF V1与V2有许多功能差异,这将导致ARM代码不兼容.看看这里的区别:

https://docs.microsoft.com/zh-CN/azure/data-factory/compare-versions

还可以查看文档中的代码示例-

V1:

https://docs.microsoft.com/zh-cn/azure/data-factory/v1/data-factory-build-your-first-pipeline-using-arm#data-factory-json-template

V2:

https://docs.microsoft.com/zh-cn/azure/data-factory/quickstart-create-data-factory-resource-manager-template#data-factory-json

乍一看,我看到了"apiVersion"值因ADF版本而异.如果可以找到所有差异并加以修复,则可以使用Powershell启动:

https://docs.microsoft.com/zh-CN/azure/azure-resource-manager/resource-group-template-deploy


Hi

I have created a ADF1 that has one pipeline and its working, what it does it reads txt files from one blob and copies them to another blob as csv

Now i export the Pipeline to my desktop, and i get 2 files in a zip format.

1 - arm_template.json

2 - arm_template_parameters.json

I have another ADF2 that is empty (no pipeline in it), 

I want to use Powershell from my laptop to deploy the json codes to ADF2, how can i do that?

Sincerely

  Nik


Sincerely Nik -- Please kindly mark the post(s) that answered your question and/or vote for the post(s). http://sqldataside.blogspot.ca/ (SQL Tabular + PowerShell)

解决方案

Hi Nik,

Were you able to export your V1 pipeline?  I do not see references to that functionality, could you share how you did that?  I do see this functionality in V2. 

ADF V1 has many functional differences from V2, which will lead to ARM code which will not be compatible.  Take a look at the differences here:

https://docs.microsoft.com/en-us/azure/data-factory/compare-versions

Also take a look at the code examples in documentation - 

V1:

https://docs.microsoft.com/en-us/azure/data-factory/v1/data-factory-build-your-first-pipeline-using-arm#data-factory-json-template

V2:

https://docs.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-resource-manager-template#data-factory-json

At first glance I see the "apiVersion" value is different depending on ADF version.  IF you can find all the differences and fix them, you can then launch with Powershell:

https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-deploy


这篇关于使用Powershell部署ADF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆