Invoke ADF pipeline using azure powershell script in release pipeline

Josh 46 Reputation points
2023-01-18T14:18:32.8366667+00:00

Hi

i have run the below code but it does not seems to be in my Release pipeline. ( it has ran for 6 hours and timed out) .i'm using azure powershell , version 5*

Login-AzureRmAccount  
Select-AzureRmSubscription -Subscription "yourSubId"  
  
$dfname = "youDataFActoryName"  
$rgName = "yourResourceGroupName"  
$pipe = "pipeName"  

    "param1" = "asdasd"  
    "param2" = "123456"  
}  
  
Invoke-AzureRmDataFactoryV2Pipeline        -DataFactoryName $dfname -ResourceGroupName $rgName -PipelineName $pipe -Parameter $parameters  

User's image

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Eugene Tretiak 0 Reputation points
    2023-01-18T17:33:22.4566667+00:00

    Looks like you missed a line

    $parameters = @{
    

    [https://stackoverflow.com/a/53764069

    Another point to check: if Login-AzureRmAccount pass authorization. Perhaps there are not enough parameters and you not authorized to execute the following commands

    0 comments No comments

  2. Josh 46 Reputation points
    2023-01-19T07:17:27.9366667+00:00

    i dont have parameters to pass . so i have not included it

    0 comments No comments

Your answer

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