70 строки
1.7 KiB
JSON
70 строки
1.7 KiB
JSON
{
|
|
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
|
|
"contentVersion": "1.0.0.0",
|
|
"metadata": {
|
|
"_generator": {
|
|
"name": "bicep",
|
|
"version": "0.27.1.19265",
|
|
"templateHash": "17685739923265585206"
|
|
}
|
|
},
|
|
"parameters": {
|
|
"name": {
|
|
"type": "string",
|
|
"metadata": {
|
|
"description": "The name of the resource."
|
|
}
|
|
},
|
|
"location": {
|
|
"type": "string",
|
|
"defaultValue": "[resourceGroup().location]",
|
|
"metadata": {
|
|
"description": "The location resources will be deployed."
|
|
}
|
|
},
|
|
"subnetId": {
|
|
"type": "string",
|
|
"metadata": {
|
|
"description": "The resource ID for the subnet to connect to."
|
|
}
|
|
},
|
|
"pipId": {
|
|
"type": "string",
|
|
"metadata": {
|
|
"description": "The resource ID of the public IP address to use."
|
|
}
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"type": "Microsoft.Network/virtualNetworkGateways",
|
|
"apiVersion": "2023-11-01",
|
|
"name": "[parameters('name')]",
|
|
"location": "[parameters('location')]",
|
|
"properties": {
|
|
"gatewayType": "Vpn",
|
|
"ipConfigurations": [
|
|
{
|
|
"name": "default",
|
|
"properties": {
|
|
"privateIPAllocationMethod": "Dynamic",
|
|
"subnet": {
|
|
"id": "[parameters('subnetId')]"
|
|
},
|
|
"publicIPAddress": {
|
|
"id": "[parameters('pipId')]"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"activeActive": true,
|
|
"vpnType": "RouteBased",
|
|
"vpnGatewayGeneration": "Generation2",
|
|
"sku": {
|
|
"name": "VpnGw1AZ",
|
|
"tier": "VpnGw1AZ"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |