So here is the scenario:
I am monitoring some VM's within the azure environment via passive agent (well, 1 at the moment). Meanwhile, I'm using azure's endpoint functionality to ensure that public port is port X while private port is 17790, which is I configure from the manually installed agent MSI. When I go into SAM -> manage agents -> connect to a previously installed agent, and then configure it for server-initiated communication and specify port X? The agent gets updated in Azure to port X, and then fails to connect.
Is this the intended behavior of the agent? This does tend to break the intended method of having a non-default public port for azure monitoring.