Azure-devops-docs: How to resolve error when applying Deployment Group registration script in PowerShell.

Created on 5 Mar 2018  Â·  7Comments  Â·  Source: MicrosoftDocs/azure-devops-docs

Using TFS 2018, I am at "Build and Release > Deployment Groups". I copied the registration script and pasted it into a PowerShell (as administrator) prompt in my target server. I saw this error: 'Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: Could not create SSL/TLS secure channel.' The merry 1+ hour Internet scavenger hunt I followed to resolve this error has not been successful. Is there a document explaining how to resolve this? If not, can a document or section be created?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

  • ID: 3b38c265-be4c-b038-e3a9-783a5e5ce659
  • Version Independent ID: 67da69da-3651-a8f4-f06a-c35aa3aa98fc
  • Content
  • Content Source
  • Service: unspecified
Pri1 unspecifiesvc

Most helpful comment

I found a resolution to this. Before pasting in the Registration script into PowerShell, enter this command:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Problem solved.

All 7 comments

I found a resolution to this. Before pasting in the Registration script into PowerShell, enter this command:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Problem solved.

Thank you for your input. We are adding this to the topic "How To: Provision agents for deployment groups" (https://docs.microsoft.com/en-us/vsts/build-release/concepts/definitions/release/deployment-groups/howto-provision-deployment-group-agents).

Thanks for the update.

On a separate note, I added a question to Stack Overflow about how to
deploy separate team projects to the same target server using TFS 2018
(VSTS is not an option).
https://stackoverflow.com/questions/49200587/how-to-deploy-separate-team-projects-to-one-server

I have run out of ideas and I've spent the last two days on a fruitless
Internet scavenger hunt. Can one of your team provide guidance? Form what
I've read from posts over the last two years, I'm not the only one in this
scenario.

Thank you

Henry Wyckoff
henry.[email protected]

On Fri, Mar 9, 2018 at 12:12 PM, Alex Homer notifications@github.com
wrote:

Closed #263 https://github.com/MicrosoftDocs/vsts-docs/issues/263.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/vsts-docs/issues/263#event-1513942288,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARLhUKgLuGG6-2R29smZqG9wTZ6F1BN1ks5tctQngaJpZM4SdspB
.

I have passed this question onto our development team.

I have had the same problem above "Could not create SSL/TLS secure channel". I could manually download and install the agent. Also I have used the solution above adding "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12".

But after that, the execution of the script shows only ">> Connect:"
after that nothing happens, the scipt hangs and do nothing.

I have the same problem as Harald. When I run config.cmd manually I have to insert e.g. PAT and the token and so on.

Is there any way to predefine this so I could fully automate the installation of an agent? I have hundreds of machines to install agents to, so manually running parts of the script is just not an option at all.

Using TFS 2018, I am at "Build and Release > Deployment Groups". I copied the registration script and pasted it into a PowerShell (as administrator) prompt in my target server. i get the below error

Program 'config.cmd' failed to run: The system cannot find the file specifiedAt line:1 char:1472

  • ... ip, "$PWD");.\config.cmd --deploymentgroup --deploymentgroupname "MyL ...
  • ~~~~~~~~~~~~~.
    At line:1 char:1472
  • ... ip, "$PWD");.\config.cmd --deploymentgroup --deploymentgroupname "MyL ...
  • ~~~~~~~~~~~~~

    • CategoryInfo : ResourceUnavailable: (:) [], ParentContainsErrorRecordException

    • FullyQualifiedErrorId : NativeCommandFailed

Please help me any one

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anlatsko picture anlatsko  Â·  3Comments

adnanebrahimi picture adnanebrahimi  Â·  3Comments

MJECloud picture MJECloud  Â·  3Comments

atrauzzi picture atrauzzi  Â·  3Comments

dannyvv picture dannyvv  Â·  3Comments