I have installed the Web 8.5 and trying to setup the TTM - specifically the TTM CD environment by running the TtmCdEnvironment command. However, I am getting the below error while trying to run this command in Powershell (opened as an Administrator):
Add-TtmCdEnvironment -Id LocalCD -EnvironmentPurpose "Staging" -DiscoveryEndpointUrl http://localhost:8082/discovery.svc -AuthenticationType OAuth -ClientId cmuser -ClientSecret CMUserP@ssw0rd
ERROR:
Add-TtmCdEnvironment : Unable to save item of type 'CdEnvironmentData' with id 'LocalCD'.
One or more errors occurred.
An error occurred while communicating with CD Discovery Service 'http://localhost:8082/discovery.svc' in CD
Environment 'LocalCD'.
One or more errors occurred.
The TokenServiceCapability is not configured in the Content Discovery Service http://localhost:8082/discovery.svc.
At line:1 char:1
+ Add-TtmCdEnvironment -Id LocalCD -EnvironmentPurpose "Staging" -Disco ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Tridion.Topolog...ironmentCommand:AddCdEnvironmentCommand) [Add-TtmCdEnvi
ronment], DataServiceException
+ FullyQualifiedErrorId : Tridion.TopologyManager.Automation.AddCdEnvironmentCommand
I have checked the cd_storage_config.xml for the discovery service and here are how the relevant section looks like:
<ConfigRepository CacheEnabled="true" CacheExpirationDuration="600" ClientId="registration" ClientSecret="encrypted:HzfQh9wYwAKShDxCm4DnnBnysAz9PtbDMFXMbPszSVY=" ConnectionTimeout="40000" ServiceMonitorPollDuration="10" ServiceUri="http://localhost:8082/discovery.svc" TokenServiceUrl="http://localhost:8082/token.svc">
<Roles>
<Role Name="TokenServiceCapability" Url="http://localhost:8082/token.svc"/>
</Roles>
</ConfigRepository>
I verified the Discovery service is running and above URLs open in the browser.
It seems I am missing something very common - any pointer would be helpful