Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add-octomachine erroring #12

Open
AlexDBA012 opened this issue Aug 16, 2018 · 1 comment
Open

Add-octomachine erroring #12

AlexDBA012 opened this issue Aug 16, 2018 · 1 comment
Assignees

Comments

@AlexDBA012
Copy link

Hi

These cmdlets are great but I'm having troubles with add-octomachine.

I’m running this line

Add-octoMachine -environment $environment -Name $Server -endpoint TentacleActive -Roles $roles

And getting this error

Add-OctoMachine : Cannot bind parameter 'Endpoint'. Cannot convert the "TentacleActive" value of type "System.String"

to type "Octopus.Client.Model.Endpoints.EndpointResource".

At C:\serverbuilds\OCTAddEnvironments.ps1:45 char:69

  • ... ironment $environment -Name $Server -endpoint TentacleActive -Roles ...

  • 
    
  • CategoryInfo : InvalidArgument: (:) [Add-OctoMachine], ParameterBindingException

  • FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Octopus_Cmdlets.AddMachine

Any Ideas?

Cheers

@Swoogan Swoogan self-assigned this Aug 17, 2018
@Swoogan
Copy link
Owner

Swoogan commented Sep 25, 2018

You need to pass an EndpointResource object to the -Endpoint parameter. You would have to create an instance of PollingTentacleEndpointResource with New-Ojbect and then pass that as the parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants