From 2943ec1eccc8de609ff28db9a12fdce857efe770 Mon Sep 17 00:00:00 2001 From: srdan-bozovic-msft Date: Sat, 4 May 2019 23:26:11 +0200 Subject: [PATCH] mod: publicip location --- .../attach-vpn-gateway/attachVPNGateway.ps1 | 9 +++++++++ .../attach-vpn-gateway/azuredeploy.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) 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 7ec2c1ac..f97d02c3 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 @@ -1,6 +1,15 @@ $parameters = $args[0] $scriptUrlBase = $args[1] +$scriptUrlBase = 'https://raw.githubusercontent.com/srdan-bozovic-msft/sql-server-samples/master/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway' + +$parameters = @{ + subscriptionId = 'a8c9a924-06c0-4bde-9788-e7b1370969e1' + resourceGroupName = 'srki_test' + virtualNetworkName = 'vnet-testlinuxps' + certificateNamePrefix = 'cert4testlinuxps' +} + $subscriptionId = $parameters['subscriptionId'] $resourceGroupName = $parameters['resourceGroupName'] $virtualNetworkName = $parameters['virtualNetworkName'] diff --git a/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/azuredeploy.json b/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/azuredeploy.json index db683af4..9532f57e 100644 --- a/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/azuredeploy.json +++ b/samples/manage/azure-sql-db-managed-instance/attach-vpn-gateway/azuredeploy.json @@ -46,7 +46,7 @@ "apiVersion": "2017-10-01", "type": "Microsoft.Network/publicIPAddresses", "name": "[variables('gatewayPublicIpAddressName')]", - "location": "[resourceGroup().location]", + "location": "[parameters('location')]", "properties": { "publicIPAllocationMethod": "Dynamic" }