I have an azure virtual network with several cloud services and would like to establish communications among role instances from different cloud services dynamically.
Within the same cloud service, I was able to retrieve internal endpoints of other role instances by accessing RoleEnvironment
and search for roles by role names.
I understand that within the same virtual network, vms can communicate via internal endpoints even across cloud services. However, I do not know how to retrieve internal endpoints of role instances located in a different cloud service in the same virtual network dynamically (programmatically). Does RoleEnvironment
class still works in this case, or are there other classes I should look into?