Firewall rules will allows the specified IP Address to connect to the azure server. While creating rule, If IP address or range of IP Addresses are mentioned, these IP addresses will be allowed to connect to azure server. However, in few scenarios, users might not know the external IP address, if they are using proxy server etc. To solve this problem, Azure provided a REST API method to add IP Address to firewall rule, even when IP Address is not known.
To create firewall rule with IP Detect, an POST request has to be make in following format
https://management.database.windows.net:8443/<subscription-id>/servers/<servername>/firewallrules/<rulename>?op=AutoDetectClientIP
On Success, it returns the status code 200 with IP Address in response body.
To use this API, request also has to be authenticated by using security certificate.