Azure / Azure/azure-powershell

Start-AzDataFactoryV2Trigger Result is not visible in Data Factory

Open
#28,566 3 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad bug customer-reported Data Factory Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description

We only want to start the Data Factory timed triggers when it is the production environment, so in our data factory pipeline deployment (through AzDO) we have an conditional task that starts the triggers only there.

The script seems to work perfectly and triggers are started. Unfortunately the ADF UI does't reflect the state:

Image

While the Powershell thinks it is good:
Get-AzDataFactoryV2Trigger -ResourceGroupName $resourceGroupName -DataFactoryName $DataFactoryName | fl RuntimeState

RuntimeState : Started
RuntimeState : Started
RuntimeState : Started
RuntimeState : Started
RuntimeState : Started
RuntimeState : Started
RuntimeState : Started
RuntimeState : Started

### Issue script & Debug output

```PowerShell
$triggers = Get-AzDataFactoryV2Trigger -ResourceGroupName $resourceGroup -DataFactoryName $DataFactoryName
foreach ($trigger in $triggers) {
Start-AzDataFactoryV2Trigger -ResourceGroupName $resourceGroup -DataFactoryName $DataFactoryName -TriggerName $trigger.Name -Force
}
```

### Environment data

```PowerShell
ame Value
---- -----
PSVersion 7.5.3
PSEdition Core
GitCommitId 7.5.3
OS Darwin 25.0.0 Darwin Kernel Version 25.0.0: Mon Aug 25 21:17:51 PDT 2025; root:xnu-12377.1.9~3/RELEASE_ARM64_T6000
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
```

### Module versions

```PowerShell
Get-module -name *az*

ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 2.16.0 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
```

### Error output

```PowerShell
There is no error, but an mismatch in results
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.