Elastic agent doesn't seem to respect the parameters specified in the config file. As per below config, gRPC should bind to 6790. Rather it binds on 6789 (default).
agent.grpc:
address: localhost
port: 6790
Here's the open ports for ES agent after running it.
[elastic-agent.exe]
TCP 127.0.0.1:6789 127.0.0.1:53942 ESTABLISHED 27460
[elastic-agent.exe]
TCP 127.0.0.1:6789 127.0.0.1:53945 ESTABLISHED 27460
[elastic-agent.exe]
TCP 127.0.0.1:6789 127.0.0.1:53954 ESTABLISHED 27460
[elastic-agent.exe]
TCP 127.0.0.1:6789 127.0.0.1:63411 ESTABLISHED 27460
Is this a bug?