How to select Pipeline output into variable

Welcome Forums General PowerShell Q&A How to select Pipeline output into variable

This topic contains 2 replies, has 2 voices, and was last updated by

joe
 
Participant
3 weeks, 6 days ago.

  • Author
    Posts
  • #112523
    joe

    Participant
    Points: 0
    Rank: Member

    How to Get the below result Status value into the output variable? I tried Select Status but it's giving me empty result

    PS C:\windows\system32> Get-AzureRmDataFactoryV2PipelineRun -ResourceGroupName "Test" -PipelineName Test -DataFactoryName "Test" -LastUpdatedAfter 9/23/2018 -LastUpdatedBefore 9/24/2018
    
    ResourceGroupName : Test
    DataFactoryName : Test
    RunId : b2698d2f-0762-4800-8650-bc1cad5f394c
    PipelineName : Test
    LastUpdated : 9/23/2018 10:45:17 AM
    RunStart : 9/23/2018 10:43:07 AM
    RunEnd : 9/23/2018 10:45:17 AM
    DurationInMs : 129866
    Status : Succeeded
    Message :
  • #112555

    Participant
    Points: 37
    PublishedHelping Hand
    Rank: Member

    Are you saying, you did this ...

     

    $AzurePipelineData = Get-AzureRmDataFactoryV2PipelineRun -ResourceGroupName "Test" -PipelineName Test -DataFactoryName "Test" -LastUpdatedAfter 9/23/2018 -LastUpdatedBefore 9/24/2018
    
    $AzurePipelineData.Status
    
    #Or just this...
    
    $AzurePipelineData = (Get-AzureRmDataFactoryV2PipelineRun -ResourceGroupName "Test" -PipelineName Test -DataFactoryName "Test" -LastUpdatedAfter 9/23/2018 -LastUpdatedBefore 9/24/2018).Status
    
    $AzurePipelineData
    

    … and it did not populate the variable?

    • #112559
      joe

      Participant
      Points: 0
      Rank: Member

      Thanks, Postanote

You must be logged in to reply to this topic.