microsoft / vs-dapr

View, manage, and diagnose Dapr services within Visual Studio.
https://dapr.io
MIT License
21 stars 2 forks source link

Unable to specify custom httpPort and grpcPort? #19

Closed tpankake-insight closed 3 months ago

tpankake-insight commented 4 months ago

I have tried adding grpcPort: and httpPort: to the dapr.yaml file for each of my projects with a specific port number. However, when I start my services through VS, I see the dapr run command does not include --http-port or --grpc-port arguments and the ports are randomly assigned and change each time I restart debugging. I need to be able to predict my http and grpc dapr ports. Is there a yaml syntax that I'm not seeing? Or is this a known issue?

philliphoff commented 3 months ago

@tpankake-insight Per the spec, the Dapr run file uses the somewhat more unwieldy daprGRPCPort and daprHTTPPort properties to indicate the gRPC and HTTP ports used by the Dapr sidecar.

philliphoff commented 3 months ago

(Closing as verified that VS was abiding by the Dapr run file spec.)