We host the SOLR as an app service in the Azure PaaS. It seems that SOLR runs on the different port every time.
Is there any way to restrict the SOLR to run on a single port only?
As far as I know,Azure app service will
dynamically assign ports within the platform.By default, it's
not allowed to restrict one specific port only.
While you can try some alternative workaround:
rverse proxy using
IIS to make it listen the port and forward the reuqest from solr app.
VM instead of Paas Service.You can try to install a stand-alone instance on VM server with more control over network and without restriction on ports.
Hope it helps!