Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

Copy link
Owner Author

@aaronhoffman aaronhoffman commented Sep 26, 2016

Use this to automatically update SQL Azure firewall rules:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.