将powershell脚本添加到adf_publish分支 [英] Add powershell script to adf_publish branch

查看:75
本文介绍了将powershell脚本添加到adf_publish分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照此处的教程创建发布管道:

I have followed the tutorial here to create my release pipeline:

https://docs.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment#set-up-an-azure-pipelines-release

他们提供示例脚本以在部署之前停止触发器并在部署后启动它们 这里:  https://docs.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment#sample-script-to-stop-and-restart-triggers -and-clean-up

They give a sample script to stop triggers before deployment and start them after deployment  here: https://docs.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment#sample-script-to-stop-and-restart-triggers-and-clean-up

我的问题是他们没有解释如何将这个powershell脚本添加到adf_publish分支。添加它的正确方法是什么?

My problem is they don't explain how to add this powershell script to the adf_publish branch. What is the right way to add it?

谢谢

推荐答案

Hi swell-fr ,

步骤添加Azure Powershell任务:


  1. 在版本的"任务"标签中,搜索  Azure Powershell  并添加它。
  2. 选择  Azure资源管理器 作为连接类型并选择您的订阅。
  3. 选择  内联脚本 作为脚本类型,然后提供您的代码。
  1. In the Tasks tab of the release, search for Azure Powershell and add it.
  2. Choose Azure Resource Manager as the connection type and select your subscription.
  3. Choose Inline Script as the script type and then provide your code.

有关详细信息,请参阅" CI / CD
"。

For more details, refer section "update active triggers" from "CI/CD in Azure Data Factory".

希望这会有所帮助。


这篇关于将powershell脚本添加到adf_publish分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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