I have installed Content Delivery services as a windows service on the Microsoft Azure server now I am trying to register these capabilities into the discovery service but I am getting error showing TokenServiceCapability not found issue, hence none of the services are getting registered. I have checked the config file but the couldn't found any such issue. I have checked all the services are up and running, the token service http://localhost:8082/token.svc is also working. I am not able to figure out what could be the reason behind this issue.
The actual error in the above issue is
"Path not allowed" and not the INFO message which says
"TokenServiceCapability not found".
It looks like you had discovery service with
Rules enabled as true which can cause this issue.
In general, if you have OAuth disabled, then rules must be disabled.
Also if you have OAuth disabled, you can remove
TokenServiceUrl from the
<ConfigurationRepository...> section of the config used by registration tool.