Adding more:
You may follow the suggestions outlined (step-step) in the below guide walks through configuring IP access restrictions on wp-admin for the WordPress on App Service offering.
How to enable IP access restrictions on wp-admin for the WordPress on App Service offering
The article outlines the following high-level steps:
- Using the SSH console, copy /etc/nginx/conf.d/default.conf to /home/dev/default.conf
- Edit /home/dev/default.conf to use the X-Forwarder-For header and add a location block for wp-login.php
- Update /home/dev/startup.sh with the below snippet
- Point to /home/dev/startup.sh in the App Service portal under configuration –> general settings. Saving the changes will restart the App Service.
- Test the access using different devices to ensure the IP access restrictions are applied.
(converting to answer from comment) + adding summary
If the answer helped (pointed, you in the right direction) > please click Accept Answer Or please share the requested/more info to help you better.