From d8b92e6aeedb949b478f2899d6050f4898290b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sr=C4=91an=20Bo=C5=BEovi=C4=87?= Date: Fri, 24 Aug 2018 03:21:16 +0200 Subject: [PATCH] fix --- .../attach-vpn-gateway/attachVPNGateway.ps1 | 1 - .../attach-vpn-gateway/azuredeploy.json | 7 +++++++ 2 files changed, 7 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 3d861da7..86036df2 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,7 +172,6 @@ Write-Host Write-Host "Starting deployment..." $templateParameters = @{ - location = $virtualNetwork.Location virtualNetworkName = $virtualNetworkName gatewaySubnetPrefix = $gatewaySubnetPrefix vpnClientAddressPoolPrefix = $vpnClientAddressPoolPrefix 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 a97f558f..ed2c56fb 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 @@ -2,6 +2,13 @@ "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", "contentVersion": "1.0.0.1", "parameters": { + "location": { + "type": "string", + "defaultValue": "[resourceGroup().location]", + "metadata": { + "description": "Enter location. If you leave this field blank resource group location would be used." + } + }, "virtualNetworkName": { "type": "string", "metadata": {