question

gaur-5993 avatar image
0 Votes"
gaur-5993 asked gaur-5993 rolled back

'Get-AzDataFactoryV2Trigger' is not recognized as a name of a cmdlet, function, script file, or executable program

I am using below task for stopping the trigger condition in azure datafactory . Can you please suggest what is wrong in below task

  • task: AzurePowerShell@5
    displayName: 'Inline Azure Powershell'
    inputs:
    azureSubscription: ${ { parameters.ServiceConnection}}
    ScriptType: 'InlineScript'
    azurePowerShellVersion: 'LatestVersion'
    PreferredAzurePowerShellVersion: '2.3.2'
    Inline:
    $triggersADF = Get-AzDataFactoryV2Trigger -DataFactoryName "${ { parameters.DataFactory }}" -ResourceGroupName "${ { parameters.ResourceGroup}}"
    $triggersADF | ForEach-Object { Stop-AzDataFactoryV2Trigger -ResourceGroupName "${ { parameters.ResourceGroup }}" -DataFactoryName "${ { parameters.DataFactory}}" -Name $_.name -Force }

Error - 'Get-AzDataFactoryV2Trigger' is not recognized as a name of a cmdlet, function,

azure-data-factorywindows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

gaur-5993 avatar image
0 Votes"
gaur-5993 answered gaur-5993 rolled back

@HimanshuSinha-MSFT , @ShaikMaheer-MSFT , @SaurabhSharma-msft - Can you please help, @Azuredatafactory-8634 , @Azuredatafactory-4768


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.