Power Shell Script Give Errors, While Stopping Triggers at Azure Data Factory

v-Shubham Kumar Jain 21 Reputation points
2020-11-03T12:32:17.25+00:00

Hi, I am creating a release pipeline for the Azure Data Factory and My Data Factory Contains Triggers . Now I As we know that Before DataFacctory Release Deployment we have to Disable running triggers and we can use Azure Power shell script for that
I have applied each and every configuration As referred to in the Microsoft CI/CD DOcs
https://learn.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment#script

Script it Reading All the Resources and Triggers but not disabling them AS I have seen in logs
Attaching Screen Shots 37145-image.png

2020-11-03T10:35:19.8462045Z Getting triggers 2020-11-03T10:35:21.9921456Z Stopping deployed triggers 2020-11-03T10:35:21.9980593Z Unsubscribing DailySync_Trigger from events 2020-11-03T10:35:39.2073804Z Stopping trigger DailySync_Trigger 2020-11-03T10:35:40.8810807Z True 2020-11-03T10:36:18.9416393Z ##[command]Disconnect-AzAccount -Scope Process -ErrorAction Stop 2020-11-03T10:36:19.1860937Z ##[command]Clear-AzContext -Scope Process -ErrorAction Stop 2020-11-03T10:36:19.5016376Z ## Script Execution Complete 2020-11-03T10:36:19.5540764Z ##[section]Finishing: Stop Triggers

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,588 questions
{count} votes

Accepted answer
  1. DanielP-MSFT 171 Reputation points
    2020-11-04T00:50:00.277+00:00

    Hey there,

    According to what you posted, the pre-deployment script worked successfully and four triggers were stopped. Are you observing that this is not the case after running it? Can you confirm that your parameters are pointing at the correct factory.

    Thanks,
    Daniel

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.