Skip to content

Commit 61d64ba

Browse files
fixed script; duplicate lines
1 parent 44176ff commit 61d64ba

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Functions/network.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,12 +386,16 @@ Function Get-MyPublicIP{
386386
#hashtable is: "dns name = property"
387387
#eg.
388388
$RestAPIUrls = @{
389+
"https://api.hostip.info/get_json.php"='ip'
389390
"http://ipinfo.io/json"='ip'
390391
"myexternalip.com/raw"=''
391392
"ident.me"=''
392393
"api.ipify.org"=''
393394
"ipecho.net/plain"=''
394395
"ifconfig.me/ip"=''
396+
"12.io"=""
397+
"checkip.amazonaws.com"=""
398+
"ip.seeip.org"=""
395399
}
396400

397401
If($DynamicDns)
@@ -423,6 +427,6 @@ Function Get-MyPublicIP{
423427
Return $Response
424428
}
425429
}
426-
}
430+
}#end loop
427431
}
428432
}

Step 3B-1. Build Azure Advanced S2S - Region 1.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ param(
6060
} )]
6161
[Alias("config")]
6262
[string]$ConfigurationFile = "configs.ps1"
63+
64+
[switch]$SkipVYOSSetup
6365
)
6466

6567
$ErrorActionPreference = "Stop"
@@ -342,7 +344,6 @@ $gwipconfig = New-AzVirtualNetworkGatewayIpConfig -Name $AzureAdvConfigSiteA.Vne
342344
#region 7. Create the VPN gateway
343345
#Check to see if public IP is attached to VNG
344346
If( -Not(Get-AzVirtualNetworkGateway -Name $AzureAdvConfigSiteA.VnetGatewayName -ResourceGroupName $AzureAdvConfigSiteA.ResourceGroupName -ErrorAction SilentlyContinue).IpConfigurations.PublicIpAddress.id )
345-
If( -Not(Get-AzVirtualNetworkGateway -Name $AzureAdvConfigSiteA.VnetGatewayName -ResourceGroupName $AzureAdvConfigSiteA.ResourceGroupName -ErrorAction SilentlyContinue).IpConfigurations.PublicIpAddress.id )
346347
{
347348
Write-host ("Building Azure virtual network gateway [{0}], this can take up to 45 minutes..." -f $AzureAdvConfigSiteA.VnetGatewayName) -ForegroundColor White -NoNewline
348349
Try{

0 commit comments

Comments
 (0)