I want to set up my custom .NET implementation of a FTP service on Service Fabric and configure the TCP ports of my public endpoint so that when the user is sending data on the different ports of my public endpoint, it is internally directed to the same instance of my service in Service Fabric.
For example if I have two instances A and B, the user connects to the FTP service on the instance A, every data connection created for the service would be directed to the instance A.
The Azure Load Balancer offers the possibility to either:
- change the distribution mode from hash-based to source IP affinity mode
- in a Cloud Service, we can redirect a public port to a specific port for each VM, so I can redirect all traffic to a public port (for example 10000) to the private port 10000 of the instance A
Nevertheless it seems that we do not access to the Azure Service Fabric VMs via Azure Powershell, so I cannot use these solutions.
Is there another way to be able to set these configurations for an Azure Service Fabric cluster, or another way to get this affinity per instance?