Cannot index into a null array.
At C:\azp\start.ps1:33 char:1
You cannot call a method on a null-valued expression.
At C:\azp\start.ps1:40 char:34
Expand-Archive : The path 'agent.zip' either does not exist or is not a valid
file system path.
At C:\azp\start.ps1:42 char:1
.\config.cmd : The term '.\config.cmd' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At C:\azp\start.ps1:48 char:3
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
You need to enable TLS 1.2 by adding the following line to the top of your Start.ps1 script
@atedsimple I have enabled TLS 1.2 as u have asked, now it is throwing different error.
You cannot call a method on a null-valued expression.
At C:\azp\start.ps1:40 char:34
Expand-Archive : The path 'agent.zip' either does not exist or is not a valid
file system path.
At C:\azp\start.ps1:42 char:1
.\config.cmd : The term '.\config.cmd' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At C:\azp\start.ps1:48 char:3
Seems like you don't have the correct versions of Framework in your base docker image
Have a look at what we use to build the Docker Image for both 2016 and 2019 server
https://docs.modalitysoftware.com/vsts-agent/customise.html
@atedsimple thanks.
@ashutoshbarve Thank you for the question.
@atedsimple Thank you for providing a solution, consider becoming a contributor.
For further issues, please provide a reference to the specific documentation example and we will assign an author for review.
To receive general support, refer to the Azure DevOps support page.
Closing this issue now.