Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvillegascuellar/406fb4edb646018103e3407a98181edd to your computer and use it in GitHub Desktop.
Save mvillegascuellar/406fb4edb646018103e3407a98181edd to your computer and use it in GitHub Desktop.
$ip = Invoke-RestMethod http://ipinfo.io/json | Select -exp ip
New-AzureRmSqlServerFirewallRule -ResourceGroupName $resourceGroupName `
-ServerName "server-1854761624" -FirewallRuleName "PermitirMiIP" `
-StartIpAddress $ip -EndIpAddress $ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment