mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
mod: publicip location
This commit is contained in:
@@ -1,6 +1,15 @@
|
|||||||
$parameters = $args[0]
|
$parameters = $args[0]
|
||||||
$scriptUrlBase = $args[1]
|
$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']
|
$subscriptionId = $parameters['subscriptionId']
|
||||||
$resourceGroupName = $parameters['resourceGroupName']
|
$resourceGroupName = $parameters['resourceGroupName']
|
||||||
$virtualNetworkName = $parameters['virtualNetworkName']
|
$virtualNetworkName = $parameters['virtualNetworkName']
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
"apiVersion": "2017-10-01",
|
"apiVersion": "2017-10-01",
|
||||||
"type": "Microsoft.Network/publicIPAddresses",
|
"type": "Microsoft.Network/publicIPAddresses",
|
||||||
"name": "[variables('gatewayPublicIpAddressName')]",
|
"name": "[variables('gatewayPublicIpAddressName')]",
|
||||||
"location": "[resourceGroup().location]",
|
"location": "[parameters('location')]",
|
||||||
"properties": {
|
"properties": {
|
||||||
"publicIPAllocationMethod": "Dynamic"
|
"publicIPAllocationMethod": "Dynamic"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user