I have a Azure Worker Role which has a /janitor route. This route shows counters and logs for this instance. When I make this role have two or more instances, I have no control which instance I'm accessing. My question is: how do I reliably access a particular instance of a role from public ip?
I'm aware of Instance Level Public Ip. That's not what I want because it requires some extra setup.
What I want to do is similar to what Remote Desktop client (mstsc.exe) does. I opened one Remote Desktop Connection to each of the individual instances. I noticed they both access same public IP and port of my worker role but somehow mstsc.exe manages to get two individual screens, one for each instance. mstsc.exe seems to be multiplexing the two server screens at TCP level. This is fancy, I don't want to go that far.
All I want is to issue HTTP requests to each individual instance. Is there any way to do that? E.g. an HTTP header, like X-Azure-Instance-Id=???.