diff --git a/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/README.md b/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/README.md index 1edae178..e38acde9 100644 --- a/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/README.md +++ b/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/README.md @@ -53,7 +53,7 @@ $parameters = @{ certificateNamePrefix = '' } -Invoke-Command -ScriptBlock ([Scriptblock]::Create((iwr ($scriptUrlBase+'/attachVPNGateway.ps1?t='+ [DateTime]::Now.Ticks)).Content)) -ArgumentList $parameters $scriptUrlBase +Invoke-Command -ScriptBlock ([Scriptblock]::Create((iwr ($scriptUrlBase+'/attachVPNGateway.ps1?t='+ [DateTime]::Now.Ticks)).Content)) -ArgumentList $parameters, $scriptUrlBase ``` diff --git a/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/attachVPNGateway.ps1 b/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/attachVPNGateway.ps1 index 86036df2..3d861da7 100644 --- a/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/attachVPNGateway.ps1 +++ b/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/attachVPNGateway.ps1 @@ -172,6 +172,7 @@ Write-Host Write-Host "Starting deployment..." $templateParameters = @{ + location = $virtualNetwork.Location virtualNetworkName = $virtualNetworkName gatewaySubnetPrefix = $gatewaySubnetPrefix vpnClientAddressPoolPrefix = $vpnClientAddressPoolPrefix