Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Get Public IP Address using Powershell
$url = "http://icanhazip.com/"
$webclient = New-Object System.Net.WebClient
$ipResp = $webclient.DownloadString($url)
$ip = $ipResp.ToString().Trim()
$ip
Owner

Use this to automatically update SQL Azure firewall rules: http://aaron-hoffman.blogspot.com/2016/02/update-azure-sql-firewall-rule-using.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment