title: Azure Data Factory Disable Triggers On Release
body: <p>I've been trying to get Data Factory Deployments working through VSTS and am mostly there, but I'm getting a failure due to the triggers needing to be disabled to be overwritten. Error message below:</p>
  
  <pre><code>Remove-AzureRmDataFactoryV2Trigger : HTTP Status Code: BadRequest
  Error Code: TriggerEnabledCannotUpdate
  Error Message: Cannot update enabled Trigger; it needs to be disabled first.
  Request Id: &lt;id number here&gt;
  Timestamp (Utc):06/17/2018 21:31:49
  At line:1 char:1
  + Remove-AzureRmDataFactoryV2Trigger -ResourceGroupName "ResourceGroupName" -Data ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : CloseError: (:) [Remove-AzureRmDataFactoryV2Trigger], ErrorResponseException
      + FullyQualifiedErrorId : Microsoft.Azure.Commands.DataFactoryV2.RemoveAzureDataFactoryTriggerCommand
  </code></pre>
  
  <p>I get this error when both trying to do a straight deployment, but also when manually running a powershell script to remove the trigger</p>
  
  <pre><code>Remove-AzureRmDataFactoryV2Trigger -ResourceGroupName "ResourceGroupName" -DataFactoryName "DataFactoryName" -Name "TriggerName"
  </code></pre>
  
  <p>I cant find a way to disable a trigger via powershell or during a release. Can anyone help me find a way around this? Without it I cant do Continuous integration releases with the Data Factory.</p>
  
  <p>Thanks</p>