Azure Batch Account Pools Node state stuck in "Waiting for Start Task"

Colinn Calaguas 45 Reputation points
2023-07-12T15:44:01.3466667+00:00

This is related to my question here.

https://learn.microsoft.com/en-us/answers/questions/1316193/azure-data-factory-running-powershell-script-as-ad?orderby=helpful&comment=answer-1275819#newest-answer-comment

Instead of placing the install-module inside the powershell script, I've placed it inside the Start Task in the Pool like what is mentioned at the @8:17 of this video.

https://www.youtube.com/watch?v=4RD9duhYnoc

After that I've created the changes and saved it.

Start Task

then REBOOTED the Node to make sure the changes are applied. But after doing so now the Node is stuck in "Waiting for start task"

Node

I tried running my Pipeline in ADF and it's just stuck in "In Progress" status also. Do I need to create another pool or node? Because I've noticed previously before making these changes that the State of the Pool is "Idle" and not "Waiting for Start Task". It only started to happen the moment I've rebooted the node.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,196 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,329 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Suba Balaji 11,206 Reputation points
    2023-07-15T12:09:19.9133333+00:00

    Hello
    Colinn Calaguas
    ,

    Seems like the modules you are trying to install are untrusted and you are being prompted before installation. If you can force install, without any prompts, it might work. Like, below

    install-module <modulename> -force

    If that too doesn't solve the problem. please try this before you run the install commands, to register the Powershell repository as trusted one

    Register-PSRepository -Default -InstallationPolicy Trusted
    
    

    The above syntax is for PS version 5+. If the version on the node is not this, we can try the below syntax.

    Register-PSRepository -Name PSGallery -SourceLocation https://www.powershellgallery.com/api/v2/ -InstallationPolicy Trusted
    
    
    

    please let us know how it goes.

    Thanks.