Azure SQL Add Your IP to Firewall Azure CLI

You can always log in to the Azure portal and add firewall rules.

If you have added a firewall rule denying access to the development database and you don’t have a static IP connection, it is a bit cumbersome to do it all the time.

Let’s automate it by

Warning: Could be a bit risky if this is a production database.

Hope you learned something new today! :)

--

--

Kamal Rathnayake

Lead Software Engineer with 6 years of experience in the industry. Writing for fun!