Welcome!

Think first. Code later.

Adam Grocholski

Subscribe to Adam Grocholski: eMailAlertsEmail Alerts
Get Adam Grocholski via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Related Topics: PC Security Journal, Ubuntu Linux Journal, SEO Journal, Azure Cloud on Ulitzer, Security Journal

Blog Feed Post

Azure CLI Day 49 – sql firewallrule list

bash-azure

In my previous post (http://thinkfirstcodelater.com/blog/?p=3479) I showed you how to create a firewall rule for a SQL database server using the Windows Azure cross platform command line tools. In this post I’ll show you how to use the tools to list the firewall rules for SQL database server.

Once again, just a reminder that I’m using the command line tools on a MacBook Air with OSX (Mavericks) installed, and I’m using Google Chrome as my default browser. However, the experience should be identical on Windows and Linux as well.

Open an instance of your command line (Terminal, Bash, Command Prompt, etc.) and type the following:

azure sql firewallrule list -h

Screen Shot 2013-11-01 at 4.18.03 PM

The azure sql firewallrule list command is the command to use to list the firewall rules for a SQL database server. The only parameter you need to provide is the serverName.

To list the firewall rules for your server, enter the following, substituting where appropriate:

azure sql firewallrule list ‘[YOUR SQL SERVER NAME]‘

I entered the following:

azure sql firewallrule list ‘thbmcjr7xb’

Screen Shot 2013-11-01 at 4.21.51 PM

That’s all there is to it. In the next post I’ll show you how to view the details for a specific firewall rule using the Windows Azure cross platform command line tools.

Did you know you can try Windows Azure for free for 30 days? Just go to http://aka.ms/thecloud and sign up.

Read the original blog entry...

More Stories By Adam Grocholski

Hey there! My name is Adam Grocholski, and I'm a Technical Evangelist at Microsoft where I spend time focusing on Windows, Windows Phone, and Windows Azure. I live in the frozen tundra of Minnesota and run thinkfirstcodelater.com. You can also follow me on twitter at @codel8r.