I am trying to add an environment to the Topology Manager using the Add-TtmCdEnvironment command. It seems to connect to the Discovery Service, but an error is thrown. In the Discovery Service log I see a connection being accepted but no apparent errors. The command aborts with the following error:
Add-TtmCdEnvironment -Id PreviewEnvironment -EnvironmentPurpose Preview -DiscoveryEndpointUrl http:/
/myhostname/discovery.svc -AuthenticationType OAuth -ClientId cmuser -ClientSecret CMUserP@ssw0rd
Add-TtmCdEnvironment : Unable to save item of type 'CdEnvironmentData' with id 'PreviewEnvironment'.
One or more errors occurred.
An error occurred while communicating with CD Discovery Service 'http://myhostname/discovery.svc' in CD
Environment 'PreviewEnvironment'.
One or more errors occurred.
Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
At line:1 char:1
+ Add-TtmCdEnvironment -Id PreviewEnvironment -EnvironmentPurpose Preview -Discove ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Tridion.Topolog...ironmentCommand:AddCdEnvironmentCommand) [Add-TtmCdEnvi
ronment], DataServiceException
+ FullyQualifiedErrorId : Tridion.TopologyManager.Automation.AddCdEnvironmentCommand