From 653c548b80b0fc51bd07c072847785c9257bca42 Mon Sep 17 00:00:00 2001 From: Giancarlo Fontela da Luz Date: Fri, 12 Jan 2024 09:21:40 -0300 Subject: [PATCH] Change service that gives the public IP of the client Related to #635. --- deployment/Deploy.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/Deploy.ps1 b/deployment/Deploy.ps1 index 5bebd4d8..8cf95600 100644 --- a/deployment/Deploy.ps1 +++ b/deployment/Deploy.ps1 @@ -347,7 +347,7 @@ Write-host " ➡️ Add SQL Server Firewall rules" az sql server firewall-rule create --resource-group $ResourceGroupForDeployment --server $SQLServerName -n AllowAzureIP --start-ip-address "0.0.0.0" --end-ip-address "0.0.0.0" --output $azCliOutput if ($env:ACC_CLOUD -eq $null){ Write-host " ➡️ Running in local environment - Add current IP to firewall" - $publicIp = (Invoke-WebRequest -uri "http://ifconfig.me/ip").Content + $publicIp = (Invoke-WebRequest -uri "https://api.ipify.org").Content az sql server firewall-rule create --resource-group $ResourceGroupForDeployment --server $SQLServerName -n AllowIP --start-ip-address "$publicIp" --end-ip-address "$publicIp" --output $azCliOutput } Write-host " ➡️ Create SQL DB"