Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you have a requirement that users should only be able to access your site on a custom Port 7071.
In that case, you have to use Application Gateway only.
- With v2, you may use any port in the range of 1 to 64999 except 22.
- See : App Gateway Listeners and Ports
More details on integration between App gateway and App Service :
- Application Gateway integration
- You must make sure there is a network path between App Service and App gateway either via
- Internet
- or Service EndPoint.
You can further use Azure App Service access restrictions to only allow traffic from App Gateway, this way no one can bypass the App Gateway to directly access App Service
Kindly let us know if this helps or you need further assistance on this issue.
Thanks,
Kapil
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.